Skip to content

Commit 370851d

Browse files
committed
Remove obsolete on-exit fixes for VDF unloading
1 parent 0907c43 commit 370851d

5 files changed

Lines changed: 0 additions & 83 deletions

File tree

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ BIN_BASE := core \
142142
hook_oCSpawnManager__Archive \
143143
hook_npcReference \
144144
hook_recoverInvalidItem \
145-
hook_fastexit \
146-
hook_CGameManager_destructor \
147-
hook_libExit \
148145
hook_Hlp_GetNpc \
149146
hook_Hlp_IsValidNpc \
150147
hook_Hlp_IsValidItem \

src/exec/misc.asm

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -604,38 +604,3 @@ fix_Hlp_IsValidItem:
604604
call dynamic_cast
605605
.backClean:
606606
jmp g1g2(0x658B3E,0x6830AE,0x691F5E,0x6EF1CE) + 5
607-
608-
609-
; Deinitialize VDFS on fast exit to ensure release of data file
610-
global fastexit_deinit_vdfs
611-
fastexit_deinit_vdfs:
612-
call zFILE_VDFS__DeinitFileSystem
613-
call _exit ; Never returns
614-
615-
616-
; Deinitialize VDFS on improper CGameManager destruction (access violation)
617-
global CGameMananager_destruction_deinit_vdfs
618-
CGameMananager_destruction_deinit_vdfs:
619-
resetStackoffset g1g2(0x3C,0x38,0,0x3C)
620-
pusha
621-
call zFILE_VDFS__DeinitFileSystem
622-
popa
623-
verifyStackoffset g1g2(0x3C,0x38,0,0x3C)
624-
625-
; Jump back
626-
mov BYTE [esp+stackoffset-0x4], 0x4
627-
jmp g1g2(0x423BDC,0x4265C4,0x42449C,0x4247CC) + 5
628-
629-
630-
; Deinitialize VDFS on libExit (fatal error)
631-
global libExit_deinit_vdfs
632-
libExit_deinit_vdfs:
633-
resetStackoffset
634-
pusha
635-
call zFILE_VDFS__DeinitFileSystem
636-
popa
637-
verifyStackoffset
638-
639-
; Jump back
640-
mov eax, g1g2(0x86F51C,0x8B5138,0x8C5C5C,0x8D4294)
641-
jmp g1g2(0x4F3C30,0x506620,0x4FFE30,0x502AB0) + 5

src/hook_CGameManager_destructor.asm

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/hook_fastexit.asm

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/hook_libExit.asm

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)