Revision 13:c78b5eafa10e Server/UConfig.pas
| b/Server/UConfig.pas | ||
|---|---|---|
| 201 | 201 |
inherited Create; |
| 202 | 202 |
FFilename := AFilename; |
| 203 | 203 |
ReadXMLFile(xmlDoc, AFilename); |
| 204 |
version := 0; |
|
| 204 | 205 |
if not ((xmlDoc.DocumentElement.NodeName = 'CEDConfig') and |
| 205 | 206 |
TryStrToInt(xmlDoc.DocumentElement.AttribStrings['Version'], version) and |
| 206 | 207 |
(version = CONFIGVERSION)) then |
| ... | ... | |
| 247 | 248 |
Writeln('===================');
|
| 248 | 249 |
Write ('Port [2597]: ');
|
| 249 | 250 |
Readln (stringValue); |
| 251 |
intValue := 0; |
|
| 250 | 252 |
if not TryStrToInt(stringValue, intValue) then intValue := 2597; |
| 251 | 253 |
FPort := intValue; |
| 252 | 254 |
Writeln('');
|
Also available in: Unified diff