[*] 32bit builds can run on 64bit systems
This commit is contained in:
parent
627cdd069f
commit
af8737e9d2
@ -41,9 +41,9 @@ namespace Aurora::HWInfo
|
||||
*/
|
||||
AUKN_SYM AuOptional<RamStat> GetMemStatStartup();
|
||||
|
||||
AUKN_SYM AuOptional<AuUInt> GetSwapSize();
|
||||
AUKN_SYM AuOptional<AuUInt64> GetSwapSize();
|
||||
|
||||
AUKN_SYM AuOptional<AuUInt> GetPhysicalSize();
|
||||
AUKN_SYM AuOptional<AuUInt64> GetPhysicalSize();
|
||||
|
||||
AUKN_SYM AuUInt32 GetPageSize();
|
||||
}
|
@ -271,9 +271,9 @@ namespace Aurora::HWInfo
|
||||
return gPageSize;
|
||||
}
|
||||
|
||||
AUKN_SYM AuOptional<AuUInt> GetSwapSize()
|
||||
AUKN_SYM AuOptional<AuUInt64> GetSwapSize()
|
||||
{
|
||||
static AuOptional<AuUInt> gCached;
|
||||
static AuOptional<AuUInt64> gCached;
|
||||
if (gCached)
|
||||
{
|
||||
return gCached;
|
||||
@ -283,16 +283,16 @@ namespace Aurora::HWInfo
|
||||
{
|
||||
if (auto optPhys = GetMemStatPhysical())
|
||||
{
|
||||
return gCached = (opt.value().qwAvailable - optPhys.value().qwAvailable);
|
||||
return gCached = AuUInt64(opt.value().qwAvailable - optPhys.value().qwAvailable);
|
||||
}
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
AUKN_SYM AuOptional<AuUInt> GetPhysicalSize()
|
||||
AUKN_SYM AuOptional<AuUInt64> GetPhysicalSize()
|
||||
{
|
||||
static AuOptional<AuUInt> gCached;
|
||||
static AuOptional<AuUInt64> gCached;
|
||||
if (gCached)
|
||||
{
|
||||
return gCached;
|
||||
|
Loading…
Reference in New Issue
Block a user