PiMaker / ltcgi

Optimized plug-and-play realtime area lighting using the linearly transformed cosine algorithm for Unity/VRChat.
https://ltcgi.dev
Other
442 stars 25 forks source link

Non-US regional settings for decimal separator cause FormatException with float.parse() #2

Closed TysonCross closed 2 years ago

TysonCross commented 2 years ago

Solution may be to modify LTCGI_ControllerExternal.cs (line 187) to read:

var valueInConfig = float.Parse(line.Substring(line.LastIndexOf(' ')).Replace('f', ' '), System.Globalization.CultureInfo.InvariantCulture);

PiMaker commented 2 years ago

fixed in 34f9806547 and v0.9.3.

Thanks for reporting!