From 380f86f4d7ed9540132cad62d18ecbc896a189ec Mon Sep 17 00:00:00 2001 From: Jay39w Date: Thu, 14 Nov 2019 00:56:59 +0000 Subject: [PATCH 1/3] anna oop sksksksk --- appveyor.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index f1d4797..b0ccd63 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,6 +12,8 @@ after_build: md %TMP%\full\ md %TMP%\full\plugins\ + + md %TMP%\full\plugins\pv_equip\ md %TMP%\full\ram\ @@ -36,11 +38,11 @@ after_build: copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\keyconfig.ini %TMP%\update\plugins\ - copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\modules.ini %TMP%\update\plugins\pv_equip\ + copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\pv_equip\modules.ini %TMP%\update\plugins\pv_equip\ - copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\skins.ini %TMP%\update\plugins\pv_equip\ + copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\pv_equip\skins.ini %TMP%\update\plugins\pv_equip\ - copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\sfx.ini %TMP%\update\plugins\pv_equip\ + copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\pv_equip\sfx.ini %TMP%\update\plugins\pv_equip\ copy %APPVEYOR_BUILD_FOLDER%\source-code\x64\%CONFIGURATION%\dnsapi.dll %TMP%\full\ From 834724948b3f376268f090448b87bc0371823938 Mon Sep 17 00:00:00 2001 From: Jay39w Date: Thu, 14 Nov 2019 00:57:56 +0000 Subject: [PATCH 2/3] bugfixes? ? --- .../plugins/TLAC/Components/ScoreSaver.cpp | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp b/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp index fa1ce40..1d76593 100644 --- a/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp +++ b/source-code/source/plugins/TLAC/Components/ScoreSaver.cpp @@ -566,22 +566,6 @@ namespace TLAC::Components const WCHAR section[] = L"modules"; swprintf(keyBase, 32, L"pv.%03d", pvNum); - swprintf(key, 32, L"%ls.skin", keyBase); - int INISkin = GetPrivateProfileIntW(section, key, 0, skins_configPath); - if (INISkin > 0) - { - DivaScore* cachedScore = GetCachedScore(pvNum, diff, exDiff); - if (cachedScore == nullptr) - { - ScoreCache[diff].push_back(DivaScore(pvNum, exDiff)); - cachedScore = GetCachedScore(pvNum, diff, exDiff); - } - if (cachedScore != nullptr) - { - cachedScore->per_skin_equip = INISkin; - } - } - for (int i = 0; i < 6; ++i) { swprintf(key, 32, L"%ls.module%d", keyBase, i); @@ -619,17 +603,13 @@ namespace TLAC::Components { swprintf(key, 32, L"%ls.module%d", keyBase, i); int INImodule = GetPrivateProfileIntW(section, key, 0, modules_configPath); - if (INImodule != cachedScore->per_module_equip[0] || INImodule != cachedScore->per_module_equip[1] || INImodule != cachedScore->per_module_equip[2] || INImodule != cachedScore->per_module_equip[3] || INImodule != cachedScore->per_module_equip[4] || INImodule != cachedScore->per_module_equip[5]) + if (INImodule != cachedScore->per_module_equip[i]) { INImodule = *cachedScore->per_module_equip; WCHAR val[32]; swprintf(val, 32, L"%d", cachedScore->per_module_equip[i]); WritePrivateProfileStringW(L"modules", key, val, modules_configPath); } - else - { - return; - } } } @@ -647,7 +627,7 @@ namespace TLAC::Components swprintf(keyBase, 32, L"pv.%03d", pvNum); swprintf(key, 32, L"%ls.skin", keyBase); int INISkin = GetPrivateProfileIntW(section, key, 0, skins_configPath); - if (INISkin > 0) + if (INISkin > -1) { DivaScore* cachedScore = GetCachedScore(pvNum, diff, exDiff); if (cachedScore == nullptr) From 4494fe1760945625f0030c40a828290857f18b65 Mon Sep 17 00:00:00 2001 From: Jay39w Date: Thu, 14 Nov 2019 01:39:44 +0000 Subject: [PATCH 3/3] Appveyor fix please please just work :( --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index b0ccd63..b67edd7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -53,6 +53,8 @@ after_build: copy %APPVEYOR_BUILD_FOLDER%\source-code\data\glut32.dll %TMP%\full\ copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\*.* %TMP%\full\plugins\ + + copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\*.* %TMP%\full\plugins\pv_equip\ copy %APPVEYOR_BUILD_FOLDER%\source-code\data\ram\databank\*.dat %TMP%\full\ram\databank\