Added system path stuff on Windows

Fixed typo in image loading
This commit is contained in:
2025-10-05 00:24:51 +01:00
parent dd316664f6
commit 55c1adba40
5 changed files with 78 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
void G_ImagesLoad(G_State *game) {
M_TempScope(0, 0) {
Str8 exe_path = FS_SystemPath(temp.arena, FS_SYSTEM_PATH_EXE);
Str8 path = Sf(temp.arena, "%.*s/assets", exe_path);
Str8 path = Sf(temp.arena, "%.*s/assets", Sv(exe_path));
FS_List assets = FS_PathList(temp.arena, path);