Skip to content

Commit 7db40e0

Browse files
committed
Replace obsolete function
1 parent 6053aa6 commit 7db40e0

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

include/TResourceManager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ class TResourceManager {
3232
[[nodiscard]] int ModsLoaded() const { return mModsLoaded; }
3333
[[nodiscard]] nlohmann::json GetMods() const { return mMods; }
3434

35-
[[nodiscard]] std::string NewFileList() const;
36-
3735
void RefreshFiles();
36+
void SetProtected(const std::string& ModName, bool Protected);
3837

3938
private:
4039
size_t mMaxModSize = 0;

src/TNetwork.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ void TNetwork::Parse(TClient& c, const std::vector<uint8_t>& Packet) {
786786
case 'S':
787787
if (SubCode == 'R') {
788788
beammp_debug("Sending Mod Info");
789-
std::string ToSend = mResourceManager.NewFileList();
789+
std::string ToSend = mResourceManager.GetMods().dump();
790790
beammp_debugf("Mod Info: {}", ToSend);
791791
if (!TCPSend(c, StringToVector(ToSend))) {
792792
ClientKick(c, "TCP Send 'SY' failed");

src/TResourceManager.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ TResourceManager::TResourceManager() {
5858
Application::SetSubsystemStatus("ResourceManager", Application::Status::Good);
5959
}
6060

61-
std::string TResourceManager::NewFileList() const {
62-
return mMods.dump();
63-
}
6461
void TResourceManager::RefreshFiles() {
6562
mMods.clear();
6663
std::unique_lock Lock(mModsMutex);

0 commit comments

Comments
 (0)