Unicode fix
This commit is contained in:
@@ -49,8 +49,8 @@ type
|
|||||||
consts:TList<TPair<string,TValue>>;
|
consts:TList<TPair<string,TValue>>;
|
||||||
FText:string;
|
FText:string;
|
||||||
//function GetIncLibs():string;
|
//function GetIncLibs():string;
|
||||||
//function GetText:string;override;
|
function GetText:string;override;
|
||||||
//procedure SetText(S:string);override;
|
procedure SetText(S:string);override;
|
||||||
public
|
public
|
||||||
constructor Create(Compiler:TRTBLuaCompiler);
|
constructor Create(Compiler:TRTBLuaCompiler);
|
||||||
|
|
||||||
@@ -359,7 +359,7 @@ end;
|
|||||||
destructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaLib.Destroy;
|
destructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaLib.Destroy;
|
||||||
begin
|
begin
|
||||||
FreeLibrary(Lib);
|
FreeLibrary(Lib);
|
||||||
end;}
|
end;*)
|
||||||
|
|
||||||
function TRTBLuaCompiler.TRTBLuaSource.GetText:string;
|
function TRTBLuaCompiler.TRTBLuaSource.GetText:string;
|
||||||
begin
|
begin
|
||||||
@@ -371,7 +371,7 @@ begin
|
|||||||
FText:=S;
|
FText:=S;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TRTBLuaCompiler.TRTBLuaSource.Create(Compiler:TRTBLuaCompiler);
|
{constructor TRTBLuaCompiler.TRTBLuaSource.Create(Compiler:TRTBLuaCompiler);
|
||||||
begin
|
begin
|
||||||
inherited Create(Compiler);
|
inherited Create(Compiler);
|
||||||
FText:='';
|
FText:='';
|
||||||
@@ -598,11 +598,14 @@ function TRTBLuaCompiler.TRTBLuaSource.Compilate:TRTBModule;
|
|||||||
PreDecl:=PreDecl+Key+' equ 0'+sLineBreak;
|
PreDecl:=PreDecl+Key+' equ 0'+sLineBreak;
|
||||||
end;
|
end;
|
||||||
var
|
var
|
||||||
templib,PreDecl:string;
|
s,PreDecl:string;
|
||||||
i,sb:NativeUInt;
|
i,sb:NativeUInt;
|
||||||
RegVarDict:TDictionary<string,TPair<NativeUInt,PTypeInfo>>;
|
RegVarDict:TDictionary<string,TPair<NativeUInt,PTypeInfo>>;
|
||||||
p:pointer;
|
p:pointer;
|
||||||
begin
|
begin
|
||||||
|
PreDecl:='';
|
||||||
|
for s in libs do
|
||||||
|
PreDecl:=PreDecl+'local '+s+'=require("'+s+'")';
|
||||||
{RegVarDict:=TDictionary<string,TPair<NativeUInt,PTypeInfo>>.Create();
|
{RegVarDict:=TDictionary<string,TPair<NativeUInt,PTypeInfo>>.Create();
|
||||||
with regvars do
|
with regvars do
|
||||||
if Count<>0 then
|
if Count<>0 then
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user