Skip to content

Commit 326e1cd

Browse files
committed
fixing some important bugs introduced in Haxe 4.3
1 parent b67bbab commit 326e1cd

File tree

3 files changed

+14
-49
lines changed

3 files changed

+14
-49
lines changed

Project.xml

Lines changed: 10 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- _________________________ Application Settings _________________________ -->
44

55
<!-- NOTE: The window name is changed manually in TitleState, so go there if you want to edit it!-->
6-
<app title="Friday Night Funkin': Psych Engine Extra" file="PsychEngineExtra" packageName="com.ninjamuffin99.funkin" package="com.ninjamuffin99.funkin" main="Main" version="0.2.7.1" company="ninjamuffin99" />
6+
<app title="Friday Night Funkin': Psych Engine Extra" file="PsychEngineExtra" packageName="com.moxie.PsychEngineExtra" package="com.moxie.PsychEngineExtra" main="Main" version="0.2.7.1" company="Moxie" />
77

88
<!--Switch Export with Unique ApplicationID and Icon-->
99
<set name="APP_ID" value="0x0100f6c013bbc000" />
@@ -33,9 +33,6 @@
3333
<!--Mobile-specific-->
3434
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0"/>
3535

36-
<!--Switch-specific-->
37-
<window if="switch" orientation="landscape" fullscreen="true" width="0" height="0" resizable="true" />
38-
3936
<!-- _____________________________ Path Settings ____________________________ -->
4037

4138
<set name="BUILD_DIR" value="export/debug" if="debug" />
@@ -63,9 +60,6 @@
6360
<assets path="assets/secrets" rename="assets" exclude="*.mp3" unless="web"/>
6461
</section>
6562

66-
<!-- DONT ENABLE THIS -->
67-
<define name="CHECK_FOR_UPDATES" if="desktop officialBuild"/>
68-
6963
<!-- <define name="PRELOAD_ALL" /> -->
7064
<define name="PRELOAD_ALL" unless="web" />
7165
<define name="NO_PRELOAD_ALL" unless="PRELOAD_ALL"/>
@@ -113,15 +107,7 @@
113107
<section if="MODS_ALLOWED">
114108
<assets path='example_mods' rename='mods' embed='false'/>
115109
</section>
116-
<assets path='art/readme.txt' rename='do NOT readme.txt' />
117-
118-
<!-- assets path="CHANGELOG.md" rename='changelog.txt' -->
119110

120-
<!-- NOTE FOR FUTURE SELF SINCE FONTS ARE ALWAYS FUCKY
121-
TO FIX ONE OF THEM, I CONVERTED IT TO OTF. DUNNO IF YOU NEED TO
122-
THEN UHHH I USED THE NAME OF THE FONT WITH SETFORMAT() ON THE TEXT!!!
123-
NOT USING A DIRECT THING TO THE ASSET!!!
124-
-->
125111
<assets path="assets/fonts" embed='true'/>
126112
<!-- _______________________________ Libraries ______________________________ -->
127113

@@ -138,52 +124,29 @@
138124
<haxelib name="hxCodec" if="VIDEOS_ALLOWED"/>
139125
<haxelib name="discord_rpc" if="DISCORD_ALLOWED"/>
140126

141-
<haxelib name="faxe" if='switch'/>
142-
143-
<!--In case you want to use nape with flixel-->
144-
<!--<haxelib name="nape-haxe4" />-->
145-
146127
<!-- ______________________________ Haxedefines _____________________________ -->
147128

148-
<!--Enable the Flixel core recording system-->
149-
<!--<haxedef name="FLX_RECORD" />-->
150-
151-
<!--Disable the right and middle mouse buttons-->
152-
<!-- <haxedef name="FLX_NO_MOUSE_ADVANCED" /> -->
153-
154-
<!--Disable the native cursor API on Flash-->
155-
<!--<haxedef name="FLX_NO_NATIVE_CURSOR" />-->
156-
157-
<!--Optimise inputs, be careful you will get null errors if you don't use conditionals in your game-->
158-
<!-- <haxedef name="FLX_NO_MOUSE" if="mobile" /> -->
159-
<!-- <haxedef name="FLX_NO_KEYBOARD" if="mobile" /> -->
160129
<haxedef name="FLX_NO_TOUCH" if="desktop" />
161-
<!--<haxedef name="FLX_NO_GAMEPAD" />-->
162-
163-
<!--Disable the Flixel core sound tray-->
164-
<!--<haxedef name="FLX_NO_SOUND_TRAY" />-->
165-
166-
<!--Disable the Flixel sound management code-->
167-
<!--<haxedef name="FLX_NO_SOUND_SYSTEM" />-->
168130

169131
<!--Disable the Flixel core focus lost screen-->
170132
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
171133

172-
<!--Allow working memory greater than 1 Gig-->
173-
<!--<haxedef name="HXCPP_GC_BIG_BLOCKS"/>-->
174-
175134
<!-- Show debug traces for hxCodec -->
176135
<haxedef name="HXC_DEBUG_TRACE" if="debug" />
177136

178137
<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
179138
<haxedef name="FLX_NO_DEBUG" unless="debug" />
180139

181-
<!--Enable this for Nape release builds for a serious peformance improvement-->
182-
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" />
183-
184140
<!--Used for Izzy Engine's crash handler-->
185-
<haxedef name="HXCPP_CHECK_POINTER" if="CRASH_HANDLER" />
186-
<haxedef name="HXCPP_STACK_LINE" if="CRASH_HANDLER" />
141+
<section if="CRASH_HANDLER">
142+
<haxedef name="HXCPP_CHECK_POINTER" />
143+
<haxedef name="HXCPP_STACK_LINE" />
144+
<haxedef name="HXCPP_STACK_TRACE"/>
145+
<haxedef name="HXCPP_CATCH_SEGV" />
146+
</section>
147+
148+
<haxeflag name="--macro" value="allowPackage('flash')" />
149+
<haxeflag name="--macro" value="include('my.pack')" />
187150

188151
<!-- _________________________________ Custom _______________________________ -->
189152

source/Paths.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package;
22

3-
import flash.media.Sound;
3+
import openfl.media.Sound;
44
import flixel.FlxG;
55
import flixel.graphics.FlxGraphic;
66
import flixel.graphics.frames.FlxAtlasFrames;

source/import.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !macro
12
import AttachedSprite;
23
import Song;
3-
import animateatlas.AtlasFrameMaker;
4+
import animateatlas.AtlasFrameMaker;
5+
#end

0 commit comments

Comments
 (0)