Unindent `SavestateFile.Load`
This commit is contained in:
parent
53240c2f84
commit
c3e3ffbe27
|
@ -128,11 +128,8 @@ namespace BizHawk.Client.Common
|
|||
public bool Load(string path)
|
||||
{
|
||||
// try to detect binary first
|
||||
var bl = ZipStateLoader.LoadAndDetect(path);
|
||||
if (bl != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
using var bl = ZipStateLoader.LoadAndDetect(path);
|
||||
if (bl is null) return false;
|
||||
var succeed = false;
|
||||
|
||||
// Movie timeline check must happen before the core state is loaded
|
||||
|
@ -192,18 +189,10 @@ namespace BizHawk.Client.Common
|
|||
((ITasMovie)_movieSession.Movie).LagLog.Load(tr);
|
||||
});
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
bl.Dispose();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private static void PopulateFramebuffer(BinaryReader br, IVideoProvider videoProvider, IQuickBmpFile quickBmpFile)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue