mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-06-04 23:37:26 +00:00
Use Secure print funcs. Remove LCE File System
This commit is contained in:
@@ -1132,7 +1132,7 @@ void UIScene_LoadCreateJoinMenu::AddDefaultButtons()
|
||||
if(dwImageBytes > 0 && pbImageData)
|
||||
{
|
||||
wchar_t imageName[64];
|
||||
swprintf(imageName,64,L"tpack%08x",tp->getId());
|
||||
swprintf_s(imageName,64,L"tpack%08x",tp->getId());
|
||||
registerSubstitutionTexture(imageName, pbImageData, dwImageBytes);
|
||||
m_buttonListSaves.setTextureName( m_buttonListSaves.getItemCount() - 1, imageName );
|
||||
}
|
||||
@@ -2075,7 +2075,7 @@ void UIScene_LoadCreateJoinMenu::UpdateGamesList()
|
||||
app.GetFileFromTPD(eTPDFileType_Icon,pbData,dwBytes,&pbImageData,&dwImageBytes );
|
||||
if(dwImageBytes > 0 && pbImageData)
|
||||
{
|
||||
swprintf(textureName,64,L"%ls",sessionInfo->displayLabel);
|
||||
swprintf_s(textureName,64,L"%ls",sessionInfo->displayLabel);
|
||||
registerSubstitutionTexture(textureName,pbImageData,dwImageBytes);
|
||||
}
|
||||
}
|
||||
@@ -2084,7 +2084,7 @@ void UIScene_LoadCreateJoinMenu::UpdateGamesList()
|
||||
pbImageData = tp->getPackIcon(dwImageBytes);
|
||||
if(dwImageBytes > 0 && pbImageData)
|
||||
{
|
||||
swprintf(textureName,64,L"%ls",sessionInfo->displayLabel);
|
||||
swprintf_s(textureName,64,L"%ls",sessionInfo->displayLabel);
|
||||
registerSubstitutionTexture(textureName,pbImageData,dwImageBytes);
|
||||
}
|
||||
}
|
||||
@@ -2100,7 +2100,7 @@ void UIScene_LoadCreateJoinMenu::UpdateGamesList()
|
||||
|
||||
if(dwImageBytes > 0 && pbImageData)
|
||||
{
|
||||
swprintf(textureName,64,L"%ls",sessionInfo->displayLabel);
|
||||
swprintf_s(textureName,64,L"%ls",sessionInfo->displayLabel);
|
||||
registerSubstitutionTexture(textureName,pbImageData,dwImageBytes);
|
||||
}
|
||||
}
|
||||
@@ -2658,7 +2658,7 @@ int UIScene_LoadCreateJoinMenu::MustSignInReturnedTexturePack(void *pParam,bool
|
||||
#ifdef __ORBIS__
|
||||
strcpy(chName, chKeyName);
|
||||
#else
|
||||
sprintf(chName,"%s-%s",app.GetCommerceCategory(),chKeyName);
|
||||
sprintf_s(chName,"%s-%s",app.GetCommerceCategory(),chKeyName);
|
||||
#endif
|
||||
app.GetDLCSkuIDFromProductList(chName,chSkuID);
|
||||
// 4J-PB - need to check for an empty store
|
||||
@@ -2721,7 +2721,7 @@ int UIScene_LoadCreateJoinMenu::TexturePackDialogReturned(void *pParam,int iPad,
|
||||
#ifdef __ORBIS__
|
||||
strcpy(chName, chKeyName);
|
||||
#else
|
||||
sprintf(chName,"%s-%s",app.GetCommerceCategory(),chKeyName);
|
||||
sprintf_s(chName,"%s-%s",app.GetCommerceCategory(),chKeyName);
|
||||
#endif
|
||||
app.GetDLCSkuIDFromProductList(chName,chSkuID);
|
||||
// 4J-PB - need to check for an empty store
|
||||
@@ -3036,7 +3036,7 @@ int UIScene_LoadCreateJoinMenu::DownloadSonyCrossSaveThreadProc( LPVOID lpParame
|
||||
if(pClass->m_saveTransferDownloadCancelled)
|
||||
{
|
||||
WCHAR wcTemp[256];
|
||||
swprintf(wcTemp,256, app.GetString(IDS_CANCEL)); // MGH - should change this string to "cancelling download"
|
||||
swprintf_s(wcTemp,256, app.GetString(IDS_CANCEL)); // MGH - should change this string to "cancelling download"
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
}
|
||||
@@ -3051,7 +3051,7 @@ int UIScene_LoadCreateJoinMenu::DownloadSonyCrossSaveThreadProc( LPVOID lpParame
|
||||
if(pClass->m_saveTransferDownloadCancelled)
|
||||
{
|
||||
WCHAR wcTemp[256];
|
||||
swprintf(wcTemp,256, app.GetString(IDS_CANCEL)); // MGH - should change this string to "cancelling download"
|
||||
swprintf_s(wcTemp,256, app.GetString(IDS_CANCEL)); // MGH - should change this string to "cancelling download"
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
}
|
||||
@@ -3090,8 +3090,8 @@ int UIScene_LoadCreateJoinMenu::DownloadSonyCrossSaveThreadProc( LPVOID lpParame
|
||||
int dataProgress = app.getRemoteStorage()->getDataProgress();
|
||||
pMinecraft->progressRenderer->progressStagePercentage(dataProgress);
|
||||
|
||||
//swprintf(wcTemp, 256, L"Downloading data : %d", dataProgress);//app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),0,pClass->m_ulFileSize);
|
||||
swprintf(wcTemp,256, app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),dataProgress);
|
||||
//swprintf_s(wcTemp, 256, L"Downloading data : %d", dataProgress);//app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),0,pClass->m_ulFileSize);
|
||||
swprintf_s(wcTemp,256, app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),dataProgress);
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
if(pClass->m_saveTransferDownloadCancelled && bAbortCalled == false)
|
||||
@@ -3251,7 +3251,7 @@ int UIScene_LoadCreateJoinMenu::DownloadSonyCrossSaveThreadProc( LPVOID lpParame
|
||||
if(pClass->m_saveTransferDownloadCancelled)
|
||||
{
|
||||
WCHAR wcTemp[256];
|
||||
swprintf(wcTemp,256, app.GetString(IDS_CANCEL)); // MGH - should change this string to "cancelling download"
|
||||
swprintf_s(wcTemp,256, app.GetString(IDS_CANCEL)); // MGH - should change this string to "cancelling download"
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
@@ -3455,8 +3455,8 @@ int UIScene_LoadCreateJoinMenu::UploadSonyCrossSaveThreadProc( LPVOID lpParamete
|
||||
int dataProgress = app.getRemoteStorage()->getDataProgress();
|
||||
pMinecraft->progressRenderer->progressStagePercentage(dataProgress);
|
||||
|
||||
//swprintf(wcTemp, 256, L"Uploading data : %d", dataProgress);//app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),0,pClass->m_ulFileSize);
|
||||
swprintf(wcTemp,256, app.GetString(IDS_SAVETRANSFER_STAGE_PUT_DATA),dataProgress);
|
||||
//swprintf_s(wcTemp, 256, L"Uploading data : %d", dataProgress);//app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),0,pClass->m_ulFileSize);
|
||||
swprintf_s(wcTemp,256, app.GetString(IDS_SAVETRANSFER_STAGE_PUT_DATA),dataProgress);
|
||||
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
@@ -3794,7 +3794,7 @@ int UIScene_LoadCreateJoinMenu::DownloadXbox360SaveThreadProc( LPVOID lpParamete
|
||||
WCHAR wcTemp[256];
|
||||
|
||||
pStateContainer->m_bSaveTransferCancelled=false;
|
||||
swprintf(wcTemp,app.GetString(IDS_SAVE_TRANSFER_DOWNLOAD_CANCELLED));
|
||||
swprintf_s(wcTemp,app.GetString(IDS_SAVE_TRANSFER_DOWNLOAD_CANCELLED));
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
|
||||
@@ -3847,7 +3847,7 @@ void UIScene_LoadCreateJoinMenu::RequestFileData( SaveTransferStateContainer *pC
|
||||
|
||||
pMinecraft->progressRenderer->progressStagePercentage(0);
|
||||
|
||||
swprintf(wcTemp,app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),0,UIScene_LoadCreateJoinMenu::s_ulFileSize);
|
||||
swprintf_s(wcTemp,app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),0,UIScene_LoadCreateJoinMenu::s_ulFileSize);
|
||||
m_wstrStageText=wcTemp;
|
||||
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
@@ -3916,7 +3916,7 @@ int UIScene_LoadCreateJoinMenu::SaveTransferUpdateProgress(LPVOID lpParam,unsign
|
||||
if(pClass->m_bSaveTransferCancelled) // was cancelled
|
||||
{
|
||||
pMinecraft->progressRenderer->progressStage(IDS_SAVE_TRANSFER_DOWNLOAD_CANCELLING);
|
||||
swprintf(wcTemp,app.GetString(IDS_SAVE_TRANSFER_DOWNLOAD_CANCELLING));
|
||||
swprintf_s(wcTemp,app.GetString(IDS_SAVE_TRANSFER_DOWNLOAD_CANCELLING));
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
}
|
||||
@@ -3925,7 +3925,7 @@ int UIScene_LoadCreateJoinMenu::SaveTransferUpdateProgress(LPVOID lpParam,unsign
|
||||
unsigned int uiProgress=(unsigned int)(((float)ulBytesReceived/float(UIScene_LoadCreateJoinMenu::s_ulFileSize))*100.0f);
|
||||
|
||||
pMinecraft->progressRenderer->progressStagePercentage(uiProgress);
|
||||
swprintf(wcTemp,app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),((float)(ulBytesReceived))/1024000.0f,((float)UIScene_LoadCreateJoinMenu::s_ulFileSize)/1024000.0f);
|
||||
swprintf_s(wcTemp,app.GetString(IDS_SAVETRANSFER_STAGE_GET_DATA),((float)(ulBytesReceived))/1024000.0f,((float)UIScene_LoadCreateJoinMenu::s_ulFileSize)/1024000.0f);
|
||||
m_wstrStageText=wcTemp;
|
||||
pMinecraft->progressRenderer->progressStage( m_wstrStageText );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user