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 | |
---|
1 | unit FileSystem;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils;
|
---|
7 |
|
---|
8 | type
|
---|
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 |
|
---|
23 | implementation
|
---|
24 |
|
---|
25 | { TFileSystem }
|
---|
26 |
|
---|
27 | function TFileSystem.LoadFile(Name: string): string;
|
---|
28 | begin
|
---|
29 | if Assigned(FOnLoadFile) then Result := FOnLoadFile(Name)
|
---|
30 | else Result := '';
|
---|
31 | end;
|
---|
32 |
|
---|
33 | constructor TFileSystem.Create;
|
---|
34 | begin
|
---|
35 | end;
|
---|
36 |
|
---|
37 | end.
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.