Skip to content

Commit d28ff7a

Browse files
committed
dropping multiple type usage in schema, for fig support
1 parent ac61f8a commit d28ff7a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Qor/Window.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ Window :: Window(
6363
bool fullscreen = !(args.has("-w") || args.has("--windowed"));
6464
try{
6565
fullscreen = !video_cfg->at<bool>("windowed");
66-
}catch(...){}
66+
}catch(...){
67+
try{
68+
fullscreen = video_cfg->at<string>("windowed")=="false";
69+
}catch(...){}
70+
}
6771

6872
bool borderless = args.has("-b") || args.has("--borderless");
6973
try{

bin/settings.schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"windowed": {
88
".name": "Window",
99
".desc": "Play in windowed or fullscreen mode",
10-
".values": [ false, true, "borderless" ],
10+
".values": [ "false", "true", "borderless" ],
1111
".options": [
1212
"Fullscreen",
1313
"Windowed",

0 commit comments

Comments
 (0)