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

◆ UpdateLoad()

bool Microsoft.Xna.Framework.Content.ThreadContentRequest.UpdateLoad ( )
inlineprivate

Definition at line 138 of file ThreadContentRequest.cs.

139 {
140 bool isDone = this._loadRequest.isDone;
142 if (loadRequest != null)
143 {
145 }
147 long num;
148 if (loadRequest2 != null)
149 {
150 num = 0L;
151 bool isDone3 = loadRequest2.isDone;
152 }
153 object lockObject = this._lockObject;
154 Monitor.Enter(lockObject, num != 0L);
156 this._loaded = true;
157 global::UnityEngine.Object asset = loadRequest3.asset;
159 this._resource = asset;
160 if (loadRequest4 != null)
161 {
162 global::UnityEngine.Object asset2 = loadRequest4.asset;
164 }
166 if (loadRequest5 != null)
167 {
168 global::UnityEngine.Object asset3 = loadRequest5.asset;
170 }
172 if (createFunction != null)
173 {
174 global::UnityEngine.Object resource = this._resource;
175 IntPtr method_code = createFunction.method_code;
176 IntPtr invoke_impl = createFunction.invoke_impl;
177 IntPtr method = createFunction.method;
178 this._constructedObject = method_code;
179 }
181 if (createFunction2 != null)
182 {
183 global::UnityEngine.Object resource2 = this._resource;
184 global::UnityEngine.Object resource3 = this._resource2;
185 IntPtr method_code2 = createFunction2.method_code;
186 IntPtr invoke_impl2 = createFunction2.invoke_impl;
189 }
191 if (createFunction3 != null)
192 {
193 global::UnityEngine.Object resource4 = this._resource;
194 global::UnityEngine.Object resource5 = this._resource2;
195 IntPtr method_code3 = createFunction3.method_code;
196 global::UnityEngine.Object resource6 = this._resource3;
197 IntPtr invoke_impl3 = createFunction3.invoke_impl;
200 }
201 long num2 = 0L;
202 if (createFunction3 != null)
203 {
204 Monitor.Exit(lockObject);
205 }
206 if (num2 == 0L)
207 {
208 return true;
209 }
210 throw new OutOfMemoryException();
211 }
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11

References System.Object.Object(), Microsoft.Xna.Framework.Content.ThreadContentRequest._createFunction, Microsoft.Xna.Framework.Content.ThreadContentRequest._createFunction2, Microsoft.Xna.Framework.Content.ThreadContentRequest._createFunction3, Microsoft.Xna.Framework.Content.ThreadContentRequest._loadRequest, Microsoft.Xna.Framework.Content.ThreadContentRequest._loadRequest2, Microsoft.Xna.Framework.Content.ThreadContentRequest._loadRequest3, Microsoft.Xna.Framework.Content.ThreadContentRequest._lockObject, Microsoft.Xna.Framework.Content.ThreadContentRequest._resource, Microsoft.Xna.Framework.Content.ThreadContentRequest._resource2, Microsoft.Xna.Framework.Content.ThreadContentRequest._resource3, UnityEngine.ResourceRequest.asset, System.Threading.Monitor.Enter(), System.Threading.Monitor.Exit(), UnityEngine.AsyncOperation.isDone, j__TPar, and System.L.