Skip to content

Commit 0d9bf82

Browse files
committed
Fix Windows Compiling
1 parent 54eea79 commit 0d9bf82

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

source/funkin/backend/system/macros/Macros.hx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,14 @@ class Macros {
115115
default:
116116
}
117117

118-
fields.push({name: 'allowCompressedTextures', access: [APublic, AStatic], pos: pos, kind: FProp("get", "set", macro :Null<Bool>), meta: [{pos: pos, name: ":isVar"}]});
118+
fields.push({name: 'allowCompressedTextures', access: [APublic, AStatic], pos: pos, kind: FProp("get", "set", macro :Bool)});
119+
fields.push({name: '__allowCompressedTextures', access: [APrivate, AStatic], pos: pos, kind: FVar(macro :Null<Bool>)});
119120

120121
fields.push({name: "get_allowCompressedTextures", access: [APublic, AStatic, AInline], pos: pos, kind: FFun({ret: macro :Bool, args: [], expr: macro {
121-
return allowCompressedTextures != null ? allowCompressedTextures : !funkin.backend.system.Main.forceGPUOnlyBitmapsOff && funkin.options.Options.gpuOnlyBitmaps;
122+
return __allowCompressedTextures != null ? __allowCompressedTextures : !funkin.backend.system.Main.forceGPUOnlyBitmapsOff && funkin.options.Options.gpuOnlyBitmaps;
122123
}})});
123124
fields.push({name: "set_allowCompressedTextures", access: [APublic, AStatic, AInline], pos: pos, kind: FFun({ret: macro :Bool, args: [{name: "value", type: macro :Bool}], expr: macro {
124-
allowCompressedTextures = value;
125+
__allowCompressedTextures = value;
125126
return get_allowCompressedTextures();
126127
}})});
127128

0 commit comments

Comments
 (0)