Some fixes
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
package external;
|
||||
|
||||
#if mac
|
||||
#if (mac && cpp)
|
||||
@:build(external.LinkerMacro.xml('external_code.xml'))
|
||||
@:include('Mac.h')
|
||||
@:native('ExternalMac')
|
||||
|
||||
@@ -88,14 +88,18 @@ final class MemoryUtil {
|
||||
*/
|
||||
public static function getTotalMem():Float
|
||||
{
|
||||
#if windows
|
||||
return funkin.backend.utils.native.Windows.getTotalRam();
|
||||
#elseif mac
|
||||
return funkin.backend.utils.native.Mac.getTotalRam();
|
||||
#elseif linux
|
||||
return funkin.backend.utils.native.Linux.getTotalRam();
|
||||
#if cpp
|
||||
#if windows
|
||||
return funkin.backend.utils.native.Windows.getTotalRam();
|
||||
#elseif mac
|
||||
return funkin.backend.utils.native.Mac.getTotalRam();
|
||||
#elseif linux
|
||||
return funkin.backend.utils.native.Linux.getTotalRam();
|
||||
#else
|
||||
return 0;
|
||||
#end
|
||||
#else
|
||||
return 0;
|
||||
return 0;
|
||||
#end
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ class NativeAPI {
|
||||
* Set cursor icon.
|
||||
**/
|
||||
public static function setCursorIcon(icon:CodeCursor) {
|
||||
#if mac
|
||||
#if (mac && cpp)
|
||||
Mac.setMouseCursorIcon(cast icon);
|
||||
#else
|
||||
Mouse.cursor = icon.toOpenFL();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package funkin.backend.utils.native;
|
||||
|
||||
#if mac
|
||||
#if (mac && cpp)
|
||||
import funkin.backend.utils.NativeAPI.CodeCursor;
|
||||
import openfl.ui.Mouse;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user