Changeset 375 for trunk/GameServer.pas


Ignore:
Timestamp:
Apr 24, 2021, 1:51:40 PM (3 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameServer.pas

    r367 r375  
    44954495end; { <<<server }
    44964496
    4497 function ExtractFileNameWithoutExt(const Filename: string): string;
    4498 var
    4499   P: Integer;
    4500 begin
    4501   Result := Filename;
    4502   P := Length(Result);
    4503   while P > 0 do begin
    4504     case Result[P] of
    4505       PathDelim: Exit;
    4506       {$ifdef windows}
    4507       '/': if ('/' in AllowDirectorySeparators) then Exit;
    4508       {$endif}
    4509       '.': Exit(Copy(Result, 1, P - 1));
    4510     end;
    4511     Dec(P);
    4512   end;
    4513 end;
    4514 
    45154497
    45164498initialization
Note: See TracChangeset for help on using the changeset viewer.