aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/TexturePack.cpp
blob: 39f035695c45bd346bd2f1f53c49df6c7fae4952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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;
}