Skip to content

Commit 5683a26

Browse files
Fixed issue where SA2 would fail in the Config writing process due to the game's Config folder missing.
1 parent 58d62af commit 5683a26

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

SA-Mod-Manager/Configuration/SA2/GameSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ public void WriteConfigs()
442442

443443
if (Directory.Exists(GamePath))
444444
{
445+
string configfolder = Path.Combine(GamePath, "Config");
446+
if (!Directory.Exists(configfolder))
447+
Directory.CreateDirectory(configfolder);
448+
445449
string keyboardPath = Path.GetFullPath(Path.Combine(GamePath, App.CurrentGame.GameConfigFile[0]));
446450

447451
//if keyboard config is missing add it (fix game crashes if official launcher was never used)

0 commit comments

Comments
 (0)