Changeset 338 for trunk/Direct.pas


Ignore:
Timestamp:
Apr 1, 2021, 10:11:46 AM (3 years ago)
Author:
chronos
Message:
  • Fixed: C-evo executed with full book file path as parameter starting with "/" on Linux was not directly opened. "/" was used as parameter symbol.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Direct.pas

    r337 r338  
    216216  begin
    217217    s := ParamStr(1);
    218     if (s[1] = '-') or (s[1] = '/') then
     218    if (s[1] = '-') {$IFDEF WINDOWS}or (s[1] = '/'){$ENDIF} then
    219219    begin // special mode
    220220      Delete(s, 1, 1);
     
    231231    else if (FileExists(ParamStr(1))) then
    232232    begin
    233       Quick := true;
     233      Quick := True;
    234234      if not LoadGame(ExtractFilePath(ParamStr(1)), ExtractFileName(ParamStr(1)
    235235        ), -1, false) then
Note: See TracChangeset for help on using the changeset viewer.