mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Remove Win32 wide char aliases from DLC UI flows
This commit is contained in:
parent
c17c613692
commit
dc342c092d
|
|
@ -58,7 +58,7 @@ void IUIScene_StartGame::HandleDLCMountingComplete()
|
||||||
char *pchName=app.GetDLCInfoTextures(i);
|
char *pchName=app.GetDLCInfoTextures(i);
|
||||||
pDLCInfo=app.GetDLCInfo(pchName);
|
pDLCInfo=app.GetDLCInfo(pchName);
|
||||||
#elif defined _XBOX_ONE
|
#elif defined _XBOX_ONE
|
||||||
pDLCInfo=app.GetDLCInfoForFullOfferID((WCHAR *)app.GetDLCInfoTexturesFullOffer(i).c_str());
|
pDLCInfo=app.GetDLCInfoForFullOfferID(const_cast<wchar_t *>(app.GetDLCInfoTexturesFullOffer(i).c_str()));
|
||||||
#else
|
#else
|
||||||
ULONGLONG ull=app.GetDLCInfoTexturesFullOffer(i);
|
ULONGLONG ull=app.GetDLCInfoTexturesFullOffer(i);
|
||||||
pDLCInfo=app.GetDLCInfoForFullOfferID(ull);
|
pDLCInfo=app.GetDLCInfoForFullOfferID(ull);
|
||||||
|
|
@ -362,7 +362,7 @@ int IUIScene_StartGame::TexturePackDialogReturned(void *pParam,int iPad,C4JStora
|
||||||
app.GetDLCFullOfferIDForPackID(pClass->m_MoreOptionsParams.dwTexturePack,ProductId);
|
app.GetDLCFullOfferIDForPackID(pClass->m_MoreOptionsParams.dwTexturePack,ProductId);
|
||||||
|
|
||||||
|
|
||||||
StorageManager.InstallOffer(1,(WCHAR *)ProductId.c_str(),NULL,NULL);
|
StorageManager.InstallOffer(1, const_cast<wchar_t *>(ProductId.c_str()), NULL, NULL);
|
||||||
|
|
||||||
// the license change coming in when the offer has been installed will cause this scene to refresh
|
// the license change coming in when the offer has been installed will cause this scene to refresh
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -738,8 +738,7 @@ void UIScene_DLCOffersMenu::GetDLCInfo( int iOfferC, bool bUpdateOnly )
|
||||||
if(wcsncmp(L"Minecraft ",wstrTemp.c_str(),10)==0)
|
if(wcsncmp(L"Minecraft ",wstrTemp.c_str(),10)==0)
|
||||||
{
|
{
|
||||||
app.DebugPrintf("Removing Minecraft from name\n");
|
app.DebugPrintf("Removing Minecraft from name\n");
|
||||||
WCHAR *pwchNewName=(WCHAR *)wstrTemp.c_str();
|
wstrTemp = wstrTemp.substr(10);
|
||||||
wstrTemp=&pwchNewName[10];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _XBOX_ONE
|
#ifdef _XBOX_ONE
|
||||||
|
|
@ -822,7 +821,7 @@ bool UIScene_DLCOffersMenu::UpdateDisplay(MARKETPLACE_CONTENTOFFER_INFO& xOffer)
|
||||||
|
|
||||||
if (dlc != NULL)
|
if (dlc != NULL)
|
||||||
{
|
{
|
||||||
WCHAR *cString = dlc->wchBanner;
|
wchar_t *cString = dlc->wchBanner;
|
||||||
|
|
||||||
|
|
||||||
// is the file in the local DLC images?
|
// is the file in the local DLC images?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue