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;
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_main_msg_queue_push(msg, 0, 180, true);

View File

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

View File

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