Skip to content

Commit 6c9314d

Browse files
committed
Quick Cleanup - p2mtools.cpp
remove obsolete logic, lots of it is optimisations to reduce loading mod files which are no longer needed.
1 parent 1e13560 commit 6c9314d

3 files changed

Lines changed: 14 additions & 626 deletions

File tree

pcsx2/mods/ActiveMods.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ static bool ActiveMods::CacheFileValidation()
2020
return true;
2121
}
2222

23+
void ActiveMods::Set(std::vector<std::pair<std::string, std::string>> activeMods)
24+
{
25+
activeModCache = std::move(activeMods);
26+
}
27+
2328
bool ActiveMods::ContainsMod(const std::string mod)
2429
{
2530
for (std::pair<std::string, std::string> entry : activeModCache)

pcsx2/mods/ActiveMods.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace ActiveMods
1010

1111
bool ReadOne(FILE* stream, std::pair<std::string, std::string>& entry);
1212

13+
void Set(std::vector<std::pair<std::string, std::string>> activeMods);
1314
bool ContainsMod(const std::string mod);
1415

1516
bool GetPaths(const std::string mod, std::vector<std::string>& paths);

0 commit comments

Comments
 (0)