2008-03-06 22:55:49 +01:00
|
|
|
(*
|
|
|
|
* CDDL HEADER START
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the terms of the
|
|
|
|
* Common Development and Distribution License, Version 1.0 only
|
|
|
|
* (the "License"). You may not use this file except in compliance
|
|
|
|
* with the License.
|
|
|
|
*
|
|
|
|
* You can obtain a copy of the license at
|
|
|
|
* http://www.opensource.org/licenses/cddl1.php.
|
|
|
|
* See the License for the specific language governing permissions
|
|
|
|
* and limitations under the License.
|
|
|
|
*
|
|
|
|
* When distributing Covered Code, include this CDDL HEADER in each
|
|
|
|
* file and include the License file at
|
|
|
|
* http://www.opensource.org/licenses/cddl1.php. If applicable,
|
|
|
|
* add the following below this CDDL HEADER, with the fields enclosed
|
|
|
|
* by brackets "[]" replaced with your own identifying * information:
|
|
|
|
* Portions Copyright [yyyy] [name of copyright owner]
|
|
|
|
*
|
|
|
|
* CDDL HEADER END
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Portions Copyright 2008 Andreas Schneider
|
|
|
|
*)
|
|
|
|
unit UConfig;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Classes, SysUtils, DOM, XMLRead, XMLWrite, md5, Keyboard, UAccount,
|
2015-05-01 12:23:03 +02:00
|
|
|
UXmlHelper, UInterfaces, UEnums, URegions, LConvEncoding, Language;
|
2008-03-06 22:55:49 +01:00
|
|
|
|
|
|
|
type
|
|
|
|
|
2008-08-09 19:38:09 +02:00
|
|
|
TInvalidConfigException = class(Exception);
|
2008-03-06 22:55:49 +01:00
|
|
|
|
|
|
|
{ TMapInfo }
|
|
|
|
|
|
|
|
TMapInfo = class(TObject, ISerializable)
|
|
|
|
constructor Create(AOwner: IInvalidate);
|
|
|
|
constructor Deserialize(AOwner: IInvalidate; AElement: TDOMElement);
|
|
|
|
procedure Serialize(AElement: TDOMElement);
|
|
|
|
protected
|
|
|
|
FOwner: IInvalidate;
|
|
|
|
FMapFile: string;
|
|
|
|
FStaticsFile: string;
|
|
|
|
FStaIdxFile: string;
|
|
|
|
FWidth: Word;
|
|
|
|
FHeight: Word;
|
2015-05-01 12:23:03 +02:00
|
|
|
FFormatFlags: Cardinal;
|
2008-03-06 22:55:49 +01:00
|
|
|
procedure SetHeight(const AValue: Word);
|
|
|
|
procedure SetMapFile(const AValue: string);
|
|
|
|
procedure SetStaIdxFile(const AValue: string);
|
|
|
|
procedure SetStaticsFile(const AValue: string);
|
|
|
|
procedure SetWidth(const AValue: Word);
|
2015-05-01 12:23:03 +02:00
|
|
|
procedure SetFormatFlags(const AValue: Cardinal);
|
2008-03-06 22:55:49 +01:00
|
|
|
public
|
|
|
|
property MapFile: string read FMapFile write SetMapFile;
|
|
|
|
property StaticsFile: string read FStaticsFile write SetStaticsFile;
|
|
|
|
property StaIdxFile: string read FStaIdxFile write SetStaIdxFile;
|
|
|
|
property Width: Word read FWidth write SetWidth;
|
|
|
|
property Height: Word read FHeight write SetHeight;
|
2015-05-01 12:23:03 +02:00
|
|
|
property FormatFlags: Cardinal read FFormatFlags write SetFormatFlags;
|
2008-03-06 22:55:49 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
{ TConfig }
|
|
|
|
|
|
|
|
TConfig = class(TObject, ISerializable, IInvalidate)
|
|
|
|
constructor Create(AFilename: string);
|
|
|
|
constructor Init(AFilename: string);
|
|
|
|
destructor Destroy; override;
|
|
|
|
procedure Serialize(AElement: TDOMElement);
|
|
|
|
protected
|
|
|
|
FFilename: string;
|
|
|
|
FPort: Integer;
|
|
|
|
FMap: TMapInfo;
|
|
|
|
FTiledata: string;
|
|
|
|
FRadarcol: string;
|
2015-05-01 12:23:03 +02:00
|
|
|
FLanguage: string;
|
2008-08-11 22:48:45 +02:00
|
|
|
FRegions: TRegionList;
|
2008-03-06 22:55:49 +01:00
|
|
|
FAccounts: TAccountList;
|
|
|
|
FChanged: Boolean;
|
|
|
|
procedure SetPort(const AValue: Integer);
|
|
|
|
procedure SetRadarcol(const AValue: string);
|
|
|
|
procedure SetTiledata(const AValue: string);
|
|
|
|
public
|
|
|
|
property Port: Integer read FPort write SetPort;
|
|
|
|
property Map: TMapInfo read FMap;
|
|
|
|
property Tiledata: string read FTiledata write SetTiledata;
|
|
|
|
property Radarcol: string read FRadarcol write SetRadarcol;
|
2008-08-11 22:48:45 +02:00
|
|
|
property Regions: TRegionList read FRegions;
|
2008-03-06 22:55:49 +01:00
|
|
|
property Accounts: TAccountList read FAccounts;
|
2015-05-01 12:23:03 +02:00
|
|
|
property Language: string read FLanguage;
|
2008-03-06 22:55:49 +01:00
|
|
|
procedure Flush;
|
|
|
|
procedure Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
var
|
|
|
|
AppDir: string;
|
|
|
|
ConfigFile: string;
|
|
|
|
Config: TConfig;
|
2015-05-01 12:23:03 +02:00
|
|
|
tmp_i: Integer;
|
2008-03-06 22:55:49 +01:00
|
|
|
|
|
|
|
function TimeStamp: string;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
const
|
2015-05-01 12:23:03 +02:00
|
|
|
CONFIGVERSION = 5;
|
2008-03-06 22:55:49 +01:00
|
|
|
|
|
|
|
function QueryPassword: String;
|
|
|
|
var
|
|
|
|
pwChar: char;
|
|
|
|
begin
|
|
|
|
Result := '';
|
|
|
|
|
|
|
|
InitKeyboard;
|
|
|
|
try
|
|
|
|
repeat
|
|
|
|
pwChar := GetKeyEventChar(TranslateKeyEvent(GetKeyEvent));
|
|
|
|
case pwChar of
|
|
|
|
#8: Result := Copy(Result, 1, Length(Result) - 1);
|
|
|
|
#13: break;
|
|
|
|
else
|
|
|
|
Result := Result + pwChar;
|
|
|
|
end;
|
|
|
|
until pwChar = #13;
|
|
|
|
finally
|
|
|
|
DoneKeyboard;
|
|
|
|
end;
|
|
|
|
writeln('');
|
|
|
|
end;
|
|
|
|
|
|
|
|
function TimeStamp: string;
|
|
|
|
begin
|
2015-05-01 12:23:03 +02:00
|
|
|
//Result := '[' + DateTimeToStr(Now) + '] ';
|
|
|
|
//Result := FormatDateTime('[yyyy.mm.dd hh:mm:ss] ', Now);
|
|
|
|
Result := FormatDateTime('[hh:mm:ss] ', Now);
|
2008-03-06 22:55:49 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
{ TMapInfo }
|
|
|
|
|
|
|
|
constructor TMapInfo.Create(AOwner: IInvalidate);
|
|
|
|
begin
|
|
|
|
inherited Create;
|
|
|
|
FOwner := AOwner;
|
|
|
|
end;
|
|
|
|
|
|
|
|
constructor TMapInfo.Deserialize(AOwner: IInvalidate; AElement: TDOMElement);
|
|
|
|
begin
|
|
|
|
Create(AOwner);
|
|
|
|
FMapFile := TXmlHelper.ReadString(AElement, 'Map', 'map0.mul');
|
|
|
|
FStaIdxFile := TXmlHelper.ReadString(AElement, 'StaIdx', 'staidx0.mul');
|
|
|
|
FStaticsFile := TXmlHelper.ReadString(AElement, 'Statics', 'statics0.mul');
|
|
|
|
FWidth := TXmlHelper.ReadInteger(AElement, 'Width', 768);
|
|
|
|
FHeight := TXmlHelper.ReadInteger(AElement, 'Height', 512);
|
2015-05-01 12:23:03 +02:00
|
|
|
FFormatFlags := $F0000000 + Cardinal(TXmlHelper.ReadInteger(AElement, 'Format', $0000) and $0000FFFF);
|
2008-03-06 22:55:49 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TMapInfo.Serialize(AElement: TDOMElement);
|
|
|
|
begin
|
2015-05-01 12:23:03 +02:00
|
|
|
TXmlHelper.WriteString(AElement, 'Map', FMapFile);
|
2008-03-06 22:55:49 +01:00
|
|
|
TXmlHelper.WriteString(AElement, 'StaIdx', FStaIdxFile);
|
2015-05-01 12:23:03 +02:00
|
|
|
TXmlHelper.WriteString(AElement, 'Statics',FStaticsFile);
|
|
|
|
TXmlHelper.WriteInteger(AElement,'Width', FWidth);
|
|
|
|
TXmlHelper.WriteInteger(AElement,'Height', FHeight);
|
|
|
|
TXmlHelper.WriteString(AElement, 'Format', Format('0x%.8x', [(FFormatFlags and $0000FFFF)]));
|
2008-03-06 22:55:49 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
procedure TMapInfo.SetMapFile(const AValue: string);
|
|
|
|
begin
|
|
|
|
FMapFile := AValue;
|
|
|
|
FOwner.Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TMapInfo.SetStaIdxFile(const AValue: string);
|
|
|
|
begin
|
|
|
|
FStaIdxFile := AValue;
|
|
|
|
FOwner.Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TMapInfo.SetStaticsFile(const AValue: string);
|
|
|
|
begin
|
|
|
|
FStaticsFile := AValue;
|
|
|
|
FOwner.Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TMapInfo.SetWidth(const AValue: Word);
|
|
|
|
begin
|
|
|
|
FWidth := AValue;
|
|
|
|
FOwner.Invalidate;
|
|
|
|
end;
|
|
|
|
|
2015-05-01 12:23:03 +02:00
|
|
|
procedure TMapInfo.SetHeight(const AValue: Word);
|
|
|
|
begin
|
|
|
|
FHeight := AValue;
|
|
|
|
FOwner.Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TMapInfo.SetFormatFlags(const AValue: Cardinal);
|
|
|
|
begin
|
|
|
|
FFormatFlags := AValue;
|
|
|
|
FOwner.Invalidate;
|
|
|
|
end;
|
|
|
|
|
2008-03-06 22:55:49 +01:00
|
|
|
{ TConfig }
|
|
|
|
|
|
|
|
constructor TConfig.Create(AFilename: string);
|
|
|
|
var
|
|
|
|
xmlDoc: TXMLDocument;
|
|
|
|
version: Integer;
|
|
|
|
xmlElement: TDOMElement;
|
|
|
|
begin
|
|
|
|
inherited Create;
|
|
|
|
FFilename := AFilename;
|
|
|
|
ReadXMLFile(xmlDoc, AFilename);
|
2008-08-23 23:09:20 +02:00
|
|
|
version := 0;
|
2008-03-06 22:55:49 +01:00
|
|
|
if not ((xmlDoc.DocumentElement.NodeName = 'CEDConfig') and
|
|
|
|
TryStrToInt(xmlDoc.DocumentElement.AttribStrings['Version'], version) and
|
|
|
|
(version = CONFIGVERSION)) then
|
2008-08-09 19:38:09 +02:00
|
|
|
raise TInvalidConfigException.Create(Format('Version mismatch: %d <> %d', [version, CONFIGVERSION]));
|
2008-03-06 22:55:49 +01:00
|
|
|
|
|
|
|
FPort := TXmlHelper.ReadInteger(xmlDoc.DocumentElement, 'Port', 2597);
|
|
|
|
|
|
|
|
xmlElement := TDOMElement(xmlDoc.DocumentElement.FindNode('Map'));
|
|
|
|
if not assigned(xmlElement) then
|
2008-08-09 19:38:09 +02:00
|
|
|
raise TInvalidConfigException.Create('Map information not found');
|
2008-03-06 22:55:49 +01:00
|
|
|
FMap := TMapInfo.Deserialize(Self, xmlElement);
|
|
|
|
|
|
|
|
FTiledata := TXmlHelper.ReadString(xmlDoc.DocumentElement, 'Tiledata', 'tiledata.mul');
|
|
|
|
FRadarcol := TXmlHelper.ReadString(xmlDoc.DocumentElement, 'Radarcol', 'radarcol.mul');
|
2015-05-01 12:23:03 +02:00
|
|
|
FLanguage := TXmlHelper.ReadString(xmlDoc.DocumentElement, 'Language', '..\Language\English.ini');
|
2008-08-11 22:48:45 +02:00
|
|
|
xmlElement := TDOMElement(xmlDoc.DocumentElement.FindNode('Regions'));
|
2015-05-01 12:23:03 +02:00
|
|
|
|
2008-08-11 22:48:45 +02:00
|
|
|
if assigned(xmlElement) then
|
|
|
|
FRegions := TRegionList.Deserialize(Self, xmlElement)
|
|
|
|
else
|
|
|
|
Fregions := TRegionList.Create(Self);
|
|
|
|
|
2008-03-06 22:55:49 +01:00
|
|
|
xmlElement := TDOMElement(xmlDoc.DocumentElement.FindNode('Accounts'));
|
|
|
|
if not assigned(xmlElement) then
|
2008-08-09 19:38:09 +02:00
|
|
|
raise TInvalidConfigException.Create('Account information not found');
|
2008-03-06 22:55:49 +01:00
|
|
|
FAccounts := TAccountList.Deserialize(Self, xmlElement);
|
2008-08-11 22:48:45 +02:00
|
|
|
|
2008-03-06 22:55:49 +01:00
|
|
|
xmlDoc.Free;
|
|
|
|
|
|
|
|
FChanged := False;
|
|
|
|
end;
|
|
|
|
|
|
|
|
constructor TConfig.Init(AFilename: string);
|
|
|
|
var
|
|
|
|
stringValue, password: string;
|
|
|
|
intValue: Integer;
|
|
|
|
begin
|
|
|
|
inherited Create;
|
|
|
|
FFilename := AFilename;
|
|
|
|
FMap := TMapInfo.Create(Self);
|
|
|
|
FAccounts := TAccountList.Create(Self);
|
2008-08-11 22:48:45 +02:00
|
|
|
FRegions := TRegionList.Create(Self);
|
2015-05-01 12:23:03 +02:00
|
|
|
|
|
|
|
Writeln('');
|
|
|
|
Writeln('==============');
|
|
|
|
FLanguage := '..\Language\English.ini';
|
|
|
|
Writeln(UTF8ToCP866('language file [' + FLanguage + ']'));
|
|
|
|
Readln (stringValue);
|
|
|
|
if (stringValue <> '')
|
|
|
|
then FLanguage := stringValue;
|
|
|
|
LanguageLoad(FLanguage);
|
|
|
|
Writeln('');
|
|
|
|
|
|
|
|
Writeln(GetText('iNetwork'));
|
|
|
|
Writeln('==============');
|
|
|
|
Write (GetText('iSetPort') + UTF8ToCP866(' [2597]: '));
|
2008-03-06 22:55:49 +01:00
|
|
|
Readln (stringValue);
|
2008-08-23 23:09:20 +02:00
|
|
|
intValue := 0;
|
2008-03-06 22:55:49 +01:00
|
|
|
if not TryStrToInt(stringValue, intValue) then intValue := 2597;
|
|
|
|
FPort := intValue;
|
|
|
|
Writeln('');
|
|
|
|
|
2015-05-01 12:23:03 +02:00
|
|
|
Writeln(GetText('iDatPath'));
|
|
|
|
Writeln('===============');
|
|
|
|
Write ('map [map0.mul]: ');
|
2009-08-02 18:43:32 +02:00
|
|
|
Readln (FMap.FMapFile);
|
2008-03-06 22:55:49 +01:00
|
|
|
if FMap.MapFile = '' then FMap.MapFile := 'map0.mul';
|
2015-05-01 12:23:03 +02:00
|
|
|
Write ('staidx [staidx0.mul]: ');
|
2009-08-02 18:43:32 +02:00
|
|
|
Readln (FMap.FStaIdxFile);
|
2008-03-06 22:55:49 +01:00
|
|
|
if FMap.StaIdxFile = '' then FMap.StaIdxFile := 'staidx0.mul';
|
2015-05-01 12:23:03 +02:00
|
|
|
Write ('statics [statics0.mul]: ');
|
|
|
|
Readln (FMap.FStaticsFile);
|
|
|
|
if FMap.StaticsFile = '' then FMap.StaticsFile := 'statics0.mul';
|
2008-03-06 22:55:49 +01:00
|
|
|
Write ('tiledata [tiledata.mul]: ');
|
|
|
|
Readln (FTiledata);
|
|
|
|
if FTiledata = '' then FTiledata := 'tiledata.mul';
|
|
|
|
Write ('radarcol [radarcol.mul]: ');
|
|
|
|
Readln (FRadarcol);
|
|
|
|
if FRadarcol = '' then FRadarcol := 'radarcol.mul';
|
|
|
|
Writeln('');
|
|
|
|
|
2015-05-01 12:23:03 +02:00
|
|
|
Writeln(GetText('iMapDesc'));
|
|
|
|
Writeln('===============');
|
|
|
|
Write (GetText('iMapWidt') + UTF8ToCP866(' [768]: '));
|
2008-03-06 22:55:49 +01:00
|
|
|
Readln (stringValue);
|
|
|
|
if not TryStrToInt(stringValue, intValue) then intValue := 768;
|
|
|
|
FMap.Width := intValue;
|
2015-05-01 12:23:03 +02:00
|
|
|
Write (GetText('iMapHeig') + UTF8ToCP866(' [512]: '));
|
2008-03-06 22:55:49 +01:00
|
|
|
Readln (stringValue);
|
|
|
|
if not TryStrToInt(stringValue, intValue) then intValue := 512;
|
|
|
|
FMap.Height := intValue;
|
2015-05-01 12:23:03 +02:00
|
|
|
Write (GetText('iDFormat') + UTF8ToCP866(' [0x0000]: '));
|
|
|
|
Readln (stringValue);
|
|
|
|
if not TryStrToInt(stringValue, intValue) then intValue := $0000;
|
|
|
|
FMap.FormatFlags := $F0000000 + Cardinal(intValue);
|
2008-03-06 22:55:49 +01:00
|
|
|
Writeln('');
|
|
|
|
|
2015-05-01 12:23:03 +02:00
|
|
|
Writeln(GetText('iAccount'));
|
|
|
|
Writeln('======================');
|
2008-03-06 22:55:49 +01:00
|
|
|
repeat
|
2015-05-01 12:23:03 +02:00
|
|
|
Write(GetText('iUserAcc') + UTF8ToCP866(' '));
|
2008-03-06 22:55:49 +01:00
|
|
|
Readln(stringValue);
|
|
|
|
until stringValue <> '';
|
2015-05-01 12:23:03 +02:00
|
|
|
Write (GetText('iUserPas') + UTF8ToCP866(' '));
|
2008-03-06 22:55:49 +01:00
|
|
|
password := QueryPassword;
|
|
|
|
FAccounts.Add(TAccount.Create(FAccounts, stringValue,
|
2008-08-11 22:48:45 +02:00
|
|
|
MD5Print(MD5String(password)), alAdministrator, nil));
|
2008-03-06 22:55:49 +01:00
|
|
|
|
|
|
|
FChanged := True;
|
|
|
|
end;
|
|
|
|
|
|
|
|
destructor TConfig.Destroy;
|
|
|
|
begin
|
|
|
|
if Assigned(FMap) then FreeAndNil(FMap);
|
|
|
|
if Assigned(FAccounts) then FreeAndNil(FAccounts);
|
2008-08-11 22:48:45 +02:00
|
|
|
if Assigned(FRegions) then FreeAndNil(FRegions);
|
2008-03-06 22:55:49 +01:00
|
|
|
inherited Destroy;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TConfig.Serialize(AElement: TDOMElement);
|
|
|
|
begin
|
2015-05-01 12:23:03 +02:00
|
|
|
TXmlHelper.WriteString(AElement, 'Language', FLanguage);
|
2008-03-06 22:55:49 +01:00
|
|
|
TXmlHelper.WriteInteger(AElement, 'Port', FPort);
|
|
|
|
FMap.Serialize(TXmlHelper.AssureElement(AElement, 'Map'));
|
|
|
|
TXmlHelper.WriteString(AElement, 'Tiledata', FTiledata);
|
|
|
|
TXmlHelper.WriteString(AElement, 'Radarcol', FRadarcol);
|
|
|
|
FAccounts.Serialize(TXmlHelper.AssureElement(AElement, 'Accounts'));
|
2008-08-11 22:48:45 +02:00
|
|
|
FRegions.Serialize(TXmlHelper.AssureElement(AElement, 'Regions'));
|
2008-03-06 22:55:49 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TConfig.SetPort(const AValue: Integer);
|
|
|
|
begin
|
|
|
|
FPort := AValue;
|
|
|
|
Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TConfig.SetRadarcol(const AValue: string);
|
|
|
|
begin
|
|
|
|
FRadarcol := AValue;
|
|
|
|
Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TConfig.SetTiledata(const AValue: string);
|
|
|
|
begin
|
|
|
|
FTiledata := AValue;
|
|
|
|
Invalidate;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TConfig.Flush;
|
|
|
|
var
|
|
|
|
xmlDoc: TXMLDocument;
|
|
|
|
begin
|
|
|
|
if FChanged then
|
|
|
|
begin
|
|
|
|
xmlDoc := TXMLDocument.Create;
|
|
|
|
xmlDoc.AppendChild(xmlDoc.CreateElement('CEDConfig'));
|
|
|
|
xmlDoc.DocumentElement.AttribStrings['Version'] := IntToStr(CONFIGVERSION);
|
|
|
|
Serialize(xmlDoc.DocumentElement);
|
|
|
|
WriteXMLFile(xmlDoc, FFilename);
|
|
|
|
xmlDoc.Free;
|
|
|
|
FChanged := False;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure TConfig.Invalidate;
|
|
|
|
begin
|
|
|
|
FChanged := True;
|
|
|
|
end;
|
|
|
|
|
|
|
|
initialization
|
|
|
|
begin
|
|
|
|
AppDir := ExtractFilePath(ParamStr(0));
|
|
|
|
if AppDir[Length(AppDir)] <> PathDelim then
|
|
|
|
AppDir := AppDir + PathDelim;
|
2015-05-01 12:23:03 +02:00
|
|
|
|
2008-03-06 22:55:49 +01:00
|
|
|
Config := nil;
|
2015-05-01 12:23:03 +02:00
|
|
|
ConfigFile := '';
|
|
|
|
for tmp_i := 0 to ParamCount do begin
|
|
|
|
if LowerCase(ExtractFileExt(ParamStr(tmp_i))) = '.xml'
|
|
|
|
then ConfigFile := ExtractFilePath(ParamStr(0)) + ParamStr(1);
|
|
|
|
end;
|
|
|
|
if ConfigFile = ''
|
|
|
|
then ConfigFile := ChangeFileExt(ParamStr(0), '.xml');
|
2008-03-06 22:55:49 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
|
|
|