mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 11:53:07 +08:00
fix
This commit is contained in:
@@ -14,7 +14,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: windows-latest
|
||||
runs-on: windows-2022
|
||||
name: CI
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user