respect 80 character limit

This commit is contained in:
radius 2016-06-17 09:43:51 -05:00
parent eb0ea9d738
commit 929f26742f

View File

@ -541,12 +541,14 @@ bool test_permissions(const char *path)
char buf[PATH_MAX_LENGTH]; char buf[PATH_MAX_LENGTH];
bool ret; bool ret;
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "Testing permissions for %s\n",path); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "Testing permissions for %s\n",path);
fill_pathname_join(buf, path, ".retroarch", sizeof(buf)); fill_pathname_join(buf, path, ".retroarch", sizeof(buf));
ret = path_mkdir(buf); ret = path_mkdir(buf);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "Create %s in %s %s\n", buf, path, ret ? "true" : "false"); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "Create %s in %s %s\n", buf, path, ret ? "true" : "false");
if(ret) if(ret)
rmdir(buf); rmdir(buf);
@ -1202,12 +1204,14 @@ static void frontend_linux_get_env(int *argc,
frontend_android_get_version(&major, &minor, &rel); frontend_android_get_version(&major, &minor, &rel);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV] Android OS version (major : %d, minor : %d, rel : %d)\n", __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV] Android version (major : %d, minor : %d, rel : %d)\n",
major, minor, rel); major, minor, rel);
CALL_OBJ_METHOD(env, obj, android_app->activity->clazz, CALL_OBJ_METHOD(env, obj, android_app->activity->clazz,
android_app->getIntent); android_app->getIntent);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV] Checking arguments passed from intent ...\n"); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV] Checking arguments passed from intent ...\n");
/* Config file. */ /* Config file. */
CALL_OBJ_METHOD_PARAM(env, jstr, obj, android_app->getStringExtra, CALL_OBJ_METHOD_PARAM(env, jstr, obj, android_app->getStringExtra,
@ -1222,7 +1226,8 @@ static void frontend_linux_get_env(int *argc,
strlcpy(config_path, argv, sizeof(config_path)); strlcpy(config_path, argv, sizeof(config_path));
(*env)->ReleaseStringUTFChars(env, jstr, argv); (*env)->ReleaseStringUTFChars(env, jstr, argv);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: config file: [%s]\n", config_path); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: config file: [%s]\n", config_path);
if (args && *config_path) if (args && *config_path)
args->config_path = config_path; args->config_path = config_path;
} }
@ -1239,7 +1244,8 @@ static void frontend_linux_get_env(int *argc,
sizeof(android_app->current_ime)); sizeof(android_app->current_ime));
(*env)->ReleaseStringUTFChars(env, jstr, argv); (*env)->ReleaseStringUTFChars(env, jstr, argv);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: current IME: [%s]\n", android_app->current_ime); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: current IME: [%s]\n", android_app->current_ime);
} }
CALL_OBJ_METHOD_PARAM(env, jstr, obj, android_app->getStringExtra, CALL_OBJ_METHOD_PARAM(env, jstr, obj, android_app->getStringExtra,
@ -1252,7 +1258,8 @@ static void frontend_linux_get_env(int *argc,
(*env)->ReleaseStringUTFChars(env, jstr, argv); (*env)->ReleaseStringUTFChars(env, jstr, argv);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: used: [%s].\n", used ? "true" : "false"); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: used: [%s].\n", used ? "true" : "false");
} }
/* LIBRETRO. */ /* LIBRETRO. */
@ -1269,7 +1276,8 @@ static void frontend_linux_get_env(int *argc,
strlcpy(core_path, argv, sizeof(core_path)); strlcpy(core_path, argv, sizeof(core_path));
(*env)->ReleaseStringUTFChars(env, jstr, argv); (*env)->ReleaseStringUTFChars(env, jstr, argv);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: libretro path: [%s]\n", core_path); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: libretro path: [%s]\n", core_path);
if (args && *core_path) if (args && *core_path)
args->libretro_path = core_path; args->libretro_path = core_path;
} }
@ -1291,7 +1299,8 @@ static void frontend_linux_get_env(int *argc,
if (!string_is_empty(path)) if (!string_is_empty(path))
{ {
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: auto-start game [%s]\n", path); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: auto-start game [%s]\n", path);
if (args && *path) if (args && *path)
args->content_path = path; args->content_path = path;
} }
@ -1313,7 +1322,9 @@ static void frontend_linux_get_env(int *argc,
if (!string_is_empty(internal_storage_path)) if (!string_is_empty(internal_storage_path))
{ {
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: internal storage location: [%s]\n", internal_storage_path); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: android internal storage location: [%s]\n",
internal_storage_path);
} }
} }
@ -1333,7 +1344,9 @@ static void frontend_linux_get_env(int *argc,
if (!string_is_empty(screenshot_dir)) if (!string_is_empty(screenshot_dir))
{ {
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: picture folder location [%s]\n", screenshot_dir); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: android picture folder location [%s]\n",
screenshot_dir);
} }
} }
@ -1353,7 +1366,9 @@ static void frontend_linux_get_env(int *argc,
if (!string_is_empty(downloads_dir)) if (!string_is_empty(downloads_dir))
{ {
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: download folder location [%s]\n", downloads_dir); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: android download folder location [%s]\n",
downloads_dir);
} }
} }
@ -1372,7 +1387,8 @@ static void frontend_linux_get_env(int *argc,
if (!string_is_empty(apk_dir)) if (!string_is_empty(apk_dir))
{ {
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: APK location [%s]\n", apk_dir); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: APK location [%s]\n", apk_dir);
} }
} }
@ -1391,7 +1407,9 @@ static void frontend_linux_get_env(int *argc,
if (!string_is_empty(internal_storage_app_path)) if (!string_is_empty(internal_storage_app_path))
{ {
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: external files location [%s]\n", internal_storage_app_path); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: android external files location [%s]\n",
internal_storage_app_path);
} }
} }
@ -1427,7 +1445,8 @@ static void frontend_linux_get_env(int *argc,
if (!string_is_empty(app_dir)) if (!string_is_empty(app_dir))
{ {
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: application location: [%s]\n", app_dir); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: application location: [%s]\n", app_dir);
if (args && *app_dir) if (args && *app_dir)
{ {
char buf[PATH_MAX_LENGTH] = {0}; char buf[PATH_MAX_LENGTH] = {0};
@ -1472,7 +1491,9 @@ static void frontend_linux_get_env(int *argc,
path_mkdir(g_defaults.dir.core_assets); path_mkdir(g_defaults.dir.core_assets);
} }
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: default download folder: [%s]", g_defaults.dir.core_assets); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: default download folder: [%s]",
g_defaults.dir.core_assets);
if(*screenshot_dir && test_permissions(screenshot_dir)) if(*screenshot_dir && test_permissions(screenshot_dir))
{ {
@ -1486,7 +1507,9 @@ static void frontend_linux_get_env(int *argc,
path_mkdir(g_defaults.dir.screenshot); path_mkdir(g_defaults.dir.screenshot);
} }
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: default screenshot folder: [%s]", g_defaults.dir.screenshot); __android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: default screenshot folder: [%s]",
g_defaults.dir.screenshot);
switch (perms) switch (perms)
{ {
@ -1596,9 +1619,15 @@ static void frontend_linux_get_env(int *argc,
fill_pathname_join(buf, internal_storage_app_path, "system", sizeof(buf)); fill_pathname_join(buf, internal_storage_app_path, "system", sizeof(buf));
path_mkdir(buf); path_mkdir(buf);
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: default savefile folder: [%s]", g_defaults.dir.sram); __android_log_print(ANDROID_LOG_INFO,
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: default savestate folder: [%s]", g_defaults.dir.savestate); "RetroArch", "[ENV]: default savefile folder: [%s]",
__android_log_print(ANDROID_LOG_INFO, "RetroArch", "[ENV]: default system folder: [%s]", g_defaults.dir.system); g_defaults.dir.sram);
__android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: default savestate folder: [%s]",
g_defaults.dir.savestate);
__android_log_print(ANDROID_LOG_INFO,
"RetroArch", "[ENV]: default system folder: [%s]",
g_defaults.dir.system);
} }
} }
} }