[tuxdroid-svn] r5134 - software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_br
Status: Beta
Brought to you by:
ks156
|
From: jerome <c2m...@c2...> - 2009-07-22 11:24:49
|
Author: jerome
Date: 2009-07-22 13:24:43 +0200 (Wed, 22 Jul 2009)
New Revision: 5134
Modified:
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
Log:
* Update the dongle connection check function.
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.dcu
===================================================================
(Binary files differ)
Modified: software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas
===================================================================
--- software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-22 10:48:51 UTC (rev 5133)
+++ software_suite_v3/software/tool/tux_droid_browser/windows/trunk/tux_droid_browser/TuxUtils.pas 2009-07-22 11:24:43 UTC (rev 5134)
@@ -8,7 +8,7 @@
EmbeddedWB;
function isTuxDroidServerStarted() : boolean;
- function isDongleConnected(ApplicationExeName : String; EmbeddedWB1 : TEmbeddedWB) : boolean;
+ function isDongleConnected(ApplicationExeName : String; var EmbeddedWB1 : TEmbeddedWB) : boolean;
var
XmlScanner1: TXmlScanner;
@@ -50,7 +50,7 @@
//Return the dongle connection state.
-function isDongleConnected(ApplicationExeName : String; EmbeddedWB1 : TEmbeddedWB) : boolean;
+function isDongleConnected(ApplicationExeName : String; var EmbeddedWB1 : TEmbeddedWB) : boolean;
var
targetDir : String;
downloaded : boolean;
@@ -65,7 +65,7 @@
targetDir := ExtractFilePath(ApplicationExeName);
downloaded := false;
- boolvalue := false;
+ boolValue := false;
//Checking if file exists and remove it.
if FileExists(targetDir + '\' + fileName) then
@@ -84,6 +84,7 @@
begin
xmlFile := targetDir + '\' + fileName;
+ xmlScanner1 := TXmlScanner.Create(nil);
XmlScanner1.LoadFromFile(xmlFile);
xmlThread := TXmlThreadObject.create(XmlScanner1);
xmlThread.Resume;
|