fix: added condition to move the game file if it’s path is different than expected
This commit is contained in:
@@ -469,7 +469,7 @@ namespace gaseous_server.Classes
|
||||
}
|
||||
}
|
||||
|
||||
public static void LibraryScan(bool FullSignatureScan = false)
|
||||
public static void LibraryScan()
|
||||
{
|
||||
Logging.Log(Logging.LogType.Information, "Library Scan", "Starting library scan");
|
||||
|
||||
@@ -577,7 +577,7 @@ namespace gaseous_server.Classes
|
||||
FileInfo fi = new FileInfo(romPath);
|
||||
|
||||
Models.Signatures_Games sig = GetFileSignature(hash, fi, romPath);
|
||||
if (sig.Rom.SignatureSource != Models.Signatures_Games.RomItem.SignatureSourceType.None || FullSignatureScan == true)
|
||||
if (sig.Rom.SignatureSource != Models.Signatures_Games.RomItem.SignatureSourceType.None)
|
||||
{
|
||||
Logging.Log(Logging.LogType.Information, "Library Scan", " Update signature found for " + romPath);
|
||||
|
||||
@@ -593,6 +593,11 @@ namespace gaseous_server.Classes
|
||||
StoreROM(hash, determinedGame, determinedPlatform, sig, romPath, romId);
|
||||
}
|
||||
}
|
||||
|
||||
if (romPath != ComputeROMPath(romId))
|
||||
{
|
||||
MoveGameFile(romId);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user