Changeset 338 for trunk


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.
Location:
trunk
Files:
2 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
  • trunk/GameServer.pas

    r336 r338  
    2525  // notifications
    2626  TNotify = (
    27     ntCreateWorld = 0,
    28     ntInitModule = $100,
    29     ntInitLocalHuman = $1FF,
    30     ntDLLError = $200,
    31     ntAIError = $2FF,
    32     ntClientError = $300,
    33     ntInitPlayers = $400,
    34     ntDeactivationMissing = $410,
    35     ntSetAIName = $420,
    36     ntException = $500,
    37     ntLoadBegin = $600,
    38     ntLoadState = $601,
    39     ntEndInfo = $6FC,
    40     ntBackOn = $6FD,
    41     ntBackOff = $6FE,
    42     ntLoadError = $6FF,
    43     ntStartDone = $700,
    44     ntStartGo = $701,
    45     ntStartGoRefresh = $702,
    46     ntStartGoRefreshMaps = $703,
    47     ntChangeClient = $800,
    48     ntNextPlayer = $810,
    49     ntDeinitModule = $900
     27    ntCreateWorld,
     28    ntInitModule,
     29    ntInitLocalHuman,
     30    ntDLLError,
     31    ntAIError,
     32    ntClientError,
     33    ntInitPlayers,
     34    ntDeactivationMissing,
     35    ntSetAIName,
     36    ntException,
     37    ntLoadBegin,
     38    ntLoadState,
     39    ntEndInfo,
     40    ntBackOn,
     41    ntBackOff,
     42    ntLoadError,
     43    ntStartDone,
     44    ntStartGo,
     45    ntStartGoRefresh,
     46    ntStartGoRefreshMaps,
     47    ntChangeClient,
     48    ntNextPlayer,
     49    ntDeinitModule
    5050  );
    5151
Note: See TracChangeset for help on using the changeset viewer.