aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/TexturePack.cpp
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
committerLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
commit42aec6dac53dffa6afe072560a7e1d4986112538 (patch)
tree0836426857391df1b6a83f6368a183f83ec9b104 /Minecraft.Client/TexturePack.cpp
parentc9d58eeac7c72f0b3038e084667b4d89a6249fce (diff)
parentef9b6fd500dfabd9463267b0dd9e29577eea8a2b (diff)
Merge branch 'main' into pr/win64-world-saves
# Conflicts: # Minecraft.Client/MinecraftServer.cpp # README.md
Diffstat (limited to 'Minecraft.Client/TexturePack.cpp')
-rw-r--r--Minecraft.Client/TexturePack.cpp37
1 files changed, 27 insertions, 10 deletions
diff --git a/Minecraft.Client/TexturePack.cpp b/Minecraft.Client/TexturePack.cpp
index 39f03569..7ed208ae 100644
--- a/Minecraft.Client/TexturePack.cpp
+++ b/Minecraft.Client/TexturePack.cpp
@@ -1,7 +1,7 @@
#include "stdafx.h"
#include "TexturePack.h"
-wstring TexturePack::getPath(bool bTitleUpdateTexture /*= false*/)
+wstring TexturePack::getPath(bool bTitleUpdateTexture /*= false*/,const char *pchBDPatchFileName /*= NULL*/)
{
wstring wDrive;
#ifdef _XBOX
@@ -24,21 +24,38 @@ wstring TexturePack::getPath(bool bTitleUpdateTexture /*= false*/)
#ifdef __PS3__
// 4J-PB - we need to check for a BD patch - this is going to be an issue for full DLC texture packs (Halloween)
+ char *pchUsrDir=NULL;
+ if(app.GetBootedFromDiscPatch() && pchBDPatchFileName!=NULL)
+ {
+ pchUsrDir = app.GetBDUsrDirPath(pchBDPatchFileName);
+ wstring wstr (pchUsrDir, pchUsrDir+strlen(pchUsrDir));
- char *pchUsrDir=getUsrDirPath();
-
- wstring wstr (pchUsrDir, pchUsrDir+strlen(pchUsrDir));
+ if(bTitleUpdateTexture)
+ {
+ wDrive= wstr + L"\\Common\\res\\TitleUpdate\\";
- if(bTitleUpdateTexture)
- {
- // Make the content package point to to the UPDATE: drive is needed
- wDrive= wstr + L"\\Common\\res\\TitleUpdate\\";
+ }
+ else
+ {
+ wDrive= wstr + L"/Common/";
+ }
}
else
{
- wDrive= wstr + L"/Common/";
- }
+ pchUsrDir=getUsrDirPath();
+
+ wstring wstr (pchUsrDir, pchUsrDir+strlen(pchUsrDir));
+ if(bTitleUpdateTexture)
+ {
+ // Make the content package point to to the UPDATE: drive is needed
+ wDrive= wstr + L"\\Common\\res\\TitleUpdate\\";
+ }
+ else
+ {
+ wDrive= wstr + L"/Common/";
+ }
+ }
#elif __PSVITA__
char *pchUsrDir="";//getUsrDirPath();