Update source/Main.brs

Co-authored-by: Charles Ewert <cewert@gmail.com>
This commit is contained in:
1hitsong 2023-04-10 21:38:11 -04:00 committed by GitHub
parent d111a63ee9
commit d9a8c185cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ sub Main (args as dynamic) as void
filename = APIRequest("FallbackFont/Fonts").GetToString()
if isValid(filename)
filename = re.match(filename)
if filename.count() > 0
if isValid(filename) and filename.count() > 0
filename = filename[1]
APIRequest("FallbackFont/Fonts/" + filename).gettofile("tmp:/font")
end if