99% working. Only issues are: data aborts when installing a theme after viewing a preview, bgm only works when installed as part of a theme shuffle. Single themes are silent

This commit is contained in:
2017-07-28 23:12:22 -04:00
parent ac69ceda51
commit 0d59b5deea
7 changed files with 233 additions and 29 deletions

View File

@@ -128,6 +128,17 @@ u16 *struacat(u16 *destination, const char *source)
return destination;
}
char *straucat(char *destination, const u16 *source)
{
ssize_t len = strlen(destination);
for (u16 i = len; i < strulen(source) + len; i++)
{
destination[i] = source[i - len];
}
destination[strulen(source) + len] = 0;
return destination;
}
// Prints a u16* for debug purposes
// Must be properly null-terminated
void printu(u16 *input)