mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 02:32:19 -05:00
Merge branch 'Default.simba' of https://github.com/Dgby714/Simba into Dgby714-Default.simba
This commit is contained in:
commit
a4c6d6e02c
@ -1592,8 +1592,12 @@ begin
|
|||||||
if FileExistsUTF8(SimbaForm.DefScriptPath) then
|
if FileExistsUTF8(SimbaForm.DefScriptPath) then
|
||||||
begin
|
begin
|
||||||
x := TStringList.Create;
|
x := TStringList.Create;
|
||||||
|
try
|
||||||
x.LoadFromFile(SimbaForm.DefScriptPath);
|
x.LoadFromFile(SimbaForm.DefScriptPath);
|
||||||
result := x.Text;
|
except
|
||||||
|
mDebugLn('Couldn''t load default script file.');
|
||||||
|
end;
|
||||||
|
Result := x.Text;
|
||||||
end else
|
end else
|
||||||
result := 'program new;'+LineEnding + 'begin'+LineEnding+'end.' + LineEnding;
|
result := 'program new;'+LineEnding + 'begin'+LineEnding+'end.' + LineEnding;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user