chore: bring over some cafeberry fixes
This commit is contained in:
1 parent
9e4426b0d8
commit
9efc49d590
4 files changed
+53
-15
No files matched your search
@@ -7,14 +7,14 @@
|
||||
|
||||
// This goes up with each build
|
||||
// 4J-JEV: This value is extracted with a regex so it can be placed as the version in the AppX manifest on Durango.
|
||||
#define VER_PRODUCTBUILD 495
|
||||
#define VER_PRODUCTBUILD 62
|
||||
// This goes up if there is any change to network traffic or code in a build
|
||||
#define VER_NETWORK 495
|
||||
#define VER_NETWORK 62
|
||||
#define VER_PRODUCTBUILD_QFE 0
|
||||
|
||||
#define VER_FILEVERSION_STRING "1.3"
|
||||
#define VER_FILEVERSION_STRING "0.66"
|
||||
#define VER_PRODUCTVERSION_STRING VER_FILEVERSION_STRING
|
||||
#define VER_FILEVERSION_STRING_W L"1.3"
|
||||
#define VER_FILEVERSION_STRING_W L"0.66"
|
||||
#define VER_PRODUCTVERSION_STRING_W VER_FILEVERSION_STRING_W
|
||||
#define VER_FILEBETA_STR ""
|
||||
#undef VER_FILEVERSION
|
||||
|
||||
@@ -6233,8 +6233,12 @@ wstring CMinecraftApp::GetActionReplacement(int iPad, unsigned char ucAction)
|
||||
#ifdef __PS3__
|
||||
int size = 30;
|
||||
#elif defined _WIN64
|
||||
int size = 45;
|
||||
if(ui.getScreenWidth() < 1920) size = 30;
|
||||
int size = 30;
|
||||
|
||||
if(ui.getScreenWidth() >= 1920)
|
||||
{
|
||||
size = 45;
|
||||
}
|
||||
#else
|
||||
int size = 45;
|
||||
#endif
|
||||
@@ -6362,8 +6366,12 @@ wstring CMinecraftApp::GetVKReplacement(unsigned int uiVKey)
|
||||
#ifdef __PS3__
|
||||
int size = 30;
|
||||
#elif defined _WIN64
|
||||
int size = 45;
|
||||
if(ui.getScreenWidth() < 1920) size = 30;
|
||||
int size = 30;
|
||||
|
||||
if(ui.getScreenWidth() >= 1920)
|
||||
{
|
||||
size = 45;
|
||||
}
|
||||
#else
|
||||
int size = 45;
|
||||
#endif
|
||||
@@ -6393,8 +6401,12 @@ wstring CMinecraftApp::GetIconReplacement(unsigned int uiIcon)
|
||||
#ifdef __PS3__
|
||||
int size = 22;
|
||||
#elif defined _WIN64
|
||||
int size = 33;
|
||||
if(ui.getScreenWidth() < 1920) size = 22;
|
||||
int size = 22;
|
||||
|
||||
if(ui.getScreenWidth() >= 1920)
|
||||
{
|
||||
size = 33;
|
||||
}
|
||||
#else
|
||||
int size = 33;
|
||||
#endif
|
||||
|
||||
@@ -1347,10 +1347,20 @@ GDrawTexture * RADLINK UIController::TextureSubstitutionCreateCallback ( void *
|
||||
#if (defined __ORBIS__ || defined _DURANGO )
|
||||
*width = 96;
|
||||
*height = 96;
|
||||
#elif _WINDOWS64
|
||||
if(ui.getScreenWidth() >= 1920)
|
||||
{
|
||||
*width = 96;
|
||||
*height = 96;
|
||||
}
|
||||
else
|
||||
{
|
||||
*width = 64;
|
||||
*height = 64;
|
||||
}
|
||||
#else
|
||||
*width = 64;
|
||||
*height = 64;
|
||||
|
||||
#endif
|
||||
*destroy_callback_data = (void *)id;
|
||||
|
||||
|
||||
@@ -939,7 +939,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
|
||||
app.UpdateTime();
|
||||
PIXBeginNamedEvent(0,"Input manager tick");
|
||||
InputManager.Tick();
|
||||
if (GetFocus()) InputManager.Tick();
|
||||
PIXEndNamedEvent();
|
||||
PIXBeginNamedEvent(0,"Profile manager tick");
|
||||
// ProfileManager.Tick();
|
||||
@@ -1160,9 +1160,25 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
Vec3::resetPool();
|
||||
}
|
||||
|
||||
// Free resources, unregister custom classes, and exit.
|
||||
// app.Uninit();
|
||||
g_pd3dDevice->Release();
|
||||
//str1k3r - shutdown server & network manager
|
||||
MinecraftServer::HaltServer();
|
||||
g_NetworkManager.Terminate();
|
||||
|
||||
//str1k3r - unregister the minecraft window class
|
||||
UnregisterClass("MinecraftClass", g_hInst);
|
||||
|
||||
//str1k3r - shutdown Iggy
|
||||
ui.shutdown();
|
||||
IggyShutdown();
|
||||
|
||||
//str1k3r - shutdown mss :3
|
||||
AIL_shutdown();
|
||||
|
||||
//str1k3r - cleanup DirectX stuff
|
||||
CleanupDevice();
|
||||
|
||||
//str1k3r - pass exitcode to OS
|
||||
return (int)msg.wParam;
|
||||
}
|
||||
|
||||
#ifdef MEMORY_TRACKING
|
||||
|
||||
Reference in new issue
Block a user