mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:47:42 +00:00
Windows PCH fixes
This commit is contained in:
@@ -70,13 +70,8 @@ bool SpecBase::canExtract(const ExtractPassInfo& info, std::vector<ExtractReport
|
||||
|
||||
if (!memcmp(gameID, "R3O", 3))
|
||||
{
|
||||
unsigned int t = time(nullptr);
|
||||
#if _WIN32
|
||||
rand_s(&t);
|
||||
int r = t % MomErrCount;
|
||||
#else
|
||||
int r = rand_r(&t) % MomErrCount;
|
||||
#endif
|
||||
std::srand(std::time(0));
|
||||
int r = std::rand() % MomErrCount;
|
||||
Log.report(logvisor::Fatal, MomErr[r]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user