diff --git a/texthook/engine/engine.h b/texthook/engine/engine.h index 25095a6..e8e401e 100644 --- a/texthook/engine/engine.h +++ b/texthook/engine/engine.h @@ -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(); diff --git a/texthook/engine/match32.cc b/texthook/engine/match32.cc index 645e7de..0f8efd4 100644 --- a/texthook/engine/match32.cc +++ b/texthook/engine/match32.cc @@ -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");