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

◆ Put()

void Terraria.IO.Preferences.Put ( string name,
object value )
inline

Definition at line 229 of file Preferences.cs.

230 {
231 object @lock = this._lock;
233 bool autoSave = this.AutoSave;
234 if (autoSave)
235 {
236 bool flag = this.Save(true);
237 }
238 long num = 0L;
239 if (autoSave)
240 {
241 Monitor.Exit(@lock);
242 }
243 if (num == 0L)
244 {
245 return;
246 }
247 throw new OutOfMemoryException();
248 }
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47
Dictionary< string, object > _data
readonly object _lock
bool Save(bool canCreateFile=true)

References Terraria.IO.Preferences._data, Terraria.IO.Preferences._lock, Terraria.IO.Preferences.AutoSave, System.Threading.Monitor.Exit(), j__TPar, System.L, and Terraria.IO.Preferences.Save().

Referenced by Terraria.GameContent.UI.ResourceSets.PlayerResourceSetsManager.Configuration_OnSave(), GUIControllerMappingState.SaveConfiguration(), and Terraria.Main.SaveSettings().