SettingsHandler: Make GenerateSerialNumber static

This doesn't depend on class internals.
This commit is contained in:
Lioncash 2017-01-27 10:11:36 -05:00
parent 98291cd843
commit c748158182
3 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ void SettingsHandler::WriteByte(u8 b)
m_key = (m_key >> 31) | (m_key << 1); m_key = (m_key >> 31) | (m_key << 1);
} }
const std::string SettingsHandler::generateSerialNumber() std::string SettingsHandler::GenerateSerialNumber()
{ {
time_t rawtime; time_t rawtime;
tm* timeinfo; tm* timeinfo;

View File

@ -33,7 +33,7 @@ public:
void Decrypt(); void Decrypt();
void Reset(); void Reset();
const std::string generateSerialNumber(); static std::string GenerateSerialNumber();
private: private:
void WriteByte(u8 b); void WriteByte(u8 b);

View File

@ -211,7 +211,7 @@ bool CBoot::SetupWiiMemory(u64 ios_title_id)
if (Core::g_want_determinism) if (Core::g_want_determinism)
serno = "123456789"; serno = "123456789";
else else
serno = gen.generateSerialNumber(); serno = SettingsHandler::GenerateSerialNumber();
INFO_LOG(BOOT, "No previous serial number found, generated one instead: %s", serno.c_str()); INFO_LOG(BOOT, "No previous serial number found, generated one instead: %s", serno.c_str());
} }
else else