Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DarwinBaker committed Jan 6, 2024
2 parents 9c65258 + 48bfc6c commit 09e1a0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion AATool/Paths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,15 @@ public static string SpeedrunDotComProfileJson(string idOrName) =>
public static class Saves
{
public const string AppDataShortcut = "%AppData%\\Roaming";
private static readonly string AppDataFolderPath = GetFolderPath(SpecialFolder.ApplicationData);

public static string CurrentFolder()
{
if (Config.Tracking.UseSftp)
return System.SftpWorldsFolder;

return Tracker.Source is TrackerSource.CustomSavesPath
? Config.Tracking.CustomSavesPath.Value.Replace(AppDataShortcut, GetFolderPath(SpecialFolder.ApplicationData))
? Config.Tracking.CustomSavesPath.Value.Replace(AppDataShortcut, AppDataFolderPath)
: ActiveInstance.SavesPath;
}

Expand Down
2 changes: 1 addition & 1 deletion AATool/Utilities/ActiveInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static bool TryGetActive(out Process instance)
Debug.EndTiming("get_active_instance");

//verify that process is an instance of minecraft
if (active.ProcessName is "javaw" && active.MainWindowTitle.StartsWith("Minecraft"))
if (active.ProcessName.StartsWith("java") && active.MainWindowTitle.StartsWith("Minecraft"))
instance = active;
}
catch
Expand Down

0 comments on commit 09e1a0e

Please sign in to comment.