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

◆ RenameWorld()

static bool Terraria.IO.WorldFile.RenameWorld ( string newName,
bool useCloudSaving = false )
inlinestatic

Definition at line 318 of file WorldFile.cs.

319 {
320 if (!true)
321 {
322 }
323 string worldPathName = Main.worldPathName;
324 long num = 0L;
325 int num2 = 4;
326 long num3 = 0L;
327 if (num != 0L)
328 {
329 throw new OutOfMemoryException();
330 }
331 int num4;
332 if (num2 == 0)
333 {
334 num4 = 11;
335 }
336 if (false)
337 {
338 throw new OutOfMemoryException();
339 }
340 int num5;
341 if (num4 == 0)
342 {
343 num5 = 12;
344 }
345 if (!false)
346 {
347 int num6;
348 if (num5 == 0)
349 {
350 num6 = 13;
351 }
352 if (!false)
353 {
354 if (num6 == 0)
355 {
356 string worldPathName2 = Main.worldPathName;
357 byte[] array = FileUtilities.ReadAllBytes(Main.worldPathName, num3 != 0L);
358 byte[] array2;
359 if (array2 != null)
360 {
361 string text = Main.worldPathName + ".bak";
362 if (".bak" == null)
363 {
364 }
365 if (".bak" == null)
366 {
367 }
368 string worldPathName3 = Main.worldPathName;
369 }
370 long num7 = 0L;
371 long num8 = 0L;
372 int num9 = 20;
373 if (num8 != 0L)
374 {
375 throw new OutOfMemoryException();
376 }
377 int num10;
378 if (num9 == 0)
379 {
380 num10 = 21;
381 }
382 if (false)
383 {
384 throw new OutOfMemoryException();
385 }
386 if (num10 == 0 && array2 != null && num7 != 0L)
387 {
388 goto IL_00D9;
389 }
390 }
391 throw new OutOfMemoryException();
392 }
393 IL_00D9:
394 throw new OutOfMemoryException();
395 }
396 throw new OutOfMemoryException();
397 }
class f__AnonymousType0<< Count > j__TPar
static byte[] ReadAllBytes(string path, bool cloud=false)

References System.array, j__TPar, System.L, Terraria.Utilities.FileUtilities.ReadAllBytes(), System.text, and Terraria.Main.worldPathName.