mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-14 00:05:53 +00:00
More error messages
This commit is contained in:
parent
19e7dc6b63
commit
ff200677e1
@ -25,9 +25,12 @@ static const HECL::SystemChar* MomErr[] =
|
|||||||
_S("Contradictive narratives unsupported"),
|
_S("Contradictive narratives unsupported"),
|
||||||
_S("Wiimote profile \"NES + Zapper\" not recognized"),
|
_S("Wiimote profile \"NES + Zapper\" not recognized"),
|
||||||
_S("Unable to find Waldo"),
|
_S("Unable to find Waldo"),
|
||||||
_S("Expected Ridley, found furby")
|
_S("Expected Ridley, found furby"),
|
||||||
|
_S("Adam has not authorized this, please do not bug the developers"),
|
||||||
|
_S("Error: Lady returned objection")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
constexpr uint32_t MomErrCount = 11;
|
||||||
SpecBase::SpecBase(HECL::Database::Project& project)
|
SpecBase::SpecBase(HECL::Database::Project& project)
|
||||||
: m_project(project),
|
: m_project(project),
|
||||||
m_masterShader(project.getProjectWorkingPath(), ".hecl/RetroMasterShader.blend") {}
|
m_masterShader(project.getProjectWorkingPath(), ".hecl/RetroMasterShader.blend") {}
|
||||||
@ -44,9 +47,9 @@ bool SpecBase::canExtract(const ExtractPassInfo& info, std::vector<ExtractReport
|
|||||||
unsigned int t = time(nullptr);
|
unsigned int t = time(nullptr);
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
rand_s(&t);
|
rand_s(&t);
|
||||||
int r = t % 9;
|
int r = t % MomErrCount;
|
||||||
#else
|
#else
|
||||||
int r = rand_r(&t) % 9;
|
int r = rand_r(&t) % MomErrCount;
|
||||||
#endif
|
#endif
|
||||||
Log.report(LogVisor::FatalError, MomErr[r]);
|
Log.report(LogVisor::FatalError, MomErr[r]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user