Update Config.hpp

This commit is contained in:
0TheSpy
2021-07-12 12:45:27 +03:00
committed by GitHub
parent d0441a06e5
commit 74c8c3b7c4

View File

@ -181,6 +181,23 @@ public:
}
void FindAutoexec() {
if (opt.autoconfig != -1) {
ifstream loadcfg("seaside_autoload");
if (loadcfg.is_open())
{
string line;
getline(loadcfg, line);
for (int i = 0; i < Config::Get().configs.size(); i++)
if (Config::Get().configs[i] == line)
opt.autoconfig = i;
}
else opt.autoconfig = -1;
}
}
};