terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ LoadPlayer()

static PlayerFileData Terraria.Player.LoadPlayer ( string playerPath,
bool cloudSave )
inlinestatic

Definition at line 19061 of file Player.cs.

19062 {
19063 long ticks = DateTime.Now.Ticks;
19064 string oldSavePath = Main.OldSavePath;
19065 bool flag = oldSavePath.Contains(oldSavePath);
19068 long num = 0L;
19069 BitsByte bitsByte2;
19070 BitsByte bitsByte = (bitsByte2[(int)num] ? 1 : 0);
19071 long num2 = 0L;
19072 BitsByte bitsByte3 = (bitsByte[(int)num2] ? 1 : 0);
19073 long num3 = 0L;
19074 bool flag2 = bitsByte3[(int)num3];
19075 int myPlayer = Main.myPlayer;
19076 int myPlayer2 = Main.myPlayer;
19077 int myPlayer3 = Main.myPlayer;
19078 int myPlayer4 = Main.myPlayer;
19079 int myPlayer5 = Main.myPlayer;
19080 int myPlayer6 = Main.myPlayer;
19081 int myPlayer7 = Main.myPlayer;
19082 int num4 = 32;
19083 Item item;
19084 if (item == null || item != null)
19085 {
19086 int num5 = 22;
19087 int num6;
19088 if (num4 == 0)
19089 {
19090 while (num5 != 0)
19091 {
19092 }
19093 num6 = 136;
19094 BitsByte bitsByte4;
19095 if (num4 == 0 && bitsByte4 != null && bitsByte4 == null)
19096 {
19097 throw new ArrayTypeMismatchException();
19098 }
19099 if (num4 == 0 && num4 == 0 && num4 == 0 && num4 == 0)
19100 {
19102 if (num4 != 0 || num4 == 0)
19103 {
19104 }
19105 }
19106 }
19107 long num7 = 0L;
19108 if (42167192 != 0)
19109 {
19110 return 42167192;
19111 }
19112 if (num7 == 0L)
19113 {
19114 if (num4 == 0)
19115 {
19116 int num8 = 170;
19117 if (42167192 == 0)
19118 {
19119 return 42167192;
19120 }
19121 }
19122 else
19123 {
19124 long num9 = 0L;
19125 if (42167192 == 0)
19126 {
19127 if (num9 != 0L)
19128 {
19129 throw new OutOfMemoryException();
19130 }
19131 int num8;
19132 int num10;
19133 long num11;
19134 if (num8 == 0)
19135 {
19136 num10 = 171;
19137 if (num6 == 0)
19138 {
19139 return 42167192;
19140 }
19141 }
19142 else
19143 {
19144 num11 = 0L;
19145 if (num6 == 0)
19146 {
19147 goto IL_0200;
19148 }
19149 }
19150 int value = num6.m_value;
19151 IL_0200:
19152 if (num11 != 0L)
19153 {
19154 throw new OutOfMemoryException();
19155 }
19156 if (num10 == 0)
19157 {
19158 while (num10 != 0)
19159 {
19160 }
19161 while (num10 != 0)
19162 {
19163 }
19164 while (num10 != 0)
19165 {
19166 }
19167 while (num10 != 0)
19168 {
19169 }
19170 while (num10 != 0)
19171 {
19172 }
19173 while (num10 != 0)
19174 {
19175 }
19176 if (num10 != 0 || num10 != 0)
19177 {
19178 if (num10 != 0)
19179 {
19180 long num12 = DateTime.UtcNow.ToBinary();
19181 }
19182 if (num10 != 0)
19183 {
19184 }
19185 if (num10 != 0)
19186 {
19187 }
19188 }
19189 if (num10 != 0)
19190 {
19191 }
19193 if (num10 != 0)
19194 {
19195 }
19197 if (num10 != 0)
19198 {
19199 }
19200 bool flag3;
19201 BitsByte bitsByte5 = (flag3 ? 1 : 0);
19202 long num13 = 0L;
19203 bool flag4 = bitsByte5[(int)num13];
19204 while (num10 != 0)
19205 {
19206 }
19207 goto IL_02B6;
19208 }
19209 throw new OutOfMemoryException();
19210 }
19211 }
19212 return 42167192;
19213 }
19214 throw new OutOfMemoryException();
19215 }
19216 IL_02B6:
19217 throw new ArrayTypeMismatchException();
19218 }
class f__AnonymousType0<< Count > j__TPar
static DrPlatform.DrPlatformType CurrentPlatform
Definition DrPlatform.cs:26
long ToBinary()
Definition DateTime.cs:398
static DateTime Now
Definition DateTime.cs:530
static DateTime UtcNow
Definition DateTime.cs:1318

References DrPlatform.CurrentPlatform, Terraria.GameContent.Creative.CreativePowerManager.Instance, System.item, j__TPar, System.L, Terraria.Main.myPlayer, System.DateTime.Now, Terraria.Main.OldSavePath, System.DateTime.Ticks, System.DateTime.ToBinary(), System.DateTime.UtcNow, and System.value.