forked from jaildesigner-jailgames/jaildoctors_dilemma
Transició a surface acabada. Ja compila
This commit is contained in:
@@ -76,7 +76,7 @@ Director::Director(int argc, const char *argv[])
|
||||
|
||||
// Crea los objetos
|
||||
Screen::init(window_, renderer_);
|
||||
Screen::get()->setBorderColor(borderColor);
|
||||
Screen::get()->setBorderColor(border_color);
|
||||
Resource::init();
|
||||
Notifier::init("notify.gif", "8bithud");
|
||||
Input::init(Asset::get()->get("gamecontrollerdb.txt"));
|
||||
@@ -109,37 +109,36 @@ Director::~Director()
|
||||
// Comprueba los parametros del programa
|
||||
std::string Director::checkProgramArguments(int argc, const char *argv[])
|
||||
{
|
||||
// Iterar sobre los argumentos del programa
|
||||
for (int i = 1; i < argc; ++i)
|
||||
{
|
||||
std::string argument(argv[i]);
|
||||
// Iterar sobre los argumentos del programa
|
||||
for (int i = 1; i < argc; ++i)
|
||||
{
|
||||
std::string argument(argv[i]);
|
||||
|
||||
if (argument == "--console")
|
||||
{
|
||||
options.console = true;
|
||||
}
|
||||
else if (argument == "--infiniteLives")
|
||||
{
|
||||
options.cheats.infinite_lives = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
else if (argument == "--invincible")
|
||||
{
|
||||
options.cheats.invincible = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
else if (argument == "--jailEnabled")
|
||||
{
|
||||
options.cheats.jail_is_open = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
else if (argument == "--altSkin")
|
||||
{
|
||||
options.cheats.alternate_skin = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
}
|
||||
if (argument == "--console")
|
||||
{
|
||||
options.console = true;
|
||||
}
|
||||
else if (argument == "--infiniteLives")
|
||||
{
|
||||
options.cheats.infinite_lives = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
else if (argument == "--invincible")
|
||||
{
|
||||
options.cheats.invincible = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
else if (argument == "--jailEnabled")
|
||||
{
|
||||
options.cheats.jail_is_open = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
else if (argument == "--altSkin")
|
||||
{
|
||||
options.cheats.alternate_skin = Cheat::CheatState::ENABLED;
|
||||
}
|
||||
}
|
||||
|
||||
return argv[0];
|
||||
return argv[0];
|
||||
}
|
||||
|
||||
|
||||
// Crea la carpeta del sistema donde guardar datos
|
||||
void Director::createSystemFolder(const std::string &folder)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user