Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit a645ace

Browse files
committed
upload changes
1 parent e88c443 commit a645ace

8 files changed

Lines changed: 15 additions & 42 deletions

File tree

.github/workflows/linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616

1717
- name: Install Haxe libraries
1818
run: |
19-
haxelib --always install hxcpp
20-
haxelib --always install fuzzaldrin
19+
haxelib --always install hxcpp
2120
2221
- name: Compile project
2322
run: haxe build.hxml

.github/workflows/macos.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616

1717
- name: Install Haxe libraries
1818
run: |
19-
haxelib --always install hxcpp
20-
haxelib --always install fuzzaldrin
19+
haxelib --always install hxcpp
2120
2221
- name: Compile project
2322
run: haxe build.hxml

.github/workflows/windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
haxe-version: 4.3.5
1717
- name: Installing/Updating libraries
1818
run: |
19-
haxelib --always install hxcpp
20-
haxelib --always install fuzzaldrin
19+
haxelib --always install hxcpp
2120
shell: cmd
2221
- name: Building HxCompileU
2322
run: |

build.hxml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55
--resource templates/makefileSimpleAppWUT@cafeMakefileWUT
66
--resource templates/makefileSimpleAppWUPS@cafeMakefileWUPS
77
-D message.reporting=pretty
8-
-lib fuzzaldrin

src/JsonFile.hx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,22 +190,20 @@ class JsonFile {
190190
}
191191

192192
var defines:String = "";
193-
194-
defines += "-D HXCOMPILEU_JSON_VERSION=\"" + jsonFile.programVersion + "\" ";
195-
defines += "-D HXCOMPILEU_JSON_WIIU_PROJECTNAME=\"" + jsonFile.wiiuConfig.projectName + "\" ";
193+
194+
defines += "-D HXCOMPILEU_VERSION=\\\"" + Main.version + "\\\" ";
195+
defines += "-D HXCOMPILEU_JSON_WIIU_PROJECTNAME=\\\"" + jsonFile.wiiuConfig.projectName + "\\\" ";
196196

197197
var dateNow:Date = Date.now();
198-
var dateString = dateNow.getHours() + ":"
199-
+ StringTools.lpad(dateNow.getMinutes() + "", "0", 2) + ":"
200-
+ StringTools.lpad(dateNow.getSeconds() + "", "0", 2) + "--"
201-
+ StringTools.lpad(dateNow.getDate() + "", "0", 2) + "-"
202-
+ StringTools.lpad((dateNow.getMonth() + 1) + "", "0", 2) + "-"
203-
+ dateNow.getFullYear();
204-
205-
defines += "-D HXCOMPILEU_HAXE_APPROXIMATED_COMPILATION_DATE=\"" + dateString + "\" ";
198+
var dateString = dateNow.getHours() + ":" + StringTools.lpad(dateNow.getMinutes() + "", "0", 2) + ":"
199+
+ StringTools.lpad(dateNow.getSeconds() + "", "0", 2) + "--" + StringTools.lpad(dateNow.getDate() + "", "0", 2) + "-"
200+
+ StringTools.lpad((dateNow.getMonth() + 1) + "", "0", 2) + "-" + dateNow.getFullYear();
201+
202+
defines += "-D HXCOMPILEU_HAXE_APPROXIMATED_COMPILATION_DATE=\\\"" + dateString + "\\\" ";
206203
return defines;
207204
}
208205

206+
209207
//////////////////////////////////////////////////////////////
210208

211209
/**

src/Main.hx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import src.SlushiUtils;
1010
import src.compilers.MainCompiler;
1111
import src.utils.DevKitProUtils;
1212
import src.utils.UDPListener;
13-
import fuzzaldrin.Fuzzaldrin;
1413

1514
/**
1615
* The Main class is the entry point of the HxCompileU compiler.
@@ -20,7 +19,7 @@ import fuzzaldrin.Fuzzaldrin;
2019
*/
2120
class Main {
2221
public static var hxcompileuString = "\x1b[38;5;214mHx\033[0mCompile\x1b[38;5;74mU\033[0m";
23-
public static final version:String = "1.5.0";
22+
public static final version:String = "1.5.1";
2423
static var stdin = Sys.stdin();
2524
static var stdout = Sys.stdout();
2625
static var args = Sys.args();
@@ -60,16 +59,7 @@ class Main {
6059
SlushiUtils.printMsg("Usage: haxeCompileU [command]\nCommands:\n\t--prepare: Creates hxCompileUConfig.json in the current directory.\n\t--import \033[3mHAXE_LIB\033[0m: Imports a JSON file from a Haxe lib to the current directory \n\t--compile: Compiles the project. \n\t\tUse \"--compile --onlyHaxe\" for compiling only the Haxe part. \n\t\tUse \"--compile --onlyCafe\" for compiling only the Wii U part.\n\t\tAdd \"--debug\" or \"--onlyHaxe --debug\" to enable Haxe debug mode\n\t--searchProblem \033[3mLINE_ADDRESS\033[0m: search for a line of code in the [.elf] file from a line address of some log using DevKitPro's powerpc-eabi-addr2line program\n\t--udpServer: Starts the UDP server on port 4405 to view logs from the Wii U\n\t--send: Sends the .rpx or .wps file to the Wii U\n\t--version: Shows the version of the compiler\n\t--help: Shows this message",
6160
NONE);
6261
default:
63-
#if fuzzaldrin
64-
var candidates:Array<String> = ["--prepare", "--import", "--compile", "--searchProblem", "--udpServer", "--send", "--version", "--help"];
65-
var results = Fuzzaldrin.filter(candidates, args[0]);
66-
if (results.length > 0)
67-
stdout.writeString("Command " + args[0] + " not found. Did you mean: \033[3m\"" + results[0] + "\"\033[0m?\n");
68-
else
69-
SlushiUtils.printMsg("Invalid argument: [" + args.join(" ") + "], use \033[3m--help\033[0m for more information", NONE);
70-
#else
71-
SlushiUtils.printMsg("Invalid argument: [" + args.join(" ") + "], use \033[3m--help\033[0m for more information", NONE);
72-
#end
62+
SlushiUtils.printMsg("Invalid argument: [" + args.join(" ") + "], use \033[3m--help\033[0m argument for more information", NONE);
7363
return;
7464
}
7565
} catch (e) {

templates/InitMacroFunctionOneFile

Lines changed: 0 additions & 11 deletions
This file was deleted.

templates/makefileSimpleAppWUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ CFLAGS := -g -Wall -O2 -ffunction-sections \
3737

3838
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__ [DEFINES]
3939

40-
CXXFLAGS := $(CFLAGS) -std=c++17 -Wno-unused-function -Wno-unused-variable -Wno-sequence-point
40+
CXXFLAGS := $(CFLAGS) -std=c++17 -Wno-unused-function -Wno-unused-variable -Wno-sequence-point -Wunused-but-set-variable -Wreturn-type
4141

4242
ASFLAGS := -g $(MACHDEP)
4343
LDFLAGS := -g $(MACHDEP) $(RPXSPECS) -Wl,-Map,$(notdir $*.map)

0 commit comments

Comments
 (0)