mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-28 18:33:14 +00:00
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
|
||||
// or if it is not ascii characters (specifically sysmenu could potentially apply to other things)
|
||||
char titleidstr[17];
|
||||
snprintf(titleidstr, 17, "%016" PRIx64, ContentLoader.GetTitleID());
|
||||
std::string titleidstr = StringFromFormat("%016" PRIx64, ContentLoader.GetTitleID());
|
||||
|
||||
if (!m_strName.length())
|
||||
if (m_strName.empty())
|
||||
{
|
||||
m_strName = titleidstr;
|
||||
}
|
||||
if (!m_strUniqueID.length())
|
||||
if (m_strUniqueID.empty())
|
||||
{
|
||||
m_strUniqueID = titleidstr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user