xposure / ImGuiSharp

MIT License
12 stars 2 forks source link

Update save and load settings functions #2

Open drakbar opened 7 years ago

drakbar commented 7 years ago

1) added directive System.IO. 2) passed ImGuiState as a parameter to SaveSettings which changes line 3) in LoadSettings the blocks for loading position and size are almost identical, a lambda might be a better approach 4) made Shutdown public In order for SaveSettings to be called 5) the game crashes when trying to double click the window to collapse it and if you change the value of collapse in the ini file to True. the program crashes at line 3963 in ImGui.cs