mirror of
https://github.com/moparisthebest/Simba
synced 2024-08-13 16:53:59 -04:00
mmlcore: LoadFont() did not return True on success.
This commit is contained in:
parent
bda9bb9ab9
commit
6494b951bb
@ -202,6 +202,7 @@ function TMFonts.LoadFont(const Name: String; Shadow: Boolean): boolean;
|
|||||||
var
|
var
|
||||||
f: TMFont;
|
f: TMFont;
|
||||||
begin
|
begin
|
||||||
|
Result := True;
|
||||||
if not DirectoryExists(FPath + Name) then
|
if not DirectoryExists(FPath + Name) then
|
||||||
begin
|
begin
|
||||||
raise Exception.Create('LoadFont: Directory ' + FPath + Name + ' does not exists.');
|
raise Exception.Create('LoadFont: Directory ' + FPath + Name + ' does not exists.');
|
||||||
|
Loading…
Reference in New Issue
Block a user