Skip to content

Commit

Permalink
AppUI: Enable FFNx trace_all when using Play with Debug Logs
Browse files Browse the repository at this point in the history
Will allow easier log collection from users having issues
  • Loading branch information
julianxhokaxhiu committed Feb 12, 2025
1 parent aa3cb67 commit 9e9ead8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion AppCore/FFNxConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void Save()
File.WriteAllLines(_pathToFFNxToml, _write);
}

public void OverrideInternalKeys()
public void OverrideInternalKeys(bool debug = false)
{
// first launch the Sys Path was not setup correctly yet so _toml is null
if(_toml == null)
Expand Down Expand Up @@ -250,6 +250,7 @@ public void OverrideInternalKeys()
_toml["ffmpeg_video_ext"] = "avi";
_toml["mod_path"] = "mods/Textures";
_toml["direct_mode_path"] = "direct";
_toml["trace_all"] = debug;
}

public void ResetTo7thHeavenDefaults()
Expand Down
2 changes: 1 addition & 1 deletion AppUI/Classes/GameLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public static async Task<bool> LaunchGame(bool varDump, bool debug, bool launchW
//
Sys.FFNxConfig.Reload();
Sys.FFNxConfig.Backup(true);
Sys.FFNxConfig.OverrideInternalKeys();
Sys.FFNxConfig.OverrideInternalKeys(debug && runtimeProfile != null);
foreach (RuntimeMod mod in runtimeProfile.Mods)
{
foreach(FFNxFlag flag in mod.FFNxConfig)
Expand Down

0 comments on commit 9e9ead8

Please sign in to comment.