mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 22:33:43 -07:00
maybe fix switch/wii u builds
This commit is contained in:
parent
1a4d6f5be7
commit
b7600f77bd
1 changed files with 9 additions and 3 deletions
|
@ -114,8 +114,9 @@ CrowdControl* CrowdControl::Instance;
|
|||
#include "soh/resource/importer/BackgroundFactory.h"
|
||||
|
||||
#include "soh/config/ConfigUpdaters.h"
|
||||
#include "soh/Enhancements/accessible-actors/ActorAccessibility.h"
|
||||
#include "Enhancements//accessible-actors/ActorAccessibility.h"
|
||||
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
||||
#include "Enhancements/accessible-actors/ActorAccessibility.h"
|
||||
#endif
|
||||
OTRGlobals* OTRGlobals::Instance;
|
||||
SaveManager* SaveManager::Instance;
|
||||
CustomMessageManager* CustomMessageManager::Instance;
|
||||
|
@ -467,10 +468,11 @@ void OTRAudio_Thread() {
|
|||
for (int i = 0; i < AUDIO_FRAMES_PER_UPDATE; i++) {
|
||||
AudioMgr_CreateNextAudioBuffer(audio_buffer + i * (num_audio_samples * NUM_AUDIO_CHANNELS),
|
||||
num_audio_samples);
|
||||
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
||||
// Give accessibility a chance to merge its own audio in.
|
||||
ActorAccessibility_MixAccessibleAudioWithGameAudio(
|
||||
audio_buffer + i * (num_audio_samples * NUM_AUDIO_CHANNELS), num_audio_samples);
|
||||
|
||||
#endif
|
||||
}
|
||||
AudioPlayer_Play((u8*)audio_buffer, num_audio_samples * (sizeof(int16_t) * NUM_AUDIO_CHANNELS * AUDIO_FRAMES_PER_UPDATE));
|
||||
|
||||
|
@ -1049,7 +1051,9 @@ extern "C" void InitOTR() {
|
|||
|
||||
clearMtx = (uintptr_t)&gMtxClear;
|
||||
OTRMessage_Init();
|
||||
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
||||
ActorAccessibility_Init();
|
||||
#endif
|
||||
OTRAudio_Init();
|
||||
OTRExtScanner();
|
||||
VanillaItemTable_Init();
|
||||
|
@ -1094,7 +1098,9 @@ extern "C" void DeinitOTR() {
|
|||
CrowdControl::Instance->Disable();
|
||||
CrowdControl::Instance->Shutdown();
|
||||
#endif
|
||||
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
||||
ActorAccessibility_Shutdown();
|
||||
#endif
|
||||
// Destroying gui here because we have shared ptrs to LUS objects which output to SPDLOG which is destroyed before these shared ptrs.
|
||||
SohGui::Destroy();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue