Create flash0:/font/ if not exists

This commit is contained in:
raven02 2013-02-28 22:36:57 +08:00
parent 892422b408
commit 127ee5d30f

View File

@ -364,6 +364,9 @@ LoadedFont *GetLoadedFont(u32 handle, bool allowClosed) {
void __LoadInternalFonts() {
std::string fontPath = "flash0:/font/";
if (!pspFileSystem.GetFileInfo(fontPath).exists) {
pspFileSystem.MkDir(fontPath);
}
for (size_t i = 0; i < ARRAY_SIZE(fontRegistry); i++) {
const FontRegistryEntry &entry = fontRegistry[i];
std::string fontFilename = fontPath + entry.fileName;