mirror of
https://github.com/libretro/RetroArch
synced 2025-04-23 11:43:20 +00:00
Update log messages
This commit is contained in:
parent
47456cf94b
commit
a88bf59b27
@ -76,7 +76,7 @@ static void netplay_crc_scan_callback(retro_task_t *task,
|
|||||||
&content_info, CORE_TYPE_PLAIN, NULL, NULL);
|
&content_info, CORE_TYPE_PLAIN, NULL, NULL);
|
||||||
content_clear_subsystem();
|
content_clear_subsystem();
|
||||||
if (!content_set_subsystem_by_name(state->subsystem_name))
|
if (!content_set_subsystem_by_name(state->subsystem_name))
|
||||||
RARCH_LOG("[Lobby] Subsystem not found in implementation\n");
|
RARCH_LOG("[Lobby]: Subsystem not found in implementation\n");
|
||||||
|
|
||||||
for (i = 0; i < game_list->size; i++)
|
for (i = 0; i < game_list->size; i++)
|
||||||
content_add_subsystem(game_list->elems[i].data);
|
content_add_subsystem(game_list->elems[i].data);
|
||||||
@ -93,7 +93,7 @@ static void netplay_crc_scan_callback(retro_task_t *task,
|
|||||||
{
|
{
|
||||||
struct retro_system_info *system = runloop_get_libretro_system_info();
|
struct retro_system_info *system = runloop_get_libretro_system_info();
|
||||||
|
|
||||||
RARCH_LOG("[Lobby] Loading core %s with content file %s\n",
|
RARCH_LOG("[Lobby]: Loading core %s with content file %s\n",
|
||||||
state->core_path, state->content_path);
|
state->core_path, state->content_path);
|
||||||
|
|
||||||
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, state->hostname);
|
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, state->hostname);
|
||||||
@ -121,7 +121,7 @@ static void netplay_crc_scan_callback(retro_task_t *task,
|
|||||||
content_ctx_info_t content_info = {0};
|
content_ctx_info_t content_info = {0};
|
||||||
struct retro_system_info *system = runloop_get_libretro_system_info();
|
struct retro_system_info *system = runloop_get_libretro_system_info();
|
||||||
|
|
||||||
RARCH_LOG("[Lobby] Loading contentless core %s\n", state->core_path);
|
RARCH_LOG("[Lobby]: Loading contentless core %s\n", state->core_path);
|
||||||
|
|
||||||
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, state->hostname);
|
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT_DEFERRED, state->hostname);
|
||||||
|
|
||||||
@ -135,14 +135,14 @@ static void netplay_crc_scan_callback(retro_task_t *task,
|
|||||||
else if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path)
|
else if (!string_is_empty(state->core_path) && !string_is_empty(state->content_path)
|
||||||
&& state->current)
|
&& state->current)
|
||||||
{
|
{
|
||||||
RARCH_LOG("[Lobby] Loading core %s with current content\n", state->core_path);
|
RARCH_LOG("[Lobby]: Loading core %s with current content\n", state->core_path);
|
||||||
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT, state->hostname);
|
command_event(CMD_EVENT_NETPLAY_INIT_DIRECT, state->hostname);
|
||||||
command_event(CMD_EVENT_RESUME, NULL);
|
command_event(CMD_EVENT_RESUME, NULL);
|
||||||
}
|
}
|
||||||
/* no match found */
|
/* no match found */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RARCH_LOG("[Lobby] Couldn't find a suitable %s\n",
|
RARCH_LOG("[Lobby]: Couldn't find a suitable %s\n",
|
||||||
string_is_empty(state->content_path) ? "content file" : "core");
|
string_is_empty(state->content_path) ? "content file" : "core");
|
||||||
runloop_msg_queue_push(
|
runloop_msg_queue_push(
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_LOAD_CONTENT_MANUALLY),
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_LOAD_CONTENT_MANUALLY),
|
||||||
@ -238,14 +238,14 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
{
|
{
|
||||||
char current[PATH_MAX_LENGTH];
|
char current[PATH_MAX_LENGTH];
|
||||||
|
|
||||||
RARCH_LOG("[Lobby] Testing CRC matching for: %s\n", state->content_crc);
|
RARCH_LOG("[Lobby]: Testing CRC matching for: %s\n", state->content_crc);
|
||||||
|
|
||||||
snprintf(current, sizeof(current), "%X|crc", content_get_crc());
|
snprintf(current, sizeof(current), "%X|crc", content_get_crc());
|
||||||
RARCH_LOG("[Lobby] Current content crc: %s\n", current);
|
RARCH_LOG("[Lobby]: Current content CRC: %s\n", current);
|
||||||
|
|
||||||
if (string_is_equal(current, state->content_crc))
|
if (string_is_equal(current, state->content_crc))
|
||||||
{
|
{
|
||||||
RARCH_LOG("[Lobby] CRC match %s with currently loaded content\n", current);
|
RARCH_LOG("[Lobby]: CRC match %s with currently loaded content\n", current);
|
||||||
strlcpy(state->content_path, "N/A", sizeof(state->content_path));
|
strlcpy(state->content_path, "N/A", sizeof(state->content_path));
|
||||||
state->found = true;
|
state->found = true;
|
||||||
state->current = true;
|
state->current = true;
|
||||||
@ -269,7 +269,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
if (!string_ends_with(lpl_path, ".lpl"))
|
if (!string_ends_with(lpl_path, ".lpl"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
RARCH_LOG("[Lobby] Searching playlist: %s\n", lpl_path);
|
RARCH_LOG("[Lobby]: Searching playlist: %s\n", lpl_path);
|
||||||
playlist = playlist_init(lpl_path, COLLECTION_SIZE);
|
playlist = playlist_init(lpl_path, COLLECTION_SIZE);
|
||||||
playlist_size = playlist_get_size(playlist);
|
playlist_size = playlist_get_size(playlist);
|
||||||
|
|
||||||
@ -286,7 +286,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
|
|
||||||
if (have_crc && string_is_equal(playlist_crc32, state->content_crc))
|
if (have_crc && string_is_equal(playlist_crc32, state->content_crc))
|
||||||
{
|
{
|
||||||
RARCH_LOG("[Lobby] CRC match %s\n", playlist_crc32);
|
RARCH_LOG("[Lobby]: CRC match %s\n", playlist_crc32);
|
||||||
strlcpy(state->content_path, playlist_path, sizeof(state->content_path));
|
strlcpy(state->content_path, playlist_path, sizeof(state->content_path));
|
||||||
state->found = true;
|
state->found = true;
|
||||||
task_set_data(task, state);
|
task_set_data(task, state);
|
||||||
@ -307,7 +307,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
string_is_equal(entry, state->content_path) &&
|
string_is_equal(entry, state->content_path) &&
|
||||||
strstr(state->core_extensions, path_get_extension(playlist_path)))
|
strstr(state->core_extensions, path_get_extension(playlist_path)))
|
||||||
{
|
{
|
||||||
RARCH_LOG("[Lobby] Filename match %s\n", playlist_path);
|
RARCH_LOG("[Lobby]: Filename match %s\n", playlist_path);
|
||||||
|
|
||||||
strlcpy(state->content_path, playlist_path, sizeof(state->content_path));
|
strlcpy(state->content_path, playlist_path, sizeof(state->content_path));
|
||||||
state->found = true;
|
state->found = true;
|
||||||
@ -343,7 +343,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
if (!string_ends_with(lpl_path, ".lpl"))
|
if (!string_ends_with(lpl_path, ".lpl"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
RARCH_LOG("[Lobby] Searching content %d/%d (%s) in playlist: %s\n", i + 1, game_list->size, game_list->elems[i].data, lpl_path);
|
RARCH_LOG("[Lobby]: Searching content %d/%d (%s) in playlist: %s\n", i + 1, game_list->size, game_list->elems[i].data, lpl_path);
|
||||||
playlist = playlist_init(lpl_path, COLLECTION_SIZE);
|
playlist = playlist_init(lpl_path, COLLECTION_SIZE);
|
||||||
playlist_size = playlist_get_size(playlist);
|
playlist_size = playlist_get_size(playlist);
|
||||||
|
|
||||||
@ -359,7 +359,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
strstr(game_list->elems[i].data, entry) &&
|
strstr(game_list->elems[i].data, entry) &&
|
||||||
strstr(state->core_extensions, path_get_extension(playlist_entry->path)))
|
strstr(state->core_extensions, path_get_extension(playlist_entry->path)))
|
||||||
{
|
{
|
||||||
RARCH_LOG("[Lobby] filename match %s\n", playlist_entry->path);
|
RARCH_LOG("[Lobby]: Filename match %s\n", playlist_entry->path);
|
||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
@ -394,7 +394,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
|
|||||||
|
|
||||||
if (state->found)
|
if (state->found)
|
||||||
{
|
{
|
||||||
RARCH_LOG("[Lobby] Subsystem matching set found %s\n", state->content_path);
|
RARCH_LOG("[Lobby]: Subsystem matching set found %s\n", state->content_path);
|
||||||
task_set_data(task, state);
|
task_set_data(task, state);
|
||||||
finish_task(task, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_COMPAT_CONTENT_FOUND));
|
finish_task(task, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_COMPAT_CONTENT_FOUND));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user