This commit is contained in:
2017-08-02 08:07:58 -04:00
parent de719f9f01
commit f83ea1f6c4
5 changed files with 179 additions and 0 deletions

17
source/themes.c Normal file
View File

@@ -0,0 +1,17 @@
#include <3ds.h>
#include <stdlib.h>
#include "themes.h"
Result single_install(theme* theme)
{
char *body;
u16 path[262] = {0};
memcpy(path, theme->path, 262);
u16 body_path[12];
ssize_t len = utf8_to_utf16(body_path, (u8*) "/body_lz.bin", 12);
memcpy(&path[theme->path_len], body_path, 12);
file_to_buf(fsMakePath(PATH_UTF16, path), body);
}