File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,6 @@ DocsGenerator/obj/
34
34
log.txt
35
35
* .user
36
36
.vscode /settings.json
37
+
38
+ # Imperator: Rome saves for testing
39
+ /Saves /
Original file line number Diff line number Diff line change @@ -120,11 +120,8 @@ public static void MeltSave(string savePath) {
120
120
121
121
if ( stdErrText . Contains ( "Failed to create melted file" ) ) {
122
122
// Try to copy the file to the converter's temp folder before melting.
123
- var saveDisk = Path . GetPathRoot ( savePath ) ;
124
- var converterDisk = Path . GetPathRoot ( Directory . GetCurrentDirectory ( ) ) ;
125
-
126
- if ( saveDisk != converterDisk ) {
127
- const string fallbackSavePath = "temp/save_to_be_melted.rome" ;
123
+ const string fallbackSavePath = "temp/save_to_be_melted.rome" ;
124
+ if ( savePath != fallbackSavePath ) {
128
125
File . Copy ( savePath , fallbackSavePath , overwrite : true ) ;
129
126
MeltSave ( fallbackSavePath ) ;
130
127
return ;
You can’t perform that action at this time.
0 commit comments