Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_prepare_new_game.h
Go to the documentation of this file.
1#ifndef SF_PREPGAME_HOOK_H
2#define SF_PREPGAME_HOOK_H
3
4#include "../../../api/sfsf.h"
6
7typedef void (__thiscall *preloadUpdateKit2_ptr)(SF_GameInfo *_this, uint32_t unknown, uint8_t kit); /* 0x9fad30 */
8typedef void (__thiscall *preloadUpdateKit_ptr)(SF_GameInfo *_this, uint8_t unknown, uint8_t kit); /* 0x9fad30 */
9typedef uint32_t (__thiscall *preloadGetResultCode_ptr)(void *preload); /* 0x9fad30 */
10typedef void (__thiscall *gameInfoReset_ptr)(SF_GameInfo *gi, uint32_t p1); /* 0x5a1830 */
11typedef GdAvatarData *(__thiscall *preloadGetAvatar_ptr)(void *preload, void *out); /* 0x9fae00 */
12typedef void (__thiscall *gameInfoSetAvatar_ptr)(SF_GameInfo *gi, void *avatar,
13 uint16_t first_elem_u16); /* 0x5a1440 */
14typedef uint8_t (__thiscall *gameInfoGetU8_ptr)(SF_GameInfo *gi); /* kit 0x575f00 */
15typedef uint8_t (__thiscall *gameInfoFigureAbilities_ptr)(SF_GameInfo *gi, uint32_t param_2); /* skill 0x59e7a0 / subskill 0x59e7c0 */
16
17typedef uint32_t (__thiscall *preloadGetU32_ptr)(void *preload); /* sotp side 0xa0a3d0 / campaign 0x9faa10 / */
18typedef uint8_t (__thiscall *preloadGetU8_ptr)(void *preload); /* skiptut 0xa09780 */
19typedef void (__thiscall *giSetBoolU8_ptr)(SF_GameInfo *gi, uint32_t b, uint8_t i); /* 0x576760 / 0x5a1b10 */
20typedef void (__thiscall *giSetU32_ptr)(SF_GameInfo *gi, uint32_t v); /* mode 0x5766f0 / mode2 0x576780 / flags 0x576740,0x576750 */
21typedef void (__thiscall *giSetStr_ptr)(SF_GameInfo *gi, SF_String *s); /* savepath 0x576320 / savename 0x576700 */
22typedef SF_String *(__thiscall *giSetTemplateName_ptr)(SF_GameInfo *gi, SF_String *s); // 0x576790 setTemplateName
23typedef void (__thiscall *giVoid_ptr)(SF_GameInfo *gi); /* 0x576480 */
24typedef void (__thiscall *giStarterKitReset_ptr)(SF_GameInfo *gi, uint32_t skill, uint32_t subskill); /* 0x5763c0 needs double check*/
25typedef SF_String *(__thiscall *preloadGetStr_ptr)(void *preload, SF_String *out); /* 0xa09520 slot / 0xa09600 avatar / 0xa0a3e0 fg map / 0xa0a410 fg tmpl */
26typedef void (__thiscall *appMenuReadSave_ptr)(CAppMenu *m, SF_String *s); /* 0x586520 */
27/* custom splash hints? */
28typedef CMnuScreen *(__thiscall *getPregameScreen_ptr)(CMnuScreen *_this); /* 0x90f930 */
29typedef SF_String *(__thiscall *getScreenName_ptr)(CMnuScreen *_this); /* 0x910cf0 */
30typedef uint8_t (__thiscall *screenDeleteControl_ptr)(CMnuScreen *screen, SF_String *ctl); /* 0x908560 */
31typedef void (__thiscall *screenSetActive_ptr)(CMnuScreen *screen, CMnuScreen *v); /* 0x912180 */
32typedef void *(__thiscall *cfgCtor_ptr)(CUtlConfigFile *cfg, const char *p); /* 0x789050 */
33typedef void (__thiscall *cfgDtor_ptr)(CUtlConfigFile *cfg); /* 0x787e20 */
34typedef void (__thiscall *cfgSetString_ptr)(CUtlConfigFile *cfg, char *section, char *key,
35 SF_String *value, SF_String *dflt); /* 007897b0 */
36
37typedef void (__thiscall *CreateMnuHintExt_ptr)(CAppMenu *_this);
38typedef void (__thiscall *CreateMenuPreMulti_ptr)(CAppMenu *_this, uint32_t param_1,uint32_t param_2,uint32_t param_3,
39 uint32_t param_4, uint32_t param_5, uint32_t param_6,
40 uint16_t param_7, SF_String *param_8,SF_String *param_9); /* 593980 */
41
42typedef void (__thiscall *InitUnknownAvatar_0x54_ptr)(void *_this);
43typedef uint8_t (__thiscall *updatePreloadUnknown_0x54_ptr)(CUiMenuPreLoad *_this, void *param1);
44typedef GdAvatarInternal *(__thiscall *InitAvatarInternal_ptr)(void *buffer);
45typedef uint32_t (__thiscall *importFromSave_ptr)(CAppMenu *_this,void *param_1, GdAvatarInternal *param_2);
46#endif // SF_PREPGAME_HOOK_H
void(__thiscall * InitUnknownAvatar_0x54_ptr)(void *_this)
void(__thiscall * CreateMenuPreMulti_ptr)(CAppMenu *_this, uint32_t param_1, uint32_t param_2, uint32_t param_3, uint32_t param_4, uint32_t param_5, uint32_t param_6, uint16_t param_7, SF_String *param_8, SF_String *param_9)
void(__thiscall * giVoid_ptr)(SF_GameInfo *gi)
void(__thiscall * CreateMnuHintExt_ptr)(CAppMenu *_this)
SF_String *(__thiscall * preloadGetStr_ptr)(void *preload, SF_String *out)
void(__thiscall * preloadUpdateKit2_ptr)(SF_GameInfo *_this, uint32_t unknown, uint8_t kit)
CMnuScreen *(__thiscall * getPregameScreen_ptr)(CMnuScreen *_this)
void(__thiscall * appMenuReadSave_ptr)(CAppMenu *m, SF_String *s)
void(__thiscall * giStarterKitReset_ptr)(SF_GameInfo *gi, uint32_t skill, uint32_t subskill)
uint8_t(__thiscall * gameInfoGetU8_ptr)(SF_GameInfo *gi)
uint8_t(__thiscall * preloadGetU8_ptr)(void *preload)
uint8_t(__thiscall * updatePreloadUnknown_0x54_ptr)(CUiMenuPreLoad *_this, void *param1)
void *(__thiscall * cfgCtor_ptr)(CUtlConfigFile *cfg, const char *p)
void(__thiscall * giSetBoolU8_ptr)(SF_GameInfo *gi, uint32_t b, uint8_t i)
void(__thiscall * preloadUpdateKit_ptr)(SF_GameInfo *_this, uint8_t unknown, uint8_t kit)
uint8_t(__thiscall * screenDeleteControl_ptr)(CMnuScreen *screen, SF_String *ctl)
GdAvatarData *(__thiscall * preloadGetAvatar_ptr)(void *preload, void *out)
SF_String *(__thiscall * giSetTemplateName_ptr)(SF_GameInfo *gi, SF_String *s)
uint8_t(__thiscall * gameInfoFigureAbilities_ptr)(SF_GameInfo *gi, uint32_t param_2)
uint32_t(__thiscall * preloadGetResultCode_ptr)(void *preload)
uint32_t(__thiscall * importFromSave_ptr)(CAppMenu *_this, void *param_1, GdAvatarInternal *param_2)
SF_String *(__thiscall * getScreenName_ptr)(CMnuScreen *_this)
void(__thiscall * screenSetActive_ptr)(CMnuScreen *screen, CMnuScreen *v)
void(__thiscall * cfgDtor_ptr)(CUtlConfigFile *cfg)
void(__thiscall * cfgSetString_ptr)(CUtlConfigFile *cfg, char *section, char *key, SF_String *value, SF_String *dflt)
void(__thiscall * giSetStr_ptr)(SF_GameInfo *gi, SF_String *s)
void(__thiscall * giSetU32_ptr)(SF_GameInfo *gi, uint32_t v)
void(__thiscall * gameInfoReset_ptr)(SF_GameInfo *gi, uint32_t p1)
GdAvatarInternal *(__thiscall * InitAvatarInternal_ptr)(void *buffer)
void(__thiscall * gameInfoSetAvatar_ptr)(SF_GameInfo *gi, void *avatar, uint16_t first_elem_u16)
uint32_t(__thiscall * preloadGetU32_ptr)(void *preload)