From 946d816a3b06c6391f77b971190d3e3c545d469c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 24 Jan 2020 14:22:05 +0000 Subject: [PATCH 1/2] Add save data to .gitignore --- .gitignore | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9dc84185..bbd542c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # Exclude obj directory (object files for Makefile build) /obj -# Exclude executables (English) +# Exclude executables /game_english/CSE2_debug.exe /game_english/DoConfig_debug.exe /game_english/CSE2.exe @@ -10,8 +10,6 @@ /game_english/DoConfig_debug /game_english/CSE2 /game_english/DoConfig - -# Exclude executables (Japanese) /game_japanese/CSE2_debug.exe /game_japanese/DoConfig_debug.exe /game_japanese/CSE2.exe @@ -21,6 +19,14 @@ /game_japanese/CSE2 /game_japanese/DoConfig +# Exclude save data +/game_english/Config.dat +/game_english/Profile.dat +/game_english/290.rec +/game_japanese/Config.dat +/game_japanese/Profile.dat +/game_japanese/290.rec + #### # Accurate branch #### From 0bcf9784245fdca250080c0ddfb2d8d4e46d2bac Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 24 Jan 2020 21:00:34 +0000 Subject: [PATCH 2/2] Rename HookDirectInputDevice --- src/Input.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Input.cpp b/src/Input.cpp index f5a16481..91881e27 100644 --- a/src/Input.cpp +++ b/src/Input.cpp @@ -58,7 +58,7 @@ BOOL SetDeviceAquire(BOOL aquire) } // It looks like Pixel declared his functions early, so he could forward-reference -BOOL HookDirectInputDevice(HWND hWnd); +BOOL FindAndOpenDirectInputDevice(HWND hWnd); BOOL __stdcall EnumDevices_Callback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef); BOOL InitDirectInput(HINSTANCE hinst, HWND hWnd) @@ -70,7 +70,7 @@ BOOL InitDirectInput(HINSTANCE hinst, HWND hWnd) #endif return FALSE; - if (!HookDirectInputDevice(hWnd)) + if (!FindAndOpenDirectInputDevice(hWnd)) return FALSE; return TRUE; @@ -78,7 +78,7 @@ BOOL InitDirectInput(HINSTANCE hinst, HWND hWnd) // The original name for this function and its variables are unknown. // This function finds and hooks the first available DirectInput device. -BOOL HookDirectInputDevice(HWND hWnd) +BOOL FindAndOpenDirectInputDevice(HWND hWnd) { DirectInputPair directinput_objects;