mirror of
https://github.com/moparisthebest/Simba
synced 2025-01-30 23:00:18 -05:00
Fixed filestreams, yay!
This commit is contained in:
parent
2759ad3a03
commit
6d8da49050
@ -191,23 +191,23 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$IFDEF FPC}
|
{{$IFDEF FPC}
|
||||||
// mh: because FPC doesn't handle pointers to overloaded functions
|
// mh: because FPC doesn't handle pointers to overloaded functions
|
||||||
function TFileStreamCreate(filename: string; mode: word): TFileStream;
|
function TFileStreamCreate(filename: string; mode: word): TFileStream;
|
||||||
begin
|
begin
|
||||||
result := TFilestream.Create(filename, mode);
|
result := TFilestream.Create(filename, mode);
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}}
|
||||||
|
|
||||||
procedure RIRegisterTFILESTREAM(Cl: TPSRuntimeClassImporter);
|
procedure RIRegisterTFILESTREAM(Cl: TPSRuntimeClassImporter);
|
||||||
begin
|
begin
|
||||||
with Cl.Add(TFILESTREAM) do
|
with Cl.Add(TFILESTREAM) do
|
||||||
begin
|
begin
|
||||||
{$IFDEF FPC}
|
// {$IFDEF FPC}
|
||||||
RegisterConstructor(@TFileStreamCreate, 'CREATE');
|
// RegisterConstructor(@TFileStreamCreate, 'CREATE');
|
||||||
{$ELSE}
|
// {$ELSE}
|
||||||
RegisterConstructor(@TFILESTREAM.CREATE, 'CREATE');
|
RegisterConstructor(@TFILESTREAM.CREATE, 'CREATE');
|
||||||
{$ENDIF}
|
// {$ENDIF}
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user