Skip to content

Commit

Permalink
Iphone NDLL support (woah) (#239)
Browse files Browse the repository at this point in the history
* 😭

* Update project.xml

* Update NdllUtil.hx
  • Loading branch information
mcagabe19 authored Feb 7, 2024
1 parent c9c60f9 commit 45f9383
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<haxedef name="USE_ADAPTED_ASSETS" unless="web" />

<!-- Comment this out to disable support for custom ndlls. !-->
<haxedef name="NDLLS_SUPPORTED" unless="web" />
<haxedef name="NDLLS_SUPPORTED" unless="web || iphonesim" />

<!-- Comment this out to disable support for custom extended classes (data/classes). !-->
<define name="SOFTCODED_CLASSES" />
Expand Down
11 changes: 6 additions & 5 deletions source/funkin/backend/utils/NdllUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ import lime.app.Application;
*/
class NdllUtil {
#if NDLLS_SUPPORTED
#if windows public static final os:String = "windows"; #end
#if linux public static final os:String = "linux"; #end
#if macos public static final os:String = "mac"; #end
#if android public static final os:String = "android"; #end
#if windows public static final os:String = "windows"; #end
#if linux public static final os:String = "linux"; #end
#if macos public static final os:String = "mac"; #end
#if android public static final os:String = "android"; #end
#if ios public static final os:String = "ios"; #end
#end

/**
Expand Down Expand Up @@ -74,4 +75,4 @@ class NdllUtil {
}

@:dox(hide) @:noCompletion static function noop() {}
}
}

0 comments on commit 45f9383

Please sign in to comment.