Code cleanup, move a lot of "Host" APIs to GpCommon

This commit is contained in:
elasota
2020-11-25 12:05:59 -05:00
parent 9d0f2c35b3
commit 5c640b72eb
102 changed files with 759 additions and 1072 deletions

View File

@@ -4,18 +4,18 @@
//----------------------------------------------------------------------------
//============================================================================
#include "PLResources.h"
#include "PLSound.h"
#include "DialogManager.h"
#include "Environ.h"
#include "Externs.h"
#include "SoundSync.h"
#include "HostMutex.h"
#include "HostSystemServices.h"
#include "IGpMutex.h"
#include "IGpSystemServices.h"
#include "MemoryManager.h"
#include "ResourceManager.h"
#include "PLDrivers.h"
#include "PLResources.h"
#include "PLSound.h"
#define kBaseBufferMusicID 2000
#define kMaxMusic 7
@@ -47,7 +47,7 @@ struct MusicState
};
MusicState musicState;
PortabilityLayer::HostMutex *musicMutex;
IGpMutex *musicMutex;
extern Boolean isSoundOn;
@@ -337,7 +337,7 @@ void InitMusic (void)
musicState.musicSoundID = musicScore[musicState.musicCursor];
musicState.musicMode = kPlayWholeScoreMode;
musicMutex = PortabilityLayer::HostSystemServices::GetInstance()->CreateMutex();
musicMutex = PLDrivers::GetSystemServices()->CreateMutex();
PL_NotYetImplemented_TODO("MusicSync");