From 97e7909e4d730524b3ea319fa86520ed3bb3df5c Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Fri, 27 Feb 2026 23:23:16 -0500 Subject: use odin's new handle maps rather than my own --- tools/compile_assets/main.odin | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/compile_assets/main.odin') diff --git a/tools/compile_assets/main.odin b/tools/compile_assets/main.odin index d8d8942..1eedee1 100644 --- a/tools/compile_assets/main.odin +++ b/tools/compile_assets/main.odin @@ -1,6 +1,6 @@ package assets_gen -import os "core:os/os2" +import "core:os" import "core:fmt" import "core:path/filepath" import "core:strings" @@ -74,7 +74,8 @@ output_dir: string paths_to_res_type: map[string]string -die :: proc(msg: string, args: ..any, exit_code := 1) { +die :: proc(msg: string, args: ..any, exit_code := 1, caller_loc := #caller_location) { + fmt.eprintf("[%v] ", caller_loc) fmt.eprintfln(msg, ..args) os.exit(exit_code) } @@ -220,11 +221,11 @@ main :: proc() { input_dir := os.args[1] output_file_path := os.args[2] - abs_output_path, found_abs := filepath.abs( + abs_output_path, abs_err := filepath.abs( output_file_path, context.temp_allocator ) - if !found_abs { + if abs_err != nil { die("Could not find absolute path to output file") } -- cgit v1.3-2-g0d8e