Skip to content

Commit 1eadf45

Browse files
committed
Fixed: Redub now does not hang up hbuild and start_here is building without modification
1 parent 983e22f commit 1eadf45

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

api/binding/hip/api/graphics/g2d/g2d_binding.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ else version(ScriptAPI)
7171
///Changes textBatch state to use this color
7272
void function(HipColor) setTextColor;
7373
///Draws a text using the last font set
74-
void function(string text, int x, int y, float scale, HipColor color = HipColor.white, HipTextAlign align_ = HipTextAlign.topCenter, Size bounds = Size.init, bool wordWrap = false) drawText;
74+
void function(string text, int x, int y, float scale = 1.0f, HipColor color = HipColor.white, HipTextAlign align_ = HipTextAlign.topCenter, Size bounds = Size.init, bool wordWrap = false) drawText;
7575
///Draw text using those vertices. Low level API
7676
void function(void[] vertices, IHipFont font) drawTextVertices;
7777

@@ -174,7 +174,7 @@ version(none)
174174
///Sets the font for the next drawText commands
175175
package void function (IHipFont font) setFont;
176176
///Draws a text using the last font set
177-
void function(string text, int x, int y, float scale, HipColor color = HipColor.white, HipTextAlign align_ = HipTextAlign.topCenter, Size bounds = Size.init, bool wordWrap = false) drawText;
177+
void function(string text, int x, int y, float scale = 1.0f, HipColor color = HipColor.white, HipTextAlign align_ = HipTextAlign.topCenter, Size bounds = Size.init, bool wordWrap = false) drawText;
178178
///Draw text using those vertices. Low level API
179179
void function(void[] vertices, IHipFont font) drawTextVertices;
180180

tools/hbuild/dub.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"copyright": "Copyright © 2023, Hipreme",
66
"dependencies": {
77
"arsd-official:terminal": "~>11.5.0",
8-
"redub": "~>1.24.10",
8+
"redub": "~>1.24.11",
99
"handy-httpd": "~>8.4.3",
1010
"archive": "~>0.7.1",
1111
"my-ip": "~>0.2.0",

tools/hbuild/source/commons.d

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,8 @@ struct DubArguments
10031003
}
10041004
if(c == "ldc2")
10051005
c = buildNormalizedPath(configs["ldcPath"].str, "bin", "ldc2".executableExtension);
1006+
else if(c == "dmd")
1007+
c = buildNormalizedPath(configs["dmdPath"].str, "dmd".executableExtension);
10061008
return c;
10071009
}
10081010

tools/hbuild/source/features/dmd.d

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ bool installDmd(
1414
import std.path;
1515

1616
string sys;
17-
string bin = "bin";
17+
version(X86_64)
18+
string bin = "bin64";
19+
else
20+
string bin = "bin";
1821
switch(os) with(OS)
1922
{
2023
case osx: sys = "osx"; break;
2124
case win32, win64: sys = "windows"; break;
22-
case linux: sys = "linux"; bin = "bin64"; break;
25+
case linux: sys = "linux"; break;
2326
default: assert(false, "System not supported.");
2427
}
2528
string binPath = buildNormalizedPath(downloads[0].getOutputPath, "dmd2", sys, bin);

0 commit comments

Comments
 (0)