Add multiple new feature & update config/readme

累积更新
文档与配置更新
去掉多余的配置项读取
This commit is contained in:
ptmaster
2024-11-24 17:44:03 +01:00
committed by Farewell_
parent fb2c5c117d
commit 3933ecab00
19 changed files with 725 additions and 118 deletions
+2 -9
View File
@@ -28,8 +28,6 @@ bool useLayeredFs = false;
bool emulateUsio = true;
bool emulateCardReader = true;
bool emulateQr = true;
std::string datatableKey = "0000000000000000000000000000000000000000000000000000000000000000";
std::string fumenKey = "0000000000000000000000000000000000000000000000000000000000000000";
HWND hGameWnd;
HOOK (i32, ShowMouse, PROC_ADDRESS ("user32.dll", "ShowCursor"), bool) { return originalShowMouse.call<i32> (true); }
@@ -180,12 +178,6 @@ DllMain (HMODULE module, DWORD reason, LPVOID reserved) {
autoIme = readConfigBool (keyboard, "auto_ime", autoIme);
jpLayout = readConfigBool (keyboard, "jp_layout", jpLayout);
}
auto layeredFs = openConfigSection (config, "layeredfs");
if (layeredFs) {
useLayeredFs = readConfigBool (layeredFs, "enabled", useLayeredFs);
datatableKey = readConfigString (layeredFs, "datatable_key", datatableKey);
fumenKey = readConfigString (layeredFs, "fumen_key", fumenKey);
}
}
if (version == "auto") {
@@ -260,7 +252,8 @@ DllMain (HMODULE module, DWORD reason, LPVOID reserved) {
patches::Audio::Init ();
patches::Dxgi::Init ();
patches::AmAuth::Init ();
if (useLayeredFs) patches::LayeredFs::Init ();
patches::LayeredFs::Init ();
patches::TestMode::Init ();
}
return true;
}