mirror of
https://github.com/switchbrew/switch-tools.git
synced 2025-06-21 21:42:39 +02:00
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:
parent
16fcc678e2
commit
05da94d646
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user