Fix build error compiling with Discord support

[skip ci]
This commit is contained in:
Kae 2024-02-29 14:33:39 +11:00
parent cd23817bf1
commit 4534172c2f
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ void PcP2PNetworkingService::setJoinRemote(HostAddressWithPort location) {
setJoinLocation(JoinRemote(location)); setJoinLocation(JoinRemote(location));
} }
void Star::PcP2PNetworkingService::setActivityData(String const&, Maybe<pair<uint16_t, uint16_t>>) { void Star::PcP2PNetworkingService::setActivityData([[maybe_unused]] String const& title, [[maybe_unused]] Maybe<pair<uint16_t, uint16_t>> party) {
#ifdef STAR_ENABLE_DISCORD_INTEGRATION #ifdef STAR_ENABLE_DISCORD_INTEGRATION
MutexLocker discordLocker(m_state->discordMutex); MutexLocker discordLocker(m_state->discordMutex);
#endif #endif

View File

@ -98,7 +98,7 @@ void PcPlatformServicesState::onGameOverlayActivated(GameOverlayActivated_t* cal
} }
#endif #endif
PcPlatformServicesUPtr PcPlatformServices::create(String const&, StringList platformArguments) { PcPlatformServicesUPtr PcPlatformServices::create([[maybe_unused]] String const& path, StringList platformArguments) {
auto services = unique_ptr<PcPlatformServices>(new PcPlatformServices); auto services = unique_ptr<PcPlatformServices>(new PcPlatformServices);
services->m_state = make_shared<PcPlatformServicesState>(); services->m_state = make_shared<PcPlatformServicesState>();