Author: remi
Date: 2009-01-21 10:47:38 +0100 (Wed, 21 Jan 2009)
New Revision: 3510

Modified:
   software_suite_v2/tuxware/ccjavalauncher/trunk/SimpleLauncher.pas
Log:
* Now only launch the cc with its splash screen

Modified: software_suite_v2/tuxware/ccjavalauncher/trunk/SimpleLauncher.pas
===================================================================
--- software_suite_v2/tuxware/ccjavalauncher/trunk/SimpleLauncher.pas   
2009-01-21 09:40:01 UTC (rev 3509)
+++ software_suite_v2/tuxware/ccjavalauncher/trunk/SimpleLauncher.pas   
2009-01-21 09:47:38 UTC (rev 3510)
@@ -78,19 +78,16 @@
 begin
   // Get the installation path of tuxdroid
   tuxdroid_path := getTuxdroidInstallDirectory;
-  // Check the parameters count
-  if ParamCount < 2 then
-    application.Terminate;
   // Get the parameters
-  jarFileName := format('%s\%s', [tuxdroid_path, ParamStr(1)]);
+  jarFileName := format('%s\softwares\control_center\deps\cc_launcher.jar',
+    [tuxdroid_path]);
   jarPath := extractFilePath(jarFileName);
-  jarArguments := ParamStr(2);
   // Launch the jar file
   ShellExecute(
     HWND(nil),
     nil,
     PChar('java'),
-    PChar(format('-jar "%s" %s', [jarFileName, jarArguments])),
+    PChar(format('-jar "%s"', [jarFileName])),
     PChar(format('"%s"', [jarPath])),
     SW_HIDE);
   application.Terminate;


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to