Changeset 246 for branches/highdpi/GameServer.pas
- Timestamp:
- May 21, 2020, 8:17:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/GameServer.pas
r210 r246 4503 4503 end; { <<<server } 4504 4504 4505 function ExtractFileNameWithoutExt(const Filename: string): string; 4506 var 4507 P: Integer; 4508 begin 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; 4521 end; 4522 4505 4523 { TBrain } 4506 4524
Note:
See TracChangeset
for help on using the changeset viewer.