Asset slots with hot-reloading

This commit is contained in:
Riyyi
2026-11-22 13:02:04 +01:00
parent ed0c597192
commit 2d8e066700
6 changed files with 212 additions and 45 deletions
+10 -4
View File
@@ -1,3 +1,9 @@
/*
* Copyright (C) 2026 Riyyi
*
* SPDX-License-Identifier: MIT
*/
package game
import "core:fmt"
@@ -60,16 +66,16 @@ register_memory :: proc() {
base.register_region("test_memory", &t, size_of(Test_Memory))
}
init_once :: proc() {
fmt.println("init once")
}
init :: proc() {
fmt.println("hello from .dll!")
g.should_close = false
}
init_once :: proc() {
fmt.println("init once")
}
update :: proc(dt: f32) {
fmt.println("dt:", dt)