wxGui branch: [linux] Minor fixes to the GUI -- Ok/Cancel buttons line up where they should now. :)

CodeBlocks Project Changes:
 * Fixed some absolute folder specifications (/home/pubuntu/) which went unnoticed.
 * Enabled Precompiled header support (speeds up compilation about 40% for me).

git-svn-id: http://pcsx2.googlecode.com/svn/branches/wxgui@1081 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-04-28 20:26:43 +00:00
parent 77b8a4447e
commit 04beb1f29f
19 changed files with 104 additions and 907 deletions

View File

@ -9,7 +9,7 @@
<Target title="Debug"> <Target title="Debug">
<Option output="../../deps/debug/libsoundtouch-dbg" prefix_auto="1" extension_auto="1" /> <Option output="../../deps/debug/libsoundtouch-dbg" prefix_auto="1" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/SoundTouch/.objs/debug" /> <Option object_output="./.objs/debug" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />
@ -21,7 +21,7 @@
<Target title="Release"> <Target title="Release">
<Option output="../../deps/libsoundtouch" prefix_auto="1" extension_auto="1" /> <Option output="../../deps/libsoundtouch" prefix_auto="1" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/SoundTouch/.objs/release" /> <Option object_output="./.objs/release" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />
@ -37,7 +37,7 @@
<Target title="Devel"> <Target title="Devel">
<Option output="../../deps/devel/libsoundtouch-dev" prefix_auto="1" extension_auto="1" /> <Option output="../../deps/devel/libsoundtouch-dev" prefix_auto="1" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/SoundTouch/.objs/devel" /> <Option object_output="./.objs/devel" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />

View File

@ -9,7 +9,7 @@
<Target title="Debug"> <Target title="Debug">
<Option output="../../deps/debug/libbzip2-dbg" prefix_auto="1" extension_auto="1" /> <Option output="../../deps/debug/libbzip2-dbg" prefix_auto="1" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/bzip2/.objs/debug" /> <Option object_output="./.objs/debug" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />
@ -21,7 +21,7 @@
<Target title="Release"> <Target title="Release">
<Option output="../../deps/libbzip2" prefix_auto="1" extension_auto="1" /> <Option output="../../deps/libbzip2" prefix_auto="1" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/bzip2/.objs/release" /> <Option object_output="./.objs/release" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />
@ -37,7 +37,7 @@
<Target title="Devel"> <Target title="Devel">
<Option output="../../deps/devel/libbzip2-dev" prefix_auto="1" extension_auto="1" /> <Option output="../../deps/devel/libbzip2-dev" prefix_auto="1" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/bzip2/.objs/devel" /> <Option object_output="./.objs/devel" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />

View File

@ -9,7 +9,7 @@
<Target title="Debug"> <Target title="Debug">
<Option output="../../deps/debug/zlib-dbg" prefix_auto="0" extension_auto="1" /> <Option output="../../deps/debug/zlib-dbg" prefix_auto="0" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/zlib/.objs/debug" /> <Option object_output="./.objs/debug" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />
@ -22,7 +22,7 @@
<Target title="Release"> <Target title="Release">
<Option output="../../deps/zlib" prefix_auto="0" extension_auto="1" /> <Option output="../../deps/zlib" prefix_auto="0" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/zlib/.objs/release" /> <Option object_output="./.objs/release" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />
@ -35,7 +35,7 @@
<Target title="Devel"> <Target title="Devel">
<Option output="../../deps/devel/zlib-dev" prefix_auto="0" extension_auto="1" /> <Option output="../../deps/devel/zlib-dev" prefix_auto="0" extension_auto="1" />
<Option working_dir="" /> <Option working_dir="" />
<Option object_output="/home/pubuntu/Documents/pcsx2-newgui/3rdparty/zlib/.objs/devel" /> <Option object_output="./.objs/devel" />
<Option type="2" /> <Option type="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option createDefFile="1" /> <Option createDefFile="1" />

View File

@ -5,12 +5,12 @@
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
@ -18,6 +18,8 @@
#ifndef __PS2ETYPES_H__ #ifndef __PS2ETYPES_H__
#define __PS2ETYPES_H__ #define __PS2ETYPES_H__
#include <stddef.h>
#if defined (__linux__) && !defined(__LINUX__) // some distributions are lower case #if defined (__linux__) && !defined(__LINUX__) // some distributions are lower case
#define __LINUX__ #define __LINUX__
#endif #endif
@ -86,7 +88,7 @@ typedef unsigned int uint;
#define __naked __declspec(naked) #define __naked __declspec(naked)
#define __unused /*unused*/ #define __unused /*unused*/
#define __noinline __declspec(noinline) #define __noinline __declspec(noinline)
#define CALLBACK __stdcall #define CALLBACK __stdcall
#else // _MSC_VER #else // _MSC_VER

View File

@ -5,26 +5,28 @@
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef __PCSX2DEFS_H__ #ifndef __PCSX2DEFS_H__
#define __PCSX2DEFS_H__ #define __PCSX2DEFS_H__
#if defined (__linux__) && !defined(__LINUX__) // some distributions are lower case #ifndef __LINUX__
#define __LINUX__ # if defined (__linux__) // some distributions are lower case
#endif # define __LINUX__
# endif
#ifdef __CYGWIN__ # ifdef __CYGWIN__
#define __LINUX__ # define __LINUX__
# endif
#endif #endif
// Renamed ARRAYSIZE to ArraySize -- looks nice and gets rid of Windows.h conflicts (air) // Renamed ARRAYSIZE to ArraySize -- looks nice and gets rid of Windows.h conflicts (air)

View File

@ -21,27 +21,19 @@
CheckedStaticBox::CheckedStaticBox( wxWindow* parent, int orientation, const wxString& title, int id ) : CheckedStaticBox::CheckedStaticBox( wxWindow* parent, int orientation, const wxString& title, int id ) :
wxPanel( parent ), wxPanel( parent ),
m_StaticBoxSizer( *new wxStaticBoxSizer( wxVERTICAL, this ) ), m_MasterSizer( *new wxBoxSizer( wxVERTICAL ) ),
ThisToggle( *new wxCheckBox( this, id, title, wxPoint( 8, 1 ) ) ), ThisToggle( *new wxCheckBox( this, id, title, wxPoint( 8, 0 ) ) ),
ThisSizer( ( orientation != wxVERTICAL ) ? *new wxBoxSizer( orientation ) : m_StaticBoxSizer ) ThisSizer( *new wxStaticBoxSizer( orientation, this ) )
{ {
// Note on initializers above: Spacer required! m_MasterSizer.Add( &ThisToggle );
// The checkbox uses more room than a standard group box label, so we need to insert some space m_MasterSizer.Add( &ThisSizer, wxSizerFlags().Expand() );
// between the top of the groupbox and the first item. If the user is wanting a horizontal sizer
// then we'll need to create a vertical sizer to act as a container for the spacer:
ThisToggle.SetSize( ThisToggle.GetSize() + wxSize( 8, 0 ) );
m_StaticBoxSizer.AddSpacer( 7 );
SetSizer( &m_StaticBoxSizer );
if( &ThisSizer != &m_StaticBoxSizer )
m_StaticBoxSizer.Add( &ThisSizer );
// Ensure that the right-side of the static group box isn't too cozy: // Ensure that the right-side of the static group box isn't too cozy:
m_StaticBoxSizer.SetMinSize( ThisToggle.GetSize() + wxSize( 22, 1 ) ); m_MasterSizer.SetMinSize( ThisToggle.GetSize() + wxSize( 32, 0 ) );
Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( CheckedStaticBox::MainToggle_Click ) ); SetSizer( &m_MasterSizer );
Connect( id, wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( CheckedStaticBox::MainToggle_Click ) );
} }
// Adds a checkbox to this group panel's base sizer. // Adds a checkbox to this group panel's base sizer.
@ -54,10 +46,6 @@ wxCheckBox& CheckedStaticBox::AddCheckBox( const wxString& label, wxWindowID id
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// //
/*BEGIN_EVENT_TABLE(CheckedStaticBox, wxPanel)
EVT_CHECKBOX(wxID_ANY, MainToggle_Click)
END_EVENT_TABLE()*/
void CheckedStaticBox::MainToggle_Click( wxCommandEvent& evt ) void CheckedStaticBox::MainToggle_Click( wxCommandEvent& evt )
{ {
SetValue( evt.IsChecked() ); SetValue( evt.IsChecked() );

View File

@ -23,7 +23,7 @@
class CheckedStaticBox : public wxPanel class CheckedStaticBox : public wxPanel
{ {
protected: protected:
wxStaticBoxSizer& m_StaticBoxSizer; wxBoxSizer& m_MasterSizer;
public: public:
wxBoxSizer& ThisSizer; // Boxsizer which holds all child items. wxBoxSizer& ThisSizer; // Boxsizer which holds all child items.
@ -37,9 +37,6 @@ public:
wxCheckBox& AddCheckBox( const wxString& label, wxWindowID id=wxID_ANY ); wxCheckBox& AddCheckBox( const wxString& label, wxWindowID id=wxID_ANY );
protected:
//DECLARE_EVENT_TABLE();
public: public:
// Event handler for click events for the main checkbox (default behavior: enables/disables all child controls) // Event handler for click events for the main checkbox (default behavior: enables/disables all child controls)
// This function can be overridden to implement custom handling of check enable/disable behavior. // This function can be overridden to implement custom handling of check enable/disable behavior.

View File

@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "PrecompiledHeader.h" #include "PrecompiledHeader.h"
#include "DebugTools/Debug.h" #include "DebugTools/Debug.h"
#include "LogOptionsDialog.h" #include "LogOptionsDialog.h"
@ -128,11 +128,15 @@ LogOptionsDialog::LogOptionsDialog(wxWindow* parent, int id, const wxPoint& pos,
wxBoxSizer& mainsizer = *new wxBoxSizer( wxVERTICAL ); wxBoxSizer& mainsizer = *new wxBoxSizer( wxVERTICAL );
wxBoxSizer& topSizer = *new wxBoxSizer( wxHORIZONTAL ); wxBoxSizer& topSizer = *new wxBoxSizer( wxHORIZONTAL );
topSizer.Add( &eeBox, stdSpacingFlags ); // Expand comments below are form an attempt of mine to make the dialog box resiable, but it
topSizer.Add( &iopSizer, stdSpacingFlags ); // only wanted to work right for the miscSizer and I couldn't figure out why the CheckStaticBox
// panel wouldn't also resize to fit the window.. :( -- air
mainsizer.Add( &topSizer ); // topsizer has it's own padding. topSizer.Add( &eeBox, stdSpacingFlags ); //.Expand() );
mainsizer.Add( &miscSizer, stdSpacingFlags ); topSizer.Add( &iopSizer, stdSpacingFlags ); //.Expand() );
mainsizer.Add( &topSizer ); //, wxSizerFlags().Expand() ); // topsizer has it's own padding.
mainsizer.Add( &miscSizer, stdSpacingFlags ); //.Expand() );
AddOkCancel( mainsizer ); AddOkCancel( mainsizer );
@ -152,7 +156,7 @@ void LogOptionsDialog::LogChecked(wxCommandEvent &evt)
{ {
// [TODO] : Implement me! // [TODO] : Implement me!
} }
evt.Skip(); evt.Skip();
} }

View File

@ -31,7 +31,7 @@ namespace wxHelpers
wxSizerFlags stdSpacingFlags( wxSizerFlags().Border( wxALL, 6 ) ); wxSizerFlags stdSpacingFlags( wxSizerFlags().Border( wxALL, 6 ) );
wxSizerFlags stdButtonSizerFlags( wxSizerFlags().Align(wxALIGN_RIGHT).Border() ); wxSizerFlags stdButtonSizerFlags( wxSizerFlags().Align(wxALIGN_RIGHT).Border() );
wxSizerFlags CheckboxFlags( wxSizerFlags().Border( wxALL, 6 ).Expand() ); wxSizerFlags CheckboxFlags( wxSizerFlags().Border( wxALL, 6 ).Expand() );
wxCheckBox& AddCheckBoxTo( wxWindow* parent, wxBoxSizer& sizer, const wxString& label, wxWindowID id ) wxCheckBox& AddCheckBoxTo( wxWindow* parent, wxBoxSizer& sizer, const wxString& label, wxWindowID id )
{ {
wxCheckBox* retval = new wxCheckBox( parent, id, label ); wxCheckBox* retval = new wxCheckBox( parent, id, label );
@ -43,11 +43,16 @@ namespace wxHelpers
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// //
wxDialogWithHelpers::wxDialogWithHelpers( wxWindow* parent, int id, const wxString& title, bool hasContextHelp, const wxPoint& pos, const wxSize& size ) : wxDialogWithHelpers::wxDialogWithHelpers( wxWindow* parent, int id, const wxString& title, bool hasContextHelp, const wxPoint& pos, const wxSize& size ) :
wxDialog( parent, id, title, pos, size ), wxDialog( parent, id, title, pos, size ), //, (wxCAPTION | wxMAXIMIZE | wxCLOSE_BOX | wxRESIZE_BORDER) ), // flags for resizable dialogs, currently unused.
m_hasContextHelp( hasContextHelp ) m_hasContextHelp( hasContextHelp )
{ {
if( hasContextHelp ) if( hasContextHelp )
wxHelpProvider::Set( new wxSimpleHelpProvider() ); wxHelpProvider::Set( new wxSimpleHelpProvider() );
// Note: currently the Close (X) button doesn't appear to work in dialogs. Docs indicate
// that is should so I presume the problem is in wxWidgets and that (hopefully!) an updated
// version will fix it later. I treid to fix it using a manual Connect but it didn't do
// any good.
} }
wxCheckBox& wxDialogWithHelpers::AddCheckBox( wxBoxSizer& sizer, const wxString& label, wxWindowID id ) wxCheckBox& wxDialogWithHelpers::AddCheckBox( wxBoxSizer& sizer, const wxString& label, wxWindowID id )
@ -65,9 +70,11 @@ void wxDialogWithHelpers::AddOkCancel( wxBoxSizer &sizer )
SetExtraStyle( wxDIALOG_EX_CONTEXTHELP ); SetExtraStyle( wxDIALOG_EX_CONTEXTHELP );
#ifndef __WXMSW__ #ifndef __WXMSW__
// create a sizer to hold the help and ok/cancel buttons. // create a sizer to hold the help and ok/cancel buttons, for platforms
// that need a custom help icon. [fixme: help icon prolly better off somewhere else]
buttonSizer = new wxBoxSizer( wxHORIZONTAL ); buttonSizer = new wxBoxSizer( wxHORIZONTAL );
buttonSizer->Add( new wxContextHelpButton(this), wxHelpers::stdButtonSizerFlags.Align( wxALIGN_LEFT ) ); buttonSizer->Add( new wxContextHelpButton(this), wxHelpers::stdButtonSizerFlags.Align( wxALIGN_LEFT ) );
sizer.Add( buttonSizer, wxSizerFlags().Center() );
#endif #endif
} }
buttonSizer->Add( CreateStdDialogButtonSizer( wxOK | wxCANCEL ), wxHelpers::stdButtonSizerFlags ); buttonSizer->Add( CreateStdDialogButtonSizer( wxOK | wxCANCEL ), wxHelpers::stdButtonSizerFlags );

View File

@ -15,7 +15,7 @@ namespace wxHelpers
// users always expect it to be. Most likely Mac platforms expect it on the left side // users always expect it to be. Most likely Mac platforms expect it on the left side
// just because it's *not* where win32 sticks it. Too bad! // just because it's *not* where win32 sticks it. Too bad!
extern wxSizerFlags stdButtonSizerFlags; extern wxSizerFlags stdButtonSizerFlags;
extern wxSizerFlags CheckboxFlags; extern wxSizerFlags CheckboxFlags;
} }
@ -25,12 +25,12 @@ class wxDialogWithHelpers : public wxDialog
{ {
protected: protected:
bool m_hasContextHelp; bool m_hasContextHelp;
public: public:
wxDialogWithHelpers(wxWindow* parent, int id, const wxString& title, bool hasContextHelp, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize ); wxDialogWithHelpers(wxWindow* parent, int id, const wxString& title, bool hasContextHelp, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize );
protected: protected:
wxCheckBox& AddCheckBox( wxBoxSizer& sizer, const wxString& label, wxWindowID id=wxID_ANY ); wxCheckBox& AddCheckBox( wxBoxSizer& sizer, const wxString& label, wxWindowID id=wxID_ANY );
void AddOkCancel( wxBoxSizer& sizer ); void AddOkCancel( wxBoxSizer& sizer );
}; };

View File

@ -1,4 +1,7 @@
#pragma once #ifndef PCSX2_PRECOMPILED_HEADER
#define PCSX2_PRECOMPILED_HEADER
//#pragma once
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
// Microsoft specific STL extensions for bounds checking and stuff: Enabled in devbuilds, // Microsoft specific STL extensions for bounds checking and stuff: Enabled in devbuilds,
@ -15,11 +18,6 @@
#define NOMINMAX // Disables other libs inclusion of their own min/max macros (we use std instead) #define NOMINMAX // Disables other libs inclusion of their own min/max macros (we use std instead)
// __LINUX__ defined in wxWidgets.
//#if defined (__linux__) // some distributions are lower case
//# define __LINUX__
//#endif
#ifdef _WIN32 #ifdef _WIN32
// disable warning C4244: '=' : conversion from 'big' to 'small', possible loss of data // disable warning C4244: '=' : conversion from 'big' to 'small', possible loss of data
# pragma warning(disable:4244) # pragma warning(disable:4244)
@ -184,3 +182,5 @@ static __forceinline u32 timeGetTime()
static const bool IsDebugBuild = false; static const bool IsDebugBuild = false;
#endif #endif
#endif

View File

@ -16,8 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef __SAFEARRAY_H__ #pragma once
#define __SAFEARRAY_H__
extern void* __fastcall pcsx2_aligned_malloc(size_t size, size_t align); extern void* __fastcall pcsx2_aligned_malloc(size_t size, size_t align);
extern void* __fastcall pcsx2_aligned_realloc(void* handle, size_t size, size_t align); extern void* __fastcall pcsx2_aligned_realloc(void* handle, size_t size, size_t align);
@ -75,7 +74,7 @@ class SafeArray : public NoncopyableObject
public: public:
static const int DefaultChunkSize = 0x1000 * sizeof(T); static const int DefaultChunkSize = 0x1000 * sizeof(T);
public: public:
const wxString Name; // user-assigned block name const wxString Name; // user-assigned block name
int ChunkSize; int ChunkSize;
@ -90,7 +89,7 @@ protected:
// use its own memory allocation (with an aligned memory, for example). // use its own memory allocation (with an aligned memory, for example).
// Throws: // Throws:
// Exception::OutOfMemory if the allocated_mem pointer is NULL. // Exception::OutOfMemory if the allocated_mem pointer is NULL.
explicit SafeArray( const wxString& name, T* allocated_mem, int initSize ) : explicit SafeArray( const wxString& name, T* allocated_mem, int initSize ) :
Name( name ) Name( name )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( allocated_mem ) , m_ptr( allocated_mem )
@ -111,7 +110,7 @@ public:
safe_free( m_ptr ); safe_free( m_ptr );
} }
explicit SafeArray( const wxString& name=wxT("Unnamed") ) : explicit SafeArray( const wxString& name=wxT("Unnamed") ) :
Name( name ) Name( name )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( NULL ) , m_ptr( NULL )
@ -119,7 +118,7 @@ public:
{ {
} }
explicit SafeArray( const char* name ) : explicit SafeArray( const char* name ) :
Name( wxString::FromAscii(name) ) Name( wxString::FromAscii(name) )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( NULL ) , m_ptr( NULL )
@ -127,7 +126,7 @@ public:
{ {
} }
explicit SafeArray( int initialSize, const wxString& name=wxT("Unnamed") ) : explicit SafeArray( int initialSize, const wxString& name=wxT("Unnamed") ) :
Name( name ) Name( name )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( (T*)malloc( initialSize * sizeof(T) ) ) , m_ptr( (T*)malloc( initialSize * sizeof(T) ) )
@ -137,7 +136,7 @@ public:
throw Exception::OutOfMemory(); throw Exception::OutOfMemory();
} }
explicit SafeArray( int initialSize, const char* name ) : explicit SafeArray( int initialSize, const char* name ) :
Name( wxString::FromAscii(name) ) Name( wxString::FromAscii(name) )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( (T*)malloc( initialSize * sizeof(T) ) ) , m_ptr( (T*)malloc( initialSize * sizeof(T) ) )
@ -218,7 +217,7 @@ class SafeList
public: public:
static const int DefaultChunkSize = 0x80 * sizeof(T); static const int DefaultChunkSize = 0x80 * sizeof(T);
public: public:
const wxString Name; // user-assigned block name const wxString Name; // user-assigned block name
int ChunkSize; // assigned DefaultChunkSize on init, reconfigurable at any time. int ChunkSize; // assigned DefaultChunkSize on init, reconfigurable at any time.
@ -234,19 +233,19 @@ protected:
{ {
return (T*)realloc( m_ptr, newsize * sizeof(T) ); return (T*)realloc( m_ptr, newsize * sizeof(T) );
} }
void _boundsCheck( uint i ) const void _boundsCheck( uint i ) const
{ {
if( IsDevBuild && i >= (uint)m_length ) if( IsDevBuild && i >= (uint)m_length )
throw Exception::IndexBoundsFault( Name, i, m_length ); throw Exception::IndexBoundsFault( Name, i, m_length );
} }
public: public:
virtual ~SafeList() virtual ~SafeList()
{ {
} }
explicit SafeList( const wxString& name=wxT("Unnamed") ) : explicit SafeList( const wxString& name=wxT("Unnamed") ) :
Name( name ) Name( name )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( NULL ) , m_ptr( NULL )
@ -255,7 +254,7 @@ public:
{ {
} }
explicit SafeList( const char* name ) : explicit SafeList( const char* name ) :
Name( wxString::FromAscii(name) ) Name( wxString::FromAscii(name) )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( NULL ) , m_ptr( NULL )
@ -264,7 +263,7 @@ public:
{ {
} }
explicit SafeList( int initialSize, const wxString& name=wxT("Unnamed") ) : explicit SafeList( int initialSize, const wxString& name=wxT("Unnamed") ) :
Name( name ) Name( name )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( (T*)malloc( initialSize * sizeof(T) ) ) , m_ptr( (T*)malloc( initialSize * sizeof(T) ) )
@ -275,7 +274,7 @@ public:
throw Exception::OutOfMemory(); throw Exception::OutOfMemory();
} }
explicit SafeList( int initialSize, const char* name ) : explicit SafeList( int initialSize, const char* name ) :
Name( wxString::FromAscii(name) ) Name( wxString::FromAscii(name) )
, ChunkSize( DefaultChunkSize ) , ChunkSize( DefaultChunkSize )
, m_ptr( (T*)malloc( initialSize * sizeof(T) ) ) , m_ptr( (T*)malloc( initialSize * sizeof(T) ) )
@ -309,7 +308,7 @@ public:
wxsFormat( wxsFormat(
wxT("Out-of-memory on SafeList block re-allocation.\n") wxT("Out-of-memory on SafeList block re-allocation.\n")
wxT("Old size: %d bytes, New size: %d bytes"), wxT("Old size: %d bytes, New size: %d bytes"),
m_allocsize, newalloc m_allocsize, newalloc
) )
); );
} }
@ -321,14 +320,14 @@ public:
// DevBuilds : Throws Exception::IndexBoundsFault() if the index is invalid. // DevBuilds : Throws Exception::IndexBoundsFault() if the index is invalid.
T& operator[]( int idx ) { return *_getPtr( (uint)idx ); } T& operator[]( int idx ) { return *_getPtr( (uint)idx ); }
const T& operator[]( int idx ) const { return *_getPtr( (uint)idx ); } const T& operator[]( int idx ) const { return *_getPtr( (uint)idx ); }
int Add( const T& src ) int Add( const T& src )
{ {
MakeRoomFor( m_length + 1 ); MakeRoomFor( m_length + 1 );
m_ptr[m_length] = src; m_ptr[m_length] = src;
return m_length++; return m_length++;
} }
// Performs a standard array-copy removal of the given item. All items past the // Performs a standard array-copy removal of the given item. All items past the
// given item are copied over. Throws Exception::IndexBoundsFault() if the index // given item are copied over. Throws Exception::IndexBoundsFault() if the index
// is invalid (devbuilds only) // is invalid (devbuilds only)
@ -392,30 +391,30 @@ public:
// mptr is set to null, so the parent class's destructor won't re-free it. // mptr is set to null, so the parent class's destructor won't re-free it.
} }
explicit SafeAlignedArray( const wxString& name=wxT("Unnamed") ) : explicit SafeAlignedArray( const wxString& name=wxT("Unnamed") ) :
SafeArray<T>::SafeArray( name ) SafeArray<T>::SafeArray( name )
{ {
} }
explicit SafeAlignedArray( const char* name ) : explicit SafeAlignedArray( const char* name ) :
SafeArray<T>::SafeArray( name ) SafeArray<T>::SafeArray( name )
{ {
} }
explicit SafeAlignedArray( int initialSize, const wxString& name=wxT("Unnamed") ) : explicit SafeAlignedArray( int initialSize, const wxString& name=wxT("Unnamed") ) :
SafeArray<T>::SafeArray( SafeArray<T>::SafeArray(
_getName(name), _getName(name),
(T*)_aligned_malloc( initialSize * sizeof(T), Alignment ), (T*)_aligned_malloc( initialSize * sizeof(T), Alignment ),
initialSize initialSize
) )
{ {
} }
explicit SafeAlignedArray( int initialSize, const char* name ) : explicit SafeAlignedArray( int initialSize, const char* name ) :
SafeArray<T>::SafeArray( SafeArray<T>::SafeArray(
_getName(wxString::FromAscii(name)), _getName(wxString::FromAscii(name)),
(T*)_aligned_malloc( initialSize * sizeof(T), Alignment ), (T*)_aligned_malloc( initialSize * sizeof(T), Alignment ),
initialSize initialSize
) )
{ {
} }
@ -432,5 +431,3 @@ public:
// For lack of a better place for now (they depend on SafeList so they can't go in StringUtil) // For lack of a better place for now (they depend on SafeList so they can't go in StringUtil)
extern void SplitString( SafeList<wxString>& dest, const wxString& src, const wxString& delims ); extern void SplitString( SafeList<wxString>& dest, const wxString& src, const wxString& delims );
extern void JoinString( wxString& dest, const SafeList<wxString>& src, const wxString& separator ); extern void JoinString( wxString& dest, const SafeList<wxString>& src, const wxString& separator );
#endif

View File

@ -16,10 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef __SYSTEM_H__ #pragma once
#define __SYSTEM_H__
#include "PS2Etypes.h"
#include "Pcsx2Config.h" #include "Pcsx2Config.h"
#include "SafeArray.h" #include "SafeArray.h"
#include "Misc.h" #include "Misc.h"
@ -47,7 +45,7 @@ namespace HostSys
extern void Munmap(uptr base, u32 size); extern void Munmap(uptr base, u32 size);
extern void MemProtect( void* baseaddr, size_t size, PageProtectionMode mode, bool allowExecution=false ); extern void MemProtect( void* baseaddr, size_t size, PageProtectionMode mode, bool allowExecution=false );
static __forceinline void Munmap( void* base, u32 size ) static __forceinline void Munmap( void* base, u32 size )
{ {
Munmap( (uptr)base, size ); Munmap( (uptr)base, size );
@ -76,7 +74,7 @@ extern void SysPrepareExecution( const wxString& elf_file, bool use_bios=false )
extern void SysExecute(); extern void SysExecute();
// Maps a block of memory for use as a recompiled code buffer, and ensures that the // Maps a block of memory for use as a recompiled code buffer, and ensures that the
// allocation is below a certain memory address (specified in "bounds" parameter). // allocation is below a certain memory address (specified in "bounds" parameter).
// The allocated block has code execution privileges. // The allocated block has code execution privileges.
// Returns NULL on allocation failure. // Returns NULL on allocation failure.
@ -201,5 +199,3 @@ using Console::Color_Magenta;
using Console::Color_Cyan; using Console::Color_Cyan;
using Console::Color_Yellow; using Console::Color_Yellow;
using Console::Color_White; using Console::Color_White;
#endif /* __SYSTEM_H__ */

View File

@ -1,5 +1,6 @@
#include "Win32.h" #include "PrecompiledHeader.h"
#include "RedtapeWindows.h"
#include "SamplProf.h" #include "SamplProf.h"
#include <map> #include <map>

View File

@ -270,410 +270,6 @@
<References> <References>
</References> </References>
<Files> <Files>
<Filter
Name="OldGUI"
>
<File
RelativePath="..\AdvancedDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\ConfigDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\CpuDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\ini.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\McdConfigDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\PatchBrowser.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\WindowsPCH.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\WinSysExec.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<Filter
Name="Debugger"
>
<File
RelativePath=".\..\Debugger.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\..\Debugger.h"
>
</File>
<File
RelativePath=".\..\DebugMemory.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\Win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\Win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\..\Debugreg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\Win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\Win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Resources"
>
<File
RelativePath="..\Cdrom02.ico"
>
</File>
<File
RelativePath="..\debugger.rc"
>
</File>
<File
RelativePath="..\pcsx2.rc"
>
</File>
<File
RelativePath="..\..\pcsxAbout.bmp"
>
</File>
<File
RelativePath="..\ps2_silver.bmp"
>
</File>
</Filter>
<Filter
Name="Include"
>
<File
RelativePath="..\..\HostGui.h"
>
</File>
<File
RelativePath="..\McdsDlg.h"
>
</File>
<File
RelativePath="..\resource.h"
>
</File>
<File
RelativePath="..\Win32.h"
>
</File>
<File
RelativePath="..\WinDebugResource.h"
>
</File>
</Filter>
</Filter>
<Filter <Filter
Name="Elf" Name="Elf"
> >
@ -792,24 +388,6 @@
<File <File
RelativePath="..\WinMisc.cpp" RelativePath="..\WinMisc.cpp"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
</File> </File>
<Filter <Filter
Name="TinyXML" Name="TinyXML"
@ -1151,315 +729,7 @@
Name="Linux" Name="Linux"
> >
<File <File
RelativePath="..\..\Linux\AboutDlg.cpp" RelativePath="..\..\Linux\HostGui.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\AdvancedDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\ConfigDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\CpuDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\DebugDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\HacksDlg.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\LnxConsole.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\LnxMain.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\LnxMisc.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\LnxSysExec.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\LnxThreads.cpp"
>
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Linux\Pref.cpp"
> >
<FileConfiguration <FileConfiguration
Name="Debug|Win32" Name="Debug|Win32"
@ -1517,22 +787,6 @@
<Filter <Filter
Name="Include" Name="Include"
> >
<File
RelativePath="..\..\Linux\ConfigDlg.h"
>
</File>
<File
RelativePath="..\..\Linux\DebugDlg.h"
>
</File>
<File
RelativePath="..\..\Linux\LnxMain.h"
>
</File>
<File
RelativePath="..\..\Linux\LnxSysExec.h"
>
</File>
<File <File
RelativePath="..\..\Linux\memzero.h" RelativePath="..\..\Linux\memzero.h"
> >
@ -2919,33 +2173,6 @@
<File <File
RelativePath="..\SamplProf.cpp" RelativePath="..\SamplProf.cpp"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
</File> </File>
<File <File
RelativePath="..\..\Saveslots.cpp" RelativePath="..\..\Saveslots.cpp"
@ -2997,33 +2224,6 @@
<File <File
RelativePath="..\WinThreads.cpp" RelativePath="..\WinThreads.cpp"
> >
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Devel|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
PrecompiledHeaderThrough="Win32.h"
PrecompiledHeaderFile="$(IntDir)\win32.pch"
/>
</FileConfiguration>
</File> </File>
<Filter <Filter
Name="Include" Name="Include"
@ -3032,6 +2232,10 @@
RelativePath="..\..\Exceptions.h" RelativePath="..\..\Exceptions.h"
> >
</File> </File>
<File
RelativePath="..\..\HostGui.h"
>
</File>
<File <File
RelativePath="..\..\MemcpyFast.h" RelativePath="..\..\MemcpyFast.h"
> >
@ -3071,7 +2275,7 @@
</Filter> </Filter>
</Filter> </Filter>
<Filter <Filter
Name="Dynarec Emitter" Name="x86Emitter"
> >
<File <File
RelativePath="..\..\x86\ix86\ix86.cpp" RelativePath="..\..\x86\ix86\ix86.cpp"

View File

@ -16,8 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#ifndef _PCSX2_WIN32_H__ #pragma once
#define _PCSX2_WIN32_H__
#include "RedtapeWindows.h" // our "safe" include of windows (sets version and undefs uselessness) #include "RedtapeWindows.h" // our "safe" include of windows (sets version and undefs uselessness)
#include <commctrl.h> #include <commctrl.h>
@ -171,5 +170,3 @@ extern bool StreamException_LogLastError( const wxString& streamname, const wxCh
// to already decompressed files). // to already decompressed files).
extern void NTFS_CompressFile( const wxString& file, bool compressStatus=true ); extern void NTFS_CompressFile( const wxString& file, bool compressStatus=true );
#endif

View File

@ -16,7 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "Win32.h" #include "PrecompiledHeader.h"
#include "RedtapeWindows.h"
#include "cdvd.h" #include "cdvd.h"
static LARGE_INTEGER lfreq; static LARGE_INTEGER lfreq;

View File

@ -17,7 +17,8 @@
*/ */
#include "Win32.h" #include "PrecompiledHeader.h"
#include "RedtapeWindows.h"
#include "System.h" #include "System.h"
#include "ix86/ix86_types.h" #include "ix86/ix86_types.h"

View File

@ -5,12 +5,12 @@
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA