Commit 21e44eef authored by nanahira's avatar nanahira

Merge branch 'master' of github.com:Fluorohydride/ygopro into develop

# Conflicts:
#	gframe/data_manager.cpp
#	gframe/deck_con.cpp
parents 6d6cb843 4cc19918
Pipeline #43757 passed with stages
in 6 minutes and 40 seconds
...@@ -241,6 +241,7 @@ jobs: ...@@ -241,6 +241,7 @@ jobs:
- name: Update submodules - name: Update submodules
# Here we use override URLs and branches from the prepare job, which can be set by pull request description, # Here we use override URLs and branches from the prepare job, which can be set by pull request description,
# to make sure we are testing the correct code. Only the ocgcore submodule is required for the build. # to make sure we are testing the correct code. Only the ocgcore submodule is required for the build.
shell: bash
run: | run: |
git submodule update --init --no-fetch ocgcore git submodule update --init --no-fetch ocgcore
cd ocgcore cd ocgcore
...@@ -272,6 +273,7 @@ jobs: ...@@ -272,6 +273,7 @@ jobs:
filename: premake5.zip filename: premake5.zip
- name: Extract premake - name: Extract premake
shell: bash
run: | run: |
7z x ${{ steps.premake.outputs.filepath }} 7z x ${{ steps.premake.outputs.filepath }}
...@@ -284,9 +286,10 @@ jobs: ...@@ -284,9 +286,10 @@ jobs:
- name: Extract irrKlang - name: Extract irrKlang
if: matrix.audiolib == 'irrklang' if: matrix.audiolib == 'irrklang'
shell: bash
run: | run: |
7z x ${{ steps.irrKlang.outputs.filepath }} 7z x ${{ steps.irrKlang.outputs.filepath }}
move irrKlang-1.6.0 irrKlang mv irrKlang-1.6.0 irrKlang
- name: Check DirectX SDK - name: Check DirectX SDK
if: matrix.nodxsdk != true if: matrix.nodxsdk != true
...@@ -305,21 +308,25 @@ jobs: ...@@ -305,21 +308,25 @@ jobs:
- name: Install DirectX SDK - name: Install DirectX SDK
if: matrix.nodxsdk != true && steps.dxsdk.outputs.cache-hit != 'true' if: matrix.nodxsdk != true && steps.dxsdk.outputs.cache-hit != 'true'
shell: bash
run: | run: |
7z x ${{ steps.dxsdk-download.outputs.filepath }} -aoa 7z x ${{ steps.dxsdk-download.outputs.filepath }} -aoa
- name: Set DirectX SDK environment variable - name: Set DirectX SDK environment variable
if: matrix.nodxsdk != true if: matrix.nodxsdk != true
shell: pwsh
run: | run: |
$dxsdkPath = Resolve-Path 'DXSDK' $dxsdkPath = Resolve-Path 'DXSDK'
"DXSDK_DIR=$($dxsdkPath.ProviderPath)\" | Out-File -FilePath $env:GITHUB_ENV -Append "DXSDK_DIR=$($dxsdkPath.ProviderPath)\" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Copy premake files - name: Copy premake files
shell: bash
run: | run: |
xcopy /E premake\* . cp -pr premake/* .
xcopy /E resource\* . cp -pr resource/* .
- name: Use premake to generate Visual Studio solution - name: Use premake to generate Visual Studio solution
shell: pwsh
run: | run: |
.\premake5.exe ${{ matrix.vs }} --audio-lib=${{ matrix.audiolib }} .\premake5.exe ${{ matrix.vs }} --audio-lib=${{ matrix.audiolib }}
...@@ -327,6 +334,7 @@ jobs: ...@@ -327,6 +334,7 @@ jobs:
uses: microsoft/setup-msbuild@v2 uses: microsoft/setup-msbuild@v2
- name: Build solution - name: Build solution
shell: pwsh
run: | run: |
MSBuild.exe build\YGOPro.sln /m /p:Configuration=Release /p:Platform=${{ matrix.x64 && 'x64' || 'Win32' }} MSBuild.exe build\YGOPro.sln /m /p:Configuration=Release /p:Platform=${{ matrix.x64 && 'x64' || 'Win32' }}
......
...@@ -84,11 +84,7 @@ bool DataManager::ReadDB(sqlite3* pDB) { ...@@ -84,11 +84,7 @@ bool DataManager::ReadDB(sqlite3* pDB) {
sqlite3_finalize(pStmt); sqlite3_finalize(pStmt);
for (auto& entry : _datas) { for (auto& entry : _datas) {
auto& cd = entry.second; auto& cd = entry.second;
if (cd.rule_code) if (cd.rule_code || !cd.alias || (cd.type & TYPE_TOKEN))
continue;
if (!cd.alias)
continue;
if (cd.type & TYPE_TOKEN)
continue; continue;
auto it = _datas.find(cd.alias); auto it = _datas.find(cd.alias);
if (it == _datas.end()) if (it == _datas.end())
......
Subproject commit bf8494f1375b6391d8bf5c06473154727458400c Subproject commit ee4029ad30f2229357a938ab72d6c2d653f38e89
Subproject commit fd8abc4c0545f23a6848b6921fb502e154a2b891 Subproject commit 7e509fe88ae6a8932416f628a06fbd76e7dd7ec3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment