internal static void smethod_5() { try { File.Delete(Class111.string_0); } catch { } Class111.values_0 = null; }
private static void smethod_4() { Class111.string_0 = Path.Combine(Class71.string_3, Path.GetFileNameWithoutExtension(InjectedWindow.Instance.class71_0.LoadedFromFileName) + ".stats"); if (File.Exists(Class111.string_0)) { try { string value = File.ReadAllText(Class111.string_0); Class111.values_0 = JsonConvert.DeserializeObject<Class111.Values>(value, new JsonSerializerSettings { TypeNameAssemblyFormat = FormatterAssemblyStyle.Simple }); if (!(DateTime.Now - Class111.values_0.LastSaved > TimeSpan.FromHours(3.0))) { return; } Class111.values_0 = null; } catch (Exception ex) { GClass0.smethod_0().method_4("STATS: Error loading old file: " + ex.Message); } } if (Class111.values_0 == null) { Class111.values_0 = new Class111.Values(); Class111.values_0.LastSaved = DateTime.Now; Class111.values_0.RecordingStarted = DateTime.Now; } }