add testdropfile to OS X Project
This commit is contained in:
1 parent
b352698d99
commit
d4e3221f1d
3 files changed
+129
-2
No files matched your search
@@ -44,6 +44,10 @@ main(int argc, char *argv[])
|
||||
int consumed;
|
||||
|
||||
consumed = SDLTest_CommonArg(state, i);
|
||||
// needed vodoo to allow app to launch via OS X Finder
|
||||
if (SDL_strncmp(argv[i], "-psn", 4)==0) {
|
||||
consumed = 1;
|
||||
}
|
||||
if (consumed == 0) {
|
||||
consumed = -1;
|
||||
}
|
||||
@@ -64,6 +68,8 @@ main(int argc, char *argv[])
|
||||
SDL_RenderPresent(renderer);
|
||||
}
|
||||
|
||||
SDL_EventState(SDL_DROPFILE, SDL_ENABLE);
|
||||
|
||||
/* Main render loop */
|
||||
done = 0;
|
||||
while (!done) {
|
||||
|
||||
Reference in new issue
Block a user