Add smdh parsing (errors out for some reason)

This commit is contained in:
2017-08-26 19:24:17 -04:00
parent 2654c1dfa7
commit 87b6bb11d1
6 changed files with 41 additions and 8 deletions

View File

@@ -29,4 +29,14 @@ void printu(u16 *input)
for (u16 i = 0; i < buf_len; i++) buf[i] = input[i];
printf("%ls\n", buf);
free(buf);
}
u16 *strucat(u16 *destination, const u16 *source)
{
ssize_t dest_len = strulen(destination, 0x106);
ssize_t source_len = strulen(source, 0x106);
memcpy(&destination[dest_len], source, source_len * sizeof(u16));
return destination;
}