mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-01 10:42:03 +03:00
Do not close game if custom level has assets issues
It's quite rude to close the game entirely if there is trouble with assets. Instead, just unload the assets and gracefully return to the title screen.
This commit is contained in:
@@ -78,6 +78,15 @@ void _VVV_between(
|
||||
# define VVV_fallthrough do { } while (false) /* fallthrough */
|
||||
#endif
|
||||
|
||||
#define MAYBE_FAIL(expr) \
|
||||
do \
|
||||
{ \
|
||||
if (!expr) \
|
||||
{ \
|
||||
goto fail; \
|
||||
} \
|
||||
} \
|
||||
while (false)
|
||||
|
||||
//helperClass
|
||||
class UtilityClass
|
||||
|
||||
Reference in New Issue
Block a user