remove dependency on an IMovie from GetRetroSaveRAMDirectory, since it shoudl only be getting the directly, not the the filename

This commit is contained in:
adelikat 2020-06-07 08:31:27 -05:00
parent ec3a288377
commit 954adf4ab6
2 changed files with 2 additions and 7 deletions

View File

@ -30,7 +30,7 @@ namespace BizHawk.Client.Common
// Poop
public string GetRetroSaveRAMDirectory(GameInfo game)
=> _pathEntries.RetroSaveRamAbsolutePath(game, Global.MovieSession.Movie);
=> _pathEntries.RetroSaveRamAbsolutePath(game);
// Poop
public string GetRetroSystemPath(GameInfo game)

View File

@ -237,7 +237,7 @@ namespace BizHawk.Client.Common
}
// Shenanigans
public static string RetroSaveRamAbsolutePath(this PathEntryCollection collection, GameInfo game, IMovie movie)
public static string RetroSaveRamAbsolutePath(this PathEntryCollection collection, GameInfo game)
{
var name = game.FilesystemSafeName();
name = Path.GetDirectoryName(name);
@ -248,11 +248,6 @@ namespace BizHawk.Client.Common
name ??= "";
if (movie.IsActive())
{
name = Path.Combine(name, $"movie-{Path.GetFileNameWithoutExtension(movie.Filename)}");
}
var pathEntry = collection[game.System, "Save RAM"]
?? collection[game.System, "Base"];