mirror of https://github.com/AxioDL/metaforce.git
nothing to see here, move along
This commit is contained in:
parent
b4c802d598
commit
59708f4478
|
@ -3,11 +3,26 @@
|
||||||
#include "BlenderConnection.hpp"
|
#include "BlenderConnection.hpp"
|
||||||
#include "DNACommon/DNACommon.hpp"
|
#include "DNACommon/DNACommon.hpp"
|
||||||
|
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
namespace Retro
|
namespace Retro
|
||||||
{
|
{
|
||||||
|
|
||||||
static LogVisor::LogModule Log("Retro::SpecBase");
|
static LogVisor::LogModule Log("Retro::SpecBase");
|
||||||
|
|
||||||
|
static const HECL::SystemChar* MomErr[] =
|
||||||
|
{
|
||||||
|
_S("Your metroid is in another castle"),
|
||||||
|
_S("HECL is experiencing a PTSD attack"),
|
||||||
|
_S("Unable to freeze metroids"),
|
||||||
|
_S("Ridley ate your homework"),
|
||||||
|
_S("Expected 0 maternal symbolisms, found ∞"),
|
||||||
|
_S("Contradictive narratives unsupported"),
|
||||||
|
_S("Wiimote profile \"NES + Zapper\" not recognized"),
|
||||||
|
_S("Unable to find Waldo"),
|
||||||
|
_S("Expected Ridley, found furby")
|
||||||
|
};
|
||||||
|
|
||||||
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") {}
|
||||||
|
@ -19,6 +34,13 @@ bool SpecBase::canExtract(const ExtractPassInfo& info, std::vector<ExtractReport
|
||||||
return false;
|
return false;
|
||||||
const char* gameID = m_disc->getHeader().gameID;
|
const char* gameID = m_disc->getHeader().gameID;
|
||||||
|
|
||||||
|
if (!memcmp(gameID, "R3O", 3))
|
||||||
|
{
|
||||||
|
unsigned int t = time(nullptr);
|
||||||
|
int r = rand_r(&t) % 9;
|
||||||
|
Log.report(LogVisor::FatalError, MomErr[r]);
|
||||||
|
}
|
||||||
|
|
||||||
m_standalone = true;
|
m_standalone = true;
|
||||||
if (m_isWii && !memcmp(gameID, "R3M", 3))
|
if (m_isWii && !memcmp(gameID, "R3M", 3))
|
||||||
m_standalone = false;
|
m_standalone = false;
|
||||||
|
|
Loading…
Reference in New Issue