* Fixed boats falling and a TP glitch #266 * Replaced every C-style cast with C++ ones * Replaced every C-style cast with C++ ones * Fixed boats falling and a TP glitch #266 * Updated NULL to nullptr and fixing some type issues * Modernized and fixed a few bugs - Replaced most instances of `NULL` with `nullptr`. - Replaced most `shared_ptr(new ...)` with `make_shared`. - Removed the `nullptr` macro as it was interfering with the actual nullptr keyword in some instances. * Fixing more conflicts * Replace int loops with size_t and start work on overrides
88 lines
1.7 KiB
C++
88 lines
1.7 KiB
C++
#include "stdafx.h"
|
|
#include "TexturePack.h"
|
|
|
|
wstring TexturePack::getPath(bool bTitleUpdateTexture /*= false*/,const char *pchBDPatchFileName /*= nullptr*/)
|
|
{
|
|
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=nullptr;
|
|
if(app.GetBootedFromDiscPatch() && pchBDPatchFileName!=nullptr)
|
|
{
|
|
pchUsrDir = app.GetBDUsrDirPath(pchBDPatchFileName);
|
|
wstring wstr (pchUsrDir, pchUsrDir+strlen(pchUsrDir));
|
|
|
|
if(bTitleUpdateTexture)
|
|
{
|
|
wDrive= wstr + L"\\Common\\res\\TitleUpdate\\";
|
|
|
|
}
|
|
else
|
|
{
|
|
wDrive= wstr + L"/Common/";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
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;
|
|
}
|