Skip to content
Snippets Groups Projects
Commit 47a443bf authored by deuce's avatar deuce
Browse files

Call SDL_RegisterAll() in initialization to set the appname in taskmanager.

parent a5327b4c
Branches
Tags
No related merge requests found
......@@ -15,6 +15,8 @@
#define DIR_SEPERATOR TEXT("/")
#include <direct.h>
#include "SDL_main.h" /* SDL_RegisterApp() which sets program name... */
/* Parse a command line buffer into arguments */
static int ParseCommandLine(char *cmdline, char **argv)
{
......@@ -94,6 +96,7 @@ static int console_main(int argc, char *argv[], char **env)
strncpy(bufp, appname, n);
bufp[n] = '\0';
appname = bufp;
SDL_RegisterApp(appname, 0, NULL);
/* Run the application main() code */
n=CIOLIB_main(argc, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment