sinmai-mods/FixLocaleIssues/MAI2System/patch_IniSection.cs
2024-05-22 22:31:19 +07:00

22 lines
570 B
C#

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System.Globalization;
using MonoMod;
namespace MAI2System;
class patch_IniSection : IniSection
{
[MonoModIgnore]
public patch_IniSection(ref IniSection head, ref IniSection tail, string name, string value) : base(ref head, ref tail, name, value)
{
}
[MonoModReplace]
public new bool getFloatValue(out float value)
{
return float.TryParse(_variableValue, NumberStyles.Float, CultureInfo.InvariantCulture, out value);
}
}