Changeset 339 for trunk/Direct.pas
- Timestamp:
- Apr 1, 2021, 6:12:35 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Direct.pas
r338 r339 43 43 44 44 uses 45 ScreenTools, Protocol, Start, LocalPlayer, NoTerm, Back ;45 ScreenTools, Protocol, Start, LocalPlayer, NoTerm, Back, Global; 46 46 47 47 {$R *.lfm} … … 204 204 i: integer; 205 205 s: string; 206 FileName: string; 206 207 begin 207 208 Hide; … … 229 230 end; 230 231 end 231 else if (FileExists(ParamStr(1))) then 232 begin 233 Quick := True; 234 if not LoadGame(ExtractFilePath(ParamStr(1)), ExtractFileName(ParamStr(1) 235 ), -1, false) then 236 begin 232 else if (FileExists(ParamStr(1))) then begin 233 FileName := ParamStr(1); 234 if ExtractFileExt(FileName) = CevoExt then begin 235 Quick := True; 236 if not LoadGame(ExtractFilePath(ParamStr(1)), ExtractFileName(ParamStr(1) 237 ), -1, false) then begin 238 SimpleMessage(Phrases.Lookup('LOADERR')); 239 Close; 240 end; 241 end else 242 if ExtractFileExt(FileName) = CevoMapExt then begin 243 Quick := True; 244 EditMap(FileName, lxmax, lymax, 30); 245 end else begin 237 246 SimpleMessage(Phrases.Lookup('LOADERR')); 238 247 Close;
Note:
See TracChangeset
for help on using the changeset viewer.