SDL: better menu to edit commandline parameters

This commit is contained in:
Sergii Pylypenko
2016-03-16 21:59:15 +02:00
parent bcfd019efe
commit 751a7a3cae
4 changed files with 51 additions and 33 deletions

View File

@@ -129,6 +129,12 @@ JAVA_EXPORT_NAME(DemoRenderer_nativeInit) ( JNIEnv* env, jobject thiz, jstring
}
}
for (i = 0; i < argc; i++)
{
while( strchr(argv[i], '\t') != NULL )
strchr(argv[i], '\t')[0] = ' ';
}
__android_log_print(ANDROID_LOG_INFO, "libSDL", "Calling SDL_main(\"%s\")", str);
(*env)->ReleaseStringUTFChars(env, cmdline, jstr);