Opció de fer el reset amb o sense reload
This commit is contained in:
@@ -672,6 +672,16 @@ void Director::runDemoGame()
|
||||
game->run();
|
||||
}
|
||||
|
||||
// Ejecuta la sección init
|
||||
void Director::runInit()
|
||||
{
|
||||
if (section::options == section::Options::RELOAD)
|
||||
{
|
||||
Resource::get()->reload();
|
||||
}
|
||||
section::name = section::Name::LOGO;
|
||||
}
|
||||
|
||||
int Director::run()
|
||||
{
|
||||
// Bucle principal
|
||||
@@ -680,8 +690,7 @@ int Director::run()
|
||||
switch (section::name)
|
||||
{
|
||||
case section::Name::INIT:
|
||||
Resource::get()->reload();
|
||||
section::name = section::Name::LOGO;
|
||||
runInit();
|
||||
break;
|
||||
case section::Name::LOGO:
|
||||
runLogo();
|
||||
|
||||
Reference in New Issue
Block a user