Skip to content

Commit

Permalink
ahfhath
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy committed Sep 11, 2024
1 parent 91f45cd commit 9528f5d
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/supertux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,20 +205,6 @@ void PhysfsSubsystem::find_mount_datadir()
log_warning << "Couldn't setup android assets: " << PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()) << std::endl;
}

/*
PHYSFS_File* data = PHYSFS_openRead("assets/data.zip");
if (!data)
{
log_warning << "Couldn't open assets/data.zip inside '" << assetpack << "' : " << PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()) << std::endl;
return;
}
if (!PHYSFS_mountHandle(data, "assets/data.zip", nullptr, 1))
{
log_warning << "Couldn't add assets/data.zip inside '" << assetpack << "' to physfs searchpath: " << PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()) << std::endl;
}
*/

return;
#endif

Expand Down Expand Up @@ -452,7 +438,10 @@ PhysfsSubsystem::setup_android_datadir() const
if (newdata) {
// Copy
SDL_RWops* zipcp = SDL_RWFromFile(newzip.c_str(), "w");
if (!zipcp) return false;
if (!zipcp) {
SDL_free(zipdata);
return false;
}
SDL_RWwrite(zipcp, zipdata, sizeof(char), zipsz);
SDL_RWclose(zipcp);
}
Expand Down

0 comments on commit 9528f5d

Please sign in to comment.