Fix bug with title id parsing on Windows.

On Windows, longs (as specified by %lX) are 32-bit, not 64-bit, so assuming its size results in the upper 32-bits of the title id being lost.
This commit is contained in:
The Dax 2018-09-24 06:12:19 -04:00
parent 16fcc678e2
commit 05da94d646

View File

@ -79,7 +79,7 @@ int main(int argc, char* argv[]) {
int argi;
u64 titleid=0;
for (argi=6; argi<argc; argi++) {
if (strncmp(argv[argi], "--titleid=", 10)==0) sscanf(&argv[argi][10], "%016lX", &titleid);
if (strncmp(argv[argi], "--titleid=", 10)==0) sscanf(&argv[argi][10], "%016llX", &titleid);
}
for (i=0; i<12; i++) {//These are UTF-8.