Gut the osx launcher of everything except for the necessary platform shims (Ensure mono is installed, set DYLD_LIBRARY_PATH, Hide dock/menubar if running in fullscreen).

TODO: Parse the yaml to disable menubar only if running fullscreen, register openra:// urls.
This commit is contained in:
Paul Chote
2011-01-19 20:19:15 +13:00
committed by Paul Chote
parent 8cda9d6d8b
commit cae65ddd05
23 changed files with 70 additions and 2315 deletions

View File

@@ -44,7 +44,12 @@ int main(int argc, char *argv[])
sprintf(buf,"%s:%s",argv[2], old);
setenv("DYLD_LIBRARY_PATH", buf, 1);
}
// Hide the menubar if we are running fullscreen
// TODO: HACK: Parse the settings.yaml / commandline args for fullscreen options
if (YES)
[NSMenu setMenuBarVisible:NO];
/* Exec mono */
execve(args[0], args, environ);
}