Skip to content

Commit cf0793f

Browse files
committed
- Better defaults for dev builds for external devs
1 parent b7cfeaf commit cf0793f

4 files changed

Lines changed: 5 additions & 12 deletions

File tree

Core/GameEngine/Source/GameNetwork/ConnectionManager.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,13 +1519,6 @@ void ConnectionManager::updateRunAhead(Int oldRunAhead, Int frameRate, Bool didS
15191519
// We also limit the upper range of the runahead to prevent it getting out of hand
15201520
Int minRunAheadForClamp = MIN_RUNAHEAD;
15211521

1522-
#if defined(GENERALS_ONLINE)
1523-
if (TheNGMPGame != nullptr)
1524-
{
1525-
minRunAheadForClamp = 4;
1526-
}
1527-
#endif
1528-
15291522
newRunAhead = clamp<Int>(minRunAheadForClamp, newRunAhead, MAX_FRAMES_AHEAD / 2);
15301523

15311524
NetRunAheadCommandMsg* msg = newInstance(NetRunAheadCommandMsg);

GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/NextGenMP_defines.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
#define GENERALS_ONLINE
55
#endif
66

7-
#define GENERALS_ONLINE_USE_PLUGINS_INTERFACE
7+
//#define GENERALS_ONLINE_USE_PLUGINS_INTERFACE
88

99
//#define USE_MAULLER_ONEDRIVE_FIX 1
1010
//#define USE_STUBBJAX_TRANSPORT_CONTAIN_FIX 1
1111

12-
#define GENERALS_ONLINE_VERSION_STRING "060526_QFE2" // NOTE: Format is critical here for Sentry to work
12+
#define GENERALS_ONLINE_VERSION_STRING "062026" // NOTE: Format is critical here for Sentry to work
1313

1414
#define GENERALS_ONLINE_DISABLE_TEXTURE_FILTERING_AND_AA 1
1515

GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/OnlineServices_Init.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ class NGMP_OnlineServicesManager
596596
std::queue<int64_t> m_vecFilesSizes;
597597
std::vector<std::string> m_vecFilesDownloaded;
598598
std::function<void(void)> m_updateCompleteCallback = nullptr;
599-
mutable std::mutex m_updateCallbackMutex;
599+
mutable std::recursive_mutex m_updateCallbackMutex;
600600

601601
std::string m_patcher_name;
602602
std::string m_patcher_path;

GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_Init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ void NGMP_OnlineServicesManager::ContinueUpdate()
524524
TheDownloadManager->OnStatusUpdate(DOWNLOADSTATUS_FINISHING);
525525
}
526526

527-
std::scoped_lock<std::mutex> lock(m_updateCallbackMutex);
527+
std::scoped_lock<std::recursive_mutex> lock(m_updateCallbackMutex);
528528
if (m_updateCompleteCallback != nullptr)
529529
{
530530
m_updateCompleteCallback();
@@ -797,7 +797,7 @@ void NGMP_OnlineServicesManager::StartDownloadUpdate(std::function<void(void)> c
797797
m_vecFilesSizes.emplace(m_patcher_size);
798798

799799
{
800-
std::scoped_lock<std::mutex> lock(m_updateCallbackMutex);
800+
std::scoped_lock<std::recursive_mutex> lock(m_updateCallbackMutex);
801801
m_updateCompleteCallback = cb;
802802
}
803803

0 commit comments

Comments
 (0)