MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / BuildSortByKey

Method BuildSortByKey

3rdparty/imgui/src/imgui.cpp:2937–2940  ·  view source on GitHub ↗

For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.

Source from the content-addressed store, hash-verified

2935
2936// For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.
2937void ImGuiStorage::BuildSortByKey()
2938{
2939 ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), PairComparerByID);
2940}
2941
2942int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2943{

Callers 2

GetNextSelectedItemMethod · 0.80

Calls 1

ImQsortFunction · 0.85

Tested by

no test coverage detected