remove dependency on an IMovie from GetRetroSaveRAMDirectory, since it shoudl only be getting the directly, not the the filename
This commit is contained in:
parent
ec3a288377
commit
954adf4ab6
|
@ -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)
|
||||
|
|
|
@ -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"];
|
||||
|
||||
|
|
Loading…
Reference in New Issue