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

Method update

launcher/minecraft/WorldList.cpp:85–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool WorldList::update()
86{
87 if (!isValid())
88 return false;
89
90 QList<World> newWorlds;
91 m_dir.refresh();
92 auto folderContents = m_dir.entryInfoList();
93 // if there are any untracked files...
94 for (QFileInfo entry : folderContents) {
95 if (!entry.isDir())
96 continue;
97
98 World w(entry);
99 if (w.isValid()) {
100 newWorlds.append(w);
101 }
102 }
103 beginResetModel();
104 worlds.swap(newWorlds);
105 endResetModel();
106 return true;
107}
108
109void WorldList::directoryChanged(QString path)
110{

Callers 10

processZipPackMethod · 0.45
collectFilesMethod · 0.45
collectHashesMethod · 0.45
buildZipMethod · 0.45
executeTaskMethod · 0.45
netJobFinishedMethod · 0.45
getFlameProjectsMethod · 0.45
collectFilesMethod · 0.45
buildZipMethod · 0.45
extractJavaMethod · 0.45

Calls 3

appendMethod · 0.80
refreshMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected