mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
PPGe: Avoid crash with missing metadata.
This commit is contained in:
1 parent
a70f00ca8e
commit
d2d07e253b
1 file changed
+2
-1
@@ -231,7 +231,8 @@ void __PPGeInit() {
|
||||
uint8_t *atlas_data;
|
||||
if (!g_ppge_atlas.IsMetadataLoaded()) {
|
||||
atlas_data = VFSReadFile("ppge_atlas.meta", &atlas_data_size);
|
||||
g_ppge_atlas.Load(atlas_data, atlas_data_size);
|
||||
if (atlas_data)
|
||||
g_ppge_atlas.Load(atlas_data, atlas_data_size);
|
||||
delete[] atlas_data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user