mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-27 04:36:18 +00:00
project-slippi/Ishiiruka/pull/249
This commit is contained in:
parent
bd0bb3e66e
commit
722b986d50
2 changed files with 13 additions and 0 deletions
6
Externals/SlippiLib/SlippiGame.h
vendored
6
Externals/SlippiLib/SlippiGame.h
vendored
|
@ -22,6 +22,8 @@ namespace Slippi {
|
||||||
const uint8_t GAME_INFO_HEADER_SIZE = 78;
|
const uint8_t GAME_INFO_HEADER_SIZE = 78;
|
||||||
const uint8_t UCF_TOGGLE_SIZE = 8;
|
const uint8_t UCF_TOGGLE_SIZE = 8;
|
||||||
const uint8_t NAMETAG_SIZE = 8;
|
const uint8_t NAMETAG_SIZE = 8;
|
||||||
|
const uint8_t DISPLAY_NAME_SIZE = 31;
|
||||||
|
const uint8_t CONNECT_CODE_SIZE = 10;
|
||||||
const int32_t GAME_FIRST_FRAME = -123;
|
const int32_t GAME_FIRST_FRAME = -123;
|
||||||
const int32_t PLAYBACK_FIRST_SAVE = -122;
|
const int32_t PLAYBACK_FIRST_SAVE = -122;
|
||||||
const uint8_t GAME_SHEIK_INTERNAL_ID = 0x7;
|
const uint8_t GAME_SHEIK_INTERNAL_ID = 0x7;
|
||||||
|
@ -80,6 +82,8 @@ namespace Slippi {
|
||||||
uint8_t playerType;
|
uint8_t playerType;
|
||||||
uint8_t controllerPort;
|
uint8_t controllerPort;
|
||||||
std::array<uint16_t, NAMETAG_SIZE> nametag;
|
std::array<uint16_t, NAMETAG_SIZE> nametag;
|
||||||
|
std::array<uint8_t, DISPLAY_NAME_SIZE> displayName;
|
||||||
|
std::array<uint8_t, CONNECT_CODE_SIZE> connectCode;
|
||||||
} PlayerSettings;
|
} PlayerSettings;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -90,6 +94,8 @@ namespace Slippi {
|
||||||
std::unordered_map<uint8_t, PlayerSettings> players;
|
std::unordered_map<uint8_t, PlayerSettings> players;
|
||||||
uint8_t isPAL;
|
uint8_t isPAL;
|
||||||
uint8_t isFrozenPS;
|
uint8_t isFrozenPS;
|
||||||
|
uint8_t minorScene;
|
||||||
|
uint8_t majorScene;
|
||||||
std::vector<uint8_t> geckoCodes;
|
std::vector<uint8_t> geckoCodes;
|
||||||
} GameSettings;
|
} GameSettings;
|
||||||
|
|
||||||
|
|
|
@ -726,6 +726,13 @@ void CEXISlippi::prepareGameInfo(u8* payload)
|
||||||
// Write should resync setting
|
// Write should resync setting
|
||||||
m_read_queue.push_back(replayCommSettings.shouldResync ? 1 : 0);
|
m_read_queue.push_back(replayCommSettings.shouldResync ? 1 : 0);
|
||||||
|
|
||||||
|
// Write display names
|
||||||
|
for (int i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
|
auto displayName = settings->players[i].displayName;
|
||||||
|
m_read_queue.insert(m_read_queue.end(), displayName.begin(), displayName.end());
|
||||||
|
}
|
||||||
|
|
||||||
// Return the size of the gecko code list
|
// Return the size of the gecko code list
|
||||||
prepareGeckoList();
|
prepareGeckoList();
|
||||||
appendWordToBuffer(&m_read_queue, (u32)geckoList.size());
|
appendWordToBuffer(&m_read_queue, (u32)geckoList.size());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue