All mod messages go to the MSCO console (F7) instead of the MSCLoader console; still written to output_log.txt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -48,7 +48,7 @@ namespace MSCO
|
||||
if (File.Exists(path)) File.Copy(path, Path.Combine(BackupDir, name), true);
|
||||
}
|
||||
File.WriteAllText(Marker, "MSCO backup of the client's own save. Restored automatically.");
|
||||
ModConsole.Print("[MSCO] Own save backed up to " + BackupDir);
|
||||
MscoLog.Info("[MSCO] Own save backed up to " + BackupDir);
|
||||
}
|
||||
DeleteSaveFiles();
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace MSCO
|
||||
// Nur bekannte Dateinamen erlauben, damit der Host nichts anderes überschreiben kann
|
||||
if (System.Array.IndexOf(Files, name) < 0)
|
||||
{
|
||||
ModConsole.Warning("[MSCO] Ignored unexpected save file: " + name);
|
||||
MscoLog.Warning("[MSCO] Ignored unexpected save file: " + name);
|
||||
return;
|
||||
}
|
||||
File.WriteAllBytes(Path.Combine(SaveDir, name), data);
|
||||
@@ -74,7 +74,7 @@ namespace MSCO
|
||||
if (File.Exists(backup)) File.Copy(backup, Path.Combine(SaveDir, name), true);
|
||||
}
|
||||
Directory.Delete(BackupDir, true);
|
||||
ModConsole.Print("[MSCO] Own save restored.");
|
||||
MscoLog.Info("[MSCO] Own save restored.");
|
||||
}
|
||||
|
||||
static void DeleteSaveFiles()
|
||||
|
||||
Reference in New Issue
Block a user