- Timestamp:
- Apr 24, 2021, 1:51:40 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameServer.pas
r367 r375 4495 4495 end; { <<<server } 4496 4496 4497 function ExtractFileNameWithoutExt(const Filename: string): string;4498 var4499 P: Integer;4500 begin4501 Result := Filename;4502 P := Length(Result);4503 while P > 0 do begin4504 case Result[P] of4505 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 4515 4497 4516 4498 initialization -
trunk/Packages/CevoComponents/ScreenTools.pas
r374 r375 54 54 procedure EditFrame(ca: TCanvas; p: TRect; T: TTexture); 55 55 function HexStringToColor(S: string): integer; 56 function ExtractFileNameWithoutExt(const Filename: string): string; 56 57 function LoadGraphicFile(Bmp: TBitmap; FileName: string; Options: TLoadGraphicFileOptions = []): boolean; 57 58 function LoadGraphicSet(const Name: string): TGraphicSet; … … 493 494 end; 494 495 496 function ExtractFileNameWithoutExt(const Filename: string): string; 497 var 498 P: Integer; 499 begin 500 Result := Filename; 501 P := Length(Result); 502 while P > 0 do begin 503 case Result[P] of 504 PathDelim: Exit; 505 {$ifdef windows} 506 '/': if ('/' in AllowDirectorySeparators) then Exit; 507 {$endif} 508 '.': Exit(Copy(Result, 1, P - 1)); 509 end; 510 Dec(P); 511 end; 512 end; 513 495 514 function LoadGraphicSet(const Name: string): TGraphicSet; 496 515 var -
trunk/UBrain.pas
r368 r375 51 51 52 52 implementation 53 54 uses 55 ScreenTools; 53 56 54 57 { TBrain }
Note:
See TracChangeset
for help on using the changeset viewer.