mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-28 21:26:07 +00:00
Merge
This commit is contained in:
commit
7db3945cc1
58 changed files with 980 additions and 496 deletions
|
@ -112,6 +112,7 @@
|
|||
#define LOGGER_CONFIG "Logger.ini"
|
||||
#define DUALSHOCKUDPCLIENT_CONFIG "DSUClient.ini"
|
||||
#define FREELOOK_CONFIG "FreeLook.ini"
|
||||
#define RETROACHIEVEMENTS_CONFIG "RetroAchievements.ini"
|
||||
|
||||
// Files in the directory returned by GetUserPath(D_LOGS_IDX)
|
||||
#define MAIN_LOG "dolphin.log"
|
||||
|
|
|
@ -160,7 +160,8 @@ static const std::map<System, std::string> system_to_name = {
|
|||
{System::DualShockUDPClient, "DualShockUDPClient"},
|
||||
{System::FreeLook, "FreeLook"},
|
||||
{System::Session, "Session"},
|
||||
{System::GameSettingsOnly, "GameSettingsOnly"}};
|
||||
{System::GameSettingsOnly, "GameSettingsOnly"},
|
||||
{System::Achievements, "Achievements"}};
|
||||
|
||||
const std::string& GetSystemName(System system)
|
||||
{
|
||||
|
|
|
@ -34,6 +34,7 @@ enum class System
|
|||
FreeLook,
|
||||
Session,
|
||||
GameSettingsOnly,
|
||||
Achievements,
|
||||
};
|
||||
|
||||
constexpr std::array<LayerType, 7> SEARCH_ORDER{{
|
||||
|
|
|
@ -847,6 +847,8 @@ static void RebuildUserDirectories(unsigned int dir_index)
|
|||
s_user_paths[F_DUALSHOCKUDPCLIENTCONFIG_IDX] =
|
||||
s_user_paths[D_CONFIG_IDX] + DUALSHOCKUDPCLIENT_CONFIG;
|
||||
s_user_paths[F_FREELOOKCONFIG_IDX] = s_user_paths[D_CONFIG_IDX] + FREELOOK_CONFIG;
|
||||
s_user_paths[F_RETROACHIEVEMENTSCONFIG_IDX] =
|
||||
s_user_paths[D_CONFIG_IDX] + RETROACHIEVEMENTS_CONFIG;
|
||||
s_user_paths[F_MAINLOG_IDX] = s_user_paths[D_LOGS_IDX] + MAIN_LOG;
|
||||
s_user_paths[F_MEM1DUMP_IDX] = s_user_paths[D_DUMP_IDX] + MEM1_DUMP;
|
||||
s_user_paths[F_MEM2DUMP_IDX] = s_user_paths[D_DUMP_IDX] + MEM2_DUMP;
|
||||
|
|
|
@ -85,6 +85,7 @@ enum
|
|||
F_DUALSHOCKUDPCLIENTCONFIG_IDX,
|
||||
F_FREELOOKCONFIG_IDX,
|
||||
F_GBABIOS_IDX,
|
||||
F_RETROACHIEVEMENTSCONFIG_IDX,
|
||||
NUM_PATH_INDICES
|
||||
};
|
||||
|
||||
|
|
|
@ -333,6 +333,7 @@ bool EnsureTraversalClient(const std::string& server, u16 server_port, u16 liste
|
|||
g_MainNetHost.reset();
|
||||
return false;
|
||||
}
|
||||
host->mtu = std::min(host->mtu, NetPlay::MAX_ENET_MTU);
|
||||
g_MainNetHost.reset(host);
|
||||
g_TraversalClient.reset(new TraversalClient(g_MainNetHost.get(), server, server_port));
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ public:
|
|||
if (m_idle && !m_cancelling.load())
|
||||
return;
|
||||
|
||||
m_wait_cond_var.wait(lg, [&] { return m_idle && m_cancelling.load(); });
|
||||
m_wait_cond_var.wait(lg, [&] { return m_idle && !m_cancelling; });
|
||||
}
|
||||
|
||||
// If the worker polls IsCanceling(), it can abort its work when Cancelling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue