Skip to content
This repository was archived by the owner on Oct 18, 2025. It is now read-only.

Commit 614d9f3

Browse files
COMPILE ALL CLASSES (Optional)
1 parent 02ab7ad commit 614d9f3

File tree

9 files changed

+26
-24
lines changed

9 files changed

+26
-24
lines changed

Project.xml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414

1515
<!-- _____________________________ ALE Defines _______________________________ -->
1616

17-
<haxedef name="MODS_ALLOWED" if="cpp"/>
17+
<define name="MODS_ALLOWED" if="cpp"/>
1818

19-
<haxedef name="HSCRIPT_ALLOWED"/>
20-
<haxedef name="LUA_ALLOWED" if="cpp"/>
19+
<define name="HSCRIPT_ALLOWED"/>
20+
<define name="LUA_ALLOWED" if="cpp"/>
2121

22-
<haxedef name="DISCORD_ALLOWED" if="cpp"/>
22+
<define name="DISCORD_ALLOWED" if="cpp"/>
23+
24+
<define name="COMPILE_ALL_CLASSES"/>
2325

2426
<!-- ____________________________ Window Settings ___________________________ -->
2527

@@ -64,6 +66,8 @@
6466

6567
<haxelib name="funkin.vis" if="desktop"/>
6668

69+
<haxelib name="nape-haxe4"/>
70+
6771
<section if="cpp">
6872
<haxelib name="hxdiscord_rpc" if="desktop"/>
6973
<haxelib name="hxvlc" if="desktop"/>
@@ -89,18 +93,23 @@
8993
<haxedef name="NAPE_RELEASE_BUILD" unless="debug"/>
9094

9195
<haxedef name="message.reporting" value="pretty"/>
92-
93-
<haxeflag name="--macro" value="allowPackage('flash')"/>
94-
<haxeflag name="--macro" value="include('my.pack')"/>
9596

9697
<haxedef name="DISABLED_MACRO_SUPERLATIVE" if="android"/>
9798

9899
<haxedef name="hscriptPos"/>
99100

100101
<haxedef name="DISCORD_DISABLE_IO_THREAD"/>
101102

103+
<haxeflag name="-dce" value="no" if="COMPILE_ALL_CLASSES"/>
104+
105+
<!-- ______________________________ Android Configs _____________________________ -->
106+
102107
<config:android target-sdk-version="33"/>
103108
<config:android minimum-sdk-version="21"/>
109+
110+
<certificate path="certificate.crt" password="aleenginepass" alias="ale-engine" alias-password="aleenginepass" if="android"/>
111+
112+
<!-- ______________________________ Application Icon ______________________________ -->
104113

105114
<assets path='art/iconOG.png' rename='icon.png' if="linux"/>
106115

@@ -109,10 +118,10 @@
109118
<icon path="art/icon64.png" size='64'/>
110119
<icon path="art/iconOG.png"/>
111120

121+
<!-- ______________________________ ALSoft Config ______________________________ -->
122+
112123
<section if="desktop">
113124
<assets path="alsoft.txt" rename="plugins/alsoft.ini" type="text" if="windows"/>
114125
<assets path="alsoft.txt" rename="plugins/alsoft.conf" type="text" unless="windows"/>
115126
</section>
116-
117-
<certificate path="certificate.crt" password="aleenginepass" alias="ale-engine" alias-password="aleenginepass" if="android"/>
118127
</project>

setup/install-haxelibs.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ haxelib git grig.audio https://gitlab.com/haxe-grig/grig.audio.git cbf91e2180fd2
1111
haxelib git funkin.vis https://github.com/FunkinCrew/funkVis 1966f8fbbbc509ed90d4b520f3c49c084fc92fd6
1212
haxelib git ale-ui https://github.com/ALE-Engine-Crew/ALE-UI --skip-dependencies
1313

14+
haxelib install nape-haxe4 2.0.22
1415
haxelib install away3d 5.0.9
1516
haxelib install openfl 9.4.1
1617
haxelib install tink_core 1.26.0

source/import.hx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if !macro
21
import flixel.FlxG;
32
import flixel.sound.FlxSound;
43
import flixel.FlxState;
@@ -41,5 +40,4 @@ import sys.io.*;
4140
import utils.ALEJson as Json;
4241
import utils.CoolUtil;
4342

44-
using StringTools;
45-
#end
43+
using StringTools;

source/scripting/haxe/ALERuleScript.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package scripting.haxe;
22

3-
import scripting.haxe.HScriptImports;
4-
53
import rulescript.RuleScript;
64
import rulescript.parsers.HxParser;
75

86
import haxe.ds.StringMap;
97
import haxe.Exception;
108

9+
import scripting.haxe.HScriptImports;
10+
1111
class ALERuleScript extends RuleScript
1212
{
1313
public var failedParsing:Bool = false;

source/scripting/haxe/HScript.hx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package scripting.haxe;
22

3-
import rulescript.RuleScript;
4-
53
import core.enums.ScriptType;
64

75
import haxe.ds.StringMap;

source/scripting/haxe/HScriptImports.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package scripting.haxe;
22

3+
#if COMPILE_ALL_CLASSES
34
import flixel.addons.display.FlxRuntimeShader;
45
import flixel.addons.display.FlxGridOverlay;
56
import flixel.addons.display.FlxBackdrop;
@@ -23,12 +24,11 @@ import funkin.visuals.objects.Alphabet;
2324
import funkin.visuals.objects.TypedAlphabet;
2425
import funkin.visuals.objects.AttachedAlphabet;
2526

26-
#if desktop
2727
import funkin.visuals.objects.Visualizer;
2828
import funkin.visuals.objects.VideoSprite;
29-
#end
3029

3130
import funkin.visuals.editors.chart.ChartNote;
31+
#end
3232

3333
import funkin.states.OptionsState;
3434

source/scripting/lua/LuaPreset.hx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ class LuaPreset
2222
new LuaObject(lua);
2323
new LuaShader(lua);
2424

25-
#if desktop
2625
new LuaVideoSprite(lua);
27-
#end
2826

2927
new LuaControls(lua);
3028

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#if !macro
21
import scripting.lua.LuaPresetBase;
3-
import scripting.lua.LuaScript;
4-
#end
2+
import scripting.lua.LuaScript;

source/utils/Paths.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import openfl.display3D.textures.RectangleTexture;
1414

1515
import core.backend.Mods;
1616

17-
import flash.media.Sound;
17+
import openfl.media.Sound;
1818

1919
class Paths
2020
{

0 commit comments

Comments
 (0)