diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/TexturePack.cpp | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.Client/TexturePack.cpp')
| -rw-r--r-- | Minecraft.Client/TexturePack.cpp | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/Minecraft.Client/TexturePack.cpp b/Minecraft.Client/TexturePack.cpp new file mode 100644 index 00000000..39f03569 --- /dev/null +++ b/Minecraft.Client/TexturePack.cpp @@ -0,0 +1,70 @@ +#include "stdafx.h" +#include "TexturePack.h" + +wstring TexturePack::getPath(bool bTitleUpdateTexture /*= false*/) +{ + wstring wDrive; +#ifdef _XBOX + if(bTitleUpdateTexture) + { + // Make the content package point to to the UPDATE: drive is needed +#ifdef _TU_BUILD + wDrive=L"UPDATE:\\"; +#else + + wDrive=L"GAME:\\res\\TitleUpdate\\"; +#endif + } + else + { + wDrive=L"GAME:\\"; + } +#else + +#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=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(); + 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\\"; + } +#else + if(bTitleUpdateTexture) + { + // Make the content package point to to the UPDATE: drive is needed + wDrive=L"Common\\res\\TitleUpdate\\"; + } + else + { + wDrive=L"Common/"; + } +#endif +#endif + + return wDrive; +} |
