Professional Documents
Culture Documents
Wii U Title - Tik Generator
Wii U Title - Tik Generator
/* only tested with clang and gcc on linux, but it should also work on tcc on
windows */
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
uint32_t endian_convert(uint32_t n) {
return ((n & 0xFF) << 24)|((n & 0xFF00) << 8)|((n & 0xFF0000) >> 8)|((n &
0xFF000000) >> 24);
}
uint32_t i;
for(i=0; i<4; ++i) {
char empty[4];
memset(empty, 0, 4);
memcpy(empty, &gid_str[i*2], 2);
}
}
read_key_string(key, argv[2]);
read_gid_string(gid, argv[1]);