refactor(PlayerDB): Improve code (#1313)

This PR includes some improvements to the player DB service:
 - Added `Get Gamer Online State` function pointer
 - Added sorting of players alphabetically and grouping of players by their online state
 - The player DB service will now update 32 players at a time for their online state
 - Player entries will automatically save when changing any data from them
 - Update the player online states every 5min
This commit is contained in:
Andreas Maerten
2023-05-01 23:23:07 +02:00
committed by GitHub
parent 0440c35a3e
commit c9fc44e06b
10 changed files with 324 additions and 177 deletions
+9
View File
@@ -589,6 +589,15 @@ namespace big
g_pointers->m_gta.m_send_chat_message = ptr.sub(21).as<functions::send_chat_message>();
}
},
// Get Gamer Online State
{
"GGOS",
"48 8B 44 24 70 44 8B CD 4D 8B C6 41 8B D7 48 8B CF 48 89 47 40",
[](memory::handle ptr)
{
g_pointers->m_gta.m_get_gamer_online_state = ptr.sub(0x40).as<functions::get_gamer_online_state>();
}
},
// Start Get Session By Gamer Handle
{
"SGSBGH",