feat: add texture hot-reload

This commit is contained in:
2026-04-16 15:33:58 +08:00
parent cf9aaa62a7
commit 7d5b9c34b3
8 changed files with 59 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ void MapTable::init_map() {
for (int i = 0; i < MAX_BLOCK_NUM; i++) {
id_to_name_map[i] = BLOCK_REISTER[i];
name_to_id_map[HASH::str(BLOCK_REISTER[i])] = i;
name_to_id_map[HASH::str(BLOCK_REISTER[i])] = i;
}
}