MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / BareModId

Function BareModId

engine/Poseidon/UI/OptionsUIApp.cpp:1370–1376  ·  view source on GitHub ↗

Bare mod id (no leading '@') — ModInstallDir/GetModInstallStatus prepend it.

Source from the content-addressed store, hash-verified

1368 r.sizeBytes = static_cast<int64_t>(i + 1) * 10 * 1024 * 1024;
1369 r.state = static_cast<ModRowState>(i % 3); // cycles Missing/Downloaded/Active
1370 r.source = (i % 2 == 0) ? ModRowSource::Workshop : ModRowSource::Local; // odd rows Local
1371 r.checked = (i % 2 == 0);
1372 rows.Add(r);
1373 }
1374 list->SetRows(rows);
1375 // Keep the active sort + its caret consistent with the freshly-seeded rows.
1376 list->Sort(static_cast<ModsSortColumn>(_sortColumn), _sortAscending);
1377 UpdateSortCarets();
1378}
1379

Callers 2

RefreshInstalledStatesFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected