Remove Win32 wide char aliases from skin select menu

This commit is contained in:
notmatthewbeshay 2026-03-10 23:33:32 +11:00
parent 4506a204f9
commit 56f6bb8da6
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
//#define SKIN_SELECT_PACK_PLAYER_CUSTOM 1
#define SKIN_SELECT_MAX_DEFAULTS 2
const WCHAR *UIScene_SkinSelectMenu::wchDefaultNamesA[]=
const wchar_t *UIScene_SkinSelectMenu::wchDefaultNamesA[]=
{
L"USE LOCALISED VERSION", // Server selected
L"Steve",
@ -1712,7 +1712,7 @@ int UIScene_SkinSelectMenu::UnlockSkinReturned(void *pParam,int iPad,C4JStorage:
pScene->m_bIgnoreInput = false;
}
#elif defined _XBOX_ONE
StorageManager.InstallOffer(1,(WCHAR *)(pScene->m_currentPack->getPurchaseOfferId().c_str()), &RenableInput, pScene, NULL);
StorageManager.InstallOffer(1, const_cast<wchar_t *>(pScene->m_currentPack->getPurchaseOfferId().c_str()), &RenableInput, pScene, NULL);
#endif
}
else // Is signed in, but not live.

View file

@ -8,7 +8,7 @@
class UIScene_SkinSelectMenu : public UIScene
{
private:
static const WCHAR *wchDefaultNamesA[eDefaultSkins_Count];
static const wchar_t *wchDefaultNamesA[eDefaultSkins_Count];
// 4J Stu - How many to show on each side of the main control
static const int sidePreviewControls = 4;