nothing to see here, move along

This commit is contained in:
Jack Andersen 2015-11-21 19:16:40 -10:00
parent b4c802d598
commit 59708f4478
1 changed files with 22 additions and 0 deletions

View File

@ -3,11 +3,26 @@
#include "BlenderConnection.hpp"
#include "DNACommon/DNACommon.hpp"
#include <time.h>
namespace Retro
{
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)
: m_project(project),
m_masterShader(project.getProjectWorkingPath(), ".hecl/RetroMasterShader.blend") {}
@ -19,6 +34,13 @@ bool SpecBase::canExtract(const ExtractPassInfo& info, std::vector<ExtractReport
return false;
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;
if (m_isWii && !memcmp(gameID, "R3M", 3))
m_standalone = false;