This commit is contained in:
twinaphex 2015-06-22 11:45:00 +02:00
parent df64ff7556
commit 5c826a6bdf
3 changed files with 11 additions and 14 deletions

View File

@ -268,7 +268,8 @@ void event_disk_control_append_image(const char *path)
info.path = path; info.path = path;
control->replace_image_index(new_idx, &info); control->replace_image_index(new_idx, &info);
snprintf(msg, sizeof(msg), "Appended disk: %s", path); strlcpy(msg, "Appended disk: ", sizeof(msg));
strlcat(msg, path, sizeof(msg));
RARCH_LOG("%s\n", msg); RARCH_LOG("%s\n", msg);
rarch_main_msg_queue_push(msg, 0, 180, true); rarch_main_msg_queue_push(msg, 0, 180, true);

View File

@ -1063,14 +1063,13 @@ static void init_system_info(void)
if (!info->library_version) if (!info->library_version)
info->library_version = "v0"; info->library_version = "v0";
#ifdef RARCH_CONSOLE #ifndef RARCH_CONSOLE
snprintf(global->title_buf, sizeof(global->title_buf), "%s %s",
info->library_name, info->library_version);
#else
snprintf(global->title_buf, sizeof(global->title_buf), snprintf(global->title_buf, sizeof(global->title_buf),
RETRO_FRONTEND " : %s %s", RETRO_FRONTEND " : ");
info->library_name, info->library_version);
#endif #endif
strlcat(global->title_buf, info->library_name, sizeof(global->title_buf));
strlcat(global->title_buf, " ", sizeof(global->title_buf));
strlcat(global->title_buf, info->library_version, sizeof(global->title_buf));
strlcpy(global->system.valid_extensions, info->valid_extensions ? strlcpy(global->system.valid_extensions, info->valid_extensions ?
info->valid_extensions : DEFAULT_EXT, info->valid_extensions : DEFAULT_EXT,
sizeof(global->system.valid_extensions)); sizeof(global->system.valid_extensions));

View File

@ -19,6 +19,7 @@
#include <file/file_path.h> #include <file/file_path.h>
#include <retro_inline.h> #include <retro_inline.h>
#include <compat/strl.h>
#include <rhash.h> #include <rhash.h>
#include "configuration.h" #include "configuration.h"
@ -261,15 +262,11 @@ static bool check_movie_init(void)
settings->rewind_granularity = 1; settings->rewind_granularity = 1;
if (settings->state_slot > 0) if (settings->state_slot > 0)
{ snprintf(path, sizeof(path), "%s%d",
snprintf(path, sizeof(path), "%s%d.bsv",
global->bsv.movie_path, settings->state_slot); global->bsv.movie_path, settings->state_slot);
}
else else
{ strlcpy(path, global->bsv.movie_path, sizeof(path));
snprintf(path, sizeof(path), "%s.bsv", strlcat(path, ".bsv", sizeof(path));
global->bsv.movie_path);
}
snprintf(msg, sizeof(msg), "Starting movie record to \"%s\".", path); snprintf(msg, sizeof(msg), "Starting movie record to \"%s\".", path);