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

◆ playWorldCallBack()

static void Terraria.WorldGen.playWorldCallBack ( object threadContext)
inlinestatic

Definition at line 1133 of file WorldGen.cs.

1134 {
1135 int num = 1;
1136 if (num == 0)
1137 {
1138 }
1139 if (num == 0)
1140 {
1141 }
1142 long ticks = DateTime.Now.Ticks;
1143 int myPlayer = Main.myPlayer;
1144 int num2 = 1;
1145 Main.ToggleGameplayUpdates(false);
1146 if (num2 == 0)
1147 {
1148 }
1149 WorldFile.LoadWorld(true);
1150 if (num2 == 0)
1151 {
1152 if (num2 == 0)
1153 {
1154 }
1155 return;
1156 }
1157 if (num2 == 0)
1158 {
1159 }
1160 WorldFile.LoadWorld(true);
1161 if (num2 == 0)
1162 {
1163 if (num2 == 0)
1164 {
1165 }
1166 return;
1167 }
1168 string text = Main.worldPathName + ".bak";
1169 if (num2 == 0)
1170 {
1171 }
1172 if (num2 == 0)
1173 {
1174 }
1175 if (num2 == 0)
1176 {
1177 }
1178 bool flag;
1179 if (flag)
1180 {
1181 if (ticks == 0L)
1182 {
1183 string textValue = Language.GetTextValue("Error.LoadFailedNoBackup");
1184 if (num2 == 0)
1185 {
1186 }
1188 return;
1189 }
1190 string worldPathName = Main.worldPathName;
1191 string text2 = Main.worldPathName + ".bad";
1192 if (num2 == 0)
1193 {
1194 }
1195 int num3 = 1;
1196 FileUtilities.Copy(worldPathName, text2, true, num3 != 0);
1197 string text3 = Main.worldPathName + ".bak";
1198 string worldPathName2 = Main.worldPathName;
1199 int num4 = 1;
1201 FileUtilities.Delete(Main.worldPathName + ".bak", true);
1202 if (num2 == 0)
1203 {
1204 }
1205 WorldFile.LoadWorld(true);
1206 if (num2 == 0)
1207 {
1208 if (num2 == 0)
1209 {
1210 }
1211 return;
1212 }
1213 if (num2 == 0)
1214 {
1215 }
1216 WorldFile.LoadWorld(true);
1217 if (num2 != 0)
1218 {
1219 string worldPathName3 = Main.worldPathName;
1220 string text4 = Main.worldPathName + ".bak";
1221 if (num2 == 0)
1222 {
1223 }
1224 int num5 = 1;
1226 string text5 = Main.worldPathName + ".bad";
1227 string worldPathName4 = Main.worldPathName;
1228 int num6 = 1;
1230 FileUtilities.Delete(Main.worldPathName + ".bad", true);
1231 string textValue2 = Language.GetTextValue("Error.LoadFailed");
1232 if (num2 == 0)
1233 {
1234 }
1237 return;
1238 }
1239 if (num2 == 0)
1240 {
1241 }
1242 bool mapEnabled = Main.mapEnabled;
1243 Main.Map.Load();
1244 bool logicClient = Main.LogicClient;
1245 Main.sectionManager.SetAllSectionsLoaded();
1246 bool loadMapLock = Main.loadMapLock;
1247 int totalMapSections = Main.sectionManager.TotalMapSections;
1248 int mapSectionsLeft = Main.sectionManager.mapSectionsLeft;
1249 int totalMapSections2 = Main.sectionManager.TotalMapSections;
1250 if (num2 == 0)
1251 {
1252 }
1253 Thread.Sleep(0);
1254 bool mapEnabled2 = Main.mapEnabled;
1255 return;
1256 }
1257 else
1258 {
1259 if (".bad" != null)
1260 {
1261 return;
1262 }
1263 Main.menuMode = 201;
1264 return;
1265 }
1266 }
class f__AnonymousType0<< Count > j__TPar
static void WriteLine(object value)
Definition Console.cs:134
static void Sleep(int millisecondsTimeout)
Definition Thread.cs:207
static void LoadWorld(bool loadFromCloud)
Definition WorldFile.cs:201
static string GetTextValue(string key)
Definition Language.cs:54
static void Copy(string source, string destination, bool cloud=false, bool overwrite=true)
static void Delete(string path, bool cloud=false)
static DateTime Now
Definition DateTime.cs:530

References Terraria.Utilities.FileUtilities.Copy(), Terraria.Utilities.FileUtilities.Delete(), Terraria.Localization.Language.GetTextValue(), j__TPar, System.L, Terraria.Map.WorldMap.Load(), Terraria.Main.loadMapLock, Terraria.IO.WorldFile.LoadWorld(), Terraria.Main.LogicClient, Terraria.Main.Map, Terraria.Main.mapEnabled, Terraria.WorldSections.mapSectionsLeft, Terraria.Main.myPlayer, System.DateTime.Now, Terraria.Main.sectionManager, Terraria.WorldSections.SetAllSectionsLoaded(), System.Threading.Thread.Sleep(), System.text, System.DateTime.Ticks, Terraria.Main.ToggleGameplayUpdates(), Terraria.WorldSections.TotalMapSections, Terraria.Main.worldPathName, and System.Console.WriteLine().