From 3701b2b551504b39d5a06be952125d221d3bb62f Mon Sep 17 00:00:00 2001 From: Dante38490 Date: Sat, 22 Mar 2014 11:45:59 +0100 Subject: [PATCH 1/7] Update git-version-gen.cmd little change add adress website officiel --- Utilities/git-version-gen.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/git-version-gen.cmd b/Utilities/git-version-gen.cmd index d3a198846f..e55b6befc9 100644 --- a/Utilities/git-version-gen.cmd +++ b/Utilities/git-version-gen.cmd @@ -13,7 +13,7 @@ rem // A copy of the GPL 2.0 should have been included with the program. rem // If not, see http://www.gnu.org/licenses/ rem // Official git repository and contact information can be found at -rem // https://github.com/DHrpcs3/rpcs3 and http://code.google.com/p/rpcs3/. +rem // https://github.com/DHrpcs3/rpcs3 and http://rpcs3.net/. setlocal ENABLEDELAYEDEXPANSION From 874da27599cac2d29ea6f0be4b0f56a88c5caf91 Mon Sep 17 00:00:00 2001 From: lioncash Date: Mon, 24 Mar 2014 08:40:35 -0400 Subject: [PATCH 2/7] Initialize strings through the initializer list in PPUProgramCompiler.h --- rpcs3/Emu/Cell/PPUProgramCompiler.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUProgramCompiler.h b/rpcs3/Emu/Cell/PPUProgramCompiler.h index 70b16ee58f..857965b95f 100644 --- a/rpcs3/Emu/Cell/PPUProgramCompiler.h +++ b/rpcs3/Emu/Cell/PPUProgramCompiler.h @@ -24,10 +24,10 @@ struct Arg ArgType type; Arg(const wxString& _string, const u32 _value = 0, const ArgType _type = ARG_ERR) - : value(_value) + : string(_string.ToStdString()) + , value(_value) , type(_type) { - string = _string.ToStdString(); } }; @@ -68,19 +68,19 @@ class CompilePPUProgram s32 m_addr; Branch(const wxString& name, s32 pos) - : m_pos(pos) + : m_name(name.ToStdString()) + , m_pos(pos) , m_id(-1) , m_addr(-1) { - m_name = name.ToStdString(); } Branch(const wxString& name, u32 id, u32 addr) - : m_pos(-1) + : m_name(name.ToStdString()) + , m_pos(-1) , m_id(id) , m_addr(addr) { - m_name = name.ToStdString(); } }; @@ -105,9 +105,9 @@ class CompilePPUProgram u32 m_addr; SpData(const wxString& data, u32 addr) - : m_addr(addr) + : m_data(data.ToStdString()) + , m_addr(addr) { - m_data = data.ToStdString(); } }; From c00850c4c520c35ed7d28271f0cf8acb4ca5d7d7 Mon Sep 17 00:00:00 2001 From: lioncash Date: Mon, 24 Mar 2014 08:47:30 -0400 Subject: [PATCH 3/7] Minor const correctness --- rpcs3/Emu/Cell/PPUThread.h | 2 +- rpcs3/Emu/GS/RSXThread.h | 2 +- rpcs3/Emu/HDD/HDD.h | 2 +- rpcs3/Emu/Io/Keyboard.h | 2 +- rpcs3/Emu/Io/Mouse.h | 2 +- rpcs3/Emu/Io/Pad.h | 2 +- rpcs3/Emu/event.h | 2 +- rpcs3/Loader/ELF.h | 2 +- rpcs3/Loader/Loader.h | 8 ++++---- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.h b/rpcs3/Emu/Cell/PPUThread.h index 0302180399..d0db068ab9 100644 --- a/rpcs3/Emu/Cell/PPUThread.h +++ b/rpcs3/Emu/Cell/PPUThread.h @@ -401,7 +401,7 @@ struct PPCdouble return (u64&)_double; } - u32 GetZerosCount() + u32 GetZerosCount() const { u32 ret; u32 dd = frac >> 32; diff --git a/rpcs3/Emu/GS/RSXThread.h b/rpcs3/Emu/GS/RSXThread.h index c0e55d7871..75da6578b4 100644 --- a/rpcs3/Emu/GS/RSXThread.h +++ b/rpcs3/Emu/GS/RSXThread.h @@ -30,7 +30,7 @@ struct RSXVertexData RSXVertexData(); void Reset(); - bool IsEnabled() { return size > 0; } + bool IsEnabled() const { return size > 0; } void Load(u32 start, u32 count); u32 GetTypeSize(); diff --git a/rpcs3/Emu/HDD/HDD.h b/rpcs3/Emu/HDD/HDD.h index 3271ed4605..c403df21f5 100644 --- a/rpcs3/Emu/HDD/HDD.h +++ b/rpcs3/Emu/HDD/HDD.h @@ -235,7 +235,7 @@ public: return 0; } - u64 GetSize() + u64 GetSize() const { return m_info.size; } diff --git a/rpcs3/Emu/Io/Keyboard.h b/rpcs3/Emu/Io/Keyboard.h index 5a44408fde..1cd6201def 100644 --- a/rpcs3/Emu/Io/Keyboard.h +++ b/rpcs3/Emu/Io/Keyboard.h @@ -20,7 +20,7 @@ public: CellKbData& GetData(const u32 keyboard) { return m_keyboard_handler->GetData(keyboard); } CellKbConfig& GetConfig(const u32 keyboard) { return m_keyboard_handler->GetConfig(keyboard); } - bool IsInited() { return m_inited; } + bool IsInited() const { return m_inited; } //private: //DECLARE_EVENT_TABLE(); diff --git a/rpcs3/Emu/Io/Mouse.h b/rpcs3/Emu/Io/Mouse.h index 90f2336fbc..6b2e47611a 100644 --- a/rpcs3/Emu/Io/Mouse.h +++ b/rpcs3/Emu/Io/Mouse.h @@ -19,7 +19,7 @@ public: CellMouseData& GetData(const u32 mouse) { return m_mouse_handler->GetData(mouse); } CellMouseRawData& GetRawData(const u32 mouse) { return m_mouse_handler->GetRawData(mouse); } - bool IsInited() { return m_inited; } + bool IsInited() const { return m_inited; } //private: //DECLARE_EVENT_TABLE(); diff --git a/rpcs3/Emu/Io/Pad.h b/rpcs3/Emu/Io/Pad.h index 2fdafb0639..6860f7b3d2 100644 --- a/rpcs3/Emu/Io/Pad.h +++ b/rpcs3/Emu/Io/Pad.h @@ -18,7 +18,7 @@ public: PadInfo& GetInfo() { return m_pad_handler->GetInfo(); } Array