MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / uninstallResource

Method uninstallResource

launcher/minecraft/mod/ResourceFolderModel.cpp:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool ResourceFolderModel::uninstallResource(QString file_name)
162{
163 for (auto& resource : m_resources) {
164 if (resource->fileinfo().fileName() == file_name) {
165 auto res = resource->destroy(false);
166
167 update();
168
169 return res;
170 }
171 }
172 return false;
173}
174
175bool ResourceFolderModel::deleteResources(const QModelIndexList& indexes)
176{

Callers 2

downloadSucceededMethod · 0.80
test_removeResourceFunction · 0.80

Calls 2

fileinfoMethod · 0.80
destroyMethod · 0.45

Tested by 1

test_removeResourceFunction · 0.64