mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
Add more check for safely
This commit is contained in:
1 parent
390ecb3184
commit
da8188ab7d
1 file changed
+1
-1
@@ -645,7 +645,7 @@ static void __LoadInternalFonts() {
|
||||
if (!pspFileSystem.GetFileInfo(fontPath).exists) {
|
||||
pspFileSystem.MkDir(fontPath);
|
||||
}
|
||||
if (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/USRDIR/zh_gb.pgf").exists) {
|
||||
if ((pspFileSystem.GetFileInfo("disc0:/PSP_GAME/USRDIR/zh_gb.pgf").exists) && (pspFileSystem.GetFileInfo("disc0:/PSP_GAME/USRDIR/oldfont.prx").exists)) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(fontRegistry); i++) {
|
||||
const FontRegistryEntry &entry = fontRegistry[i];
|
||||
std::string fontFilename = userfontPath + entry.fileName;
|
||||
|
||||
Reference in new issue
Block a user