summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-12-15 17:14:43 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-12-15 17:14:43 (GMT)
commite0f8456531bcd77d0d6a93ccd5815c43ca0d548c (patch)
tree6cb44e5d7fb7bf66681ede3e1d27e59c43ebcb0d /src
parentf047b4826f9ea74b34b24031cc9d38eb81f46f54 (diff)
downloadpowder-e0f8456531bcd77d0d6a93ccd5815c43ca0d548c.zip
powder-e0f8456531bcd77d0d6a93ccd5815c43ca0d548c.tar.gz
Prompt for install on first startup
Diffstat (limited to 'src')
-rw-r--r--src/game/GameController.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index f218d67..e56ae50 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -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++)