From 5cb3482a75d0bc2f9e0926b29e790f0d62e878b5 Mon Sep 17 00:00:00 2001 From: nastys <@> Date: Wed, 11 Aug 2021 20:16:05 +0200 Subject: [PATCH] [Patches] Warn if hand size is 0 or 1 --- source-code/source/PD-Loader/Patches/PatchApplier710.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source-code/source/PD-Loader/Patches/PatchApplier710.h b/source-code/source/PD-Loader/Patches/PatchApplier710.h index 95107db..023364b 100644 --- a/source-code/source/PD-Loader/Patches/PatchApplier710.h +++ b/source-code/source/PD-Loader/Patches/PatchApplier710.h @@ -363,6 +363,16 @@ class PatchApplier710 : public PatchApplier { // Default hand size if (nDefaultHandSize != -1) { + switch (nDefaultHandSize) + { + case 0: + MessageBoxW(nullptr, L"The default hand size is set to 0 in Options.\nHands may disappear.\n\nIf this is not intentional, set it back to -1.", L"Patches", MB_ICONWARNING); + break; + case 1: + MessageBoxW(nullptr, L"The default hand size is set to 1 in Options.\nHands may be extremely small.\n\nIf this is not intentional, set it back to -1.", L"Patches", MB_ICONWARNING); + break; + } + printf("[Patches] Changing default hand size...\n"); const float num = (float)nDefaultHandSize / 10000.0; DWORD oldProtect;