Merge pull request #935 from lioncash/snprintf
DolphinWX: Get rid of an snprintf call in ISOProperties
This commit is contained in:
commit
7fb8572765
|
@ -167,12 +167,10 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
|
||||||
|
|
||||||
if (!_iniFilename.length())
|
if (!_iniFilename.length())
|
||||||
{
|
{
|
||||||
char tmp[17];
|
u8 title_id[8];
|
||||||
u8 _tTitleID[8];
|
if (OpenISO->GetTitleID(title_id))
|
||||||
if (OpenISO->GetTitleID(_tTitleID))
|
|
||||||
{
|
{
|
||||||
snprintf(tmp, 17, "%016" PRIx64, Common::swap64(_tTitleID));
|
_iniFilename = StringFromFormat("%016" PRIx64, Common::swap64(title_id));
|
||||||
_iniFilename = tmp;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue