private static extern bool PrxFacebookGetLastError(out ResultCode result);
private static extern bool PrxNetInfoGetLastError(out ResultCode result);
private static extern bool PrxNetCtlGetLastConnectionError(out ResultCode result);
public static bool ProcessMessage(Messages.PluginMessage msg) { switch (msg.type) { case Messages.MessageType.kNPToolKit_SignedIn: signedIn = true; System.connectionUp = true; if (User.OnSignedIn != null) { User.OnSignedIn(msg); } return(true); case Messages.MessageType.kNPToolKit_SignedOut: signedIn = false; if (User.OnSignedOut != null) { User.OnSignedOut(msg); } return(true); case Messages.MessageType.kNPToolKit_PresenceSet: if (User.OnPresenceSet != null) { User.OnPresenceSet(msg); } return(true); case Messages.MessageType.kNPToolKit_GotUserProfile: if (User.OnGotUserProfile != null) { User.OnGotUserProfile(msg); } return(true); case Messages.MessageType.kNPToolKit_GotRemoteUserProfile: if (User.OnGotRemoteUserProfile != null) { User.OnGotRemoteUserProfile(msg); } return(true); case Messages.MessageType.kNPToolKit_GotRemoteUserNpID: if (User.OnGotRemoteUserNpID != null) { User.OnGotRemoteUserNpID(msg); } return(true); case Messages.MessageType.kNPToolKit_UserProfileError: if (User.OnUserProfileError != null) { User.OnUserProfileError(msg); } if (Application.platform == RuntimePlatform.PS4) { ResultCode result = default(ResultCode); GetLastUserProfileError(out result); uint lastErrorSCE = (uint)result.lastErrorSCE; if (lastErrorSCE == 2183135618u || lastErrorSCE == 2183135876u) { Debug.LogError($"bad missing NP title ID/ NP Title secret ... check your publishing settings ({result.lastErrorSCE:X})"); } } return(true); case Messages.MessageType.kNPToolKit_PresenceError: if (User.OnPresenceError != null) { User.OnPresenceError(msg); } break; case Messages.MessageType.kNPToolKit_SignInError: if (User.OnSignInError != null) { User.OnSignInError(msg); } break; } return(false); }
public static bool GetLastConnectionError(out ResultCode result) { PrxNetCtlGetLastConnectionError(out result); return(result.lastError == ErrorCode.NP_OK); }
private static extern bool PrxCommerceGetLastError(out ResultCode result);
public static bool GetLastPresenceError(out ResultCode result) { PrxPresenceGetLastError(out result); return(result.lastError == ErrorCode.NP_OK); }
private static extern bool PrxUserProfileGetLastError(out ResultCode result);
public static bool GetLastUserProfileError(out ResultCode result) { PrxUserProfileGetLastError(out result); return(result.lastError == ErrorCode.NP_OK); }
private static extern bool PrxSigninGetLastError(out ResultCode result);
public static bool GetLastSignInError(out ResultCode result) { PrxSigninGetLastError(out result); return(result.lastError == ErrorCode.NP_OK); }
public static bool GetLastError(out ResultCode result) { result = new ResultCode(); return(false); }
private static extern bool PrxNpDialogGetLastError(out ResultCode result);
private static extern bool PrxRankingGetLastError(out ResultCode result);
private static extern bool PrxTwitterGetLastError(out ResultCode result);
private static extern bool PrxPresenceGetLastError(out ResultCode result);
public static bool GetLastError(out ResultCode result) { PrxTwitterGetLastError(out result); return(result.lastError == ErrorCode.NP_OK); }
private static extern bool PrxTrophyGetLastError(out ResultCode result);