mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-30 16:11:01 +00:00
Merge branch 'master' into next
This commit is contained in:
commit
a68440c4db
2 changed files with 16 additions and 9 deletions
|
@ -14,13 +14,18 @@ size_t I_GetFreeMem(size_t *total)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void I_Sleep(UINT32 ms){}
|
void I_Sleep(UINT32 ms)
|
||||||
|
{
|
||||||
|
(void)ms;
|
||||||
|
}
|
||||||
|
|
||||||
precise_t I_GetPreciseTime(void) {
|
precise_t I_GetPreciseTime(void)
|
||||||
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT64 I_GetPrecisePrecision(void) {
|
UINT64 I_GetPrecisePrecision(void)
|
||||||
|
{
|
||||||
return 1000000;
|
return 1000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,10 +187,12 @@ const char *I_ClipboardPaste(void)
|
||||||
|
|
||||||
size_t I_GetRandomBytes(char *destination, size_t amount)
|
size_t I_GetRandomBytes(char *destination, size_t amount)
|
||||||
{
|
{
|
||||||
|
(void)destination;
|
||||||
|
(void)amount;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void I_RegisterSysCommands(void) {}
|
void I_RegisterSysCommands(void){}
|
||||||
|
|
||||||
void I_GetCursorPosition(INT32 *x, INT32 *y)
|
void I_GetCursorPosition(INT32 *x, INT32 *y)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3035,11 +3035,11 @@ size_t I_GetFreeMem(size_t *total)
|
||||||
#ifdef FREEBSD
|
#ifdef FREEBSD
|
||||||
u_int v_free_count, v_page_size, v_page_count;
|
u_int v_free_count, v_page_size, v_page_count;
|
||||||
size_t size = sizeof(v_free_count);
|
size_t size = sizeof(v_free_count);
|
||||||
sysctlbyname("vm.stat.vm.v_free_count", &v_free_count, &size, NULL, 0);
|
sysctlbyname("vm.stats.vm.v_free_count", &v_free_count, &size, NULL, 0);
|
||||||
size_t size = sizeof(v_page_size);
|
size = sizeof(v_page_size);
|
||||||
sysctlbyname("vm.stat.vm.v_page_size", &v_page_size, &size, NULL, 0);
|
sysctlbyname("vm.stats.vm.v_page_size", &v_page_size, &size, NULL, 0);
|
||||||
size_t size = sizeof(v_page_count);
|
size = sizeof(v_page_count);
|
||||||
sysctlbyname("vm.stat.vm.v_page_count", &v_page_count, &size, NULL, 0);
|
sysctlbyname("vm.stats.vm.v_page_count", &v_page_count, &size, NULL, 0);
|
||||||
|
|
||||||
if (total)
|
if (total)
|
||||||
*total = v_page_count * v_page_size;
|
*total = v_page_count * v_page_size;
|
||||||
|
|
Loading…
Reference in a new issue