Ignore:
Timestamp:
May 21, 2020, 8:17:38 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Update from trunk rev 245.
  • Modified: Vcl prefix/suffix changed to Native.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/GameServer.pas

    r210 r246  
    45034503end; { <<<server }
    45044504
     4505function ExtractFileNameWithoutExt(const Filename: string): string;
     4506var
     4507  P: Integer;
     4508begin
     4509  Result := Filename;
     4510  P := Length(Result);
     4511  while P > 0 do begin
     4512    case Result[P] of
     4513      PathDelim: Exit;
     4514      {$ifdef windows}
     4515      '/': if ('/' in AllowDirectorySeparators) then Exit;
     4516      {$endif}
     4517      '.': Exit(Copy(Result, 1, P - 1));
     4518    end;
     4519    Dec(P);
     4520  end;
     4521end;
     4522
    45054523{ TBrain }
    45064524
Note: See TracChangeset for help on using the changeset viewer.