Fix no-smdh case
This commit is contained in:
@@ -50,7 +50,6 @@ int main(void)
|
|||||||
{
|
{
|
||||||
init_services();
|
init_services();
|
||||||
init_screens();
|
init_screens();
|
||||||
|
|
||||||
|
|
||||||
int theme_count = 0;
|
int theme_count = 0;
|
||||||
Theme_s * themes_list = NULL;
|
Theme_s * themes_list = NULL;
|
||||||
|
|||||||
@@ -105,9 +105,12 @@ static void parse_smdh(Theme_s *theme, ssize_t textureID, u16 *dir_name)
|
|||||||
if (!size)
|
if (!size)
|
||||||
{
|
{
|
||||||
free(info_buffer);
|
free(info_buffer);
|
||||||
memcpy(theme->name, dir_name, 0x106);
|
memset(theme->name, 0, 0x80);
|
||||||
utf8_to_utf16(theme->desc, (u8*)"No description", 0x106);
|
memset(theme->desc, 0, 0x100);
|
||||||
utf8_to_utf16(theme->author, (u8*)"Unknown author", 0x106);
|
memset(theme->author, 0, 0x80);
|
||||||
|
memcpy(theme->name, dir_name, 0x80);
|
||||||
|
utf8_to_utf16(theme->desc, (u8*)"No description", 0x100);
|
||||||
|
utf8_to_utf16(theme->author, (u8*)"Unknown author", 0x80);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user