From eb17a30a06bba4517d324e6f934b1702d9656a27 Mon Sep 17 00:00:00 2001 From: nastys <@> Date: Sat, 4 Sep 2021 20:34:52 +0200 Subject: [PATCH] (2.5.2) Fix manual Turing GPU; work around hand size upgrade error --- source-code/dependencies/GPUModel/GPUModel.h | 2 +- source-code/source/plugins/Launcher/ui.h | 2 +- source-code/source/plugins/Patches/PatchApplier710.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source-code/dependencies/GPUModel/GPUModel.h b/source-code/dependencies/GPUModel/GPUModel.h index ff30ed1..68bc096 100644 --- a/source-code/dependencies/GPUModel/GPUModel.h +++ b/source-code/dependencies/GPUModel/GPUModel.h @@ -36,7 +36,7 @@ namespace GPUModel { // detected model can be overridden -- 0: Kepler, 1: Maxwell, 2: Turing, 3: Ampere int nGPUModel = GetPrivateProfileIntW(L"gpu", L"model", -1, CONFIG_FILE); - if (nGPUModel >= 0 && nGPUModel <= 2) + if (nGPUModel >= 0 && nGPUModel <= 3) { std::string arch; switch (nGPUModel) diff --git a/source-code/source/plugins/Launcher/ui.h b/source-code/source/plugins/Launcher/ui.h index 0dcd712..0605345 100644 --- a/source-code/source/plugins/Launcher/ui.h +++ b/source-code/source/plugins/Launcher/ui.h @@ -787,7 +787,7 @@ private: System::Windows::Forms::Button^ button_Wiki; this->MaximizeBox = false; this->Name = L"ui"; this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen; - this->Text = L"PD Launcher"; + this->Text = L"PD Launcher (2.5.2)"; this->TransparencyKey = System::Drawing::Color::Magenta; this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &ui::Ui_FormClosing); this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &ui::Ui_FormClosed); diff --git a/source-code/source/plugins/Patches/PatchApplier710.h b/source-code/source/plugins/Patches/PatchApplier710.h index 7000334..549736c 100644 --- a/source-code/source/plugins/Patches/PatchApplier710.h +++ b/source-code/source/plugins/Patches/PatchApplier710.h @@ -369,7 +369,7 @@ class PatchApplier710 : public PatchApplier { InjectCode((void*)0x0000000140120709, { 0xE9, 0x82, 0x0A, 0x00 }); } // Default hand size - if (nDefaultHandSize != -1) + if (nDefaultHandSize > 0) { printf("[Patches] Changing default hand size...\n"); const float num = (float)nDefaultHandSize / 10000.0;