Add MemoryUtil for Apple external.

This commit is contained in:
MAJigsaw77
2025-09-08 13:02:48 -04:00
committed by Eric
parent f3ff132e90
commit 7d714ecfeb
7 changed files with 48 additions and 4 deletions
+3 -1
View File
@@ -47,7 +47,7 @@ class MemoryUtil
public static function supportsTaskMem():Bool
{
#if ((windows && cpp) || linux || android)
#if ((cpp && (windows || ios || macos)) || linux || android)
return true;
#else
return false;
@@ -58,6 +58,8 @@ class MemoryUtil
{
#if (windows && cpp)
return funkin.external.windows.WinAPI.getProcessMemoryWorkingSetSize();
#elseif ((ios || macos) && cpp)
return funkin.external.apple.MemoryUtil.getCurrentProcessRss();
#elseif (linux || android)
try
{