mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-08 16:04:30 +00:00
reduces size of MAX_STRIP to 0x40 instead of 0x7F
this technically introduces a memory leak which increases memory usage each time credits are rolled, but it's pretty insignificant imo
This commit is contained in:
parent
081d7e8f25
commit
c9e8d0452d
|
@ -4,7 +4,7 @@ offset 40cf90
|
|||
count=EBP-4
|
||||
Strip_addr=0049D628
|
||||
Credit.mode=49D620
|
||||
MAX_STRIP=7F
|
||||
MAX_STRIP=40
|
||||
size=50
|
||||
|
||||
Strip.flag=EAX
|
||||
|
|
|
@ -2,7 +2,7 @@ offset 40d3e0
|
|||
|
||||
#define
|
||||
size=50
|
||||
MAX_STRIP=7F
|
||||
MAX_STRIP=40
|
||||
Strip_addr=0049d628
|
||||
#enddefine
|
||||
|
||||
|
@ -21,14 +21,15 @@ PUSH 0
|
|||
PUSH 0049D628
|
||||
CALL 00480D30
|
||||
ADD ESP,0C
|
||||
*/
|
||||
|
||||
PUSH size
|
||||
PUSH MAX_STRIP
|
||||
CALL 00487701
|
||||
ADD ESP,8
|
||||
MOV [Strip_addr],EAX
|
||||
|
||||
*/
|
||||
XOR EAX,EAX
|
||||
MOV [Strip_addr],EAX
|
||||
|
||||
POP EBP
|
||||
RETN
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
offset 4115e6
|
||||
PUSH 7E0
|
||||
PUSH 3F0 ; (MAX_STRIP - 1) * 0x10
|
|
@ -2,8 +2,8 @@ offset 40D010
|
|||
|
||||
#define
|
||||
; Constants
|
||||
MAX_STRIP=7F
|
||||
MAX_STRIPx10=7f0
|
||||
MAX_STRIP=40
|
||||
MAX_STRIPx10=400
|
||||
size=50
|
||||
|
||||
; Locals
|
||||
|
|
|
@ -2,7 +2,7 @@ offset 40d240
|
|||
|
||||
#define
|
||||
; Constants
|
||||
MAX_STRIPx10=7F0
|
||||
MAX_STRIPx10=400
|
||||
|
||||
; Locals
|
||||
ArrayPad = EBP-4
|
||||
|
|
|
@ -2,7 +2,7 @@ offset 40d150
|
|||
|
||||
#define
|
||||
; Constants
|
||||
MAX_STRIP=7F
|
||||
MAX_STRIP=40
|
||||
size=50
|
||||
|
||||
; Locals
|
||||
|
|
|
@ -2,8 +2,8 @@ offset 40d440
|
|||
|
||||
#define
|
||||
; Constants
|
||||
MAX_STRIP=7F
|
||||
fullsize=27b0 ; 0x50 * 0x7f
|
||||
MAX_STRIP=40
|
||||
size=50
|
||||
|
||||
; Locals
|
||||
path=EBP-108
|
||||
|
@ -30,6 +30,7 @@ ReloadBitmapFile=0040BFD0
|
|||
___security_cookie=498b20
|
||||
__security_check_cookie=00480dc1
|
||||
_malloc=004813a3
|
||||
_calloc=00487701
|
||||
_free=0048128B
|
||||
_memset=00480d30
|
||||
_sprintf=00481010
|
||||
|
@ -138,11 +139,11 @@ add esp, 20 ; 00000020H
|
|||
test eax, eax
|
||||
je SHORT :$LN8@StartCredi
|
||||
; Line 297
|
||||
push fullsize
|
||||
push esi
|
||||
push [Strip_addr]
|
||||
call _memset
|
||||
add esp, 0c ; 0000000cH
|
||||
push size
|
||||
push MAX_STRIP
|
||||
call _calloc
|
||||
add ESP,8
|
||||
mov [Strip_addr],EAX
|
||||
; Line 298
|
||||
mov eax, edi
|
||||
jmp :$LN1@StartCredi
|
||||
|
|
Binary file not shown.
BIN
pre-edited-cs/Doukutsu_backup.exe
Normal file
BIN
pre-edited-cs/Doukutsu_backup.exe
Normal file
Binary file not shown.
Loading…
Reference in a new issue