You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
C#: Save copy of sln and csproj before applying fixes
(cherry picked from commit 93d7ec8836)
This commit is contained in:
committed by
Rémi Verschelde
parent
a5bbd13794
commit
08f41f474b
@@ -153,7 +153,12 @@ EndProject";
|
||||
var result = regex.Replace(input,m => dict[m.Value]);
|
||||
|
||||
if (result != input)
|
||||
{
|
||||
// Save a copy of the solution before replacing it
|
||||
FileUtils.SaveBackupCopy(slnPath);
|
||||
|
||||
File.WriteAllText(slnPath, result);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user