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
FileManager.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4using UnityEngine;
5
6// Token: 0x02000070 RID: 112
7public class FileManager
8{
9 // Token: 0x0600026E RID: 622 RVA: 0x00006B0C File Offset: 0x00004D0C
11 {
12 if (this.CacheFiles)
13 {
14 }
15 }
16
17 // Token: 0x0600026F RID: 623 RVA: 0x00006B28 File Offset: 0x00004D28
18 public static void SynchroniseFiles()
19 {
20 }
21
22 // Token: 0x06000270 RID: 624 RVA: 0x00006B38 File Offset: 0x00004D38
23 public void Shutdown()
24 {
26 if (fileCache != null)
27 {
29 }
30 FileAPI fileAPI = this.fileAPI;
31 }
32
33 // Token: 0x06000271 RID: 625 RVA: 0x00006B60 File Offset: 0x00004D60
34 public static bool Exists(string path)
35 {
36 /*
37An exception occurred when decompiling this method (06000271)
38
39ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean FileManager::Exists(System.String)
40
41 ---> System.Exception: Basic block has to end with unconditional control flow.
42{
43 Block_0:
44 stloc:uint8[](var_1_0F, ldfld:uint8[](CachedFile::<Data>k__BackingField, ldloc:CachedFile(var_0)))
45}
46
47 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
48 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
49 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
50 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
51 --- End of inner exception stack trace ---
52 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
53 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
54*/;
55 }
56
57 // Token: 0x06000272 RID: 626 RVA: 0x00006B7C File Offset: 0x00004D7C
58 public static void Delete(string path)
59 {
60 Thread.Sleep(1);
61 }
62
63 // Token: 0x06000273 RID: 627 RVA: 0x00006B94 File Offset: 0x00004D94
64 public static void CreateDirectory(string path)
65 {
66 Thread.Sleep(1);
67 }
68
69 // Token: 0x06000274 RID: 628 RVA: 0x00006BAC File Offset: 0x00004DAC
70 public static byte[] ReadAllBytes(string path)
71 {
73 do
74 {
75 Thread.Sleep(1);
76 }
77 while (cachedFile == null);
78 return cachedFile.<Data>k__BackingField;
79 }
80
81 // Token: 0x06000275 RID: 629 RVA: 0x00006BC8 File Offset: 0x00004DC8
82 public static string[] GetFiles(string path, string searchPattern)
83 {
84 Thread.Sleep(1);
85 string[] array;
86 return array;
87 }
88
89 // Token: 0x06000276 RID: 630 RVA: 0x00006BDC File Offset: 0x00004DDC
90 public static void WriteAllBytes(string path, byte[] fileData)
91 {
92 Debug.LogError("WriteAllBytes " + path);
93 }
94
95 // Token: 0x06000277 RID: 631 RVA: 0x00006C04 File Offset: 0x00004E04
96 public static void SetAttributes(string path, FileAttributes fileAttributes)
97 {
98 }
99
100 // Token: 0x04000220 RID: 544
102 public static FileManager Instance;
103
104 // Token: 0x04000221 RID: 545
105 public bool CacheFiles;
106
107 // Token: 0x04000222 RID: 546
109
110 // Token: 0x04000223 RID: 547
112
113 // Token: 0x04000224 RID: 548
115
116 // Token: 0x04000225 RID: 549
117 public bool IsWritingFiles;
118
119 // Token: 0x04000226 RID: 550
121}
class f__AnonymousType0<< Count > j__TPar
SyncStatus
Definition SyncStatus.cs:5
static void CreateDirectory(string path)
static void SetAttributes(string path, FileAttributes fileAttributes)
FileManager(PlatformUser user, bool primaryUser)
static FileManager Instance
bool IsSyncingUserFiles
void Shutdown()
static void WriteAllBytes(string path, byte[] fileData)
static bool Exists(string path)
CacheFileManager FileCache
static void Delete(string path)
bool IsWritingFiles
static byte[] ReadAllBytes(string path)
FileAPI fileAPI
static void SynchroniseFiles()
static string[] GetFiles(string path, string searchPattern)
SyncStatus syncStatus
static void Sleep(int millisecondsTimeout)
Definition Thread.cs:207
static void LogError(object message)
Definition Debug.cs:62