mirror of
https://github.com/Kapendev/parin.git
synced 2025-04-25 20:49:57 +03:00
Better gdc support.
This commit is contained in:
parent
d0dcb62c37
commit
9befe59d4f
3 changed files with 5 additions and 9 deletions
|
@ -74,7 +74,6 @@ enum dubFileContent = `{
|
|||
"name": "linux",
|
||||
"targetType": "executable",
|
||||
"platforms": ["linux"],
|
||||
"dflags": ["-i"],
|
||||
"lflags": ["-L.", "-rpath=$$ORIGIN"],
|
||||
"libs": [
|
||||
"raylib",
|
||||
|
@ -90,7 +89,6 @@ enum dubFileContent = `{
|
|||
"name": "windows",
|
||||
"targetType": "executable",
|
||||
"platforms": ["windows"],
|
||||
"dflags": ["-i"],
|
||||
"libs": [
|
||||
"raylib"
|
||||
]
|
||||
|
@ -99,7 +97,6 @@ enum dubFileContent = `{
|
|||
"name": "osx",
|
||||
"targetType": "executable",
|
||||
"platforms": ["osx"],
|
||||
"dflags": ["-i"],
|
||||
"lflags": ["-L.", "-rpath", "@executable_path/"],
|
||||
"libs": [
|
||||
"raylib"
|
||||
|
|
|
@ -266,9 +266,7 @@ struct Texture {
|
|||
/// Frees the loaded texture.
|
||||
@trusted
|
||||
void free() {
|
||||
if (isEmpty) {
|
||||
return;
|
||||
}
|
||||
if (isEmpty) return;
|
||||
rl.UnloadTexture(data);
|
||||
this = Texture();
|
||||
}
|
||||
|
@ -371,9 +369,7 @@ struct Font {
|
|||
/// Frees the loaded font.
|
||||
@trusted
|
||||
void free() {
|
||||
if (isEmpty) {
|
||||
return;
|
||||
}
|
||||
if (isEmpty) return;
|
||||
rl.UnloadFont(data);
|
||||
this = Font();
|
||||
}
|
||||
|
|
|
@ -101,6 +101,7 @@ struct StoryValue {
|
|||
}
|
||||
}
|
||||
|
||||
@trusted
|
||||
IStr toStr() {
|
||||
if (data.isType!StoryNumber) {
|
||||
return format("{}", data.get!StoryNumber());
|
||||
|
@ -240,6 +241,7 @@ struct Story {
|
|||
setNextLabelIndex(labelIndex + 1);
|
||||
}
|
||||
|
||||
@trusted
|
||||
Fault prepare() {
|
||||
previousMenuResult = 0;
|
||||
resetLineIndex();
|
||||
|
@ -294,6 +296,7 @@ struct Story {
|
|||
return prepare();
|
||||
}
|
||||
|
||||
@trusted
|
||||
Fault execute(IStr expression) {
|
||||
static FixedList!(StoryValue, defaultStoryFixedListCapacity) stack;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue