Adding TokyoNecro matching function

This commit is contained in:
Jazzinghen 2020-05-23 14:35:16 +09:00 committed by Akash Mozumdar
parent fe3e152553
commit 261da66d74
2 changed files with 18 additions and 6 deletions

View File

@ -125,6 +125,7 @@ bool InsertNeXASHook(); // NeXAS: Thumbnail.pac
bool InsertNextonHook(); // NEXTON: aInfo.db
bool InsertNexton1Hook();
bool InsertNitroplusHook(); // Nitroplus: *.npa
bool InsertTokyoNecroHook(); // Nitroplus TokyoNecro: *.npk, resource string
bool InsertPalHook(); // AMUSE CRAFT: *.pac
bool InsertPensilHook(); // Pensil: PSetup.exe
bool InsertPONScripterHook();

View File

@ -435,6 +435,23 @@ bool DetermineEngineByFile4()
return true;
}
// jichi 11/22/2015: 凍京NECRO 体験版
// Jazzinghen 23/05/2020: Add check for 凍京NECRO
// ResEdit shows multiple potential strings:
// - TOKYONECRO
// - 東京NECRO
// - TokyoNecro.exe in "OriginalFilename"
if (Util::CheckFile(L"*.npk")) {
if (Util::SearchResourceString(L"TOKYONECRO")) {
ConsoleOutput("vnreng: Hooking TokyoNecro");
InsertTokyoNecroHook();
}
else {
ConsoleOutput("vnreng: IGNORE new Nitroplus");
}
return true;
}
return false;
}
@ -709,12 +726,6 @@ bool DetermineNoEngine()
return true;
}
// jichi 11/22/2015: 凍京NECRO 体験版
if (Util::CheckFile(L"*.npk")) {
ConsoleOutput("vnreng: IGNORE new Nitroplus");
return true;
}
// 8/29/2015 jichi: minori, text in GetGlyphOutlineA
if (Util::CheckFile(L"*.paz")) {
ConsoleOutput("vnreng: IGNORE minori");