[72209] users/ryandesign/PCLauncher/PCLauncher.applescript

ryandesign at macports.org ryandesign at macports.org
Wed Oct 6 15:22:59 PDT 2010


Revision: 72209
          http://trac.macports.org/changeset/72209
Author:   ryandesign at macports.org
Date:     2010-10-06 15:22:57 -0700 (Wed, 06 Oct 2010)
Log Message:
-----------
Check for game files

Modified Paths:
--------------
    users/ryandesign/PCLauncher/PCLauncher.applescript

Modified: users/ryandesign/PCLauncher/PCLauncher.applescript
===================================================================
--- users/ryandesign/PCLauncher/PCLauncher.applescript	2010-10-06 22:04:32 UTC (rev 72208)
+++ users/ryandesign/PCLauncher/PCLauncher.applescript	2010-10-06 22:22:57 UTC (rev 72209)
@@ -94,10 +94,19 @@
 
 on clicked theObject
 	if name of theObject is "Play Button" then
-		startAuthentication()
+		checkForGameFiles()
 	end if
 end clicked
 
+on checkForGameFiles()
+	set haveGameFiles to itemExists(gDataDirectory & "/dat")
+	if haveGameFiles then
+		startAuthentication()
+	else
+		display dialog "PlasmaClient needs the Myst Online: URU Live again game data files. Please install the “mystonline-cider” port and run the application to let it download all the game data." buttons {"OK"} default button "OK" attached to window "Login Window"
+	end if
+end checkForGameFiles
+
 on startAuthentication()
 	showProgressPanel("Authenticating…")
 	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101006/0d4a0420/attachment.html>


More information about the macports-changes mailing list