Skip to content

Commit

Permalink
Fix incompatibility with AutoSave plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Jan 14, 2021
1 parent 2e801ef commit fe00321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Common_AIHS2/SceneFolders.cs
Expand Up @@ -75,6 +75,9 @@ internal static void SavePrefix(ref string _path)
{
if (AI_BrowserFolders.StudioSaveOverride.Value && !string.IsNullOrEmpty(_folderTreeView.CurrentFolder))
{
// Compatibility with autosave plugin
if (_path.Contains("/_autosave")) return;

var name = Path.GetFileName(_path);
if (!string.IsNullOrEmpty(name) &&
// Play nice with other mods if they want to save outside
Expand Down
3 changes: 3 additions & 0 deletions src/KK_Hooks_KK/SceneFolders.cs
Expand Up @@ -75,6 +75,9 @@ internal static void SavePrefix(ref string _path)
{
if (KK_BrowserFolders.StudioSaveOverride.Value && !string.IsNullOrEmpty(_folderTreeView.CurrentFolder))
{
// Compatibility with autosave plugin
if (_path.Contains("/_autosave")) return;

var name = Path.GetFileName(_path);
if (!string.IsNullOrEmpty(name) &&
// Play nice with other mods if they want to save outside
Expand Down

0 comments on commit fe00321

Please sign in to comment.