Compile with dmd 2.059
This commit is contained in:
parent
696eab3127
commit
356337f8e0
|
@ -7,7 +7,7 @@ updated to work with the latest version of D on both 32- and 64-bit Linux.
|
|||
|
||||
### Building
|
||||
|
||||
twoapple-reboot works with dmd 2.058; I haven't tried it with ldc/gdc.
|
||||
twoapple-reboot works with dmd 2.058/2.059; I haven't tried it with ldc/gdc.
|
||||
|
||||
It depends on [gtkd](http://www.dsource.org/projects/gtkd) and [Derelict2](http://www.dsource.org/projects/derelict)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
COMPILE_OPTS = -op -Jdata -I$(GTKD)/src \
|
||||
COMPILE_OPTS = -d -op -Jdata -I$(GTKD)/src \
|
||||
-I$(GTKD)/srcgl -I$(DERELICT)/import \
|
||||
-inline -release -O -noboundscheck \
|
||||
-version=OpNestedSwitch
|
||||
|
|
|
@ -232,21 +232,21 @@ class TwoappleFile
|
|||
|
||||
this(string fname)
|
||||
{
|
||||
assert(isabs(fname) != 0);
|
||||
assert(isAbsolute(fname) != 0);
|
||||
fileName = fname;
|
||||
fileNameZ = std.string.toStringz(fname);
|
||||
}
|
||||
|
||||
string folder()
|
||||
{
|
||||
return getDirName(fileName);
|
||||
return dirName(fileName);
|
||||
}
|
||||
|
||||
string baseName()
|
||||
{
|
||||
string base = getName(fileName);
|
||||
if (base is null) return getBaseName(fileName);
|
||||
else return getBaseName(base);
|
||||
string base = stripExtension(fileName);
|
||||
if (base is null) return std.path.baseName(fileName);
|
||||
else return std.path.baseName(base);
|
||||
}
|
||||
|
||||
bool canRead()
|
||||
|
|
Loading…
Reference in New Issue