Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
0ce43244
Commit
0ce43244
authored
Jan 14, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we shut down the app if SDL_main() returns instead of exiting.
parent
9fa1d487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
SDL_android_main.cpp
src/main/android/SDL_android_main.cpp
+7
-1
No files found.
src/main/android/SDL_android_main.cpp
View file @
0ce43244
...
...
@@ -23,8 +23,14 @@ extern "C" void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass c
SDL_Android_Init
(
env
,
cls
);
/* Run the application code! */
int
status
;
char
*
argv
[
2
];
argv
[
0
]
=
strdup
(
"SDL_app"
);
argv
[
1
]
=
NULL
;
SDL_main
(
1
,
argv
);
status
=
SDL_main
(
1
,
argv
);
/* We exit here for consistency with other platforms. */
exit
(
status
);
}
/* vi: set ts=4 sw=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment