[nostalgia/core/studio] Cleanup error handling for TileSheet open fail
This commit is contained in:
parent
d2b77804ff
commit
ead3fd39c4
@ -17,11 +17,7 @@ class StudioModule: public studio::Module {
|
|||||||
{
|
{
|
||||||
{FileExt_ng},
|
{FileExt_ng},
|
||||||
[ctx](ox::CRStringView path) -> ox::Result<studio::BaseEditor*> {
|
[ctx](ox::CRStringView path) -> ox::Result<studio::BaseEditor*> {
|
||||||
try {
|
return ox::makeCatch<TileSheetEditorImGui>(ctx, path);
|
||||||
return ox::make<TileSheetEditorImGui>(ctx, path);
|
|
||||||
} catch (const ox::Exception &ex) {
|
|
||||||
return ex.toError();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user