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

◆ OpenLegacySettings()

void Terraria.Main.OpenLegacySettings ( )
inlineprotected

Definition at line 6098 of file Main.cs.

6099 {
6100 int num = 1;
6101 if (num == 0)
6102 {
6103 }
6104 string savePath = Main.SavePath;
6105 if (num == 0)
6106 {
6107 }
6108 string text2;
6109 string text = savePath + text2 + "config.dat";
6110 if (num == 0)
6111 {
6112 }
6113 long num2 = 0L;
6114 bool flag = FileUtilities.Exists(text, num2 != 0L);
6115 if (num == 0)
6116 {
6117 }
6118 string savePath2 = Main.SavePath;
6119 if (num == 0)
6120 {
6121 }
6122 string text4;
6123 string text3 = savePath2 + text4 + "config.dat";
6124 if (num == 0)
6125 {
6126 }
6127 long num3 = 0L;
6128 byte[] array = FileUtilities.ReadAllBytes(text3, num3 != 0L);
6129 long num4 = 0L;
6130 Main.mouseColor = Main.mouseColor;
6131 Main.SetDisplayMode(0, 0, num4 != 0L);
6132 if (!false)
6133 {
6134 }
6135 Main.autoSave = false;
6136 if (!false)
6137 {
6138 }
6139 Main.autoPause = Main.AutoPauseMode.Disabled;
6140 if (!false)
6141 {
6142 }
6143 Main.showItemText = false;
6144 if (!false)
6145 {
6146 }
6147 Main.qaStyle = 1073741824;
6148 if (1073741824 == 0)
6149 {
6150 }
6151 Main.BackgroundEnabled = false;
6152 if (!false)
6153 {
6154 }
6155 if (!false)
6156 {
6157 }
6158 if (!false)
6159 {
6160 }
6161 Main.mapEnabled = false;
6162 if (!false)
6163 {
6164 }
6166 if (!false)
6167 {
6168 }
6170 if (!false)
6171 {
6172 }
6173 Main.placementPreview = false;
6174 if (!false)
6175 {
6176 }
6177 Main.placementPreview = false;
6178 if (!false)
6179 {
6180 }
6181 Main.SetFullScreen(false);
6182 long num5 = 0L;
6183 if (false)
6184 {
6185 return;
6186 }
6187 if (num5 == 0L)
6188 {
6189 return;
6190 }
6191 throw new OutOfMemoryException();
6192 }
class f__AnonymousType0<< Count > j__TPar
static byte[] ReadAllBytes(string path, bool cloud=false)
static bool Exists(string path, bool cloud=false)

References System.array, Terraria.Utilities.FileUtilities.Exists(), j__TPar, Microsoft.Xna.Framework.Input.L, Terraria.Main.mouseColor, Terraria.Utilities.FileUtilities.ReadAllBytes(), Terraria.Main.SavePath, Terraria.Main.SetDisplayMode(), Terraria.Main.SetFullScreen(), and System.text.