2023-01-15 15:57:26 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "util/FFstrbuf.h"
|
|
|
|
|
#include "util/FFlist.h"
|
|
|
|
|
|
|
|
|
|
typedef struct FFPlatform {
|
|
|
|
|
FFstrbuf homeDir; // Trailing slash included
|
|
|
|
|
FFstrbuf cacheDir; // Trailing slash included
|
|
|
|
|
FFlist configDirs; // List of FFstrbuf, trailing slash included
|
|
|
|
|
FFlist dataDirs; // List of FFstrbuf, trailing slash included
|
2023-08-24 13:47:20 +08:00
|
|
|
FFstrbuf exePath; // The real path of current exe
|
2023-01-15 15:57:26 +01:00
|
|
|
|
|
|
|
|
FFstrbuf userName;
|
|
|
|
|
FFstrbuf hostName;
|
|
|
|
|
FFstrbuf userShell;
|
|
|
|
|
|
|
|
|
|
FFstrbuf systemName;
|
|
|
|
|
FFstrbuf systemRelease;
|
|
|
|
|
FFstrbuf systemVersion;
|
|
|
|
|
FFstrbuf systemArchitecture;
|
2023-09-23 11:51:37 +08:00
|
|
|
FFstrbuf systemDisplayVersion;
|
2023-11-08 00:02:00 +08:00
|
|
|
|
|
|
|
|
uint32_t pageSize;
|
2023-01-15 15:57:26 +01:00
|
|
|
} FFPlatform;
|
|
|
|
|
|
|
|
|
|
void ffPlatformInit(FFPlatform* platform);
|
|
|
|
|
void ffPlatformDestroy(FFPlatform* platform);
|