mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
Move comment in load_content_dont_need_fullpath to appropriate
place
This commit is contained in:
parent
e8e58d841f
commit
85e6ba128f
24
content.c
24
content.c
@ -353,31 +353,35 @@ void save_ram_file(const char *path, int type)
|
||||
}
|
||||
|
||||
/* Load the content into memory. */
|
||||
|
||||
/* First content file is significant, attempt to do patching,
|
||||
* CRC checking, etc. */
|
||||
static bool load_content_dont_need_fullpath(
|
||||
struct retro_game_info *info, unsigned i, const char *path)
|
||||
struct retro_game_info *info,
|
||||
unsigned i,
|
||||
const char *path)
|
||||
{
|
||||
ssize_t len;
|
||||
bool ret = false;
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
/* First content file is significant, attempt to do patching,
|
||||
* CRC checking, etc. */
|
||||
ret = read_content_file(i, path, (void**)&info->data, &len);
|
||||
}
|
||||
else
|
||||
ret = read_file(path, (void**)&info->data, &len);
|
||||
|
||||
if (!ret || len < 0)
|
||||
{
|
||||
RARCH_ERR("%s \"%s\".\n",
|
||||
msg_hash_to_str(MSG_COULD_NOT_READ_CONTENT_FILE),
|
||||
path);
|
||||
return false;
|
||||
}
|
||||
goto error;
|
||||
|
||||
info->size = len;
|
||||
|
||||
return true;
|
||||
|
||||
error:
|
||||
RARCH_ERR("%s \"%s\".\n",
|
||||
msg_hash_to_str(MSG_COULD_NOT_READ_CONTENT_FILE),
|
||||
path);
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool load_content_append_to_temporary_content(const char *elem,
|
||||
|
Loading…
Reference in New Issue
Block a user