mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 22:07:13 +00:00
fix: Windows archive file discovery
This commit is contained in:
parent
93215033e4
commit
b7ad828882
|
|
@ -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
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ inline bool eTYPE_FLAGSET(eINSTANCEOF flag, eINSTANCEOF claz) {
|
|||
|
||||
/// FOR CHECKING ///
|
||||
|
||||
#if !(defined _WINDOWS64)
|
||||
#if 1
|
||||
|
||||
class SubClass {
|
||||
static void checkDerivations() {}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue