Skip to content

Commit d305177

Browse files
committed
fix: GM runner arg being parsed and opened as file
Fixes: "Error: This file cannot be opened in this program" when running from IDE
1 parent a70755a commit d305177

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/control_create/control_create.gml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ function control_create() {
682682
var arg = parameter_string(i);
683683

684684
if (arg == "-player") continue;
685+
if (arg == "-game" || string_count("\\GMS2TEMP\\", arg) > 0) continue; // GMS runner
685686

686687
// URL protocol
687688
if (arg == "--protocol-launcher") {
@@ -691,6 +692,7 @@ function control_create() {
691692

692693
// File drop, etc.
693694
} else if (string_replace(arg, " ", "") != "") {
695+
show_debug_message(arg)
694696
filename = arg;
695697
song_backupname = filename_name(filename_change_ext(filename, ".nbs"));
696698
}

0 commit comments

Comments
 (0)