Added filesystem stuff on Linux

More includes for Linux
Update build script to copy assets and compile shaders
Added base code directory as include path
Added FS_SystemPath
Made asset loading work directory agnostic
This commit is contained in:
2025-10-04 23:46:13 +01:00
parent e4c1bc0a1c
commit dd316664f6
7 changed files with 278 additions and 18 deletions

View File

@@ -46,4 +46,14 @@ function FS_List FS_PathList(M_Arena *arena, Str8 path);
function Str8 FS_ReadEntireFile(M_Arena *arena, Str8 path);
typedef U32 FS_SystemPathType;
enum {
FS_SYSTEM_PATH_EXE = 0,
FS_SYSTEM_PATH_WORKING,
FS_SYSTEM_PATH_USER,
FS_SYSTEM_PATH_TEMP
};
function Str8 FS_SystemPath(M_Arena *arena, FS_SystemPathType path);
#endif // LD_OS_FILESYSTEM_H_