mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
SettingsHandler: Make GenerateSerialNumber static
This doesn't depend on class internals.
This commit is contained in:
parent
98291cd843
commit
c748158182
@ -132,7 +132,7 @@ void SettingsHandler::WriteByte(u8 b)
|
||||
m_key = (m_key >> 31) | (m_key << 1);
|
||||
}
|
||||
|
||||
const std::string SettingsHandler::generateSerialNumber()
|
||||
std::string SettingsHandler::GenerateSerialNumber()
|
||||
{
|
||||
time_t rawtime;
|
||||
tm* timeinfo;
|
||||
|
@ -33,7 +33,7 @@ public:
|
||||
|
||||
void Decrypt();
|
||||
void Reset();
|
||||
const std::string generateSerialNumber();
|
||||
static std::string GenerateSerialNumber();
|
||||
|
||||
private:
|
||||
void WriteByte(u8 b);
|
||||
|
@ -211,7 +211,7 @@ bool CBoot::SetupWiiMemory(u64 ios_title_id)
|
||||
if (Core::g_want_determinism)
|
||||
serno = "123456789";
|
||||
else
|
||||
serno = gen.generateSerialNumber();
|
||||
serno = SettingsHandler::GenerateSerialNumber();
|
||||
INFO_LOG(BOOT, "No previous serial number found, generated one instead: %s", serno.c_str());
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user