mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-28 18:25:10 +02:00
sysconf stub cuz crash(?) + some stderrp stuff
This commit is contained in:
parent
9acdb4cb88
commit
d0b29d79bc
10 changed files with 469 additions and 53 deletions
|
|
@ -130,6 +130,10 @@ public:
|
|||
ASSERT(!eden_path.empty());
|
||||
eden_path_cache = eden_path / CACHE_DIR;
|
||||
eden_path_config = eden_path / CONFIG_DIR;
|
||||
#elif defined(__OPENORBIS__)
|
||||
eden_path = "/data/eden";
|
||||
eden_path_cache = eden_path / CACHE_DIR;
|
||||
eden_path_config = eden_path / CONFIG_DIR;
|
||||
#else
|
||||
eden_path = GetCurrentDir() / PORTABLE_DIR;
|
||||
if (!Exists(eden_path) || !IsDir(eden_path)) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,9 @@ static MemoryInfo Detect() {
|
|||
sysctlbyname("vm.swapusage", &vmusage, &sizeof_vmusage, nullptr, 0);
|
||||
mem_info.TotalPhysicalMemory = ramsize;
|
||||
mem_info.TotalSwapMemory = vmusage.xsu_total;
|
||||
#elif defined(__FreeBSD__) && !defined(__OPENORBIS__)
|
||||
#elif defined(__OPENORBIS__)
|
||||
mem_info.TotalPhysicalMemory = mem_info.TotalSwapMemory = 0;
|
||||
#elif defined(__FreeBSD__)
|
||||
u_long physmem, swap_total;
|
||||
std::size_t sizeof_u_long = sizeof(u_long);
|
||||
// sysctlbyname(const char *, void *, size_t *, const void *, size_t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue