mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
This commit is contained in:
parent
edb9cf5c71
commit
2a6457b6ab
@ -19,6 +19,7 @@
|
||||
#define _FIXED_SIZE_QUEUE_H_
|
||||
|
||||
#include <cstring>
|
||||
#include "ChunkFile.h"
|
||||
|
||||
// STL-look-a-like interface, but name is mixed case to distinguish it clearly from the
|
||||
// real STL classes.
|
||||
|
@ -32,10 +32,11 @@
|
||||
// ScheduleEvent(periodInCycles - cyclesLate, callback, "whatever")
|
||||
|
||||
#include "../Globals.h"
|
||||
#include "../Common/ChunkFile.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
//const int CPU_HZ = 222000000;
|
||||
extern int CPU_HZ;
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
#include "../Util/PPGeDraw.h"
|
||||
#include "PSPDialog.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#define FADE_TIME 0.5
|
||||
|
||||
|
@ -17,9 +17,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "../Globals.h"
|
||||
#include "../Config.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
#define SCE_UTILITY_DIALOG_RESULT_SUCCESS 0
|
||||
#define SCE_UTILITY_DIALOG_RESULT_CANCEL 1
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "../Util/PPGeDraw.h"
|
||||
#include "../HLE/sceCtrl.h"
|
||||
#include "../Core/MemMap.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
PSPMsgDialog::PSPMsgDialog()
|
||||
: PSPDialog()
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "PSPOskDialog.h"
|
||||
#include "../Util/PPGeDraw.h"
|
||||
#include "../HLE/sceCtrl.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#define NUMKEYROWS 4
|
||||
#define KEYSPERROW 12
|
||||
|
@ -18,7 +18,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
#include "ChunkFile.h"
|
||||
#include <string>
|
||||
|
||||
enum FileAccess
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include "../MemMap.h"
|
||||
#include "../Host.h"
|
||||
#include "../Config.h"
|
||||
#include "ChunkFile.h"
|
||||
#include "FixedSizeQueue.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#include "sceKernel.h"
|
||||
#include "sceUtility.h"
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../Common/ChunkFile.h"
|
||||
class PointerWrap;
|
||||
|
||||
void Register_sceAtrac3plus();
|
||||
void __AtracInit();
|
||||
|
@ -17,12 +17,25 @@
|
||||
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../Host.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#include "sceAudio.h"
|
||||
#include "__sceAudio.h"
|
||||
#include "HLE.h"
|
||||
|
||||
void AudioChannel::DoState(PointerWrap &p)
|
||||
{
|
||||
p.Do(reserved);
|
||||
p.Do(sampleAddress);
|
||||
p.Do(sampleCount);
|
||||
p.Do(leftVolume);
|
||||
p.Do(rightVolume);
|
||||
p.Do(format);
|
||||
p.Do(waitingThread);
|
||||
sampleQueue.DoState(p);
|
||||
p.DoMarker("AudioChannel");
|
||||
}
|
||||
|
||||
// There's a second Audio api called Audio2 that only has one channel, I guess the 8 channel api was overkill.
|
||||
// We simply map it to the first of the 8 channels.
|
||||
|
@ -23,6 +23,8 @@
|
||||
#include "sceKernel.h"
|
||||
#include "FixedSizeQueue.h"
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
enum PspAudioFormats { PSP_AUDIO_FORMAT_STEREO = 0, PSP_AUDIO_FORMAT_MONO = 0x10 };
|
||||
enum PspAudioFrequencies { PSP_AUDIO_FREQ_44K = 44100, PSP_AUDIO_FREQ_48K = 48000 };
|
||||
|
||||
@ -63,17 +65,7 @@ struct AudioChannel
|
||||
// Might try something more efficient later.
|
||||
FixedSizeQueue<s16, 32768 * 8> sampleQueue;
|
||||
|
||||
void DoState(PointerWrap &p) {
|
||||
p.Do(reserved);
|
||||
p.Do(sampleAddress);
|
||||
p.Do(sampleCount);
|
||||
p.Do(leftVolume);
|
||||
p.Do(rightVolume);
|
||||
p.Do(format);
|
||||
p.Do(waitingThread);
|
||||
sampleQueue.DoState(p);
|
||||
p.DoMarker("AudioChannel");
|
||||
}
|
||||
void DoState(PointerWrap &p);
|
||||
|
||||
void clear() {
|
||||
reserved = false;
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
#include "StdMutex.h"
|
||||
#include "sceCtrl.h"
|
||||
#include "sceDisplay.h"
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../Common/ChunkFile.h"
|
||||
class PointerWrap;
|
||||
|
||||
void Register_sceCtrl();
|
||||
|
||||
|
@ -4,8 +4,7 @@
|
||||
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
|
||||
#include "sceFont.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
|
||||
typedef u32 FontLibraryHandle;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Common/ChunkFile.h"
|
||||
class PointerWrap;
|
||||
|
||||
void Register_sceFont();
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "HLE.h"
|
||||
#include "FunctionWrappers.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
|
||||
const int PSP_LANGUAGE_JAPANESE = 0;
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../Common/ChunkFile.h"
|
||||
class PointerWrap;
|
||||
|
||||
void Register_sceImpose();
|
||||
void __ImposeInit();
|
||||
|
@ -18,8 +18,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
enum
|
||||
{
|
||||
|
@ -19,7 +19,8 @@
|
||||
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#include "sceKernel.h"
|
||||
#include "sceKernelThread.h"
|
||||
|
@ -19,7 +19,8 @@
|
||||
#include "sceKernelThread.h"
|
||||
#include "sceKernelMbx.h"
|
||||
#include "HLE.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#define SCE_KERNEL_MBA_THPRI 0x100
|
||||
#define SCE_KERNEL_MBA_MSPRI 0x400
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "sceKernel.h"
|
||||
#include "sceKernelMsgPipe.h"
|
||||
#include "sceKernelThread.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#define SCE_KERNEL_MPA_THFIFO_S 0x0000
|
||||
#define SCE_KERNEL_MPA_THPRI_S 0x0100
|
||||
|
@ -19,7 +19,8 @@
|
||||
#include <map>
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
#include "sceKernel.h"
|
||||
#include "sceKernelMutex.h"
|
||||
#include "sceKernelThread.h"
|
||||
|
@ -18,7 +18,8 @@
|
||||
#include <algorithm>
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
#include "sceKernel.h"
|
||||
#include "sceKernelThread.h"
|
||||
#include "sceKernelSemaphore.h"
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "sceKernelTime.h"
|
||||
|
||||
#include "../CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// State
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "sceKernelThread.h"
|
||||
#include "sceKernelVTimer.h"
|
||||
#include "HLE.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
// Using ERROR_LOG liberally when this is in development. When done,
|
||||
// should be changed to DEBUG_LOG wherever applicable.
|
||||
|
@ -18,9 +18,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
enum {
|
||||
ERROR_MPEG_BAD_VERSION = 0x80610002,
|
||||
ERROR_MPEG_NO_MEMORY = 0x80610022,
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#include "scePower.h"
|
||||
#include "sceKernelThread.h"
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../Common/ChunkFile.h"
|
||||
class PointerWrap;
|
||||
|
||||
void __PowerInit();
|
||||
void __PowerDoState(PointerWrap &p);
|
||||
|
@ -16,6 +16,7 @@
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include "HLE.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#include "scePsmf.h"
|
||||
#include "sceMpeg.h"
|
||||
|
@ -16,6 +16,7 @@
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include "HLE.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
#include "sceSsl.h"
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../Common/ChunkFile.h"
|
||||
class PointerWrap;
|
||||
|
||||
void Register_sceSsl();
|
||||
|
||||
|
@ -17,7 +17,8 @@
|
||||
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
#include "sceUmd.h"
|
||||
#include "sceKernelThread.h"
|
||||
|
||||
|
@ -17,7 +17,8 @@
|
||||
|
||||
#include "HLE.h"
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "ChunkFile.h"
|
||||
#include "sceUsb.h"
|
||||
|
||||
bool usbActivated = false;
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../../Common/ChunkFile.h"
|
||||
class PointerWrap;
|
||||
|
||||
/**
|
||||
* Valid values for PSP_SYSTEMPARAM_ID_INT_LANGUAGE
|
||||
|
@ -27,6 +27,7 @@
|
||||
|
||||
#include "../../Globals.h"
|
||||
#include "../HLE/sceMpeg.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
class MediaEngine
|
||||
{
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "MemoryStick.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
// MS and FatMS states.
|
||||
static MemStickState memStickState = PSP_MEMORYSTICK_STATE_DRIVER_READY;
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "../../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
// mscmhc0 states
|
||||
enum MemStickState {
|
||||
|
@ -23,7 +23,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
enum {
|
||||
PSP_SAS_VOICES_MAX = 32,
|
||||
|
@ -98,6 +98,13 @@ void MIPSState::Reset()
|
||||
rng.Init(0x1337);
|
||||
}
|
||||
|
||||
void GMRng::DoState(PointerWrap &p)
|
||||
{
|
||||
p.Do(m_w);
|
||||
p.Do(m_z);
|
||||
p.DoMarker("GMRng");
|
||||
}
|
||||
|
||||
void MIPSState::DoState(PointerWrap &p)
|
||||
{
|
||||
// Reset the jit if we're loading.
|
||||
|
@ -18,7 +18,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
#include "../CPU.h"
|
||||
|
||||
enum
|
||||
@ -93,11 +92,7 @@ public:
|
||||
return (m_z << 16) + m_w;
|
||||
}
|
||||
|
||||
void DoState(PointerWrap &p) {
|
||||
p.Do(m_w);
|
||||
p.Do(m_z);
|
||||
p.DoMarker("GMRng");
|
||||
}
|
||||
void DoState(PointerWrap &p);
|
||||
|
||||
private:
|
||||
u32 m_w;
|
||||
|
@ -15,9 +15,10 @@
|
||||
// Official git repository and contact information can be found at
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include "../Common/ChunkFile.h"
|
||||
#include <string>
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
namespace SaveState
|
||||
{
|
||||
typedef void (*Callback)(bool status, void *cbUserData);
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "Log.h"
|
||||
#include "BlockAllocator.h"
|
||||
#include "ChunkFile.h"
|
||||
|
||||
// Slow freaking thing but works (eventually) :)
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <cstring>
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
// Generic allocator thingy
|
||||
// Allocates blocks from a range
|
||||
|
@ -18,9 +18,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../Globals.h"
|
||||
#include "../../Common/ChunkFile.h"
|
||||
#include "ppge_atlas.h"
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// PPGeDraw: Super simple internal drawing API for 2D overlays like sceUtility messageboxes
|
||||
// etc. Goes through the Ge emulation so that it's 100% portable - will work
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include "GeDisasm.h"
|
||||
#include "GPUCommon.h"
|
||||
#include "GPUState.h"
|
||||
|
||||
#include "ChunkFile.h"
|
||||
|
||||
|
||||
static int dlIdGenerator = 1;
|
||||
|
@ -18,9 +18,10 @@
|
||||
#pragma once
|
||||
|
||||
#include "../Globals.h"
|
||||
#include "../Common/ChunkFile.h"
|
||||
#include <deque>
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
enum DisplayListStatus
|
||||
{
|
||||
PSP_GE_LIST_DONE = 0, // reached finish+end
|
||||
|
Loading…
Reference in New Issue
Block a user