This commit is contained in:
Mr-X-GTA
2026-07-16 13:25:50 +02:00
parent 1b40746565
commit f1d37e7f75
3 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ concurrency:
jobs:
ci:
runs-on: windows-latest
runs-on: windows-2022
name: CI
steps:
- uses: actions/checkout@v4
+1 -1
View File
@@ -29,7 +29,7 @@ jobs:
fi
build_nightly:
runs-on: windows-latest
runs-on: windows-2022
name: Build Nightly
needs: check_recent_commit
if: needs.check_recent_commit.outputs.should_run == 'true'
@@ -122,23 +122,22 @@ namespace big
if (g.session_browser.sort_method != 0)
{
std::qsort(m_found_sessions, m_num_sessions_found, sizeof(session), [](const void* a1, const void* a2) -> int {
std::strong_ordering result;
std::sort(m_found_sessions, m_found_sessions + m_num_sessions_found, [](const session& a1, const session& a2) {
std::strong_ordering result = std::strong_ordering::equal;
if (g.session_browser.sort_method == 1)
{
result = (((session*)(a1))->attributes.player_count <=> ((session*)(a2))->attributes.player_count);
result = a1.attributes.player_count <=> a2.attributes.player_count;
}
if (result == 0)
return 0;
return false;
if (result > 0)
return g.session_browser.sort_direction ? -1 : 1;
return g.session_browser.sort_direction ? true : false;
if (result < 0)
return g.session_browser.sort_direction ? 1 : -1;
return g.session_browser.sort_direction ? false : true;
std::unreachable();
});