using System; using System.Runtime.InteropServices; namespace Sony.NP { // Token: 0x0200012F RID: 303 [StructLayout(LayoutKind.Sequential)] public class InitToolkit { // Token: 0x0600063C RID: 1596 RVA: 0x00011520 File Offset: 0x00010520 public InitToolkit() { this.contentRestrictions.Init(); this.serverPushNotifications.Init(); this.threadSettings.Init(); this.memoryPools.Init(); this.serverPushNotificationsFlags = PushNotificationsFlags.None; this.notificationsFlagsSet = false; } // Token: 0x0600063D RID: 1597 RVA: 0x00011574 File Offset: 0x00010574 public void SetPushNotificationsFlags(PushNotificationsFlags pushNotifications) { this.serverPushNotificationsFlags = pushNotifications; this.notificationsFlagsSet = true; } // Token: 0x0600063E RID: 1598 RVA: 0x00011588 File Offset: 0x00010588 public void CheckValid() { if ((this.threadSettings.affinity & (Affinity)3) != (Affinity)0) { throw new NpToolkitException("Can't set thread affinity to Core 0 or Core 1 as this will interfer with the main loop and gfx threads."); } } // Token: 0x040004F2 RID: 1266 public ContentRestriction contentRestrictions; // Token: 0x040004F3 RID: 1267 [Obsolete("serverPushNotifications is deprecated, please use SetPushNotificationsFlags instead.")] public ServerPushNotifications serverPushNotifications; // Token: 0x040004F4 RID: 1268 private PushNotificationsFlags serverPushNotificationsFlags; // Token: 0x040004F5 RID: 1269 [MarshalAs(UnmanagedType.I1)] private bool notificationsFlagsSet; // Token: 0x040004F6 RID: 1270 public ThreadSettings threadSettings; // Token: 0x040004F7 RID: 1271 public MemoryPools memoryPools; } }