CoreParameter: Kill off an snprintf usage
This commit is contained in:
parent
2f4d3961b3
commit
a8d8c9230b
|
@ -280,14 +280,13 @@ bool SCoreStartupParameter::AutoSetup(EBootBS2 _BootBS2)
|
||||||
|
|
||||||
// Use the TitleIDhex for name and/or unique ID if launching from nand folder
|
// Use the TitleIDhex for name and/or unique ID if launching from nand folder
|
||||||
// or if it is not ascii characters (specifically sysmenu could potentially apply to other things)
|
// or if it is not ascii characters (specifically sysmenu could potentially apply to other things)
|
||||||
char titleidstr[17];
|
std::string titleidstr = StringFromFormat("%016" PRIx64, ContentLoader.GetTitleID());
|
||||||
snprintf(titleidstr, 17, "%016" PRIx64, ContentLoader.GetTitleID());
|
|
||||||
|
|
||||||
if (!m_strName.length())
|
if (m_strName.empty())
|
||||||
{
|
{
|
||||||
m_strName = titleidstr;
|
m_strName = titleidstr;
|
||||||
}
|
}
|
||||||
if (!m_strUniqueID.length())
|
if (m_strUniqueID.empty())
|
||||||
{
|
{
|
||||||
m_strUniqueID = titleidstr;
|
m_strUniqueID = titleidstr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue