fix: Windows archive file discovery

This commit is contained in:
Tropical 2026-04-10 20:37:08 -07:00
parent 93215033e4
commit b7ad828882
9 changed files with 6 additions and 31 deletions

View file

@ -10,8 +10,9 @@ project(
'warning_level=0',
'unity=on', # merge source files per target
'unity_size=8', # TODO: mess around with this
'buildtype=debugoptimized', # needed for _FORTIFY_SOURCE
'buildtype=debug',
'b_pch=true', # precompiled headers
'default_library=static', # static linkage to subprojects
# 'b_lto=true', # link-time optimisation (ThinLTO under clang+lld)
# 'b_ndebug=if-release', # drop assert() in --buildtype=release
],

View file

@ -259,11 +259,7 @@ int Game::GetLocalPlayerCount(void) {
// Installed DLC callback
// 4J-JEV: For the sake of clarity in DLCMountedCallback.
#if defined(_WINDOWS64)
#define CONTENT_DATA_DISPLAY_NAME(a) (a.szDisplayName)
#else
#define CONTENT_DATA_DISPLAY_NAME(a) (a.wszDisplayName)
#endif
#undef CONTENT_DATA_DISPLAY_NAME

View file

@ -1202,12 +1202,6 @@ private:
std::string getRootPath(std::uint32_t packId, bool allowOverride,
bool bAddDataFolder, std::string mountPoint);
public:
#if defined(_WINDOWS64)
// CMinecraftAudio audio;
#else
#endif
};
extern Game app;

View file

@ -41,17 +41,10 @@ void GameSettingsManager::initGameSettings() {
// clear the flag to say the settings have changed
GameSettingsA[i]->bSettingsChanged = false;
#if defined(_WINDOWS64)
IPlatformProfile::PROFILESETTINGS* pProfileSettings =
PlatformProfile.GetDashboardProfileSettings(i);
memset(pProfileSettings, 0, sizeof(IPlatformProfile::PROFILESETTINGS));
setDefaultOptions(pProfileSettings, i);
#else
IPlatformProfile::PROFILESETTINGS* pProfileSettings =
PlatformProfile.GetDashboardProfileSettings(i);
memset(pProfileSettings, 0, sizeof(IPlatformProfile::PROFILESETTINGS));
setDefaultOptions(pProfileSettings, i);
#endif
}
}

View file

@ -1119,7 +1119,7 @@ void UIScene_LoadOrJoinMenu::UpdateGamesList() {
delete m_currentSessions;
m_currentSessions =
g_NetworkManager.GetSessionList(m_iPad, 1, m_bShowingPartyGamesOnly);
PlatformNetwork.GetSessionList(m_iPad, 1, m_bShowingPartyGamesOnly);
// Update the xui list displayed
unsigned int xuiListSize = m_buttonListGames.getItemCount();

View file

@ -350,7 +350,7 @@ inline bool eTYPE_FLAGSET(eINSTANCEOF flag, eINSTANCEOF claz) {
/// FOR CHECKING ///
#if !(defined _WINDOWS64)
#if 1
class SubClass {
static void checkDerivations() {}

View file

@ -122,9 +122,8 @@ File::File(const std::string& pathname) {
File::File(const std::string& parent,
const std::string& child) //: m_abstractPathName( child )
{
m_abstractPathName =
pathRoot + pathSeparator + parent + pathSeparator + child;
// this->parent = new File( parent );
// Using std::filesystem::path to join paths properly
m_abstractPathName = (std::filesystem::path(parent) / child).string();
}
// Creates a new File instance by converting the given path vector into an

View file

@ -68,13 +68,8 @@ public:
static const int CHUNK_SIZE = 16;
#endif
static const int CHUNK_Y_COUNT = Level::maxBuildHeight / CHUNK_SIZE;
#if defined(_WINDOWS64)
static const int MAX_COMMANDBUFFER_ALLOCATIONS =
512 * 1024 * 1024; // 4J - added
#else
static const int MAX_COMMANDBUFFER_ALLOCATIONS =
55 * 1024 * 1024; // 4J - added
#endif
public:
LevelRenderer(Minecraft* mc, Textures* textures);

View file

@ -33,9 +33,6 @@
#include "platform/storage/storage.h"
#include "util/StringHelpers.h"
#if defined(_WINDOWS64)
#endif
namespace {
bool ReadPortableBinaryFile(File& file, std::uint8_t*& data,
unsigned int& size) {