From e0f8456531bcd77d0d6a93ccd5815c43ca0d548c Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 15 Dec 2012 17:14:43 +0000 Subject: [PATCH] Prompt for install on first startup --- src/game/GameController.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp index f218d67fa..e56ae50f9 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::iterator iter = debugInfo.begin(), end = debugInfo.end(); iter != end; iter++)