mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Mod_GetAllInstalledMaps: light cleanup
This commit is contained in:
parent
3af4ccebc3
commit
0d9a66a6cf
@ -41,10 +41,11 @@ void Mod_GetAllInstalledMaps()
|
||||
std::lock_guard<std::mutex> l(g_MapVecMutex);
|
||||
g_vAllMaps.clear(); // Clear current list.
|
||||
|
||||
fs::directory_iterator fsDir("vpk");
|
||||
std::regex rgArchiveRegex{ R"([^_]*_(.*)(.bsp.pak000_dir).*)" };
|
||||
std::smatch smRegexMatches;
|
||||
|
||||
for (const fs::directory_entry& dEntry : fs::directory_iterator("vpk"))
|
||||
for (const fs::directory_entry& dEntry : fsDir)
|
||||
{
|
||||
std::string svFileName = dEntry.path().u8string();
|
||||
std::regex_search(svFileName, smRegexMatches, rgArchiveRegex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user