mirror of
https://github.com/osukey/osukey.git
synced 2025-06-09 13:28:03 +09:00
Don't bother with an exception that will never happen
Wasn't being caught anyways
This commit is contained in:
parent
94847e4a23
commit
e41993ac44
@ -60,6 +60,8 @@ namespace osu.Game.Graphics
|
|||||||
using (var bitmap = await host.TakeScreenshotAsync())
|
using (var bitmap = await host.TakeScreenshotAsync())
|
||||||
{
|
{
|
||||||
var fileName = getFileName();
|
var fileName = getFileName();
|
||||||
|
if (fileName == null) return;
|
||||||
|
|
||||||
var stream = storage.GetStream(fileName, FileAccess.Write);
|
var stream = storage.GetStream(fileName, FileAccess.Write);
|
||||||
|
|
||||||
switch (screenshotFormat.Value)
|
switch (screenshotFormat.Value)
|
||||||
@ -102,7 +104,7 @@ namespace osu.Game.Graphics
|
|||||||
return indexedName;
|
return indexedName;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception($"Failed to find suitable file name for saving {fileExt} image");
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user