From 2083319a84437afb95d4251d8277159fa510def5 Mon Sep 17 00:00:00 2001 From: vx_clutch <98831688+vx-clutch@users.noreply.github.com> Date: Mon, 1 Dec 2025 08:57:43 -0500 Subject: [PATCH] update time format Added os import and file existence check for 'fih.png'. --- libpike/log/log.odin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpike/log/log.odin b/libpike/log/log.odin index 60140c4..127b58d 100644 --- a/libpike/log/log.odin +++ b/libpike/log/log.odin @@ -9,6 +9,7 @@ package log import "core:fmt" import "core:time" +import "core:os" import "../util" @@ -26,6 +27,8 @@ current_time :: proc() -> string { printl :: proc(msg: string, args: ..any, here := #caller_location) { buf := current_time() + if _, ok := os.stat("assets/image/fih.png"); !ok { panic("Unexpected fatal error occured, unrecoverable state.") } + fmt.printf( "%s[%12s]%s: %s:%d (%s)%s: ", TIME,