mmlcore: LoadFont() did not return True on success.

This commit is contained in:
Merlijn Wajer 2010-09-18 13:04:02 +02:00
parent bda9bb9ab9
commit 6494b951bb
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ function TMFonts.LoadFont(const Name: String; Shadow: Boolean): boolean;
var
f: TMFont;
begin
Result := True;
if not DirectoryExists(FPath + Name) then
begin
raise Exception.Create('LoadFont: Directory ' + FPath + Name + ' does not exists.');