aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/audio.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-21 20:59:57 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-21 20:59:57 +0100
commit93d540dd37298b9e9a6c1f07b5c4a8dc46a2787d (patch)
treeee87733a5689f50a9066bf5e5979e8829547b476 /NorthstarDedicatedTest/audio.cpp
parent3f515e00d19d969fa6697a60a32e9204a05a97ee (diff)
downloadNorthstarLauncher-93d540dd37298b9e9a6c1f07b5c4a8dc46a2787d.tar.gz
NorthstarLauncher-93d540dd37298b9e9a6c1f07b5c4a8dc46a2787d.zip
remove unnecessary header files
Diffstat (limited to 'NorthstarDedicatedTest/audio.cpp')
-rw-r--r--NorthstarDedicatedTest/audio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/audio.cpp b/NorthstarDedicatedTest/audio.cpp
index f9db1ee6..eb493779 100644
--- a/NorthstarDedicatedTest/audio.cpp
+++ b/NorthstarDedicatedTest/audio.cpp
@@ -264,7 +264,7 @@ EventOverrideData::EventOverrideData(const std::string& data, const fs::path& pa
bool CustomAudioManager::TryLoadAudioOverride(const fs::path& defPath)
{
- if (IsDedicated())
+ if (IsDedicatedServer())
return true; // silently fail
std::ifstream jsonStream(defPath);
@@ -307,7 +307,7 @@ MilesStopAll_Type MilesStopAll;
void CustomAudioManager::ClearAudioOverrides()
{
- if (IsDedicated())
+ if (IsDedicatedServer())
return;
if (m_loadedAudioOverrides.size() > 0 || m_loadedAudioOverridesRegex.size() > 0)
@@ -496,7 +496,7 @@ ON_DLL_LOAD_CLIENT_RELIESON("client.dll", AudioHooks, ConVar, [](HMODULE baseAdd
{
Cvar_ns_print_played_sounds = new ConVar("ns_print_played_sounds", "0", FCVAR_NONE, "");
- if (IsDedicated())
+ if (IsDedicatedServer())
return;
uintptr_t milesAudioBase = (uintptr_t)GetModuleHandleA("mileswin64.dll");