Skip to content
Snippets Groups Projects
Commit 06e4a315 authored by SteelT's avatar SteelT
Browse files

Add support for adding files via drag and drop onto exe

Depends on support for file manager
parent 8b021ec1
No related branches found
No related tags found
No related merge requests found
......@@ -1038,6 +1038,7 @@ void D_SRB2Main(void)
INT32 pstartmap = 1;
boolean autostart = false;
INT32 i;
/* break the version string into version numbers, for netplay */
D_ConvertVersionNumbers();
......@@ -1190,6 +1191,19 @@ void D_SRB2Main(void)
D_AddFile(startuppwads, s);
}
}
// Add any files that was dragged onto the executable
// Start at 1 as myargv[0] is the executable
if (myargc > 1)
{
for (i = 1; i < myargc; i++)
{
if (myargv[i][0] == '-') // Skip anything that starts with hyphen, if we do get any somehow.
continue;
D_AddFile(startuppwads, myargv[i]);
}
}
}
// get map from parms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment