Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
7b58b39
Copy 16 functions from gynt's catch-all branches to reimpl/mission-sk…
gynt Nov 28, 2026
0a8b2c7
Fix compile errors against main's headers
gynt Nov 28, 2026
cdefcdb
reimplement: status of 16 ported functions
gynt Nov 28, 2026
d2d7831
Mission/skirmish flow: 3 functions to 100%, 3 more improved
gynt Nov 28, 2026
a1e177b
Mission/skirmish flow: Tutorial_IsActionAllowed 32.9 -> 92.3, two mor…
gynt Nov 28, 2026
beec747
Skirmish: DeleteEntry moves entries up by struct assignment
gynt Nov 29, 2026
cf8dccf
UI: loadOrSaveGame fixes the map index off-by-one
gynt Nov 29, 2026
4cd90bd
Skirmish: rewrite PrepareLeaderboardView from the original
gynt Nov 29, 2026
4d5c166
Map: spawnInvasionEventAttackWave returns after the last slider
gynt Nov 29, 2026
a8d97ee
Map: rewrite loadMap from the original
gynt Nov 29, 2026
e04e90e
Map: rewrite computeMissionCompletionScore from the original
gynt Nov 29, 2026
b843d69
Skirmish: rewrite SetupSkirmishMode without decompiler artefacts
gynt Nov 29, 2026
65d93ee
Map: adjustEventMonthAndYearForSection1047 to 100%
gynt Nov 29, 2026
7e91f91
Map: spawnInvasionEventAttackWave siege types as a switch
gynt Nov 29, 2026
6306a53
Map: processSingleplayerEvents control flow from the original
gynt Nov 29, 2026
773e461
Map: processSingleplayerEvents win/lose block returns per game mode
gynt Nov 29, 2026
794ddc6
Map: processSingleplayerEvents zero tests in the original's arm order
gynt Nov 29, 2026
90e5a18
Map: processSingleplayerEvents event videos as nested calls
gynt Nov 29, 2026
18b9b6c
Map: processSingleplayerEvents per-arm sands-of-time video call
gynt Nov 29, 2026
0549275
Map: processSingleplayerEvents indexed scans for a pending invasion
gynt Nov 29, 2026
73d1200
Skirmish: Skirmish_PrepareLeaderboardView descending loop runs on i >= 0
gynt Nov 29, 2026
f8e617c
Map: processSingleplayerEvents reads each condition through one refer…
gynt Nov 29, 2026
0f2441a
Map: processSingleplayerEvents threshold tests as plain comparisons
gynt Nov 29, 2026
434758f
Map: processSingleplayerEvents bumps the event year as a field update
gynt Nov 29, 2026
2b29afe
types: SkMasters2 version, count and entries as one SkMasters2Data gl…
gynt Nov 29, 2026
090e955
Skirmish: leaderboard delete and store match with the SkMasters2Data …
gynt Nov 29, 2026
37d6241
Map: processSingleplayerEvents bound tests with the literals the asm …
gynt Nov 29, 2026
be7d70c
Map: processSingleplayerEvents clears the win type before choosing it
gynt Nov 29, 2026
3696312
Map: processSingleplayerEvents year rollovers as year++
gynt Nov 29, 2026
9d66ced
Map: processSingleplayerEvents mode arms share the final banner call
gynt Nov 29, 2026
b443bad
Map: processSingleplayerEvents returns after the forced player loss
gynt Nov 29, 2026
7a40807
Map: processSingleplayerEvents next-month rollover from month + 1
gynt Nov 29, 2026
90bfe5a
Map: processSingleplayerEvents repeat delay as a signed int
gynt Nov 29, 2026
c806320
Map: processSingleplayerEvents hit-counter cases name the arrays they…
gynt Nov 29, 2026
799c388
UI: loadOrSaveGame restores the saved list position in each arm
gynt Nov 29, 2026
52b3b3e
UI: loadOrSaveGame restore stores index, offset, sort order
gynt Nov 29, 2026
1fafad1
MapPropertiesState: computeMissionCompletionScore indexes the event a…
gynt Nov 29, 2026
9cf7f3e
MapPropertiesState: processSingleplayerEvents indexes the condition d…
gynt Nov 29, 2026
6019f29
Skirmish: Skirmish_PrepareLeaderboardView counts the descending pass up
gynt Nov 29, 2026
f127241
MapPropertiesState: processSingleplayerEvents sums the invasion's uni…
gynt Nov 29, 2026
97a345f
Skirmish: Skirmish_PrepareLeaderboardView binds the entry for the nam…
gynt Nov 30, 2026
8f4a1c7
Merge origin/main into reimpl/mission-skirmish-flow
gynt Dec 2, 2026
e3487d0
fix(MapPropertiesState): follow main's PlayerData rename aiControlSta…
gynt Dec 2, 2026
b0a018f
Merge origin/main into reimpl/mission-skirmish-flow
gynt Dec 3, 2026
49c7abb
reimplement: SHC_3BB0A8C1_0x004BD800 100.00% Reimplemented
gynt Dec 3, 2026
169a4e6
reimplement: SHC_3BB0A8C1_0x004968A0 93.09% 0x10 not kept in ebp (alloc)
gynt Dec 3, 2026
fe61ad2
reimplement: SHC_3BB0A8C1_0x004BDE40 88.67% *5 arm store not merged (…
gynt Dec 3, 2026
2e3b879
reimplement: SHC_3BB0A8C1_0x0044B680 90.12% rank/best swap edx-esi (a…
gynt Dec 3, 2026
8fbebe3
reimplement: SHC_3BB0A8C1_0x004C31A0 62.16% this/zero regs swapped, f…
gynt Dec 4, 2026
98f66cc
reimplement: SHC_3BB0A8C1_0x004C31A0 62.67% case 0x1c block placed la…
gynt Dec 4, 2026
8bdbfa0
reimplement: SHC_3BB0A8C1_0x004C31A0 63.89% regs and case layout in c…
gynt Dec 4, 2026
f0257cf
reimplement: SHC_3BB0A8C1_0x004C68D0 72.49% mission/one regs swapped,…
gynt Dec 4, 2026
c5a4170
reimplement: SHC_3BB0A8C1_0x004C62C0 78.99% equal-weight slot tie order
gynt Dec 4, 2026
e8c467f
reimplement: SHC_3BB0A8C1_0x0044B680 98.14% id load folded into cmp
gynt Dec 4, 2026
fe3b779
reimplement: SHC_3BB0A8C1_0x004C68D0 82.58% mission defs in head; idi…
gynt Dec 4, 2026
8f97c77
reimplement: SHC_3BB0A8C1_0x004C31A0 63.95% fire flag int; this spill…
gynt Dec 4, 2026
7715674
Merge remote-tracking branch 'origin/main' into reimpl/mission-skirmi…
gynt Dec 4, 2026
fba895f
reimplement: SHC_3BB0A8C1_0x004C31A0 64.47% invasion and condition st…
gynt Dec 4, 2026
0cd606a
reimplement: SHC_3BB0A8C1_0x004C31A0 65.90% per-branch video calls, i…
gynt Dec 4, 2026
50a200c
reimplement: SHC_3BB0A8C1_0x004C31A0 66.72% sum order, compare direct…
gynt Dec 4, 2026
5c7245b
reimplement: SHC_3BB0A8C1_0x004C31A0 67.53% drop stale slot temp, nam…
gynt Dec 4, 2026
f40df37
Merge remote-tracking branch 'origin/main' into d525
gynt Dec 5, 2026
c07da29
Merge remote-tracking branch 'origin/main' into p2/p2-525
gynt Dec 5, 2026
ba5bd56
status: SHC_3BB0A8C1_0x004C31A0 67.5%, tail call already matches
gynt Dec 5, 2026
b5acb51
status: SetupSkirmishMode measures 83.2 after merging main; precise r…
gynt Dec 5, 2026
04aa0c8
Merge remote-tracking branch 'origin/reimpl/mission-skirmish-flow' in…
gynt Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions src/OpenSHC/Audio/SFX/ComputePlayerRanking.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#include "../../Audio.func.hpp"

#include "OpenSHC/Audio/SFX.func.hpp"
#include "OpenSHC/Map/Units/UnitsState.func.hpp"

#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp"
#include "OpenSHC/Globals/DAT_UnitsState.hpp"

namespace OpenSHC {
namespace Audio {

/*
variable _playerPointsArray made by gynt decompilerscript: committed: 2025-01-30 21:57:43.216000
*/
// FUNCTION: STRONGHOLDCRUSADER 0x0044B680
int SFX::ComputePlayerRanking(int playerID)
{
int deadPlayers[10];
int playerPoints[10][2];
for (int i = 0; i < 10; i++) {
playerPoints[i][0] = 0;
}
int count = 0;
for (int player = 1; player < 9; player++) {
if (DAT_GameSynchronyState::instance.finalResults.active[player] == 0) {
continue;
}
playerPoints[count][0] = player;
if (!MACRO_CALL_MEMBER(Map::Units::UnitsState_Func::getAliveLordForPlayer, DAT_UnitsState::ptr)(player)) {
if (player == playerID) {
return 0;
}
deadPlayers[player] = 1;
playerPoints[count][1] = 0;
} else {
playerPoints[count][1] = MACRO_CALL(Audio::SFX_Func::ComputePlayerPoints1)(player);
}
count = count + 1;
}
int highestPoints;
for (int rank = 0; rank < count; rank++) {
int highestIndex = -1;
for (int i = 0; i < count; i++) {
if (playerPoints[i][0] != 0 && (highestIndex == -1 || playerPoints[i][1] > highestPoints)) {
highestPoints = playerPoints[i][1];
highestIndex = i;
}
}
if (highestIndex < 0) {
return 0;
}
int const id = playerPoints[highestIndex][0];
if (id == playerID) {
playerPoints[highestIndex][0] = 0;
return rank + 1;
}
playerPoints[highestIndex][0] = 0;
}
return 0;
}

}
}
115 changes: 115 additions & 0 deletions src/OpenSHC/Game/Skirmish/SetupSkirmishMode.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
#include "../../Game.func.hpp"
#include "../Skirmish.func.hpp"

#include "OpenSHC/OS.func.hpp"
#include "OpenSHC/Synchrony.func.hpp"
#include "OpenSHC/Synchrony/GameSynchronyState.func.hpp"
#include "OpenSHC/Text/UserTextHandler.func.hpp"
#include "OpenSHC/UI/Actions.func.hpp"
#include "OpenSHC/Commands/GameCommandType.hpp"
#include "OpenSHC/Game/GameMode.hpp"
#include "OpenSHC/Game/GameMode2.hpp"
#include "OpenSHC/Game/TrailType.hpp"
#include "OpenSHC/WindowsHelper/Enums/BOOLEnum.hpp"

#include "OpenSHC/Globals/DAT_GameCore.hpp"
#include "OpenSHC/Globals/DAT_GameState.hpp"
#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp"
#include "OpenSHC/Globals/DAT_SkirmishDefinedData.hpp"
#include "OpenSHC/Globals/DAT_UserTextHandlerState.hpp"

namespace OpenSHC {
namespace Game {

using Commands::GameCommandType;
using Game::GameMode;
using Game::GameMode2;
using Game::TrailType;
using WindowsHelper::Enums::BOOLEnum;

// FUNCTION: STRONGHOLDCRUSADER 0x004C68D0
void Skirmish::SetupSkirmishMode(int skirmishTrailMission)
{
CampaignTrailMission* mission;
if (DAT_GameCore::instance.currentTrailType == Game::TT_EXTREME) {
mission = &DAT_SkirmishDefinedData::instance.ExtremeTrailMissions[skirmishTrailMission];
} else if (DAT_GameCore::instance.currentTrailType == Game::TT_WARCHEST) {
mission = &DAT_SkirmishDefinedData::instance.WarchestTrailMissions[skirmishTrailMission];
} else {
mission = &DAT_SkirmishDefinedData::instance.SkirmishTrailMissions[skirmishTrailMission];
}
MACRO_CALL_MEMBER(Synchrony::GameSynchronyState_Func::setupSkirmishLobby, DAT_GameSynchronyState::ptr)();
DAT_GameSynchronyState::instance.isHost = TRUE;
DAT_GameSynchronyState::instance.currentGameMode = Game::GM_SKIRMISH_SINGLE_PLAYER;
DAT_GameSynchronyState::instance.DPLAYX_ReceivedPlayerID = 1;
DAT_GameCore::instance.gameMode_2 = Game::GM_SKIRMISH_AND_MULTIPLAYER;
memset(DAT_GameSynchronyState::instance.DAT_PlayerNames, 0,
sizeof(DAT_GameSynchronyState::instance.DAT_PlayerNames));
int i = 0;
do {
DAT_GameSynchronyState::instance.currentPlayerFullIDArray[i] = -1;
DAT_GameSynchronyState::instance.currentAIArray[i] = 0;
DAT_GameSynchronyState::instance.aiVariationArray[i] = -1;
i++;
} while (i < 9);
strcpy(DAT_GameSynchronyState::instance.DAT_PlayerNames[1],
MACRO_CALL_MEMBER(Text::UserTextHandler_Func::getTextArrayPointer, DAT_UserTextHandlerState::ptr)(0));
MACRO_CALL_MEMBER(Synchrony::GameSynchronyState_Func::queueCommand, DAT_GameSynchronyState::ptr)(
Commands::GCT_ASK_FOR_SLOT_ASSIGNMENT);
for (i = 0; i < 9; i++) {
DAT_GameSynchronyState::instance.DAT_PlayerSlotArraySomeValue[i] = 1;
}
DAT_GameSynchronyState::instance.skirmishRelated1 = -1;
DAT_GameCore::instance.mapU4Int0 = 0;
// the trail mission lists the AI of each player in turn; player 1 is the human
for (i = 1; i < mission->numberOfPlayers; i++) {
DAT_GameSynchronyState::instance.currentAIArray[i + 1] = (&mission->player1AI)[i];
MACRO_CALL(Synchrony_Func::ResetAiVariationArrayValue)(i + 1);
}
memset(DAT_GameSynchronyState::instance.playerPositionsArray, -10,
sizeof(DAT_GameSynchronyState::instance.playerPositionsArray));
for (i = 0; i < 8; i++) {
if ((&mission->position1)[i] != 0) {
DAT_GameSynchronyState::instance.playerPositionsArray[(&mission->position1)[i] - 1] = (char)i;
}
}
int const players = mission->numberOfPlayers;
for (i = 0; i < 8; i++) {
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[i + 1] = (char)(&mission->team1)[i];
if (i >= players) {
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[i + 1] = -1;
}
}
strcpy(DAT_GameSynchronyState::instance.mapName, (char*)mission->mapNameAddress);
DAT_GameSynchronyState::instance.skirmishCurrentAdvantageBalance = mission->fairness;
DAT_GameSynchronyState::instance.skirmishGameIntensityType = mission->startLevels;
DAT_GameCore::instance.isSkirmishTrail = TRUE;
int startDateInMonths;
int monthsPerYear = 12;
if (DAT_GameCore::instance.currentTrailType == Game::TT_EXTREME) {
DAT_GameCore::instance.extremeTrailProgress = skirmishTrailMission;
MACRO_CALL(UI::Actions_Func::LaunchSkirmishGame)((int)&mission->aiv1);
startDateInMonths
= DAT_GameCore::instance.extremeTrailStartDatesInMonths[DAT_GameCore::instance.extremeTrailProgress];
DAT_GameCore::instance.extremeTrailStartDateMonths = startDateInMonths;
} else if (DAT_GameCore::instance.currentTrailType == Game::TT_WARCHEST) {
DAT_GameCore::instance.warchestTrailProgress = skirmishTrailMission;
MACRO_CALL(UI::Actions_Func::LaunchSkirmishGame)((int)&mission->aiv1);
startDateInMonths
= DAT_GameCore::instance.warchestTrailStartDatesInMonths[DAT_GameCore::instance.warchestTrailProgress];
DAT_GameCore::instance.warchestTrailStartDateMonths = startDateInMonths;
} else {
DAT_GameCore::instance.skirmishTrailProgress = skirmishTrailMission;
MACRO_CALL(UI::Actions_Func::LaunchSkirmishGame)((int)&mission->aiv1);
startDateInMonths
= DAT_GameCore::instance.skirmishTrailStartDateInMonths[DAT_GameCore::instance.skirmishTrailProgress];
DAT_GameCore::instance.skirmishTrailStartDateMonths = startDateInMonths;
}
DAT_GameState::instance.mapAndTime.year = startDateInMonths / monthsPerYear;
DAT_GameState::instance.mapAndTime.month = startDateInMonths % monthsPerYear;
DAT_GameSynchronyState::instance.finalResults.tail.tail1.yearStart = startDateInMonths / monthsPerYear;
DAT_GameSynchronyState::instance.finalResults.tail.tail1.monthStart = startDateInMonths % monthsPerYear;
}

}
}
31 changes: 31 additions & 0 deletions src/OpenSHC/Game/Skirmish/SkirmishLeaderboard_DeleteEntry.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#include "../../Game.func.hpp"
#include "../Skirmish.func.hpp"

#include "OpenSHC/IO.func.hpp"

#include "OpenSHC/Globals/DAT_SkMasters2Data.hpp"

namespace OpenSHC {
namespace Game {

/*
This removes the skirmish leaderboard entry at a given index by shifting all subsequent entries down by one,
decrementing the count, and saving to disk. It's the delete operation for the SkMasters2 high score / results
table — likely called when the player deletes a saved skirmish result from the UI. decompilerscript:
committed: 2025-01-30 21:57:43.216000
*/
// FUNCTION: STRONGHOLDCRUSADER 0x004D5370
void Skirmish::SkirmishLeaderboard_DeleteEntry(int index)
{
if (index >= 0 && index < DAT_SkMasters2Data::instance.count) {
// close the gap by moving every later entry up one
for (int i = index; i < DAT_SkMasters2Data::instance.count - 1; i++) {
DAT_SkMasters2Data::instance.entries[i] = DAT_SkMasters2Data::instance.entries[i + 1];
}
DAT_SkMasters2Data::instance.count = DAT_SkMasters2Data::instance.count - 1;
MACRO_CALL(IO_Func::WriteSkMasters2)();
}
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#include "../../../Game.func.hpp"
#include "../SkirmishLobbySetupStructure.func.hpp"

#include "OpenSHC/Synchrony/GameSynchronyState.func.hpp"

#include "OpenSHC/Globals/DAT_GameCore.hpp"
#include "OpenSHC/Globals/DAT_GameState.hpp"
#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp"
#include "OpenSHC/Globals/INT_00b960b0.hpp"

namespace OpenSHC {
namespace Game {
namespace Skirmish {

// FUNCTION: STRONGHOLDCRUSADER 0x00490060
void SkirmishLobbySetupStructure::restoreSkirmishLobbySetup()
{
DAT_GameSynchronyState::instance.skirmishAutoSaveEveryMinutes = this->mapu4int2;
this->mbr_0x4 = DAT_GameState::instance.mapAndTime.skirmishFogOfWar;
strcpy(DAT_GameSynchronyState::instance.mapName, this->mapName);
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[0] = this->roundTableOrderArray[0];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[0] = this->playerGroupArray[0];
DAT_GameSynchronyState::instance.currentAIArray[0] = this->currentAIArray[0];
DAT_GameSynchronyState::instance.aiVariationArray[0] = this->aiVariationArray[0];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[1] = this->roundTableOrderArray[1];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[1] = this->playerGroupArray[1];
DAT_GameSynchronyState::instance.currentAIArray[1] = this->currentAIArray[1];
DAT_GameSynchronyState::instance.aiVariationArray[1] = this->aiVariationArray[1];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[2] = this->roundTableOrderArray[2];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[2] = this->playerGroupArray[2];
DAT_GameSynchronyState::instance.currentAIArray[2] = this->currentAIArray[2];
DAT_GameSynchronyState::instance.aiVariationArray[2] = this->aiVariationArray[2];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[3] = this->roundTableOrderArray[3];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[3] = this->playerGroupArray[3];
DAT_GameSynchronyState::instance.currentAIArray[3] = this->currentAIArray[3];
DAT_GameSynchronyState::instance.aiVariationArray[3] = this->aiVariationArray[3];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[4] = this->roundTableOrderArray[4];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[4] = this->playerGroupArray[4];
DAT_GameSynchronyState::instance.currentAIArray[4] = this->currentAIArray[4];
DAT_GameSynchronyState::instance.aiVariationArray[4] = this->aiVariationArray[4];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[5] = this->roundTableOrderArray[5];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[5] = this->playerGroupArray[5];
DAT_GameSynchronyState::instance.currentAIArray[5] = this->currentAIArray[5];
DAT_GameSynchronyState::instance.aiVariationArray[5] = this->aiVariationArray[5];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[6] = this->roundTableOrderArray[6];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[6] = this->playerGroupArray[6];
DAT_GameSynchronyState::instance.currentAIArray[6] = this->currentAIArray[6];
DAT_GameSynchronyState::instance.aiVariationArray[6] = this->aiVariationArray[6];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[7] = this->roundTableOrderArray[7];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[7] = this->playerGroupArray[7];
DAT_GameSynchronyState::instance.currentAIArray[7] = this->currentAIArray[7];
DAT_GameSynchronyState::instance.aiVariationArray[7] = this->aiVariationArray[7];
DAT_GameSynchronyState::instance.DAT_RoundTableOrderArray[8] = this->roundTableOrderArray[8];
DAT_GameSynchronyState::instance.DAT_PlayerGroupArray[8] = this->playerGroupArray[8];
DAT_GameSynchronyState::instance.currentAIArray[8] = this->currentAIArray[8];
DAT_GameSynchronyState::instance.aiVariationArray[8] = this->aiVariationArray[8];
DAT_GameSynchronyState::instance.playerPositionsArray[0] = this->slot1Position;
DAT_GameSynchronyState::instance.playerPositionsArray[1] = this->slot2Position;
DAT_GameSynchronyState::instance.playerPositionsArray[2] = this->slot3Position;
DAT_GameSynchronyState::instance.playerPositionsArray[3] = this->slot4Position;
DAT_GameSynchronyState::instance.playerPositionsArray[4] = this->slot5Position;
DAT_GameSynchronyState::instance.playerPositionsArray[5] = this->slot6Position;
DAT_GameSynchronyState::instance.playerPositionsArray[6] = this->slot7Position;
DAT_GameSynchronyState::instance.playerPositionsArray[7] = this->slot8Position;
DAT_GameSynchronyState::instance.currentPlayerSlotID = this->currentPlayerSlotID;
DAT_GameSynchronyState::instance.skirmishCurrentAdvantageBalance = this->currentAdvantageBalance;
DAT_GameSynchronyState::instance.skirmishGameIntensityType = this->currentAdvantageGroup;
DAT_GameSynchronyState::instance.skirmishTechLevel = this->mbr_0x80;
DAT_GameCore::instance.selectedLordTypes[0] = this->playerLordTypeArray[0];
DAT_GameCore::instance.selectedLordTypes[1] = this->playerLordTypeArray[1];
DAT_GameCore::instance.selectedLordTypes[2] = this->playerLordTypeArray[2];
DAT_GameCore::instance.selectedLordTypes[3] = this->playerLordTypeArray[3];
DAT_GameCore::instance.selectedLordTypes[4] = this->playerLordTypeArray[4];
DAT_GameCore::instance.selectedLordTypes[5] = this->playerLordTypeArray[5];
DAT_GameCore::instance.selectedLordTypes[6] = this->playerLordTypeArray[6];
DAT_GameCore::instance.selectedLordTypes[7] = this->playerLordTypeArray[7];
DAT_GameCore::instance.selectedLordTypes[8] = this->playerLordTypeArray[8];
DAT_GameCore::instance.field_0x2340 = this->mbr_0xf0;
DAT_GameCore::instance.selectedLordTypeUnk = this->selectedLordType;
DAT_GameSynchronyState::instance.skirmishDefaultPopularity = this->popularity;
DAT_GameSynchronyState::instance.DAT_MapSelectionRelativeSelected = this->mapSelectionRelativeSelected;
DAT_GameSynchronyState::instance.DAT_MapSelectionScrollOffset = this->mapSelectionScrollOffset;
DAT_GameSynchronyState::instance.lobbyMapSortOrder = this->mbr_0xfc;
INT_00b960b0::instance = DAT_GameSynchronyState::instance.DAT_MapSelectionScrollOffset
+ DAT_GameSynchronyState::instance.DAT_MapSelectionRelativeSelected;
MACRO_CALL_MEMBER(
Synchrony::GameSynchronyState_Func::reorderTeamsAndPositions, DAT_GameSynchronyState::ptr)();
}

}
}
}
Loading