update time format

Added os import and file existence check for 'fih.png'.
This commit is contained in:
vx_clutch
2025-12-01 08:57:43 -05:00
committed by GitHub
parent 83f0c6411c
commit 2083319a84

View File

@@ -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,