add lcemp networking + ps3 support

YES I KNOW ITS GARBAGE, THATS WHY ITS NOT ON MAIN

ILL FIX IT UP IN FUTURE COMMITS THEN MERGE TO MAIN
This commit is contained in:
2026-07-31 22:08:30 +03:00
parent 51ee0d8e57
commit dbd90a75c9
50 changed files with 1958 additions and 96 deletions
+14
View File
@@ -24,6 +24,7 @@ SYS_PROCESS_PARAM(1001, 0x10000); // thread priority, and stack size
#include <sysutil/sysutil_msgdialog.h>
#include "PS3/Network/SonyRemoteStorage_PS3.h"
#include "..\..\Minecraft.Client\Common\Network\WinsockNetLayer.h"
// define to use spurs (otherwise SPU threads or raw will be used)
#define USE_SPURS
@@ -35,6 +36,9 @@ SYS_PROCESS_PARAM(1001, 0x10000); // thread priority, and stack size
#include <sys/spu_image.h>
#endif
#ifdef DISABLE_PSN
#include "../Passphrase/ps3__np_conf.h"
#endif
/* Encrypted ID for protected data file (*) You must edit these binaries!! */
char secureFileId[CELL_SAVEDATA_SECUREFILEID_SIZE] =
{
@@ -519,7 +523,9 @@ void RegisterAwardsWithProfileManager()
// Rich Presence init - number of presences, number of contexts
//printf("Rich presence strings are hard coded on PS3 for now, must change this!\n");
ProfileManager.RichPresenceInit(-1,-1); // 4J-JEV - Presence and Context count not used.
#ifndef DISABLE_PSN
ProfileManager.SetRichPresenceSettingFn(SQRNetworkManager_PS3::SetRichPresence);
#endif
char *pchRichPresenceString;
pchRichPresenceString=(char *)AddRichPresenceString(IDS_RICHPRESENCE_GAMESTATE);
@@ -855,7 +861,9 @@ int main()
app.CommerceInit(); // MGH - moved this here so GetCommerce isn't NULL
// 4J-PB - Kick of the check for trial or full version - requires ui to be initialised
#ifndef DISABLE_PSN
app.GetCommerce()->CheckForTrialUpgradeKey();
#endif
static bool bTrialTimerDisplayed=true;
@@ -888,8 +896,13 @@ int main()
// Initialise the profile manager with the game Title ID, Offer ID, a profile version number, and the number of profile values and settings
#ifndef DISABLE_PSN
ProfileManager.Initialise(SQRNetworkManager_PS3::GetSceNpCommsId(),
SQRNetworkManager_PS3::GetSceNpCommsSig(),
#else
ProfileManager.Initialise(&s_npCommunicationId,
&s_npCommunicationSignature,
#endif
PROFILE_VERSION_10,
NUM_PROFILE_VALUES,
NUM_PROFILE_SETTINGS,
@@ -1116,6 +1129,7 @@ int main()
if(ShutdownManager::ShouldRun(ShutdownManager::eMainThread))
{
g_NetworkManager.Initialise();
WinsockNetLayer::Initialize();
g_NetworkManager.SetLocalGame(true);
}