forked from charlyzard/PS4OfflineAccountActivator
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Registry.cs
48 lines (38 loc) · 1.13 KB
/
Registry.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PS4OfflineAccountActivator
{
public class Registry
{
public const int SIZE_account_id = 8;
public const int SIZE_NP_env = 17;
public const int SIZE_login_flag = 4;
public const int SIZE_user_name = 17;
public int Get_Entity_Number(int a, int b, int c, int d, int e)
{
if (a < 1 || a > b)
{
return e;
}
return (a - 1) * c + d;
}
public int KEY_account_id(int a)
{
return Get_Entity_Number(a, 16, 65536, 125830400, 125829120);
}
public int KEY_NP_env(int a)
{
return Get_Entity_Number(a, 16, 65536, 125874183, 125874176);
}
public int KEY_login_flag(int a)
{
return Get_Entity_Number(a, 16, 65536, 125831168, 125829120);
}
public int KEY_user_name(int a)
{
return Get_Entity_Number(a, 16, 65536, 125829632, 125829120);
}
}
}