mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Use integer locator sizes in XUI scenes
This commit is contained in:
parent
eb524ae9b8
commit
b6d3c0c6ee
|
|
@ -262,7 +262,7 @@ HRESULT CScene_DLCOffers::GetDLCInfo( int iOfferC, bool bUpdateOnly )
|
||||||
CXuiCtrl4JList::LIST_ITEM_INFO *pListInfo=NULL;
|
CXuiCtrl4JList::LIST_ITEM_INFO *pListInfo=NULL;
|
||||||
//XMARKETPLACE_CONTENTOFFER_INFO xOffer;
|
//XMARKETPLACE_CONTENTOFFER_INFO xOffer;
|
||||||
XMARKETPLACE_CURRENCY_CONTENTOFFER_INFO xOffer;
|
XMARKETPLACE_CURRENCY_CONTENTOFFER_INFO xOffer;
|
||||||
const DWORD LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
constexpr int LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
||||||
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
||||||
ZeroMemory(szResourceLocator,sizeof(WCHAR)*LOCATOR_SIZE);
|
ZeroMemory(szResourceLocator,sizeof(WCHAR)*LOCATOR_SIZE);
|
||||||
const ULONG_PTR c_ModuleHandle = (ULONG_PTR)GetModuleHandle(NULL);
|
const ULONG_PTR c_ModuleHandle = (ULONG_PTR)GetModuleHandle(NULL);
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ HRESULT CScene_DebugOverlay::OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress
|
||||||
HXUIOBJ hScene;
|
HXUIOBJ hScene;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
//const WCHAR XZP_SEPARATOR = L'#';
|
//const WCHAR XZP_SEPARATOR = L'#';
|
||||||
const DWORD LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
constexpr int LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
||||||
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
||||||
|
|
||||||
swprintf(szResourceLocator, LOCATOR_SIZE, L"section://%X,%ls#%ls",c_ModuleHandle,L"media", L"media/");
|
swprintf(szResourceLocator, LOCATOR_SIZE, L"section://%X,%ls#%ls",c_ModuleHandle,L"media", L"media/");
|
||||||
|
|
@ -189,7 +189,7 @@ HRESULT CScene_DebugOverlay::OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPress
|
||||||
HXUIOBJ hScene;
|
HXUIOBJ hScene;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
//const WCHAR XZP_SEPARATOR = L'#';
|
//const WCHAR XZP_SEPARATOR = L'#';
|
||||||
const DWORD LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
constexpr int LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
||||||
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
||||||
|
|
||||||
swprintf(szResourceLocator, LOCATOR_SIZE, L"section://%X,%ls#%ls",c_ModuleHandle,L"media", L"media/");
|
swprintf(szResourceLocator, LOCATOR_SIZE, L"section://%X,%ls#%ls",c_ModuleHandle,L"media", L"media/");
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ HRESULT CScene_Main::OnInit( XUIMessageInit* pInitData, BOOL& bHandled )
|
||||||
CXuiSceneBase::ShowBackground( DEFAULT_XUI_MENU_USER, TRUE );
|
CXuiSceneBase::ShowBackground( DEFAULT_XUI_MENU_USER, TRUE );
|
||||||
CXuiSceneBase::ShowLogo( DEFAULT_XUI_MENU_USER, TRUE );
|
CXuiSceneBase::ShowLogo( DEFAULT_XUI_MENU_USER, TRUE );
|
||||||
|
|
||||||
const DWORD LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
constexpr int LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
||||||
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
||||||
|
|
||||||
// load from the .xzp file
|
// load from the .xzp file
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ HRESULT CScene_MultiGameJoinLoad::OnInit( XUIMessageInit* pInitData, BOOL& bHand
|
||||||
XuiControlSetText(m_SavesList,app.GetString(IDS_START_GAME));
|
XuiControlSetText(m_SavesList,app.GetString(IDS_START_GAME));
|
||||||
|
|
||||||
|
|
||||||
const DWORD LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
constexpr int LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
||||||
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
||||||
|
|
||||||
const ULONG_PTR c_ModuleHandle = (ULONG_PTR)GetModuleHandle(NULL);
|
const ULONG_PTR c_ModuleHandle = (ULONG_PTR)GetModuleHandle(NULL);
|
||||||
|
|
@ -2700,7 +2700,7 @@ bool CScene_MultiGameJoinLoad::GetSavesInfoCallback(LPVOID pParam,int iTotalSave
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// we could put in a damaged save icon here
|
// we could put in a damaged save icon here
|
||||||
const DWORD LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
constexpr int LOCATOR_SIZE = 256; // Use this to allocate space to hold a ResourceLocator string
|
||||||
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
WCHAR szResourceLocator[ LOCATOR_SIZE ];
|
||||||
const ULONG_PTR c_ModuleHandle = (ULONG_PTR)GetModuleHandle(NULL);
|
const ULONG_PTR c_ModuleHandle = (ULONG_PTR)GetModuleHandle(NULL);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue