1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-21 18:22:33 +01:00

Add missing #includes to header files

- Multiple header files where missing #includes to other headers that
  where used in the header. Correct header was included in correct
  order in source files which caused everything to compile.
- Added missing #includes so header files correctly include all their
  dependencies and fixes problems with IDEs being unable to parse
  headers correctly due to missing symbols
This commit is contained in:
Lassi Hämäläinen 2018-09-26 01:14:10 +03:00 committed by Ivan
parent 499035512b
commit e9e87b8bd9
115 changed files with 210 additions and 73 deletions

View File

@ -2,6 +2,7 @@
#include "Atomic.h"
#include <memory>
#include <cstddef>
// Unfinished. Only std::default_delete will work as expected.
template<typename T, typename D>

View File

@ -1,5 +1,7 @@
#pragma once
#include <type_traits>
template<typename T1, typename T2> struct range_t
{
T1 _min; // first value

View File

@ -1,5 +1,7 @@
#pragma once
#include "types.h"
#include <chrono>
class Timer

View File

@ -1,5 +1,7 @@
#pragma once
#include "types.h"
namespace utils
{
// Memory protection type

View File

@ -1,5 +1,8 @@
#pragma once
#include <ctime>
#include <string>
namespace date_time
{
static inline tm get_time(time_t* _time)

View File

@ -1,5 +1,6 @@
#pragma once
#include <stdint.h>
#include "Utilities/types.h"
namespace rpcs3
{
@ -47,4 +48,4 @@ namespace rpcs3
return hash_struct_base<T, u8>(value);
}
}
}

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
#include <string>
#include <vector>
#include <memory>

View File

@ -6,6 +6,8 @@
#include "utils.h"
#include "Utilities/File.h"
constexpr u32 SDAT_FLAG = 0x01000000;
constexpr u32 EDAT_COMPRESSED_FLAG = 0x00000001;
constexpr u32 EDAT_FLAG_0x02 = 0x00000002;

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/BEType.h"
// Constants
enum
{

View File

@ -3,6 +3,10 @@
#include "key_vault.h"
#include "zlib.h"
#include "Utilities/types.h"
#include "Utilities/File.h"
#include "Utilities/Log.h"
struct AppInfo
{
u64 authid;

View File

@ -1,5 +1,8 @@
#pragma once
#include "Utilities/types.h"
#include "Utilities/File.h"
struct WAVHeader
{
struct RIFFHeader

View File

@ -1,5 +1,8 @@
#pragma once
#include <string>
#include "Utilities/StrFmt.h"
enum CPUDisAsmMode
{
CPUDisAsm_DumpMode,

View File

@ -16,12 +16,12 @@
#endif
#include "define_new_memleakdetect.h"
#include "../Utilities/types.h"
#include "../Utilities/StrFmt.h"
#include "../Utilities/BEType.h"
#include "../Utilities/BitField.h"
#include "../Utilities/Log.h"
#include "../Utilities/JIT.h"
#include "Utilities/types.h"
#include "Utilities/StrFmt.h"
#include "Utilities/BEType.h"
#include "Utilities/BitField.h"
#include "Utilities/Log.h"
#include "Utilities/JIT.h"
#include <unordered_map>
#include <map>

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
// Floating-point rounding mode (for both PPU and SPU)
enum FPSCR_RN
{

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
enum CellNotAnError : s32
{
CELL_OK = 0,

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
enum MFC : u8
{
MFC_PUT_CMD = 0x20, MFC_PUTB_CMD = 0x21, MFC_PUTF_CMD = 0x22,

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum

View File

@ -1,5 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
#include "Utilities/Thread.h"
#include "Emu/Memory/vm.h"
#include "Emu/Audio/AudioBackend.h"

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
// Error codes
enum

View File

@ -1,5 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum
{

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum CellFiberError : u32

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error codes
enum

View File

@ -2,7 +2,7 @@
#include "cellFont.h"
#include "Emu/Memory/vm_ptr.h"
struct CellFontLibraryConfigFT
{

View File

@ -1,6 +1,7 @@
#pragma once
#include "Emu/Cell/lv2/sys_fs.h"
#include "Emu/Memory/vm_ptr.h"
// CellFsRingBuffer.copy
enum : s32

View File

@ -2,7 +2,7 @@
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum

View File

@ -1,6 +1,7 @@
#pragma once
#include "Emu/RSX/GCM.h"
#include "Emu/Memory/vm_ptr.h"
enum
{

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
static const float CELL_GEM_SPHERE_RADIUS_MM = 22.5f;

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// libHttp_Util: 0x80711001 - 0x807110ff

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
typedef vm::ptr<void> CellImeJpHandle;

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
//Return Codes
enum

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/BEType.h"
enum CellKbError : u32
{
CELL_KB_ERROR_FATAL = 0x80121001,

View File

@ -1,5 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
#include "Utilities/Thread.h"
// Error Codes

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
enum
{

View File

@ -1,5 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum
{

View File

@ -1,6 +1,8 @@
#pragma once
#include "cellGame.h"
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum CellNetCtlError : u32

View File

@ -1,6 +1,7 @@
#pragma once
#include "Emu/Io/PadHandler.h"
#include "Utilities/BEType.h"
#include <array>
enum CellPadError : u32

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
enum CellPngTxtType : s32
{

View File

@ -1,8 +1,11 @@
#pragma once
#include "cellPng.h"
#include "Emu/Memory/vm_ptr.h"
#include "png.h"
enum : u32
{
PNGDEC_CODEC_VERSION = 0x00420000,
@ -345,4 +348,4 @@ class LibPngCustomException : public std::runtime_error
{
public:
LibPngCustomException(char const* const message) : runtime_error(message) {}
};
};

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
enum
{

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
// Return Codes
enum

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum

View File

@ -2,7 +2,7 @@
#include "cellVpost.h"
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum

View File

@ -1,5 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum
{

View File

@ -1,5 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum CellSearchError : u32
{

View File

@ -1,5 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
enum CellSpudllError : u32
{
CELL_SPUDLL_ERROR_INVAL = 0x80410602,

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
// Return Codes
enum CellSubDisplayError : u32

View File

@ -1,5 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
#include "Utilities/BitField.h"
// Return Codes

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return Codes
enum CellSync2Error : u32

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
typedef void(CellSysconfCallback)(s32 result, vm::ptr<void> userdata);

View File

@ -1,6 +1,6 @@
#pragma once
#pragma once
#include "Emu/Memory/vm_ptr.h"
enum CellSysutilError : u32
{

View File

@ -1,6 +1,8 @@
#pragma once
#include "sceNp2.h"
#include "Emu/Memory/vm_ptr.h"
// Error codes
enum CellSysutilAvc2Error : u32

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum CellUserInfoError : u32

View File

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/BEType.h"
// Error Codes
enum

View File

@ -1,9 +1,9 @@
#pragma once
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h"
// Video Out Error Codes
enum CellVideoOutError : u32
{

View File

@ -1,5 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
struct CellVideoUploadOption
{
be_t<s32> type;

View File

@ -5,7 +5,7 @@ extern "C"
#include "libswscale/swscale.h"
}
#include "Utilities/BEType.h"
// Error Codes
enum

View File

@ -2,6 +2,8 @@
#include "cellSysutil.h"
#include "Emu/Memory/vm_ptr.h"
//events
enum CellWebBrowserEvent : s32
{

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Error Codes
enum

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/BEType.h"
// Error Codes
enum
{

View File

@ -1,9 +1,9 @@
#pragma once
#include "cellRtc.h"
#include "Utilities/BEType.h"
// Error Codes
enum
{
@ -696,4 +696,4 @@ struct SceNpSignalingNetInfo
};
// NP signaling callback function
typedef void(*SceNpSignalingHandler)(u32 ctx_id, u32 subject_id, s32 event, s32 error_code, u32 arg_addr);
typedef void(*SceNpSignalingHandler)(u32 ctx_id, u32 subject_id, s32 event, s32 error_code, u32 arg_addr);

View File

@ -1,6 +1,8 @@
#pragma once
#include "sceNp.h"
#include "Emu/Memory/vm_ptr.h"
// Error codes
enum
@ -1504,4 +1506,4 @@ struct SceNpMatching2CbQueueInfo
be_t<u32> curSessionMsgCbQueueLen;
be_t<u32> maxSessionMsgCbQueueLen;
u8 reserved[12];
};
};

View File

@ -1,6 +1,8 @@
#pragma once
#include "sceNp.h"
#include "Utilities/BEType.h"
// Return codes
enum

View File

@ -1,9 +1,9 @@
#pragma once
#include "cellRtc.h"
#include "Utilities/BEType.h"
// Return codes
enum
{

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
// Return codes
enum sceNpSnsError : u32

View File

@ -1,8 +1,9 @@
#pragma once
#include "Utilities/BEType.h"
#include "cellRtc.h"
#include "sceNp.h"
// Constants for TUS functions and structures
enum
@ -47,4 +48,4 @@ struct SceNpTusDataStatus
be_t<u32> dataSize;
u8 pad[4];
SceNpTusDataInfo info;
};
};

View File

@ -1,6 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/ErrorCodes.h"
using spu_printf_cb_t = vm::ptr<s32(u32 arg)>;

View File

@ -9,6 +9,8 @@
#include "Emu/Cell/lv2/sys_lwcond.h"
#include "Emu/Cell/lv2/sys_event_flag.h"
#include "Emu/Memory/vm_ptr.h"
// Error Codes

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
// SPU Instruction Type
struct spu_itype
{

View File

@ -1,6 +1,6 @@
#pragma once
#include "../../../Utilities/BitField.h"
#include "Utilities/BitField.h"
union spu_opcode_t
{

View File

@ -4,6 +4,8 @@
#include "Emu/Cell/SPUInterpreter.h"
#include "Emu/Memory/vm.h"
#include "MFC.h"
#include "Emu/Memory/vm.h"
#include "Utilities/BEType.h"
#include <map>

View File

@ -1,6 +1,7 @@
#pragma once
#include "sys_sync.h"
#include "sys_mutex.h"
struct lv2_mutex;

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
class cpu_thread;
// Event Queue Type

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
enum
{
SYS_SYNC_WAITER_SINGLE = 0x10000,

View File

@ -2,6 +2,7 @@
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Utilities/File.h"
// Open Flags
enum : s32

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
class ppu_thread;
struct lv2_int_tag final : lv2_obj

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
struct sys_lwmutex_t;
struct sys_lwcond_attribute_t

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
struct sys_lwmutex_attribute_t
{
be_t<u32> protocol;

View File

@ -1,7 +1,7 @@
#pragma once
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/ErrorCodes.h"
#include "Emu/Memory/vm_ptr.h"
#include "Emu/IdManager.h"
enum : u32

View File

@ -1,9 +1,11 @@
#pragma once
#include "sys_sync.h"
#include <vector>
#include "Emu/Memory/vm_ptr.h"
#include <vector>
struct lv2_memory_container;
struct lv2_memory : lv2_obj

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
struct sys_mutex_attribute_t
{
be_t<u32> protocol; // SYS_SYNC_FIFO, SYS_SYNC_PRIORITY or SYS_SYNC_PRIORITY_INHERIT

View File

@ -3,6 +3,8 @@
#include "Utilities/bit_set.h"
#include "Utilities/mutex.h"
#include "Emu/Memory/vm_ptr.h"
#include <vector>
#include <utility>
#include <functional>

View File

@ -1,8 +1,10 @@
#pragma once
#include "Emu/Cell/PPUAnalyser.h"
#include "sys_sync.h"
#include "Emu/Cell/PPUAnalyser.h"
#include "Emu/Memory/vm_ptr.h"
// Return codes
enum CellPrxError : u32
{

View File

@ -1,4 +1,6 @@
#pragma once
#pragma once
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Memory/vm_ptr.h"

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
struct sys_rwlock_attribute_t
{
be_t<u32> protocol;

View File

@ -2,6 +2,8 @@
#include "sys_sync.h"
#include "Emu/Memory/vm_ptr.h"
struct sys_semaphore_attribute_t
{
be_t<u32> protocol;

View File

@ -3,6 +3,9 @@
#include "sys_event.h"
#include "Emu/Cell/SPUThread.h"
#include "Emu/Memory/vm_ptr.h"
#include "Utilities/File.h"
enum : s32
{
SYS_SPU_THREAD_GROUP_TYPE_NORMAL = 0x00,

View File

@ -1,6 +1,6 @@
#pragma once
#include "Emu/Memory/vm.h"
#include "Emu/Memory/vm_ptr.h"
#include "Emu/Cell/ErrorCodes.h"
struct CellSsOpenPSID

View File

@ -1,6 +1,10 @@
#pragma once
#include "sys_event.h"
#include "Utilities/Thread.h"
#include "Emu/Memory/vm_ptr.h"
// Timer State
enum : u32

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
// SysCalls
s32 sys_trace_create();
s32 sys_trace_start();

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
struct GameInfo
{
std::string path;

View File

@ -1,5 +1,7 @@
#pragma once
#include "Utilities/types.h"
#include <mutex>
// TODO: HLE info (constants, structs, etc.) should not be available here

View File

@ -4,6 +4,8 @@
#include "GLSLTypes.h"
#include "ShaderParam.h"
#include "Utilities/StrFmt.h"
namespace program_common
{
static void insert_compare_op(std::ostream& OS, bool low_precision)
@ -810,4 +812,4 @@ namespace glsl
return "TEX2D_DEPTH_RGBA8($_i, $0.xy)";
}
}
}
}

View File

@ -7,6 +7,7 @@
#include "Utilities/GSL.h"
#include "Utilities/hash.h"
#include "Utilities/mutex.h"
#include "Utilities/Log.h"
#include <deque>

View File

@ -4,6 +4,7 @@
#include <vector>
#include "Utilities/StrUtil.h"
#include "Utilities/types.h"
enum class FUNCTION {
FUNCTION_DP2,

Some files were not shown because too many files have changed in this diff Show More