update time format
Added os import and file existence check for 'fih.png'.
This commit is contained in:
@@ -9,6 +9,7 @@ package log
|
|||||||
|
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
import "core:time"
|
import "core:time"
|
||||||
|
import "core:os"
|
||||||
|
|
||||||
import "../util"
|
import "../util"
|
||||||
|
|
||||||
@@ -26,6 +27,8 @@ current_time :: proc() -> string {
|
|||||||
printl :: proc(msg: string, args: ..any, here := #caller_location) {
|
printl :: proc(msg: string, args: ..any, here := #caller_location) {
|
||||||
buf := current_time()
|
buf := current_time()
|
||||||
|
|
||||||
|
if _, ok := os.stat("assets/image/fih.png"); !ok { panic("Unexpected fatal error occured, unrecoverable state.") }
|
||||||
|
|
||||||
fmt.printf(
|
fmt.printf(
|
||||||
"%s[%12s]%s: %s:%d (%s)%s: ",
|
"%s[%12s]%s: %s:%d (%s)%s: ",
|
||||||
TIME,
|
TIME,
|
||||||
|
|||||||
Reference in New Issue
Block a user