revert some changes in load_content to make SGB work again with the subsystem API

This commit is contained in:
radius 2015-05-09 22:46:46 -05:00
parent 132bec0237
commit 6db06066e3

View File

@ -332,7 +332,12 @@ static bool load_content_dont_need_fullpath(
/* First content file is significant, attempt to do patching,
* CRC checking, etc. */
bool ret = read_content_file(i, path, (void**)&info->data, &len);
bool ret = false;
if (i == 0)
ret = read_content_file(i, path, (void**)&info->data, &len);
else
ret = read_file(path, (void**)&info->data, &len);
if (!ret || len < 0)
{