Move types.h to util/types.hpp

This commit is contained in:
Nekotekina 2020-12-12 15:01:29 +03:00
parent 666a18f5e5
commit b59f142d4e
75 changed files with 87 additions and 79 deletions

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
enum : u32
{
@ -101,7 +101,7 @@ public:
u32 get_sample_size() const;
u32 get_channels() const;
bool get_convert_to_u16() const;
bool has_capability(u32 cap) const;

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/File.h"
struct WAVHeader

View file

@ -24,7 +24,7 @@
#endif
#include "define_new_memleakdetect.h"
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/StrFmt.h"
#include "Utilities/BEType.h"
#include "Utilities/BitField.h"

View file

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

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
// Error code type (return type), implements error reporting.
class error_code

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
enum MFC : u8
{

View file

@ -1,6 +1,6 @@
#pragma once
#include "../../Utilities/types.h"
#include "util/types.hpp"
#include "Emu/Memory/vm_ptr.h"
#include <vector>

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
// SPU Instruction Type
struct spu_itype

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
// SysCalls
s32 sys_trace_create();

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include <string>
struct GameInfo

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/mutex.h"
#include <memory>
@ -48,7 +48,7 @@ namespace id_manager
static constexpr std::pair<u32, u32> invl_range = invl_range_extract_impl<T>::invl_range;
static_assert(count && step && u64{step} * (count - 1) + base < u64{UINT32_MAX} + (base != 0 ? 1 : 0), "ID traits: invalid object range");
// TODO: Add more conditions
static_assert(!invl_range.second || (u64{invl_range.second} + invl_range.first <= 32 /*....*/ ));
};
@ -580,7 +580,7 @@ public:
{
std::lock_guard lock(id_manager::g_mutex);
if (const auto found = find_id<T, Get>(id); found &&
if (const auto found = find_id<T, Get>(id); found &&
(!found->second.owner_before(sptr) && !sptr.owner_before(found->second)))
{
ptr = std::move(found->second);

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
enum
{
@ -92,7 +92,7 @@ enum Keys
CELL_KEYC_KANA = 0x88,
CELL_KEYC_HENKAN = 0x8a,
CELL_KEYC_MUHENKAN = 0x8b,
// Raw keycodes for ASCII keys
CELL_KEYC_A = 0x04,
CELL_KEYC_B = 0x05,

View file

@ -4,7 +4,7 @@
#include "pad_types.h"
#include "pad_config.h"
#include "pad_config_types.h"
#include "Utilities/types.h"
#include "util/types.hpp"
struct PadDevice
{

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
enum class pad_handler
{

View file

@ -2,7 +2,7 @@
#include <map>
#include <memory>
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/StrFmt.h"
#include "Utilities/BEType.h"

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/BEType.h"
#include "vm.h"

View file

@ -1,8 +1,9 @@
#pragma once
#include <string>
#include <array>
#include <vector>
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Emu/RSX/rsx_methods.h"
namespace rsx

View file

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

View file

@ -6,7 +6,7 @@
#include <unordered_map>
#include <vector>
#include "Utilities/types.h"
#include "util/types.hpp"
/**
* FONT GLYPHS GO HERE

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/geometry.h"
#include "Utilities/address_range.h"
#include "TextureUtils.h"

View file

@ -1,5 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/geometry.h"
#include "OpenGL.h"

View file

@ -1,5 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/geometry.h"
#include "overlay_utils.h"

View file

@ -1,5 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/geometry.h"
#include "Utilities/File.h"
#include "overlay_utils.h"

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "overlay_utils.h"
#include <vector>

View file

@ -1,5 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/geometry.h"
#include <string>

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Emu/RSX/gcm_enums.h"
struct RsxDmaControl;

View file

@ -1,7 +1,7 @@
#pragma once
#include "gcm_enums.h"
#include "Utilities/types.h"
#include "util/types.hpp"
enum register_type
{

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/address_range.h"
#include <vector>

View file

@ -1,7 +1,7 @@
#pragma once
#include "gcm_enums.h"
#include "Utilities/types.h"
#include "util/types.hpp"
#include <vector>
#include <bitset>

View file

@ -12,4 +12,4 @@
#include <vulkan/vulkan.h>
#include <vulkan/vk_sdk_platform.h>
#include "define_new_memleakdetect.h"
#include "Utilities/types.h"
#include "util/types.hpp"

View file

@ -1,5 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
namespace rsx
{

View file

@ -1,5 +1,6 @@
#pragma once
#include <Utilities/types.h>
#include "util/types.hpp"
#include <string>
#include <functional>

View file

@ -1,5 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "Utilities/BitField.h"
#include "Utilities/StrFmt.h"
#include <tuple>

View file

@ -2,7 +2,7 @@
#include "gcm_enums.h"
#include "Utilities/types.h"
#include "util/types.hpp"
#include "rsx_utils.h"
namespace rsx

View file

@ -1,6 +1,6 @@
#pragma once
#include "Utilities/types.h"
#include "util/types.hpp"
#include "util/logs.hpp"
#include "Utilities/sysinfo.h"
#include "system_config.h"