mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 06:51:18 +12:00
fix some printf format specifiers (#76)
use the definition in cinttypes for portability
This commit is contained in:
parent
5cba1a1185
commit
8459cd928c
6 changed files with 23 additions and 15 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "Cafe/OS/libs/coreinit/coreinit_IOS.h"
|
||||
#include "Cafe/OS/libs/coreinit/coreinit_Time.h"
|
||||
|
||||
#include <cinttypes>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
|
||||
|
@ -102,7 +103,7 @@ namespace acp
|
|||
{
|
||||
// found the entry! -> update timestamp
|
||||
xml::XMLElement* timestamp = account->FirstChildElement("timestamp");
|
||||
sprintf(tmp, "%016llx", _acpGetTimestamp());
|
||||
sprintf(tmp, "%" PRIx64, _acpGetTimestamp());
|
||||
if (timestamp)
|
||||
timestamp->SetText(tmp);
|
||||
else
|
||||
|
@ -125,7 +126,7 @@ namespace acp
|
|||
|
||||
tinyxml2::XMLElement* timestamp = doc.NewElement("timestamp");
|
||||
{
|
||||
sprintf(tmp, "%016llx", _acpGetTimestamp());
|
||||
sprintf(tmp, "%" PRIx64, _acpGetTimestamp());
|
||||
timestamp->SetText(tmp);
|
||||
}
|
||||
|
||||
|
@ -506,4 +507,4 @@ namespace acp
|
|||
osLib_addFunction("nn_acp", "ACPConvertNetworkTimeToOSCalendarTime", export_ACPConvertNetworkTimeToOSCalendarTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue