Recover accidentally deleted codes

This commit is contained in:
cdwcgt 2022-11-21 17:09:56 +09:00
parent 2653bd2f99
commit 60ef88844c
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2
1 changed files with 5 additions and 0 deletions

View File

@ -173,6 +173,11 @@ public RealmAccess(Storage storage, string filename, GameThread? updateThread =
if (!Filename.EndsWith(realm_extension, StringComparison.Ordinal))
Filename += realm_extension;
#if DEBUG
if (!DebugUtils.IsNUnitRunning)
applyFilenameSchemaSuffix(ref Filename);
#endif
string newerVersionFilename = $"{Filename.Replace(realm_extension, string.Empty)}_newer_version{realm_extension}";
// Attempt to recover a newer database version if available.