psvita networking (Experimental)

This commit is contained in:
2026-08-04 07:04:38 +03:00
parent ce3e83039d
commit ea3621971f
22 changed files with 404 additions and 172 deletions
+12 -1
View File
@@ -14,13 +14,18 @@
#include "PSVita\Network\SonyRemoteStorage_Vita.h"
#include "PSVita\Network\SonyCommerce_Vita.h"
#include "..\..\Common\Network\Sony\SonyRemoteStorage.h"
#include "PSVita/Network/PSVita_NPToolkit.h"
#include <message_dialog.h>
#include <savedata_dialog.h>
#include "Common\UI\UI.h"
#include "PSVita\PSVitaExtras\PSVitaStrings.h"
#ifndef DISABLE_PSN
#include "PSVita/Network/PSVita_NPToolkit.h"
#endif
#ifndef DISABLE_PSN
#define VITA_COMMERCE_ENABLED
#endif
CConsoleMinecraftApp app;
CConsoleMinecraftApp::CConsoleMinecraftApp() : CMinecraftApp()
@@ -1021,6 +1026,7 @@ void CConsoleMinecraftApp::AppEventTick()
res = sceAppUtilReceiveAppEvent(&eventParam);
if (res == SCE_OK)
{
#ifndef DISABLE_PSN
if (SCE_APPUTIL_APPEVENT_TYPE_NP_APP_DATA_MESSAGE == eventParam.type)
{
PSVitaNPToolkit::getMessageData(&eventParam);
@@ -1035,6 +1041,7 @@ void CConsoleMinecraftApp::AppEventTick()
app.DebugPrintf("unknown app event : 0x%08x\n", eventParam.type);
assert(0);
}
#endif
}
}
@@ -1073,6 +1080,7 @@ void CConsoleMinecraftApp::AppEventTick()
bool CConsoleMinecraftApp::CheckForEmptyStore(int iPad)
{
#ifdef VITA_COMMERCE
SonyCommerce::CategoryInfo *pCategories=app.GetCategoryInfo();
bool bEmptyStore=true;
@@ -1102,6 +1110,9 @@ bool CConsoleMinecraftApp::CheckForEmptyStore(int iPad)
}
return bEmptyStore;
#else
return true;
#endif
}