the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "TexturePack.h"
3
4wstring TexturePack::getPath(bool bTitleUpdateTexture /*= false*/,const char *pchBDPatchFileName /*= NULL*/)
5{
6 wstring wDrive;
7#ifdef _XBOX
8 if(bTitleUpdateTexture)
9 {
10 // Make the content package point to to the UPDATE: drive is needed
11#ifdef _TU_BUILD
12 wDrive=L"UPDATE:\\";
13#else
14
15 wDrive=L"GAME:\\res\\TitleUpdate\\";
16#endif
17 }
18 else
19 {
20 wDrive=L"GAME:\\";
21 }
22#else
23
24#ifdef __PS3__
25
26 // 4J-PB - we need to check for a BD patch - this is going to be an issue for full DLC texture packs (Halloween)
27 char *pchUsrDir=NULL;
28 if(app.GetBootedFromDiscPatch() && pchBDPatchFileName!=NULL)
29 {
30 pchUsrDir = app.GetBDUsrDirPath(pchBDPatchFileName);
31 wstring wstr (pchUsrDir, pchUsrDir+strlen(pchUsrDir));
32
33 if(bTitleUpdateTexture)
34 {
35 wDrive= wstr + L"\\Common\\res\\TitleUpdate\\";
36
37 }
38 else
39 {
40 wDrive= wstr + L"/Common/";
41 }
42 }
43 else
44 {
45 pchUsrDir=getUsrDirPath();
46
47 wstring wstr (pchUsrDir, pchUsrDir+strlen(pchUsrDir));
48
49 if(bTitleUpdateTexture)
50 {
51 // Make the content package point to to the UPDATE: drive is needed
52 wDrive= wstr + L"\\Common\\res\\TitleUpdate\\";
53 }
54 else
55 {
56 wDrive= wstr + L"/Common/";
57 }
58 }
59
60#elif __PSVITA__
61 char *pchUsrDir="";//getUsrDirPath();
62 wstring wstr (pchUsrDir, pchUsrDir+strlen(pchUsrDir));
63
64 if(bTitleUpdateTexture)
65 {
66 // Make the content package point to to the UPDATE: drive is needed
67 wDrive= wstr + L"Common\\res\\TitleUpdate\\";
68 }
69 else
70 {
71 wDrive= wstr + L"Common\\";
72 }
73#else
74 if(bTitleUpdateTexture)
75 {
76 // Make the content package point to to the UPDATE: drive is needed
77 wDrive=L"Common\\res\\TitleUpdate\\";
78 }
79 else
80 {
81 wDrive=L"Common/";
82 }
83#endif
84#endif
85
86 return wDrive;
87}