source: branches/Independent/FileSystem.pas

Last change on this file was 66, checked in by chronos, 6 weeks ago
  • Added: Api calls to show windows.
File size: 613 bytes
Line 
1unit FileSystem;
2
3interface
4
5uses
6 Classes, SysUtils;
7
8type
9 TLoadFileEvent = function (Name: string): string of object;
10
11 { TFileSystem }
12
13 TFileSystem = class
14 private
15 FOnLoadFile: TLoadFileEvent;
16 public
17 function LoadFile(Name: string): string;
18 constructor Create;
19 published
20 property OnLoadFile: TLoadFileEvent read FOnLoadFile write FOnLoadFile;
21 end;
22
23implementation
24
25{ TFileSystem }
26
27function TFileSystem.LoadFile(Name: string): string;
28begin
29 if Assigned(FOnLoadFile) then Result := FOnLoadFile(Name)
30 else Result := '';
31end;
32
33constructor TFileSystem.Create;
34begin
35end;
36
37end.
38
Note: See TracBrowser for help on using the repository browser.