1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-13 08:55:29 +00:00

Merge pull request #317 from FunkinCrew/flxdebugger-enabled

flixel debugging on test builds
This commit is contained in:
Eric 2024-02-12 23:23:50 -05:00 committed by GitHub
commit 57ac960850
3 changed files with 13 additions and 20 deletions

View file

@ -31,7 +31,7 @@ jobs:
sudo apt-get install -y libx11-dev xorg-dev libgl-dev libxi-dev libxext-dev libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev sudo apt-get install -y libx11-dev xorg-dev libgl-dev libxi-dev libxext-dev libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev
- name: build game - name: build game
run: | run: |
haxelib run lime build html5 -release --times haxelib run lime build html5 -release --times -DGITHUB_BUILD
ls ls
- uses: ./.github/actions/upload-itch - uses: ./.github/actions/upload-itch
with: with:
@ -68,7 +68,7 @@ jobs:
key: ${{ runner.os }}-build-win-${{ github.ref_name }}-${{ hashFiles('**/hmm.json') }} key: ${{ runner.os }}-build-win-${{ github.ref_name }}-${{ hashFiles('**/hmm.json') }}
- name: build game - name: build game
run: | run: |
haxelib run lime build windows -release -DNO_REDIRECT_ASSETS_FOLDER haxelib run lime build windows -release -DNO_REDIRECT_ASSETS_FOLDER -DGITHUB_BUILD
dir dir
env: env:
HXCPP_COMPILE_CACHE: "${{ runner.temp }}\\hxcpp_cache" HXCPP_COMPILE_CACHE: "${{ runner.temp }}\\hxcpp_cache"
@ -110,7 +110,7 @@ jobs:
key: ${{ runner.os }}-build-mac-${{ github.ref_name }}-${{ hashFiles('**/hmm.json') }} key: ${{ runner.os }}-build-mac-${{ github.ref_name }}-${{ hashFiles('**/hmm.json') }}
- name: Build game - name: Build game
run: | run: |
haxelib run lime build macos -release --times haxelib run lime build macos -release --times -DGITHUB_BUILD
ls ls
env: env:
HXCPP_COMPILE_CACHE: "${{ runner.temp }}/hxcpp_cache" HXCPP_COMPILE_CACHE: "${{ runner.temp }}/hxcpp_cache"

View file

@ -91,7 +91,8 @@
NOT USING A DIRECT THING TO THE ASSET!!! NOT USING A DIRECT THING TO THE ASSET!!!
--> -->
<assets path="assets/fonts" embed="true" /> <assets path="assets/fonts" embed="true" />
<!-- If compiled via github actions, enable force debug -->
<set name="FORCE_DEBUG_VERSION" if="GITHUB_BUILD"/>
<!-- _______________________________ Libraries ______________________________ --> <!-- _______________________________ Libraries ______________________________ -->
<haxelib name="lime" /> <!-- Game engine backend --> <haxelib name="lime" /> <!-- Game engine backend -->
<haxelib name="openfl" /> <!-- Game engine backend --> <haxelib name="openfl" /> <!-- Game engine backend -->
@ -118,7 +119,7 @@
<!--Disable the Flixel core focus lost screen--> <!--Disable the Flixel core focus lost screen-->
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" /> <haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
<!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!--> <!--Disable the Flixel core debugger. Automatically gets set whenever you compile in release mode!-->
<haxedef name="FLX_NO_DEBUG" unless="debug" /> <haxedef name="FLX_NO_DEBUG" unless="debug || FORCE_DEBUG_VERSION" />
<!--Enable this for Nape release builds for a serious peformance improvement--> <!--Enable this for Nape release builds for a serious peformance improvement-->
<haxedef name="NAPE_RELEASE_BUILD" unless="debug" /> <haxedef name="NAPE_RELEASE_BUILD" unless="debug" />
@ -211,13 +212,6 @@
<haxedef name="openfl-enable-handle-error" /> <haxedef name="openfl-enable-handle-error" />
</section> </section>
<section>
<!-- TODO: Add a flag to Github Actions to turn this on or something. -->
<!-- Forces the version string to include the Git hash even on release builds (which are used for performance reasons). -->
<haxedef name="FORCE_DEBUG_VERSION" />
</section>
<!-- Run a script before and after building. --> <!-- Run a script before and after building. -->
<postbuild haxe="source/Prebuild.hx"/> --> <postbuild haxe="source/Prebuild.hx"/> -->
<postbuild haxe="source/Postbuild.hx"/> --> <postbuild haxe="source/Postbuild.hx"/> -->

View file

@ -144,13 +144,12 @@ class InitState extends FlxState
// Make errors and warnings less annoying. // Make errors and warnings less annoying.
// TODO: Disable this so we know to fix warnings. // TODO: Disable this so we know to fix warnings.
if (false) #if FORCE_DEBUG_VERSION
{ LogStyle.ERROR.openConsole = false;
LogStyle.ERROR.openConsole = false; LogStyle.ERROR.errorSound = null;
LogStyle.ERROR.errorSound = null; LogStyle.WARNING.openConsole = false;
LogStyle.WARNING.openConsole = false; LogStyle.WARNING.errorSound = null;
LogStyle.WARNING.errorSound = null; #end
}
#end #end
// //