MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / uninstallResource

Method uninstallResource

launcher/minecraft/mod/ResourceFolderModel.cpp:147–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147bool ResourceFolderModel::uninstallResource(QString file_name)
148{
149 for (auto& resource : m_resources) {
150 if (resource->fileinfo().fileName() == file_name) {
151 auto res = resource->destroy();
152
153 update();
154
155 return res;
156 }
157 }
158 return false;
159}
160
161bool ResourceFolderModel::deleteResources(const QModelIndexList& indexes)
162{

Callers 1

test_removeResourceFunction · 0.80

Calls 2

fileinfoMethod · 0.80
destroyMethod · 0.45

Tested by 1

test_removeResourceFunction · 0.64