This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WinWaitActive,ahk_exe Biohazard.exe | |
| WinGet,hWnd,ID,ahk_exe Biohazard.exe | |
| winget,pid,PID,ahk_exe Biohazard.exe | |
| dir:=DllCall(A_PtrSize=4?"GetWindowLong":"GetWindowLongPtr","Ptr",hWnd,"Int",-6,A_Is64bitOS?"Int64":"UInt")+7575072 | |
| Loop{ | |
| DllCall("WriteProcessMemory","UInt",pHndl:=DllCall("OpenProcess","int",2035711,"char",0,"UInt",PID,"UInt"),"UInt",dir,"Uint*",0,"Uint",1,"Uint*",0)&&DllCall("CloseHandle","int",pHndl) | |
| Sleep,16 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; https://discord.com/channels/731899222311567400/731900507844640858/1239045849900646450 | |
| ; Removes bloat bytes from a Pokemon Crystal save file, maybe containing RTC data. Leaves the file as a pure 32Kb sav file. | |
| ;@Ahk2Exe-SetName SAV Size Fix | |
| ;@Ahk2Exe-SetDescription Fix save data over 32Kb | |
| ;@Ahk2Exe-SetVersion 1.2 | |
| ;@Ahk2Exe-SetCopyright Copyright (c) 2024`, elModo7 | |
| ;@Ahk2Exe-SetOrigFilename SAV Fix.exe | |
| #NoEnv | |
| #SingleInstance Force | |
| SetBatchLines, -1 |