mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-23 01:02:23 +08:00
fix(Globals): Don't forget to close file handle
This commit is contained in:
@ -309,9 +309,13 @@ struct globals {
|
||||
try
|
||||
{
|
||||
file >> this->options;
|
||||
|
||||
file.close();
|
||||
}
|
||||
catch (const std::exception&)
|
||||
{
|
||||
file.close();
|
||||
|
||||
LOG(WARNING) << "Detected corrupt settings, writing default config...";
|
||||
|
||||
this->write_default_config();
|
||||
|
Reference in New Issue
Block a user