mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-05-21 23:56:50 +00:00
Update again
- Revert new Save Worlds names. - Add sort by last time played.
This commit is contained in:
@@ -1544,7 +1544,7 @@ void UIScene_LoadCreateJoinMenu::tick()
|
||||
|
||||
#ifdef _WINDOWS64
|
||||
|
||||
// Build sorted index array (newest-first by filename timestamp YYYYMMDDHHMMSS)
|
||||
// Sort index array by lastWriteTime
|
||||
|
||||
auto sortedIdx = new int[m_pSaveDetails->iSaveC];
|
||||
|
||||
@@ -1558,8 +1558,9 @@ void UIScene_LoadCreateJoinMenu::tick()
|
||||
|
||||
int sj = si - 1;
|
||||
|
||||
while (sj >= 0 && strcmp(m_pSaveDetails->SaveInfoA[sortedIdx[sj]].UTF8SaveFilename,
|
||||
m_pSaveDetails->SaveInfoA[key].UTF8SaveFilename) < 0)
|
||||
while (sj >= 0 &&
|
||||
CompareFileTime(&m_pSaveDetails->SaveInfoA[sortedIdx[sj]].lastWriteTime,
|
||||
&m_pSaveDetails->SaveInfoA[key].lastWriteTime) < 0)
|
||||
|
||||
{
|
||||
sortedIdx[sj + 1] = sortedIdx[sj];
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user