Better gdc support.

This commit is contained in:
Kapendev 2025-02-12 03:54:40 +02:00
parent d0dcb62c37
commit 9befe59d4f
3 changed files with 5 additions and 9 deletions

View file

@ -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"

View file

@ -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();
}

View file

@ -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;