diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-08-24 23:53:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 00:53:45 +0200 |
commit | c3d20c8409a35772e371129d015913b7f08743fc (patch) | |
tree | 5037b60a89ca3eebb99311a38c1f6dbcdf267d1e /NorthstarDLL/audio.cpp | |
parent | cf9743e9b874b76e56a57d56e60e03aaa8a52ad6 (diff) | |
download | NorthstarLauncher-c3d20c8409a35772e371129d015913b7f08743fc.tar.gz NorthstarLauncher-c3d20c8409a35772e371129d015913b7f08743fc.zip |
Rename `IsDedicated()` to `IsDedicatedServer()` (#252)
Diffstat (limited to 'NorthstarDLL/audio.cpp')
-rw-r--r-- | NorthstarDLL/audio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDLL/audio.cpp b/NorthstarDLL/audio.cpp index ed30d01b..6d52a071 100644 --- a/NorthstarDLL/audio.cpp +++ b/NorthstarDLL/audio.cpp @@ -265,7 +265,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); @@ -308,7 +308,7 @@ MilesStopAll_Type MilesStopAll; void CustomAudioManager::ClearAudioOverrides() { - if (IsDedicated()) + if (IsDedicatedServer()) return; if (m_loadedAudioOverrides.size() > 0 || m_loadedAudioOverridesRegex.size() > 0) @@ -497,7 +497,7 @@ void InitialiseMilesAudioHooks(HMODULE baseAddress) { 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"); |