forked from Public-Mirror/Textractor
add srpg hook
This commit is contained in:
parent
2e5ee9e547
commit
a7a19ef017
@ -11885,6 +11885,21 @@ bool InsertSilkysHook()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool InsertSRPGHook()
|
||||||
|
{
|
||||||
|
if (DWORD addr = (DWORD)GetProcAddress(GetModuleHandleW(L"oleaut32.dll"), "SysAllocString"))
|
||||||
|
{
|
||||||
|
HookParam hp = {};
|
||||||
|
hp.offset = 4;
|
||||||
|
hp.address = addr;
|
||||||
|
hp.type = USING_STRING | USING_UNICODE | NO_CONTEXT;
|
||||||
|
NewHook(hp, "SRPG");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
ConsoleOutput("Textractor: SRPG: couldn't find function");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/** jichi 6/1/2014 Eushully
|
/** jichi 6/1/2014 Eushully
|
||||||
* Insert to the last GetTextExtentPoint32A
|
* Insert to the last GetTextExtentPoint32A
|
||||||
*
|
*
|
||||||
|
@ -142,6 +142,7 @@ bool InsertScenarioPlayerHook();// sol-fa-soft: *.iar && *.sec5
|
|||||||
bool InsertSiglusHook(); // SiglusEngine: SiglusEngine.exe
|
bool InsertSiglusHook(); // SiglusEngine: SiglusEngine.exe
|
||||||
bool InsertSideBHook(); // SideB: Copyright side-B
|
bool InsertSideBHook(); // SideB: Copyright side-B
|
||||||
bool InsertSilkysHook(); // SilkysPlus
|
bool InsertSilkysHook(); // SilkysPlus
|
||||||
|
bool InsertSRPGHook(); // SilverSoft SRPG studio: *.dts
|
||||||
bool InsertSyuntadaHook(); // Syuntada: dSoh.dat
|
bool InsertSyuntadaHook(); // Syuntada: dSoh.dat
|
||||||
bool InsertSystem43Hook(); // System43@AliceSoft: AliceStart.ini
|
bool InsertSystem43Hook(); // System43@AliceSoft: AliceStart.ini
|
||||||
bool InsertSystemAoiHook(); // SystemAoi: *.vfs
|
bool InsertSystemAoiHook(); // SystemAoi: *.vfs
|
||||||
|
@ -444,6 +444,12 @@ bool DetermineEngineByFile4()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Artikash 1/18/2019: SRPG Studio sample game https://www.freem.ne.jp/win/game/16844
|
||||||
|
if (Util::CheckFile(L"*.dts")) {
|
||||||
|
InsertSRPGHook();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user