feat(evb): Enigma Virtual Box (EVB) のVFSシグネチャ検証による誤検出防止とスキャナ同期の強化
This commit is contained in:
1 parent
ee7b37323c
commit
7ead7386f6
3 files changed
+199
-49
No files matched your search
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.IO;
|
||||
using GameLauncher.Engines.Common;
|
||||
|
||||
@@ -19,12 +19,12 @@ namespace GameLauncher.Engines.Evb
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns true when the game directory holds an EVB packed executable
|
||||
/// (or a completed extraction of one).
|
||||
/// that can actually be unpacked (or a completed extraction of one).
|
||||
///
|
||||
/// Accepts any of the following decisive signals:
|
||||
/// 1. A packed project file (<c>*.evb</c>) in the folder.
|
||||
/// 2. A top-level executable carrying a decisive EVB PE signature.
|
||||
/// 3. An already-unpacked game (game-local "_evb_extracted" with a completion
|
||||
/// Accepts only the following decisive signals:
|
||||
/// 1. A top-level executable carrying both a decisive EVB PE section (.enigma1)
|
||||
/// and the EVB virtual filesystem signature ("EVB\0"), so it is unpackable.
|
||||
/// 2. An already-unpacked game (game-local "_evb_extracted" with a completion
|
||||
/// marker). This is required because unpacking renames the original packed exe
|
||||
/// to "*.glbak", after which the signature check alone would no longer detect
|
||||
/// the game and its launch / icon resolution would break.
|
||||
@@ -36,19 +36,6 @@ namespace GameLauncher.Engines.Evb
|
||||
return false;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// A packed project file in the folder is the strongest single signal.
|
||||
if (Directory.GetFiles(gameDirectory, "*.evb", SearchOption.TopDirectoryOnly).Length > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Fall through to the remaining checks.
|
||||
}
|
||||
|
||||
// A completed extraction keeps the game recognized even without the packed exe.
|
||||
if (EvbDetectionHelper.IsExtracted(gameDirectory))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user