From e83c71b4e90623af4a5dd98e9a941f745eec41fc Mon Sep 17 00:00:00 2001 From: Dmitry Matveyev Date: Sat, 13 Jan 2024 12:32:34 +0300 Subject: [PATCH] Update text and trace functions Previously they used probably deprecated functions which are no longer present in the reference --- cli/assets/templates/odin/src/w4/wasm4_wasm32.odin | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin b/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin index 864fcc3c..7f947d0a 100644 --- a/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin +++ b/cli/assets/templates/odin/src/w4/wasm4_wasm32.odin @@ -92,8 +92,7 @@ foreign wasm4 { rect :: proc(x, y: i32, width, height: u32) --- // Draws text using the built-in system font. - @(link_name="textUtf8") - text :: proc(text: string, x, y: i32) --- + text :: proc(text: cstring, x, y: i32) --- } // ┌───────────────────────────────────────────────────────────────────────────┐ @@ -174,8 +173,7 @@ foreign wasm4 { @(default_calling_convention="c") foreign wasm4 { // Prints a message to the debug console. - @(link_name="traceUtf8") - trace :: proc(text: string) --- + trace :: proc(text: cstring) --- // Prints a message to the debug console, with a format string. // These formats are supported: // %c: Character