sinmai-mods/FixLocaleIssues/MAI2System/patch_IniSection.cs
2024-08-08 13:32:25 +07:00

21 lines
568 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);
}
}