- Код: Выделить всё
H3TextTable& __stdcall _HH_LoadHeroSpecTxt(HiHook* h, LPCSTR filename)
{
H3TextTable& heroSpecText = THISCALL_1(H3TextTable&, h->GetDefaultFunc(), filename);
// code in here
return heroSpecText;
}
pi->WriteHiHook(0x4D7415, CALL_, THISCALL_, _HH_LoadHeroSpecTxt);
I unfortunately lacked inspiration when I first named text files, in upcoming H3API I made the difficult decision of renaming these as:
H3ColumnTextFile -> H3TextFile (single column of text)
H3TextFile -> H3TextTable (multiple columns of text)
H3TextFile::Load() is a static function so you would need to assign its result to another H3TextFile.
I could add a constructor to H3TextFile with filename, makes sense.
EDIT
heroSpecText is a textTable, not
Replaced by future naming for posterity. (currently would be H3TextFile, blergh)