Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_vanilla_fix_hook.c File Reference
#include "../sf_wrappers.h"
#include "../../../asi/sf_asi.h"
#include "sf_vanilla_fix_hook.h"
#include "../sf_screens_module.h"
#include <math.h>
#include <vector>
#include "../../registry/spell_data_registries/sf_enchant_registry.h"
#include "sf_endspell_hook.h"
Include dependency graph for sf_vanilla_fix_hook.c:

Go to the source code of this file.

Classes

struct  D_String
struct  FileWrapper

Macros

#define _USE_MATH_DEFINES

Typedefs

typedef void(__thiscall * add_item_ptr) (ushort_list_node *_this, uint16_t *item)
typedef SF_String *(__thiscall * AC95_get_figure_name_ptr) (void *AC95, SF_String *name_buffer, uint32_t figure_id)
typedef void(__cdecl * GetColoredText_ptr) (SF_String *param_1, uint32_t param_2)
typedef void(__thiscall * GetDescriptionText_ptr) (void *_this, uint32_t param_1, SF_String *name_buffer)
typedef void(__thiscall * GetTextById_ptr) (void *_this, uint16_t text_id, SF_String *out_string)
typedef SF_String *(__thiscall * ExpandSpellDescription_ptr) (AutoClass101 *_this, SF_String *out_string, SF_String *in_string, SF_CGdResourceSpell *param_3)
typedef SF_String *(__thiscall * GetItemInfo_ptr) (SF_CGdResource *_this, CGdResourceWeaponData *stats, uint16_t item_id)
typedef uint8_t(__thiscall * GetWeaponType_ptr) (SF_CGdResource *_this, uint16_t item_id)
typedef uint32_t(__thiscall * GetDamageMultiplierPerLevel_ptr) (SF_CGdResource *_this, uint8_t level)
typedef uint16_t *(__thiscall * GetWeaponEffects_ptr) (SF_CGdResource *_this, uint16_t *param_1, uint16_t item_id)
typedef uint32_t(__thiscall * AC34calculateWeaponSpeed_ptr) (void *_this, uint32_t base_fight_speed, uint8_t race, uint16_t item_id, uint32_t dual_wield, uint32_t is_ranged)
typedef void *(__thiscall * CGdMainGetAC34_ptr) (void *_this)
typedef SF_String *(__cdecl * getSpecialDesc_ptr) (SF_String *param_1, uint32_t param_2)
typedef void(__stdcall * getWeaponRangeDescription_ptr) (SF_String *param_1, uint16_t param_2, uint16_t param_3, SF_String *param_4, uint8_t param_5)
typedef uint32_t(__thiscall * GetResourceSpellLine_ptr) (SF_CGdResource *_this, uint16_t spell_line_id, SF_CGdResourceSpellLine *value)
typedef uint16_t(__thiscall * getUnitStringID_ptr) (SF_CGdResource *_this, uint16_t unit_id)
typedef bool(__thiscall * getTextString_ptr) (SF_CGdResource *_this, uint16_t text_id, char *out_string)
typedef void(__thiscall * onFigureBattleEnd_ptr) (SF_CGdFigureToolbox *_this, uint16_t figure_id)
typedef void(__thiscall * createSplashScreen_ptr) (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2)
typedef void *(__thiscall * AC57_Init_ptr) (void *_this, FileWrapper *fileWrapper)
typedef void(__thiscall * AC57_Dispose_ptr) (void *_this)
typedef D_String *(__thiscall * DStringConstructor_char_ptr) (D_String *_this, char *source)
typedef int(__thiscall * FileWrapperOpen_ptr) (FileWrapper *_this, D_String *path, int param_2)
typedef void(__thiscall * FileWrapperClose_ptr) (FileWrapper *_this)
typedef void(__thiscall * readMapNameFromSave_ptr) (SF_CGdWorld *_this, void *AC57)

Functions

bool __thiscall get_salvo_target_list (SF_CGdFigureJobs *_this, SF_CGdTargetData *source, SF_CGdTargetData *target, uint32_t angle, uint16_t *ranges, uint32_t target_count, ushort_list_node *output)
uint16_t __thiscall get_figure_statistic_max_hp (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_max_mp (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_max_sta (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_ac (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_agi (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_cha (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_dex (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_hp (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_int (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_mp (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_sta (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_str (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_wis (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_fire_res (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_ice_res (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_mental_res (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_black_res (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_walk_spd (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_fight_spd (SF_CGdFigure *_this, uint16_t figure_id)
uint16_t __thiscall get_figure_statistic_current_cast_spd (SF_CGdFigure *_this, uint16_t figure_id)
uint8_t __thiscall getEffectiveRace (SF_CGdFigure *_this, uint16_t figure_id)
void __thiscall figureTurnOffBattleMode (SF_CGdBattleDevelopment *_this)
bool __thiscall isTitan (SF_CGdFigure *_this, uint16_t figure_id)
bool __thiscall isSwarm (SF_CGdFigure *_this, uint16_t figure_id)
void __thiscall decreaseUsedArmyUnitCount (SF_CGdPlayer *_this, uint16_t owner, uint8_t side)
uint32_t __thiscall decreaseUnitCount (AutoClass46 *_this, uint16_t figure_id)
void prepareDamageString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, CGdResourceWeaponData *weapon_data, SF_String *out_string)
void prepareHPString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, SF_String *out_string)
void prepareMPString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, SF_String *out_string)
void prepareSpellsHeaderString (AutoClass101 *_this, SF_String *out_string)
void prepareSpellString (AutoClass101 *_this, SF_String *out_string, uint16_t spell_id)
void prepareEffectString (AutoClass101 *_this, SF_CGdFigure *figures, uint16_t figure_id, uint16_t effect_id, SF_String *out_string)
SF_String *__thiscall portrait_overlay_hook (AutoClass101 *_this, SF_String *param_1, uint16_t figure_id, uint32_t param3, uint32_t param4, uint32_t param5)
SF_String *__thiscall getSpecialFigureName (SF_CGdFigureToolbox *_this, SF_String *in_string, uint16_t figure_id)
void dump_offsets (CAppSession *_this)
void CreateSplashScreenHelper (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2, SF_String *map_name)
SF_StringgetMapFromSave (CAppSession *_this, char *param_1, int campaign_type)
void __thiscall CreateSplashScreen (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2)
void initialize_vanilla_fix_hooks ()

Variables

SpellFunctions spellAPI
ToolboxFunctions toolboxAPI
BuildingFunctions buildingAPI
FigureFunctions figureAPI
IteratorFunctions iteratorAPI
RegistrationFunctions registrationAPI
EffectFunctions effectAPI
AiFunctions aiAPI
UiFunctions uiAPI
add_item_ptr add_item
AC95_get_figure_name_ptr AC95_get_figure_name
GetColoredText_ptr GetColoredText
GetDescriptionText_ptr GetDescriptionText
getSpecialDesc_ptr getSpecialDesc
GetItemInfo_ptr GetItemInfo
GetWeaponType_ptr GetWeaponType
GetDamageMultiplierPerLevel_ptr GetDamageMultiplierPerLevel
AC34calculateWeaponSpeed_ptr AC34calculateWeaponSpeed
getWeaponRangeDescription_ptr getWeaponRangeDescription
CGdMainGetAC34_ptr CGdMainGetAC34
GetWeaponEffects_ptr GetWeaponEffects
GetResourceSpellLine_ptr GetResourceSpellLine
GetTextById_ptr GetTextById
ExpandSpellDescription_ptr ExpandSpellDescription
getUnitStringID_ptr getUnitStringID
getTextString_ptr getTextString
onFigureBattleEnd_ptr onFigureBattleEnd
readMapNameFromSave_ptr readMapNameFromSave
FileWrapperOpen_ptr FileWrapperOpen
FileWrapperClose_ptr FileWrapperClose
DStringConstructor_char_ptr DStringConstructor_char
AC57_Init_ptr AC57_Init
AC57_Dispose_ptr AC57_Dispose
FileWrapperClose_ptr FileWrapperInit
createSplashScreen_ptr createSplashScreen

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 5 of file sf_vanilla_fix_hook.c.

Typedef Documentation

◆ AC34calculateWeaponSpeed_ptr

typedef uint32_t(__thiscall * AC34calculateWeaponSpeed_ptr) (void *_this, uint32_t base_fight_speed, uint8_t race, uint16_t item_id, uint32_t dual_wield, uint32_t is_ranged)

Definition at line 37 of file sf_vanilla_fix_hook.c.

◆ AC57_Dispose_ptr

typedef void(__thiscall * AC57_Dispose_ptr) (void *_this)

Definition at line 1467 of file sf_vanilla_fix_hook.c.

◆ AC57_Init_ptr

typedef void *(__thiscall * AC57_Init_ptr) (void *_this, FileWrapper *fileWrapper)

Definition at line 1466 of file sf_vanilla_fix_hook.c.

◆ AC95_get_figure_name_ptr

typedef SF_String *(__thiscall * AC95_get_figure_name_ptr) (void *AC95, SF_String *name_buffer, uint32_t figure_id)

Definition at line 25 of file sf_vanilla_fix_hook.c.

◆ add_item_ptr

typedef void(__thiscall * add_item_ptr) (ushort_list_node *_this, uint16_t *item)

Definition at line 22 of file sf_vanilla_fix_hook.c.

◆ CGdMainGetAC34_ptr

typedef void *(__thiscall * CGdMainGetAC34_ptr) (void *_this)

Definition at line 39 of file sf_vanilla_fix_hook.c.

◆ createSplashScreen_ptr

typedef void(__thiscall * createSplashScreen_ptr) (CAppMenu *_this, CMnuContainer **param_1, SF_String *param_2)

Definition at line 1465 of file sf_vanilla_fix_hook.c.

◆ DStringConstructor_char_ptr

typedef D_String *(__thiscall * DStringConstructor_char_ptr) (D_String *_this, char *source)

Definition at line 1468 of file sf_vanilla_fix_hook.c.

◆ ExpandSpellDescription_ptr

typedef SF_String *(__thiscall * ExpandSpellDescription_ptr) (AutoClass101 *_this, SF_String *out_string, SF_String *in_string, SF_CGdResourceSpell *param_3)

Definition at line 29 of file sf_vanilla_fix_hook.c.

◆ FileWrapperClose_ptr

typedef void(__thiscall * FileWrapperClose_ptr) (FileWrapper *_this)

Definition at line 1470 of file sf_vanilla_fix_hook.c.

◆ FileWrapperOpen_ptr

typedef int(__thiscall * FileWrapperOpen_ptr) (FileWrapper *_this, D_String *path, int param_2)

Definition at line 1469 of file sf_vanilla_fix_hook.c.

◆ GetColoredText_ptr

typedef void(__cdecl * GetColoredText_ptr) (SF_String *param_1, uint32_t param_2)

Definition at line 26 of file sf_vanilla_fix_hook.c.

◆ GetDamageMultiplierPerLevel_ptr

typedef uint32_t(__thiscall * GetDamageMultiplierPerLevel_ptr) (SF_CGdResource *_this, uint8_t level)

Definition at line 35 of file sf_vanilla_fix_hook.c.

◆ GetDescriptionText_ptr

typedef void(__thiscall * GetDescriptionText_ptr) (void *_this, uint32_t param_1, SF_String *name_buffer)

Definition at line 27 of file sf_vanilla_fix_hook.c.

◆ GetItemInfo_ptr

typedef SF_String *(__thiscall * GetItemInfo_ptr) (SF_CGdResource *_this, CGdResourceWeaponData *stats, uint16_t item_id)

Definition at line 32 of file sf_vanilla_fix_hook.c.

◆ GetResourceSpellLine_ptr

typedef uint32_t(__thiscall * GetResourceSpellLine_ptr) (SF_CGdResource *_this, uint16_t spell_line_id, SF_CGdResourceSpellLine *value)

Definition at line 45 of file sf_vanilla_fix_hook.c.

◆ getSpecialDesc_ptr

typedef SF_String *(__cdecl * getSpecialDesc_ptr) (SF_String *param_1, uint32_t param_2)

Definition at line 41 of file sf_vanilla_fix_hook.c.

◆ GetTextById_ptr

typedef void(__thiscall * GetTextById_ptr) (void *_this, uint16_t text_id, SF_String *out_string)

Definition at line 28 of file sf_vanilla_fix_hook.c.

◆ getTextString_ptr

typedef bool(__thiscall * getTextString_ptr) (SF_CGdResource *_this, uint16_t text_id, char *out_string)

Definition at line 49 of file sf_vanilla_fix_hook.c.

◆ getUnitStringID_ptr

typedef uint16_t(__thiscall * getUnitStringID_ptr) (SF_CGdResource *_this, uint16_t unit_id)

Definition at line 48 of file sf_vanilla_fix_hook.c.

◆ GetWeaponEffects_ptr

typedef uint16_t *(__thiscall * GetWeaponEffects_ptr) (SF_CGdResource *_this, uint16_t *param_1, uint16_t item_id)

Definition at line 36 of file sf_vanilla_fix_hook.c.

◆ getWeaponRangeDescription_ptr

typedef void(__stdcall * getWeaponRangeDescription_ptr) (SF_String *param_1, uint16_t param_2, uint16_t param_3, SF_String *param_4, uint8_t param_5)

Definition at line 42 of file sf_vanilla_fix_hook.c.

◆ GetWeaponType_ptr

typedef uint8_t(__thiscall * GetWeaponType_ptr) (SF_CGdResource *_this, uint16_t item_id)

Definition at line 34 of file sf_vanilla_fix_hook.c.

◆ onFigureBattleEnd_ptr

typedef void(__thiscall * onFigureBattleEnd_ptr) (SF_CGdFigureToolbox *_this, uint16_t figure_id)

Definition at line 51 of file sf_vanilla_fix_hook.c.

◆ readMapNameFromSave_ptr

typedef void(__thiscall * readMapNameFromSave_ptr) (SF_CGdWorld *_this, void *AC57)

Definition at line 1471 of file sf_vanilla_fix_hook.c.

Function Documentation

◆ CreateSplashScreen()

void __thiscall CreateSplashScreen ( CAppMenu * _this,
CMnuContainer ** param_1,
SF_String * param_2 )

Definition at line 1629 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:

◆ CreateSplashScreenHelper()

void CreateSplashScreenHelper ( CAppMenu * _this,
CMnuContainer ** param_1,
SF_String * param_2,
SF_String * map_name )

Definition at line 1484 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decreaseUnitCount()

uint32_t __thiscall decreaseUnitCount ( AutoClass46 * _this,
uint16_t figure_id )

Definition at line 774 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:

◆ decreaseUsedArmyUnitCount()

void __thiscall decreaseUsedArmyUnitCount ( SF_CGdPlayer * _this,
uint16_t owner,
uint8_t side )

Definition at line 764 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ dump_offsets()

void dump_offsets ( CAppSession * _this)

Definition at line 1458 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:

◆ figureTurnOffBattleMode()

void __thiscall figureTurnOffBattleMode ( SF_CGdBattleDevelopment * _this)

Definition at line 457 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:

◆ get_figure_statistic_current_ac()

uint16_t __thiscall get_figure_statistic_current_ac ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 163 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_agi()

uint16_t __thiscall get_figure_statistic_current_agi ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 179 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_black_res()

uint16_t __thiscall get_figure_statistic_current_black_res ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 374 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_cast_spd()

uint16_t __thiscall get_figure_statistic_current_cast_spd ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 422 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_cha()

uint16_t __thiscall get_figure_statistic_current_cha ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 195 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_dex()

uint16_t __thiscall get_figure_statistic_current_dex ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 211 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_fight_spd()

uint16_t __thiscall get_figure_statistic_current_fight_spd ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 406 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_fire_res()

uint16_t __thiscall get_figure_statistic_current_fire_res ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 326 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_hp()

uint16_t __thiscall get_figure_statistic_current_hp ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 227 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_ice_res()

uint16_t __thiscall get_figure_statistic_current_ice_res ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 342 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_int()

uint16_t __thiscall get_figure_statistic_current_int ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 244 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_mental_res()

uint16_t __thiscall get_figure_statistic_current_mental_res ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 358 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_mp()

uint16_t __thiscall get_figure_statistic_current_mp ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 260 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_sta()

uint16_t __thiscall get_figure_statistic_current_sta ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 277 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_str()

uint16_t __thiscall get_figure_statistic_current_str ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 294 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_walk_spd()

uint16_t __thiscall get_figure_statistic_current_walk_spd ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 390 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_current_wis()

uint16_t __thiscall get_figure_statistic_current_wis ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 310 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_max_hp()

uint16_t __thiscall get_figure_statistic_max_hp ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 115 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_max_mp()

uint16_t __thiscall get_figure_statistic_max_mp ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 131 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_figure_statistic_max_sta()

uint16_t __thiscall get_figure_statistic_max_sta ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 147 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ get_salvo_target_list()

bool __thiscall get_salvo_target_list ( SF_CGdFigureJobs * _this,
SF_CGdTargetData * source,
SF_CGdTargetData * target,
uint32_t angle,
uint16_t * ranges,
uint32_t target_count,
ushort_list_node * output )

Definition at line 73 of file sf_vanilla_fix_hook.c.

◆ getEffectiveRace()

uint8_t __thiscall getEffectiveRace ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 438 of file sf_vanilla_fix_hook.c.

◆ getMapFromSave()

SF_String * getMapFromSave ( CAppSession * _this,
char * param_1,
int campaign_type )

Definition at line 1593 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ getSpecialFigureName()

SF_String *__thiscall getSpecialFigureName ( SF_CGdFigureToolbox * _this,
SF_String * in_string,
uint16_t figure_id )

Definition at line 1366 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize_vanilla_fix_hooks()

void initialize_vanilla_fix_hooks ( )

Definition at line 1676 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isSwarm()

bool __thiscall isSwarm ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 758 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ isTitan()

bool __thiscall isTitan ( SF_CGdFigure * _this,
uint16_t figure_id )

Definition at line 726 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ portrait_overlay_hook()

SF_String *__thiscall portrait_overlay_hook ( AutoClass101 * _this,
SF_String * param_1,
uint16_t figure_id,
uint32_t param3,
uint32_t param4,
uint32_t param5 )

Definition at line 1015 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:

◆ prepareDamageString()

void prepareDamageString ( AutoClass101 * _this,
SF_CGdFigure * figures,
uint16_t figure_id,
CGdResourceWeaponData * weapon_data,
SF_String * out_string )

Definition at line 827 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ prepareEffectString()

void prepareEffectString ( AutoClass101 * _this,
SF_CGdFigure * figures,
uint16_t figure_id,
uint16_t effect_id,
SF_String * out_string )

Definition at line 968 of file sf_vanilla_fix_hook.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepareHPString()

void prepareHPString ( AutoClass101 * _this,
SF_CGdFigure * figures,
uint16_t figure_id,
SF_String * out_string )

Definition at line 862 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ prepareMPString()

void prepareMPString ( AutoClass101 * _this,
SF_CGdFigure * figures,
uint16_t figure_id,
SF_String * out_string )

Definition at line 881 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ prepareSpellsHeaderString()

void prepareSpellsHeaderString ( AutoClass101 * _this,
SF_String * out_string )

Definition at line 900 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

◆ prepareSpellString()

void prepareSpellString ( AutoClass101 * _this,
SF_String * out_string,
uint16_t spell_id )

Definition at line 926 of file sf_vanilla_fix_hook.c.

Here is the caller graph for this function:

Variable Documentation

◆ AC34calculateWeaponSpeed

AC34calculateWeaponSpeed_ptr AC34calculateWeaponSpeed

Definition at line 61 of file sf_vanilla_fix_hook.c.

◆ AC57_Dispose

AC57_Dispose_ptr AC57_Dispose

Definition at line 1479 of file sf_vanilla_fix_hook.c.

◆ AC57_Init

AC57_Init_ptr AC57_Init

Definition at line 1478 of file sf_vanilla_fix_hook.c.

◆ add_item

add_item_ptr add_item

Definition at line 23 of file sf_vanilla_fix_hook.c.

◆ CGdMainGetAC34

CGdMainGetAC34_ptr CGdMainGetAC34

Definition at line 63 of file sf_vanilla_fix_hook.c.

◆ createSplashScreen

createSplashScreen_ptr createSplashScreen

Definition at line 1482 of file sf_vanilla_fix_hook.c.

◆ DStringConstructor_char

DStringConstructor_char_ptr DStringConstructor_char

Definition at line 1477 of file sf_vanilla_fix_hook.c.

◆ ExpandSpellDescription

ExpandSpellDescription_ptr ExpandSpellDescription

Definition at line 67 of file sf_vanilla_fix_hook.c.

◆ FileWrapperClose

FileWrapperClose_ptr FileWrapperClose

Definition at line 1476 of file sf_vanilla_fix_hook.c.

◆ FileWrapperInit

FileWrapperClose_ptr FileWrapperInit

Definition at line 1480 of file sf_vanilla_fix_hook.c.

◆ FileWrapperOpen

FileWrapperOpen_ptr FileWrapperOpen

Definition at line 1475 of file sf_vanilla_fix_hook.c.

◆ GetColoredText

GetColoredText_ptr GetColoredText

Definition at line 54 of file sf_vanilla_fix_hook.c.

◆ GetDamageMultiplierPerLevel

GetDamageMultiplierPerLevel_ptr GetDamageMultiplierPerLevel

Definition at line 60 of file sf_vanilla_fix_hook.c.

◆ GetDescriptionText

GetDescriptionText_ptr GetDescriptionText

Definition at line 55 of file sf_vanilla_fix_hook.c.

◆ GetItemInfo

GetItemInfo_ptr GetItemInfo

Definition at line 58 of file sf_vanilla_fix_hook.c.

◆ GetResourceSpellLine

GetResourceSpellLine_ptr GetResourceSpellLine

Definition at line 65 of file sf_vanilla_fix_hook.c.

◆ getSpecialDesc

getSpecialDesc_ptr getSpecialDesc

Definition at line 57 of file sf_vanilla_fix_hook.c.

◆ GetTextById

GetTextById_ptr GetTextById

Definition at line 66 of file sf_vanilla_fix_hook.c.

◆ getTextString

getTextString_ptr getTextString

Definition at line 69 of file sf_vanilla_fix_hook.c.

◆ getUnitStringID

getUnitStringID_ptr getUnitStringID

Definition at line 68 of file sf_vanilla_fix_hook.c.

◆ GetWeaponEffects

GetWeaponEffects_ptr GetWeaponEffects

Definition at line 64 of file sf_vanilla_fix_hook.c.

◆ getWeaponRangeDescription

getWeaponRangeDescription_ptr getWeaponRangeDescription

Definition at line 62 of file sf_vanilla_fix_hook.c.

◆ GetWeaponType

GetWeaponType_ptr GetWeaponType

Definition at line 59 of file sf_vanilla_fix_hook.c.

◆ onFigureBattleEnd

onFigureBattleEnd_ptr onFigureBattleEnd

Definition at line 70 of file sf_vanilla_fix_hook.c.

◆ readMapNameFromSave

readMapNameFromSave_ptr readMapNameFromSave

Definition at line 1473 of file sf_vanilla_fix_hook.c.