Jump to content

SADX Mod Loader: Difference between revisions

From SA Docs
Added missing methods.
No edit summary
Line 5: Line 5:


== Struct ==
== Struct ==
Below is the initialized version of the HelperFunctions struct. For the definition of the struct, you can find that in [https://github.com/X-Hax/sadx-mod-loader/blob/master/SADXModLoader/include/SADXModInfo.h SADXModInfo.h]  
Below is the initialized version of the HelperFunctions struct. For the definition of the struct, you can find that in [https://github.com/X-Hax/sadx-mod-loader/blob/master/SADXModLoader/include/SADXModInfo.h SADXModInfo.h]
{{Documentation|header=HelperFunctions|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
HelperFunctions helperFunctions =
HelperFunctions helperFunctions =
Line 59: Line 60:
};
};
</syntaxhighlight>
</syntaxhighlight>
}}
{{Note|text=Please be aware that all examples on this page will be using <code>helperFunctions</code> which is how the variable is sent to a mod.|type=info}}


== Properties ==
== Properties ==
Line 68: Line 72:


This returns the version of the mod loader. This can be used to check if the user has an old version of the mod loader that may not have functionality your mod requires.
This returns the version of the mod loader. This can be used to check if the user has an old version of the mod loader that may not have functionality your mod requires.
 
{{Documentation|header=Example|content=
==== Example ====
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
if (globalHelperFunctions.ModLoaderVer <= 10)
if (helperFunctions.ModLoaderVer <= 10)
        PrintDebug("This Mod Loader is way out of date.\n");
    PrintDebug("This Mod Loader is way out of date.\n");
</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Mod Loader Settings ===
=== Mod Loader Settings ===
Line 81: Line 84:
</syntaxhighlight>
</syntaxhighlight>


 
{{Documentation|header=Example|content=
==== Example ====
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Mod List ===
=== Mod List ===
Line 93: Line 95:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Weight Functions ===
=== Weight Functions ===
Line 104: Line 106:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
}}


== Functions ==
== Functions ==
Line 117: Line 120:


Registers a new Start Position for the specified character.
Registers a new Start Position for the specified character.
 
{{Documentation|header=Example|content=
==== Example ====
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
StartPosition myStageStartPos = {  
StartPosition myStageStartPos = {  
Line 130: Line 132:
// and we have specified Sonic, so the level for this ID would now use
// and we have specified Sonic, so the level for this ID would now use
// our StartPosition instead of the original.
// our StartPosition instead of the original.
globalHelperFunctions.RegisterStartPosition(Characters_Sonic, &myStageStartPos);
helperFunctions.RegisterStartPosition(Characters_Sonic, &myStageStartPos);
</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Clear Start Position List ===
=== Clear Start Position List ===
Line 140: Line 142:


Clears the Start Positions for the specified character.  
Clears the Start Positions for the specified character.  
 
{{Documentation|header=Example|content=
==== Example ====
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">
// Running this inside of your mod's Init export would
// Running this inside of your mod's Init export would
// clear all of Sonic's Start Positions for his stages.
// clear all of Sonic's Start Positions for his stages.
globalHelperFunctions.ClearStartPositionList(Characters_Sonic);
helperFunctions.ClearStartPositionList(Characters_Sonic);
</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Field Position ===
=== Register Field Position ===
Line 154: Line 155:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Clear Field Start Position List ===
=== Clear Field Start Position List ===
Line 165: Line 166:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Path List ===
=== Register Path List ===
Line 176: Line 177:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Clear Path List List ===
=== Clear Path List List ===
Line 187: Line 188:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Character PVM ===
=== Register Character PVM ===
Line 198: Line 199:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Clear Character PVM List ===
=== Clear Character PVM List ===
Line 209: Line 210:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Common Object PVM ===
=== Register Common Object PVM ===
Line 220: Line 221:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Clear Common Object PVM List ===
=== Clear Common Object PVM List ===
Line 231: Line 232:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Trial Level ===
=== Register Trial Level ===
Line 242: Line 243:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Clear Trial Level List ===
=== Clear Trial Level List ===
Line 253: Line 254:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Trial Subgame ===
=== Register Trial Subgame ===
Line 264: Line 265:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Clear Trial Subgame List ===
=== Clear Trial Subgame List ===
Line 275: Line 276:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Get Main Save Path ===
=== Get Main Save Path ===
Line 286: Line 287:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Get Chao Save Path ===
=== Get Chao Save Path ===
Line 297: Line 298:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Get Replaceable Path ===
=== Get Replaceable Path ===
Line 308: Line 309:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Replace File ===
=== Replace File ===
Line 319: Line 320:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Set Window Title ===
=== Set Window Title ===
Line 330: Line 331:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Sound List ===
=== Register Sound List ===
Line 341: Line 342:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Music File ===
=== Register Music File ===
Line 352: Line 353:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Load EXE Data ===
=== Load EXE Data ===
Line 363: Line 364:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Load DLL Data ===
=== Load DLL Data ===
Line 374: Line 375:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Replace File Force ===
=== Replace File Force ===
Line 385: Line 386:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Push Scale UI ===
=== Push Scale UI ===
Line 396: Line 397:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Pop Scale UI ===
=== Pop Scale UI ===
Line 407: Line 408:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Set Scale Fill Mode ===
=== Set Scale Fill Mode ===
Line 418: Line 419:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Get Scale Fill Mode ===
=== Get Scale Fill Mode ===
Line 429: Line 430:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Replace Texture ===
=== Replace Texture ===
Line 440: Line 441:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Mipmap Blacklist GBIX ===
=== Mipmap Blacklist GBIX ===
Line 451: Line 452:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register English Voice Duration ===
=== Register English Voice Duration ===
Line 462: Line 463:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Japanese Voice Duration ===
=== Register Japanese Voice Duration ===
Line 473: Line 474:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Character Welds ===
=== Register Character Welds ===
Line 484: Line 485:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Voice ===
=== Register Voice ===
Line 495: Line 496:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Push Interpolation Fix ===
=== Push Interpolation Fix ===
Line 506: Line 507:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Pop Interpolation Fix ===
=== Pop Interpolation Fix ===
Line 517: Line 518:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Register Permanent Texlist ===
=== Register Permanent Texlist ===
Line 528: Line 529:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Unreplace File ===
=== Unreplace File ===
Line 539: Line 540:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Expand PVM List ===
=== Expand PVM List ===
Line 550: Line 551:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Unreplace File ===
=== Unreplace File ===
Line 561: Line 562:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Print Debug Unicode ===
=== Print Debug Unicode ===
Line 572: Line 573:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Print Debug Local ===
=== Print Debug Local ===
Line 583: Line 584:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Print Debug Codepage ===
=== Print Debug Codepage ===
Line 594: Line 595:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Get File Mod Index ===
=== Get File Mod Index ===
Line 605: Line 606:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}


=== Replace File At Index ===
=== Replace File At Index ===
Line 616: Line 617:
</syntaxhighlight>
</syntaxhighlight>


==== Example ====
{{Documentation|header=Example|content=
<syntaxhighlight lang="cpp">
<syntaxhighlight lang="cpp">


</syntaxhighlight>
</syntaxhighlight>
<hr>
}}

Revision as of 14:19, 8 October 2025

Source Code


HelperFunctions API

Struct

Below is the initialized version of the HelperFunctions struct. For the definition of the struct, you can find that in SADXModInfo.h

HelperFunctions

HelperFunctions helperFunctions =
{
	ModLoaderVer,
	&RegisterStartPosition,
	&ClearStartPositionList,
	&RegisterFieldStartPosition,
	&ClearFieldStartPositionList,
	&RegisterPathList,
	&ClearPathListList,
	&RegisterCharacterPVM,
	&ClearCharacterPVMList,
	&RegisterCommonObjectPVM,
	&ClearCommonObjectPVMList,
	&RegisterTrialLevel,
	&ClearTrialLevelList,
	&RegisterTrialSubgame,
	&ClearTrialSubgameList,
	&GetMainSavePath,
	&GetChaoSavePath,
	&GetReplaceablePath,
	&_ReplaceFile,
	&SetWindowTitle,
	&RegisterSoundList,
	&RegisterMusicFile,
	&LoadEXEData,
	&LoadDLLData,
	&_ReplaceFileForce,
	&PushScaleUI,
	&PopScaleUI,
	&SetScaleFillMode,
	&GetScaleFillMode,
	&ReplaceTexture,
	&MipmapBlacklistGBIX,
	&RegisterEnglishVoiceDuration,
	&RegisterJapaneseVoiceDuration,
	&RegisterCharacterWelds,
	&loaderSettings,
	&modList,
	&weightFuncs,
	&RegisterVoice,
	&PushInterpolationFix,
	&PopInterpolationFix,
	&RegisterPermanentTexlist,
	&ExpandPVMList,
	&UnreplaceFile,
	&PrintDebugUnicode,
	&PrintDebugLocal,
	&PrintDebugCodepage,
	&GetFileModIndex,
	&ReplaceFileAtIndex
};


  Please be aware that all examples on this page will be using helperFunctions which is how the variable is sent to a mod.


Properties

Mod Loader Version

int ModLoaderVer;

This returns the version of the mod loader. This can be used to check if the user has an old version of the mod loader that may not have functionality your mod requires.

Example

if (helperFunctions.ModLoaderVer <= 10)
    PrintDebug("This Mod Loader is way out of date.\n");


Mod Loader Settings

LoaderSettings loaderSettings;


Example


Mod List

std::vector<Mod> modlist;


Example


Weight Functions

BasicWeightFuncs weightFuncs;


Example


Functions

Register Start Position

static void RegisterStartPosition(unsigned char character, const StartPosition& position)

Registers a new Start Position for the specified character.

Example

StartPosition myStageStartPos = { 
    1,                          // Level ID 
    0,                          // Act ID
    { 100.0f, 200.0f, 100.0f }, // Position
    0                           // Y Rotation
};

// We pass our StagePosition variable as a pointer to this function
// and we have specified Sonic, so the level for this ID would now use
// our StartPosition instead of the original.
helperFunctions.RegisterStartPosition(Characters_Sonic, &myStageStartPos);


Clear Start Position List

static void ClearStartPositionList(unsigned char character)

Clears the Start Positions for the specified character.

Example

// Running this inside of your mod's Init export would
// clear all of Sonic's Start Positions for his stages.
helperFunctions.ClearStartPositionList(Characters_Sonic);


Register Field Position

static void RegisterFieldStartPosition(unsigned char character, const FieldStartPosition& position)


Example


Clear Field Start Position List

static void ClearFieldStartPositionList(unsigned char character)


Example


Register Path List

static void RegisterPathList(const PathDataPtr& paths)


Example


Clear Path List List

static void ClearPathListList()


Example


Register Character PVM

static void RegisterCharacterPVM(unsigned char character, const PVMEntry& pvm)


Example


Clear Character PVM List

static void ClearCharacterPVMList(unsigned char character)


Example


Register Common Object PVM

static void RegisterCommonObjectPVM(const PVMEntry& pvm)


Example


Clear Common Object PVM List

static void ClearCommonObjectPVMList()


Example


Register Trial Level

static void RegisterTrialLevel(unsigned char character, const TrialLevelListEntry& level)


Example


Clear Trial Level List

static void ClearTrialLevelList(unsigned char character)


Example


Register Trial Subgame

static void RegisterTrialSubgame(unsigned char character, const TrialLevelListEntry& level)


Example


Clear Trial Subgame List

static void ClearTrialSubgameList(unsigned char character)


Example


Get Main Save Path

static const char* GetMainSavePath()


Example


Get Chao Save Path

static const char* GetChaoSavePath()


Example


Get Replaceable Path

const char* __cdecl GetReplaceablePath(const char* path)


Example


Replace File

void _ReplaceFile(const char* src, const char* dst)


Example


Set Window Title

void SetWindowTitle(const char* title)


Example


Register Sound List

int RegisterSoundList(const SoundList& list)


Example


Register Music File

int RegisterMusicFile(const MusicInfo& track)


Example


Load EXE Data

void LoadEXEData(const wchar_t* filename, const wchar_t* mod_dir)


Example


Load DLL Data

void LoadDLLData(const wchar_t* filename, const wchar_t* mod_dir)


Example


Replace File Force

void _ReplaceFileForce(const char* src, const char* dst)


Example


Push Scale UI

void PushScaleUI(uiscale::Align align, bool is_background, float ratio_h, float ratio_v)


Example


Pop Scale UI

void PopScaleUI()


Example


Set Scale Fill Mode

void SetScaleFillMode(uiscale::FillMode mode)


Example


Get Scale Fill Mode

uiscale::FillMode GetScaleFillMode()


Example


Replace Texture

void ReplaceTexture(const char* pvm_name, const char* tex_name, const char* file_path, uint32_t gbix, uint32_t width, uint32_t height)


Example


Mipmap Blacklist GBIX

void MipmapBlacklistGBIX(Uint32 index)


Example


Register English Voice Duration

void RegisterEnglishVoiceDuration(const uint16_t voiceID, const uint16_t duration)


Example


Register Japanese Voice Duration

void RegisterJapaneseVoiceDuration(const uint16_t voiceID, const uint16_t duration)


Example


Register Character Welds

void RegisterCharacterWelds(const uint8_t character, const char* iniPath)


Example


Register Voice

uint16_t RegisterVoice(const char* fileJP, const char* fileEN, uint16_t durationJP, uint16_t durationEN)


Example


Push Interpolation Fix

void PushInterpolationFix()


Example


Pop Interpolation Fix

void PopInterpolationFix()


Example


Register Permanent Texlist

void RegisterPermanentTexlist(NJS_TEXLIST* texlist)


Example


Unreplace File

void UnreplaceFile(const char* file)


Example


Expand PVM List

TEX_PVMTABLE* ExpandPVMList(TEX_PVMTABLE* sourcepvmlist, const TEX_PVMTABLE &newpvmentry)


Example


Unreplace File

void UnreplaceFile(const char* file)


Example


void PrintDebugUnicode(char* utf8)


Example


void PrintDebugLocal(char* buf)


Example


void PrintDebugCodepage(char* buf, unsigned int source_cp)


Example


Get File Mod Index

int GetFileModIndex(const char* path)


Example


Replace File At Index

void ReplaceFileAtIndex(const char* src, const char* dst, int modIndex)


Example