forked from cleolibrary/CLEO4
-
Notifications
You must be signed in to change notification settings - Fork 7
Game start restart callbacks
Seemann edited this page Dec 3, 2023
·
1 revision
CCleoInstance hooks some GTA SA function calls. Each hook is used internally by CLEO, then original function is called, so from perspective of application there is no change in behaviour.
Certain functions were observed to be called when:
OnScmInit1
- save load
- new game/mpack after another game was played before
OnScmInit2
- save load first time only
- new game/mpack first time only
OnScmInit3
- save load
OnGameShutdown
- application closing
OnGameRestart1
- not observed while testing
OnGameRestart2
- save load after another game was played before
OnGameRestart3
- new game/mpack after another game was played before