Graceful exit

This commit is contained in:
2026-08-21 20:02:13 +05:00
parent 8a7ca839fa
commit 75f72e6863
3 changed files with 156 additions and 114 deletions
+6 -1
View File
@@ -3,6 +3,7 @@ package main
import "base:runtime"
import hm "core:container/handle_map"
import "core:fmt"
import os "core:os"
import rl "vendor:raylib"
SCREEN_W :: 1280
@@ -178,7 +179,11 @@ main :: proc() {
"./Tiled/безымянный.json",
arena_alloc,
)
if err.type != .None do fmt.println(err.msg)
if err.type != .None {
fmt.println(err.msg)
os.exit(1)
}
//WARN: Add a destructor to free (handlemap dangling)
scene := create_scene()