Skip to content

Commit

Permalink
more ppge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaMoo committed Apr 5, 2020
1 parent 6e202e5 commit 23e647a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/Util/PPGeDraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,17 @@ void __PPGeInit() {
int height[12]{};
int flags = 0;

bool loadedZIM = !skipZIM && LoadZIM("ppge_atlas.zim", width, height, &flags, imageData);
bool loadedZIM = !skipZIM && LoadZIM("ppge_atlas_luna.zim", width, height, &flags, imageData);
if (!skipZIM && !loadedZIM) {
PanicAlert("Failed to load ppge_atlas.zim.\n\nPlace it in the directory \"assets\" under your PPSSPP directory.");
PanicAlert("Failed to load ppge_atlas_luna.zim.\n\nPlace it in the directory \"assets\" under your PPSSPP directory.");
ERROR_LOG(SCEGE, "PPGe init failed - no atlas texture. PPGe stuff will not be drawn.");
}

if (loadedZIM) {
size_t atlas_data_size;
uint8_t *atlas_data;
if (!g_ppge_atlas.IsMetadataLoaded()) {
atlas_data = VFSReadFile("ppge_atlas.meta", &atlas_data_size);
atlas_data = VFSReadFile("ppge_atlas_luna.meta", &atlas_data_size);
if (atlas_data)
g_ppge_atlas.Load(atlas_data, atlas_data_size);
delete[] atlas_data;
Expand Down

0 comments on commit 23e647a

Please sign in to comment.