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

Commit 6342d4d

Browse files
committed
Improved haxelib implementation for CompileTime in setup file and added display of build date and hash in Main.hx as well as improved import handling in import.hx and Classes.hx.
1 parent 79e3c54 commit 6342d4d

File tree

7 files changed

+15
-4
lines changed

7 files changed

+15
-4
lines changed

Project.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
<!--Desktop-specific-->
5050
<window if="desktop" orientation="landscape" fullscreen="false" resizable="true" vsync="false"/>
51-
51+
5252
<!--Mobile-specific-->
5353
<window if="mobile" orientation="landscape" fullscreen="true" width="0" height="0" resizable="false"/>
5454

@@ -125,6 +125,7 @@
125125

126126
<haxelib name="hxdiscord_rpc" if="DISCORD_ALLOWED"/>
127127
<haxelib name="hxWindowColorMode" if="desktop"/>
128+
<haxelib name="CompileTime" />
128129
<haxelib name="flxanimate"/>
129130
<haxelib name="tink_await"/>
130131

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ HyperCode Engine comes with several new features and improvements over Psych Eng
8080
- Faster garbage collection
8181
- A modern C++11 codebase
8282
- Many new extensions
83-
- Experimental 3D support
83+
- 3D support
8484

8585
### **Is HyperCode Engine a fork of Psych Engine?**
8686

setup/unix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ haxelib install flixel 5.6.1
1414
haxelib install flixel-addons 3.2.2
1515
haxelib install flixel-tools 1.5.1
1616
haxelib install hxWindowColorMode
17+
haxelib install CompileTime
1718
haxelib install hscript-iris 1.1.3
1819
haxelib install hscript
1920
haxelib install hxp

setup/windows.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ haxelib install flixel 5.6.1
1313
haxelib install flixel-addons 3.2.2
1414
haxelib install flixel-tools 1.5.1
1515
haxelib install hxWindowColorMode
16+
haxelib install CompileTime
1617
haxelib install hscript-iris 1.1.3
1718
haxelib install hscript
1819
haxelib install hxp

source/Main.hx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ class Main extends Sprite
279279
errMsg += "==== CRASH REPORT ====\n";
280280
errMsg += "Engine Version: " + EngineConfig.VERSION + "\n";
281281
errMsg += "Platform: " + #if windows "Windows" #elseif linux "Linux" #elseif mac "Mac" #elseif android "Android" #elseif ios "iOS" #else "Unknown" #end + "\n";
282-
// errMsg += "Build Date: " + CompileTime.getBuildDate() + "\n";
283-
// errMsg += "Build Hash: " + CompileTime.getGitHash() + "\n\n";
282+
errMsg += "Build Date: " + CompileTime.buildDate() + "\n";
283+
errMsg += "Build Hash: " + CompileTime.buildGitCommitSha() + "\n\n";
284284

285285
// Exception stack trace
286286
errMsg += "==== STACK TRACE ====\n";
@@ -298,6 +298,10 @@ class Main extends Sprite
298298
errMsg += "Method: " + classname + "." + method + "\n";
299299
case LocalFunction(n):
300300
errMsg += "Local Function: " + n + "\n";
301+
case Module(m):
302+
errMsg += "Module: " + m + "\n";
303+
default:
304+
errMsg += "Unknown: " + stackItem + "\n";
301305
}
302306
}
303307

source/hscript/Classes.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class Classes {
9494
#end
9595

9696
"Discord" => DiscordClient,
97+
"CompileTime" => CompileTime,
9798

9899
"FlxTween" => flixel.tweens.FlxTween,
99100
"FlxEase" => flixel.tweens.FlxEase,

source/import.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ import flixel.group.FlxSpriteGroup;
6767
import flixel.group.FlxGroup.FlxTypedGroup;
6868
import flixel.addons.transition.FlxTransitionableState;
6969

70+
#if windows
7071
import hxwindowmode.WindowColorMode;
72+
#end
73+
import CompileTime;
7174

7275
using StringTools;
7376
#end

0 commit comments

Comments
 (0)