Prompt for install on first startup

This commit is contained in:
Simon Robertshaw 2012-12-15 17:14:43 +00:00
parent f047b4826f
commit e0f8456531

View File

@ -261,7 +261,7 @@ void GameController::Install()
}
virtual ~InstallConfirmation() { }
};
new ConfirmPrompt("Install The Powder Toy", "You are about to install The Powder Toy onto this computer", new InstallConfirmation(this));
new ConfirmPrompt("Install The Powder Toy", "Do you wish to install The Powder Toy on this computer?\nThis allows you to open save files and saves directly from the website.", new InstallConfirmation(this));
#else
new ErrorMessage("Cannot install", "You cannot install The Powder Toy on this platform");
#endif
@ -679,6 +679,11 @@ void GameController::Tick()
if(firstTick)
{
((LuaScriptInterface*)commandInterface)->Init();
if(!Client::Ref().GetPrefBool("InstallCheck", false))
{
Client::Ref().SetPref("InstallCheck", true);
Install();
}
firstTick = false;
}
for(std::vector<DebugInfo*>::iterator iter = debugInfo.begin(), end = debugInfo.end(); iter != end; iter++)