diff --git a/common/include/Utilities/Dependencies.h b/common/include/Utilities/Dependencies.h index 5683751d4..98b3e7e8a 100644 --- a/common/include/Utilities/Dependencies.h +++ b/common/include/Utilities/Dependencies.h @@ -185,6 +185,9 @@ extern const wxChar* __fastcall pxExpandMsg( const wxChar* key, const wxChar* en extern const wxChar* __fastcall pxGetTranslation( const wxChar* message ); extern bool pxIsEnglish( int id ); +extern wxString fromUTF8( const char* src ); +extern wxString fromAscii( const char* src ); + // -------------------------------------------------------------------------------------- // wxLt(x) [macro] // -------------------------------------------------------------------------------------- @@ -230,6 +233,7 @@ extern bool pxIsEnglish( int id ); #define pxE(key, english) pxExpandMsg( wxT(key), english ) +#include "Utilities/Assertions.h" +#include "Utilities/Exceptions.h" #include "Utilities/ScopedPtr.h" #include "Utilities/ScopedAlloc.h" -#include "Utilities/Assertions.h" diff --git a/common/include/Utilities/Exceptions.h b/common/include/Utilities/Exceptions.h index b1e355770..ca7365677 100644 --- a/common/include/Utilities/Exceptions.h +++ b/common/include/Utilities/Exceptions.h @@ -15,8 +15,8 @@ #pragma once -#include "Dependencies.h" -#include "StringHelpers.h" +#include "Assertions.h" +#include "ScopedPtr.h" // -------------------------------------------------------------------------------------- // DESTRUCTOR_CATCHALL - safe destructor helper diff --git a/common/include/Utilities/FixedPointTypes.h b/common/include/Utilities/FixedPointTypes.h index 71c451911..58f2eb6e1 100644 --- a/common/include/Utilities/FixedPointTypes.h +++ b/common/include/Utilities/FixedPointTypes.h @@ -16,7 +16,6 @@ #pragma once #include "Dependencies.h" -#include "Exceptions.h" template< int Precision > struct FixedInt diff --git a/common/include/Utilities/ScopedAlloc.h b/common/include/Utilities/ScopedAlloc.h index a6350f420..60751fafc 100644 --- a/common/include/Utilities/ScopedAlloc.h +++ b/common/include/Utilities/ScopedAlloc.h @@ -15,6 +15,8 @@ #pragma once +#include "Exceptions.h" + // pxUSE_SECURE_MALLOC - enables bounds checking on scoped malloc allocations. #ifndef pxUSE_SECURE_MALLOC @@ -142,7 +144,7 @@ template< typename T > class ScopedAlloc : public BaseScopedAlloc { public: - ScopedAlloc( size_t size=0 ) : BaseScopedAlloc() + ScopedAlloc( size_t size=0 ) : BaseScopedAlloc() { Alloc(size); } @@ -156,9 +158,9 @@ public: { safe_free(this->m_buffer); this->m_size = newsize; - if (!m_size) return; + if (!this->m_size) return; - this->m_buffer = (T*)malloc( m_size * sizeof(T) ); + this->m_buffer = (T*)malloc( this->m_size * sizeof(T) ); if (!this->m_buffer) throw Exception::OutOfMemory("ScopedAlloc"); } diff --git a/common/include/Utilities/StringHelpers.h b/common/include/Utilities/StringHelpers.h index 9b41976a9..1c4069299 100644 --- a/common/include/Utilities/StringHelpers.h +++ b/common/include/Utilities/StringHelpers.h @@ -64,9 +64,6 @@ public: extern void px_fputs( FILE* fp, const char* src ); -extern wxString fromUTF8( const char* src ); -extern wxString fromAscii( const char* src ); - // wxWidgets lacks one of its own... extern const wxRect wxDefaultRect; diff --git a/pcsx2/PrecompiledHeader.h b/pcsx2/PrecompiledHeader.h index 600039b40..c8bdcffc8 100644 --- a/pcsx2/PrecompiledHeader.h +++ b/pcsx2/PrecompiledHeader.h @@ -88,13 +88,11 @@ typedef int BOOL; #include "Pcsx2Defs.h" #include "i18n.h" -#include "Utilities/Assertions.h" #include "Utilities/FixedPointTypes.h" #include "Utilities/wxBaseTools.h" #include "Utilities/ScopedPtr.h" #include "Utilities/Path.h" #include "Utilities/Console.h" -#include "Utilities/Exceptions.h" #include "Utilities/MemcpyFast.h" #include "Utilities/General.h" #include "x86emitter/tools.h"