mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Remove Globals.h
This commit is contained in:
parent
ff3d799871
commit
6a1fa728d8
@ -140,7 +140,6 @@ if(APPLE)
|
|||||||
find_library(COCOA_LIBRARY Cocoa)
|
find_library(COCOA_LIBRARY Cocoa)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Needed for Globals.h
|
|
||||||
include_directories("${CMAKE_SOURCE_DIR}")
|
include_directories("${CMAKE_SOURCE_DIR}")
|
||||||
|
|
||||||
if(USING_EGL)
|
if(USING_EGL)
|
||||||
@ -1604,7 +1603,6 @@ add_library(${CoreLibName} ${CoreLinkType}
|
|||||||
Core/Util/ppge_atlas.h
|
Core/Util/ppge_atlas.h
|
||||||
${CORE_NEON}
|
${CORE_NEON}
|
||||||
${GPU_SOURCES}
|
${GPU_SOURCES}
|
||||||
Globals.h
|
|
||||||
git-version.cpp
|
git-version.cpp
|
||||||
ext/disarm.cpp
|
ext/disarm.cpp
|
||||||
git-version.cpp)
|
git-version.cpp)
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
#include "Swap.h"
|
||||||
#include "FileUtil.h"
|
#include "FileUtil.h"
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
@ -38,8 +38,11 @@ protected:
|
|||||||
size_t region_size;
|
size_t region_size;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T> class CodeBlock : public CodeBlockCommon, public T, NonCopyable {
|
template<class T> class CodeBlock : public CodeBlockCommon, public T {
|
||||||
private:
|
private:
|
||||||
|
CodeBlock(const CodeBlock &) = delete;
|
||||||
|
void operator=(const CodeBlock &) = delete;
|
||||||
|
|
||||||
// A privately used function to set the executable RAM space to something invalid.
|
// A privately used function to set the executable RAM space to something invalid.
|
||||||
// For debugging usefulness it should be used to set the RAM to a host specific breakpoint instruction
|
// For debugging usefulness it should be used to set the RAM to a host specific breakpoint instruction
|
||||||
virtual void PoisonMemory(int offset) = 0;
|
virtual void PoisonMemory(int offset) = 0;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
|
// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
|
||||||
// since it slows down the build a lot.
|
// since it slows down the build a lot.
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
@ -36,19 +35,16 @@
|
|||||||
|
|
||||||
#define STACKALIGN
|
#define STACKALIGN
|
||||||
|
|
||||||
// An inheritable class to disallow the copy constructor and operator= functions
|
|
||||||
class NonCopyable {
|
|
||||||
protected:
|
|
||||||
NonCopyable() {}
|
|
||||||
private:
|
|
||||||
NonCopyable(const NonCopyable&);
|
|
||||||
void operator=(const NonCopyable&);
|
|
||||||
};
|
|
||||||
|
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "CommonTypes.h"
|
#include "CommonTypes.h"
|
||||||
#include "CommonFuncs.h"
|
#include "CommonFuncs.h"
|
||||||
|
|
||||||
|
#ifndef DISALLOW_COPY_AND_ASSIGN
|
||||||
|
#define DISALLOW_COPY_AND_ASSIGN(t) \
|
||||||
|
t(const t &other) = delete; \
|
||||||
|
void operator =(const t &other) = delete;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
// The Darwin ABI requires that stack frames be aligned to 16-byte boundaries.
|
// The Darwin ABI requires that stack frames be aligned to 16-byte boundaries.
|
||||||
// This is only needed on i386 gcc - x86_64 already aligns to 16 bytes.
|
// This is only needed on i386 gcc - x86_64 already aligns to 16 bytes.
|
||||||
@ -100,6 +96,4 @@ private:
|
|||||||
# elif defined __SSE2__
|
# elif defined __SSE2__
|
||||||
# define _M_SSE 0x200
|
# define _M_SSE 0x200
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Swap.h"
|
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
@ -124,14 +124,17 @@ const std::string &GetExeDirectory();
|
|||||||
// simple wrapper for cstdlib file functions to
|
// simple wrapper for cstdlib file functions to
|
||||||
// hopefully will make error checking easier
|
// hopefully will make error checking easier
|
||||||
// and make forgetting an fclose() harder
|
// and make forgetting an fclose() harder
|
||||||
class IOFile : NonCopyable {
|
class IOFile {
|
||||||
public:
|
public:
|
||||||
IOFile();
|
IOFile();
|
||||||
IOFile(std::FILE* file);
|
IOFile(std::FILE* file);
|
||||||
IOFile(const std::string& filename, const char openmode[]);
|
IOFile(const std::string& filename, const char openmode[]);
|
||||||
|
|
||||||
~IOFile();
|
~IOFile();
|
||||||
|
|
||||||
|
// Prevent copies.
|
||||||
|
IOFile(const IOFile &) = delete;
|
||||||
|
void operator=(const IOFile &) = delete;
|
||||||
|
|
||||||
bool Open(const std::string& filename, const char openmode[]);
|
bool Open(const std::string& filename, const char openmode[]);
|
||||||
bool Close();
|
bool Close();
|
||||||
|
|
||||||
@ -189,10 +192,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IOFile& operator=(const IOFile&) /*= delete*/;
|
std::FILE *m_file;
|
||||||
IOFile(const IOFile&) /*= delete*/;
|
|
||||||
|
|
||||||
std::FILE* m_file;
|
|
||||||
bool m_good;
|
bool m_good;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "ext/xxhash.h"
|
#include "ext/xxhash.h"
|
||||||
#include "Common/CommonFuncs.h"
|
#include "Common/CommonFuncs.h"
|
||||||
|
|
||||||
|
@ -103,11 +103,15 @@ struct LogChannel {
|
|||||||
|
|
||||||
class ConsoleListener;
|
class ConsoleListener;
|
||||||
|
|
||||||
class LogManager : NonCopyable {
|
class LogManager {
|
||||||
private:
|
private:
|
||||||
LogManager();
|
LogManager();
|
||||||
~LogManager();
|
~LogManager();
|
||||||
|
|
||||||
|
// Prevent copies.
|
||||||
|
LogManager(const LogManager &) = delete;
|
||||||
|
void operator=(const LogManager &) = delete;
|
||||||
|
|
||||||
LogChannel log_[LogTypes::NUMBER_OF_LOGS];
|
LogChannel log_[LogTypes::NUMBER_OF_LOGS];
|
||||||
FileLogListener *fileLog_ = nullptr;
|
FileLogListener *fileLog_ = nullptr;
|
||||||
ConsoleListener *consoleLog_ = nullptr;
|
ConsoleListener *consoleLog_ = nullptr;
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
// Android
|
// Android
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
#include <sys/endian.h>
|
#include <sys/endian.h>
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
|
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "Core/Dialog/PSPDialog.h"
|
#include "Core/Dialog/PSPDialog.h"
|
||||||
|
|
||||||
#define SCE_UTILITY_MSGDIALOG_OPTION_ERRORSOUND 0x00000000
|
#define SCE_UTILITY_MSGDIALOG_OPTION_ERRORSOUND 0x00000000
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
|
|
||||||
///////////////////////
|
///////////////////////
|
||||||
// ELF Header Constants
|
// ELF Header Constants
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
|
|
||||||
enum PBPSubFile {
|
enum PBPSubFile {
|
||||||
PBP_PARAM_SFO,
|
PBP_PARAM_SFO,
|
||||||
|
@ -5,6 +5,7 @@ extern "C"
|
|||||||
#include "ext/libkirk/kirk_engine.h"
|
#include "ext/libkirk/kirk_engine.h"
|
||||||
}
|
}
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "Core/ELF/PrxDecrypter.h"
|
#include "Core/ELF/PrxDecrypter.h"
|
||||||
|
|
||||||
#define ROUNDUP16(x) (((x)+15)&~15)
|
#define ROUNDUP16(x) (((x)+15)&~15)
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "Core/Loaders.h"
|
#include "Core/Loaders.h"
|
||||||
|
|
||||||
class DiskCachingFileLoaderCache;
|
class DiskCachingFileLoaderCache;
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "Common/FileUtil.h"
|
#include "Common/FileUtil.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "Core/Loaders.h"
|
#include "Core/Loaders.h"
|
||||||
#include "Core/FileSystems/BlockDevices.h"
|
#include "Core/FileSystems/BlockDevices.h"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include "Common/CommonTypes.h"
|
||||||
#include "Core/HLE/sceKernelThread.h"
|
#include "Core/HLE/sceKernelThread.h"
|
||||||
|
|
||||||
namespace HLEKernel
|
namespace HLEKernel
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
#include "Globals.h" // only for clamp_s16
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/ChunkFile.h"
|
#include "Common/ChunkFile.h"
|
||||||
#include "Common/FixedSizeQueue.h"
|
#include "Common/FixedSizeQueue.h"
|
||||||
|
@ -19,13 +19,13 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
#include "Core/HLE/HLE.h"
|
#include "Core/HLE/HLE.h"
|
||||||
#include "Core/HLE/FunctionWrappers.h"
|
#include "Core/HLE/FunctionWrappers.h"
|
||||||
#include "Core/MIPS/MIPS.h"
|
#include "Core/MIPS/MIPS.h"
|
||||||
#include "Core/CoreTiming.h"
|
#include "Core/CoreTiming.h"
|
||||||
#include "Core/MemMapHelpers.h"
|
#include "Core/MemMapHelpers.h"
|
||||||
#include "Common/ChunkFile.h"
|
#include "Common/ChunkFile.h"
|
||||||
|
#include "Core/Util/AudioFormat.h" // for clamp_u8
|
||||||
#include "Core/HLE/sceCtrl.h"
|
#include "Core/HLE/sceCtrl.h"
|
||||||
#include "Core/HLE/sceDisplay.h"
|
#include "Core/HLE/sceDisplay.h"
|
||||||
#include "Core/HLE/sceKernel.h"
|
#include "Core/HLE/sceKernel.h"
|
||||||
|
@ -20,12 +20,11 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/Swap.h"
|
||||||
|
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
|
||||||
enum
|
enum {
|
||||||
{
|
|
||||||
SCE_KERNEL_ERROR_OK = 0,
|
SCE_KERNEL_ERROR_OK = 0,
|
||||||
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
|
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
|
||||||
SCE_KERNEL_ERROR_BUSY = 0x80000021,
|
SCE_KERNEL_ERROR_BUSY = 0x80000021,
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
// Official git repository and contact information can be found at
|
// Official git repository and contact information can be found at
|
||||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||||
|
|
||||||
|
|
||||||
// This code is part shamelessly "inspired" from JPSCP.
|
// This code is part shamelessly "inspired" from JPSCP.
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "Core/HLE/sceMpeg.h"
|
#include "Core/HLE/sceMpeg.h"
|
||||||
#include "Core/HLE/sceKernelModule.h"
|
#include "Core/HLE/sceKernelModule.h"
|
||||||
#include "Core/HLE/sceKernelThread.h"
|
#include "Core/HLE/sceKernelThread.h"
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
|
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
|
||||||
|
@ -15,18 +15,18 @@
|
|||||||
// Official git repository and contact information can be found at
|
// Official git repository and contact information can be found at
|
||||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
#include "profiler/profiler.h"
|
#include "profiler/profiler.h"
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
#include "Core/MemMapHelpers.h"
|
#include "Core/MemMapHelpers.h"
|
||||||
#include "Core/HLE/sceAtrac.h"
|
#include "Core/HLE/sceAtrac.h"
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
#include "Core/Reporting.h"
|
#include "Core/Reporting.h"
|
||||||
|
#include "Core/Util/AudioFormat.h"
|
||||||
#include "SasAudio.h"
|
#include "SasAudio.h"
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
// #define AUDIO_TO_FILE
|
// #define AUDIO_TO_FILE
|
||||||
|
|
||||||
static const u8 f[16][2] = {
|
static const u8 f[16][2] = {
|
||||||
|
@ -18,9 +18,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "Core/HW/SasReverb.h"
|
#include "Core/HW/SasReverb.h"
|
||||||
|
#include "Core/Util/AudioFormat.h"
|
||||||
|
|
||||||
// This is under the assumption that the reverb used in Sas is the same as the PSX SPU reverb.
|
// This is under the assumption that the reverb used in Sas is the same as the PSX SPU reverb.
|
||||||
|
|
||||||
|
@ -39,8 +39,8 @@
|
|||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
#include "Core/HW/StereoResampler.h"
|
#include "Core/HW/StereoResampler.h"
|
||||||
#include "Core/HLE/__sceAudio.h"
|
#include "Core/HLE/__sceAudio.h"
|
||||||
|
#include "Core/Util/AudioFormat.h" // for clamp_u8
|
||||||
#include "Core/System.h"
|
#include "Core/System.h"
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
#ifdef _M_SSE
|
#ifdef _M_SSE
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
// Includes
|
// Includes
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "Core/Opcode.h"
|
#include "Core/Opcode.h"
|
||||||
|
|
||||||
// PPSSPP is very aggressive about trying to do memory accesses directly, for speed.
|
// PPSSPP is very aggressive about trying to do memory accesses directly, for speed.
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#include "Common/CPUDetect.h"
|
#include "Common/CPUDetect.h"
|
||||||
#include "Core/Util/AudioFormat.h"
|
#include "Core/Util/AudioFormat.h"
|
||||||
#include "Core/Util/AudioFormatNEON.h"
|
#include "Core/Util/AudioFormatNEON.h"
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
#ifdef _M_SSE
|
#ifdef _M_SSE
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
|
@ -19,7 +19,33 @@
|
|||||||
|
|
||||||
#include "ppsspp_config.h"
|
#include "ppsspp_config.h"
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "Globals.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
|
#define IS_LITTLE_ENDIAN (*(const u16 *)"\0\xff" >= 0x100)
|
||||||
|
|
||||||
|
static inline u8 clamp_u8(int i) {
|
||||||
|
#if PPSSPP_ARCH(ARM) && !defined(_MSC_VER)
|
||||||
|
asm("usat %0, #8, %1" : "=r"(i) : "r"(i));
|
||||||
|
#else
|
||||||
|
if (i > 255)
|
||||||
|
return 255;
|
||||||
|
if (i < 0)
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline s16 clamp_s16(int i) {
|
||||||
|
#if PPSSPP_ARCH(ARM) && !defined(_MSC_VER)
|
||||||
|
asm("ssat %0, #16, %1" : "=r"(i) : "r"(i));
|
||||||
|
#else
|
||||||
|
if (i > 32767)
|
||||||
|
return 32767;
|
||||||
|
if (i < -32768)
|
||||||
|
return -32768;
|
||||||
|
#endif
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
static inline s16 ApplySampleVolume(s16 sample, int vol) {
|
static inline s16 ApplySampleVolume(s16 sample, int vol) {
|
||||||
#if PPSSPP_ARCH(ARM) && !defined(_MSC_VER)
|
#if PPSSPP_ARCH(ARM) && !defined(_MSC_VER)
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "GPU/Math3D.h"
|
#include "GPU/Math3D.h"
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ enum CheckAlphaResult {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "Core/MemMap.h"
|
#include "Core/MemMap.h"
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
#include "GPU/Common/TextureDecoderNEON.h"
|
#include "GPU/Common/TextureDecoderNEON.h"
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include "Core/HDRemaster.h"
|
#include "Core/HDRemaster.h"
|
||||||
#include "Core/Reporting.h"
|
#include "Core/Reporting.h"
|
||||||
#include "Core/MIPS/JitCommon/JitCommon.h"
|
#include "Core/MIPS/JitCommon/JitCommon.h"
|
||||||
|
#include "Core/Util/AudioFormat.h" // for clamp_u8
|
||||||
#include "GPU/Common/ShaderCommon.h"
|
#include "GPU/Common/ShaderCommon.h"
|
||||||
#include "GPU/GPUState.h"
|
#include "GPU/GPUState.h"
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#else
|
#else
|
||||||
#include "Common/FakeEmitter.h"
|
#include "Common/FakeEmitter.h"
|
||||||
#endif
|
#endif
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
// DecVtxFormat - vertex formats for PC
|
// DecVtxFormat - vertex formats for PC
|
||||||
// Kind of like a D3D VertexDeclaration.
|
// Kind of like a D3D VertexDeclaration.
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
// Also provides facilities for drawing and later converting raw
|
// Also provides facilities for drawing and later converting raw
|
||||||
// pixel data.
|
// pixel data.
|
||||||
|
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/GPUCommon.h"
|
#include "GPU/GPUCommon.h"
|
||||||
#include "GPU/Common/FramebufferCommon.h"
|
#include "GPU/Common/FramebufferCommon.h"
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include <d3d11.h>
|
#include <d3d11.h>
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/Common/ShaderCommon.h"
|
#include "GPU/Common/ShaderCommon.h"
|
||||||
#include "GPU/Common/ShaderId.h"
|
#include "GPU/Common/ShaderId.h"
|
||||||
#include "GPU/Common/ShaderUniforms.h"
|
#include "GPU/Common/ShaderUniforms.h"
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
// Also provides facilities for drawing and later converting raw
|
// Also provides facilities for drawing and later converting raw
|
||||||
// pixel data.
|
// pixel data.
|
||||||
|
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/GPUCommon.h"
|
#include "GPU/GPUCommon.h"
|
||||||
#include "GPU/Common/FramebufferCommon.h"
|
#include "GPU/Common/FramebufferCommon.h"
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/Directx9/VertexShaderGeneratorDX9.h"
|
#include "GPU/Directx9/VertexShaderGeneratorDX9.h"
|
||||||
#include "GPU/Directx9/PixelShaderGeneratorDX9.h"
|
#include "GPU/Directx9/PixelShaderGeneratorDX9.h"
|
||||||
#include "GPU/Common/ShaderCommon.h"
|
#include "GPU/Common/ShaderCommon.h"
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include <d3d9.h>
|
#include <d3d9.h>
|
||||||
|
|
||||||
#include "../Globals.h"
|
|
||||||
#include "GPU/GPU.h"
|
#include "GPU/GPU.h"
|
||||||
#include "GPU/GPUInterface.h"
|
#include "GPU/GPUInterface.h"
|
||||||
#include "GPU/Directx9/TextureScalerDX9.h"
|
#include "GPU/Directx9/TextureScalerDX9.h"
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
#include "GPU/Common/ShaderID.h"
|
#include "GPU/Common/ShaderID.h"
|
||||||
|
|
||||||
namespace DX9 {
|
namespace DX9 {
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
struct ShaderID;
|
struct ShaderID;
|
||||||
|
|
||||||
bool GenerateFragmentShader(const ShaderID &id, char *buffer);
|
bool GenerateFragmentShader(const ShaderID &id, char *buffer);
|
||||||
|
@ -26,11 +26,9 @@
|
|||||||
// Also provides facilities for drawing and later converting raw
|
// Also provides facilities for drawing and later converting raw
|
||||||
// pixel data.
|
// pixel data.
|
||||||
|
|
||||||
|
#include "Core/Config.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/GPUCommon.h"
|
#include "GPU/GPUCommon.h"
|
||||||
#include "GPU/Common/FramebufferCommon.h"
|
#include "GPU/Common/FramebufferCommon.h"
|
||||||
#include "Core/Config.h"
|
|
||||||
|
|
||||||
struct GLSLProgram;
|
struct GLSLProgram;
|
||||||
class TextureCacheGLES;
|
class TextureCacheGLES;
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "base/basictypes.h"
|
#include <vector>
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
|
#include "base/basictypes.h"
|
||||||
#include "Common/Hashmaps.h"
|
#include "Common/Hashmaps.h"
|
||||||
#include "GPU/Common/ShaderCommon.h"
|
#include "GPU/Common/ShaderCommon.h"
|
||||||
#include "GPU/Common/ShaderId.h"
|
#include "GPU/Common/ShaderId.h"
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include "gfx_es2/gpu_features.h"
|
#include "gfx_es2/gpu_features.h"
|
||||||
#include "gfx/gl_common.h"
|
#include "gfx/gl_common.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/GPUInterface.h"
|
#include "GPU/GPUInterface.h"
|
||||||
#include "GPU/GPUState.h"
|
#include "GPU/GPUState.h"
|
||||||
#include "GPU/GLES/TextureScalerGLES.h"
|
#include "GPU/GLES/TextureScalerGLES.h"
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "GPU/GPU.h"
|
#include "GPU/GPU.h"
|
||||||
#include "Core/MemMap.h"
|
#include "Core/MemMap.h"
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include "Globals.h"
|
#include "Common/Common.h"
|
||||||
|
#include "Common/Swap.h"
|
||||||
#include "GPU/GPU.h"
|
#include "GPU/GPU.h"
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
#include "Common/Common.h"
|
|
||||||
#include "GPU/Common/ShaderCommon.h"
|
#include "GPU/Common/ShaderCommon.h"
|
||||||
|
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
@ -18,9 +18,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "Globals.h"
|
|
||||||
#include "Common/Common.h"
|
|
||||||
|
|
||||||
|
#include "Common/Common.h"
|
||||||
#include "math/fast/fast_matrix.h"
|
#include "math/fast/fast_matrix.h"
|
||||||
|
|
||||||
#if defined(_M_SSE)
|
#if defined(_M_SSE)
|
||||||
|
@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
struct ShaderID;
|
struct ShaderID;
|
||||||
|
|
||||||
bool GenerateVulkanGLSLFragmentShader(const ShaderID &id, char *buffer);
|
bool GenerateVulkanGLSLFragmentShader(const ShaderID &id, char *buffer);
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include "base/basictypes.h"
|
#include "base/basictypes.h"
|
||||||
#include "Common/Hashmaps.h"
|
#include "Common/Hashmaps.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "Common/Vulkan/VulkanMemory.h"
|
#include "Common/Vulkan/VulkanMemory.h"
|
||||||
#include "GPU/Common/ShaderCommon.h"
|
#include "GPU/Common/ShaderCommon.h"
|
||||||
#include "GPU/Common/ShaderId.h"
|
#include "GPU/Common/ShaderId.h"
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "Common/Hashmaps.h"
|
#include "Common/Hashmaps.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/GPUInterface.h"
|
#include "GPU/GPUInterface.h"
|
||||||
#include "GPU/GPUState.h"
|
#include "GPU/GPUState.h"
|
||||||
#include "Common/Vulkan/VulkanContext.h"
|
#include "Common/Vulkan/VulkanContext.h"
|
||||||
|
63
Globals.h
63
Globals.h
@ -1,63 +0,0 @@
|
|||||||
// Copyright (c) 2012- PPSSPP Project.
|
|
||||||
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, version 2.0 or later versions.
|
|
||||||
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License 2.0 for more details.
|
|
||||||
|
|
||||||
// A copy of the GPL 2.0 should have been included with the program.
|
|
||||||
// If not, see http://www.gnu.org/licenses/
|
|
||||||
|
|
||||||
// Official git repository and contact information can be found at
|
|
||||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <cstdio>
|
|
||||||
#include <cstring>
|
|
||||||
#include <vector>
|
|
||||||
#include <string>
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
#include "ppsspp_config.h"
|
|
||||||
|
|
||||||
#include "Common/Log.h"
|
|
||||||
#include "Common/CommonTypes.h"
|
|
||||||
|
|
||||||
#define IS_LITTLE_ENDIAN (*(const u16 *)"\0\xff" >= 0x100)
|
|
||||||
#define IS_BIG_ENDIAN (*(const u16 *)"\0\xff" < 0x100)
|
|
||||||
|
|
||||||
static inline u8 clamp_u8(int i) {
|
|
||||||
#if PPSSPP_ARCH(ARM) && !defined(_MSC_VER)
|
|
||||||
asm("usat %0, #8, %1" : "=r"(i) : "r"(i));
|
|
||||||
#else
|
|
||||||
if (i > 255)
|
|
||||||
return 255;
|
|
||||||
if (i < 0)
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline s16 clamp_s16(int i) {
|
|
||||||
#if PPSSPP_ARCH(ARM) && !defined(_MSC_VER)
|
|
||||||
asm("ssat %0, #16, %1" : "=r"(i) : "r"(i));
|
|
||||||
#else
|
|
||||||
if (i > 32767)
|
|
||||||
return 32767;
|
|
||||||
if (i < -32768)
|
|
||||||
return -32768;
|
|
||||||
#endif
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef DISALLOW_COPY_AND_ASSIGN
|
|
||||||
#define DISALLOW_COPY_AND_ASSIGN(t) \
|
|
||||||
private: \
|
|
||||||
t(const t &other); \
|
|
||||||
void operator =(const t &other);
|
|
||||||
#endif
|
|
@ -16,7 +16,6 @@
|
|||||||
#include "Windows/Debugger/DebuggerShared.h"
|
#include "Windows/Debugger/DebuggerShared.h"
|
||||||
#include "Windows/Debugger/BreakpointWindow.h"
|
#include "Windows/Debugger/BreakpointWindow.h"
|
||||||
#include "Core/Debugger/SymbolMap.h"
|
#include "Core/Debugger/SymbolMap.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "Windows/main.h"
|
#include "Windows/main.h"
|
||||||
|
|
||||||
#include "Common/CommonWindows.h"
|
#include "Common/CommonWindows.h"
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "../../globals.h"
|
|
||||||
|
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
#include "../resource.h"
|
#include "../resource.h"
|
||||||
#include "../../Core/MemMap.h"
|
#include "../../Core/MemMap.h"
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#include "Debugger_MemoryDlg.h"
|
#include "Debugger_MemoryDlg.h"
|
||||||
|
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
#include "../../globals.h"
|
|
||||||
#include "Debugger_Disasm.h"
|
#include "Debugger_Disasm.h"
|
||||||
#include "DebuggerShared.h"
|
#include "DebuggerShared.h"
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include "Windows/Debugger/CtrlDisasmView.h"
|
#include "Windows/Debugger/CtrlDisasmView.h"
|
||||||
#include "Windows/Debugger/Debugger_Lists.h"
|
#include "Windows/Debugger/Debugger_Lists.h"
|
||||||
#include "Windows/Debugger/CPURegsInterface.h"
|
#include "Windows/Debugger/CPURegsInterface.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "Core/MIPS/MIPSDebugInterface.h"
|
#include "Core/MIPS/MIPSDebugInterface.h"
|
||||||
#include "Core/Debugger/Breakpoints.h"
|
#include "Core/Debugger/Breakpoints.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include "Common/Log.h"
|
#include "Common/Log.h"
|
||||||
#include "Common/StringUtils.h"
|
#include "Common/StringUtils.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "Windows/EmuThread.h"
|
#include "Windows/EmuThread.h"
|
||||||
#include "Windows/W32Util/Misc.h"
|
#include "Windows/W32Util/Misc.h"
|
||||||
#include "Windows/MainWindow.h"
|
#include "Windows/MainWindow.h"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common/CommonWindows.h"
|
#include "Common/CommonWindows.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "GPU/Common/GPUDebugInterface.h"
|
#include "GPU/Common/GPUDebugInterface.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
#include "Common/CommonWindows.h"
|
#include "Common/CommonWindows.h"
|
||||||
#include "GPU/Common/GPUDebugInterface.h"
|
#include "GPU/Common/GPUDebugInterface.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "Windows/resource.h"
|
#include "Windows/resource.h"
|
||||||
#include "Windows/W32Util/DialogManager.h"
|
#include "Windows/W32Util/DialogManager.h"
|
||||||
#include "Windows/W32Util/TabControl.h"
|
#include "Windows/W32Util/TabControl.h"
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
#include "gfx_es2/glsl_program.h"
|
#include "gfx_es2/glsl_program.h"
|
||||||
#include "Common/CommonWindows.h"
|
#include "Common/CommonWindows.h"
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
struct SimpleGLWindow {
|
struct SimpleGLWindow {
|
||||||
static const wchar_t *windowClass;
|
static const wchar_t *windowClass;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common/CommonWindows.h"
|
#include "Common/CommonWindows.h"
|
||||||
#include "Globals.h"
|
|
||||||
#include "Windows/resource.h"
|
#include "Windows/resource.h"
|
||||||
#include "Windows/W32Util/DialogManager.h"
|
#include "Windows/W32Util/DialogManager.h"
|
||||||
#include "Windows/W32Util/Misc.h"
|
#include "Windows/W32Util/Misc.h"
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
// Copyright (c) 2012- PPSSPP Project.
|
|
||||||
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, version 2.0 or later versions.
|
|
||||||
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License 2.0 for more details.
|
|
||||||
|
|
||||||
// A copy of the GPL 2.0 should have been included with the program.
|
|
||||||
// If not, see http://www.gnu.org/licenses/
|
|
||||||
|
|
||||||
// Official git repository and contact information can be found at
|
|
||||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
||||||
|
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
#include "MsgHandler.h"
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include "Common/CommonWindows.h"
|
|
||||||
|
|
||||||
// Globals
|
|
||||||
HMENU g_hPopupMenus;
|
|
||||||
int g_activeWindow = 0;
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
|||||||
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/CommonWindows.h"
|
#include "Common/CommonWindows.h"
|
||||||
#include "Windows/InputBox.h"
|
#include "Windows/InputBox.h"
|
||||||
#include "Windows/resource.h"
|
#include "Windows/resource.h"
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
#include "Common/CommonWindows.h"
|
#include "Common/CommonWindows.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,8 +33,6 @@
|
|||||||
|
|
||||||
#include "base/display.h"
|
#include "base/display.h"
|
||||||
#include "base/NativeApp.h"
|
#include "base/NativeApp.h"
|
||||||
#include "Globals.h"
|
|
||||||
|
|
||||||
#include "base/timeutil.h"
|
#include "base/timeutil.h"
|
||||||
#include "i18n/i18n.h"
|
#include "i18n/i18n.h"
|
||||||
#include "input/input_state.h"
|
#include "input/input_state.h"
|
||||||
|
@ -425,7 +425,6 @@
|
|||||||
<ClCompile Include="DSoundStream.cpp" />
|
<ClCompile Include="DSoundStream.cpp" />
|
||||||
<ClCompile Include="GPU\WindowsGLContext.cpp" />
|
<ClCompile Include="GPU\WindowsGLContext.cpp" />
|
||||||
<ClCompile Include="WindowsHost.cpp" />
|
<ClCompile Include="WindowsHost.cpp" />
|
||||||
<ClCompile Include="Globals.cpp" />
|
|
||||||
<ClCompile Include="main.cpp" />
|
<ClCompile Include="main.cpp" />
|
||||||
<ClCompile Include="stdafx.cpp">
|
<ClCompile Include="stdafx.cpp">
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
@ -500,7 +499,6 @@
|
|||||||
<ClInclude Include="DSoundStream.h" />
|
<ClInclude Include="DSoundStream.h" />
|
||||||
<ClInclude Include="GPU\WindowsGLContext.h" />
|
<ClInclude Include="GPU\WindowsGLContext.h" />
|
||||||
<ClInclude Include="WindowsHost.h" />
|
<ClInclude Include="WindowsHost.h" />
|
||||||
<ClInclude Include="..\Globals.h" />
|
|
||||||
<ClInclude Include="main.h" />
|
<ClInclude Include="main.h" />
|
||||||
<ClInclude Include="resource.h" />
|
<ClInclude Include="resource.h" />
|
||||||
<ClInclude Include="stdafx.h" />
|
<ClInclude Include="stdafx.h" />
|
||||||
|
@ -88,7 +88,6 @@
|
|||||||
<ClCompile Include="InputDevice.cpp">
|
<ClCompile Include="InputDevice.cpp">
|
||||||
<Filter>Windows\Input</Filter>
|
<Filter>Windows\Input</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Globals.cpp" />
|
|
||||||
<ClCompile Include="main.cpp" />
|
<ClCompile Include="main.cpp" />
|
||||||
<ClCompile Include="stdafx.cpp" />
|
<ClCompile Include="stdafx.cpp" />
|
||||||
<ClCompile Include="..\android\jni\ArmEmitterTest.cpp">
|
<ClCompile Include="..\android\jni\ArmEmitterTest.cpp">
|
||||||
@ -239,7 +238,6 @@
|
|||||||
<ClInclude Include="WindowsHost.h">
|
<ClInclude Include="WindowsHost.h">
|
||||||
<Filter>Windows\System</Filter>
|
<Filter>Windows\System</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Globals.h" />
|
|
||||||
<ClInclude Include="main.h" />
|
<ClInclude Include="main.h" />
|
||||||
<ClInclude Include="resource.h" />
|
<ClInclude Include="resource.h" />
|
||||||
<ClInclude Include="Debugger\Debugger_Disasm.h">
|
<ClInclude Include="Debugger\Debugger_Disasm.h">
|
||||||
|
@ -80,6 +80,9 @@ static std::string langRegion;
|
|||||||
static std::string osName;
|
static std::string osName;
|
||||||
static std::string gpuDriverVersion;
|
static std::string gpuDriverVersion;
|
||||||
|
|
||||||
|
HMENU g_hPopupMenus;
|
||||||
|
int g_activeWindow = 0;
|
||||||
|
|
||||||
void LaunchBrowser(const char *url) {
|
void LaunchBrowser(const char *url) {
|
||||||
ShellExecute(NULL, L"open", ConvertUTF8ToWString(url).c_str(), NULL, NULL, SW_SHOWNORMAL);
|
ShellExecute(NULL, L"open", ConvertUTF8ToWString(url).c_str(), NULL, NULL, SW_SHOWNORMAL);
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,18 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <stdlib.h> // for byte swapping
|
#include <cstdlib> // for byte swapping
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#pragma warning(disable:4244)
|
#pragma warning(disable:4244)
|
||||||
#pragma warning(disable:4996)
|
#pragma warning(disable:4996)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef DISALLOW_COPY_AND_ASSIGN
|
||||||
#define DISALLOW_COPY_AND_ASSIGN(t) \
|
#define DISALLOW_COPY_AND_ASSIGN(t) \
|
||||||
private: \
|
t(const t &other) = delete; \
|
||||||
t(const t &other); \
|
void operator =(const t &other) = delete;
|
||||||
void operator =(const t &other);
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
@ -19,20 +20,6 @@ typedef intptr_t ssize_t;
|
|||||||
|
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
#define ALIGNED16(x) __declspec(align(16)) x
|
|
||||||
#define ALIGNED32(x) __declspec(align(32)) x
|
|
||||||
#define ALIGNED64(x) __declspec(align(64)) x
|
|
||||||
#define ALIGNED16_DECL(x) __declspec(align(16)) x
|
|
||||||
#define ALIGNED64_DECL(x) __declspec(align(64)) x
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define ALIGNED16(x) __attribute__((aligned(16))) x
|
|
||||||
#define ALIGNED32(x) __attribute__((aligned(32))) x
|
|
||||||
#define ALIGNED64(x) __attribute__((aligned(64))) x
|
|
||||||
#define ALIGNED16_DECL(x) __attribute__((aligned(16))) x
|
|
||||||
#define ALIGNED64_DECL(x) __attribute__((aligned(64))) x
|
|
||||||
|
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
// Byteswapping
|
// Byteswapping
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Globals.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
struct GPUDebugBuffer;
|
struct GPUDebugBuffer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user