mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 04:02:42 +01:00
remove unexplained commented out code that I added myself with the last PR
* remove unexplained commented out code that I added myself * revert asmjit settings change that was meant to only be local for me
This commit is contained in:
parent
bd6837f2f9
commit
e85abdeb2c
@ -9,29 +9,6 @@
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
//int CmpNoCase(const std::string &str, const std::string &str2)
|
||||
//{
|
||||
// bool same;
|
||||
// if (str.size() > str2.size())
|
||||
// {
|
||||
// same = std::equal(str.cbegin(), str.cend(), str2.cbegin(), [](const char a, const char b) -> bool{ return tolower(a) == tolower(b); });
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// same = std::equal(str2.cbegin(), str2.cend(), str.cbegin(), [](const char a, const char b) -> bool{ return tolower(a) == tolower(b); });
|
||||
// }
|
||||
// if (same)
|
||||
// {
|
||||
// return 0;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return 1;
|
||||
// }
|
||||
//}
|
||||
|
||||
namespace fmt{
|
||||
using std::string;
|
||||
using std::ostream;
|
||||
|
@ -5,11 +5,6 @@ rSemaphore::rSemaphore()
|
||||
handle = reinterpret_cast<void*>(new wxSemaphore());
|
||||
}
|
||||
|
||||
//rSemaphore::rSemaphore(rSemaphore& other)
|
||||
//{
|
||||
// handle = reinterpret_cast<void*>(new wxSemaphore(*reinterpret_cast<wxSemaphore*>(other.handle)));
|
||||
//}
|
||||
|
||||
rSemaphore::~rSemaphore()
|
||||
{
|
||||
delete reinterpret_cast<wxSemaphore*>(handle);
|
||||
@ -53,11 +48,6 @@ rCriticalSection::rCriticalSection()
|
||||
handle = reinterpret_cast<void*>(new wxCriticalSection());
|
||||
}
|
||||
|
||||
//rCriticalSection::rCriticalSection(rCriticalSection&)
|
||||
//{
|
||||
// handle = reinterpret_cast<void*>(new wxCriticalSection(*reinterpret_cast<wxCriticalSection*>(other.handle)));
|
||||
//}
|
||||
|
||||
rCriticalSection::~rCriticalSection()
|
||||
{
|
||||
delete reinterpret_cast<wxCriticalSection*>(handle);
|
||||
@ -78,11 +68,6 @@ rTimer::rTimer()
|
||||
handle = reinterpret_cast<void*>(new wxTimer());
|
||||
}
|
||||
|
||||
//rTimer::rTimer(rTimer&)
|
||||
//{
|
||||
// handle = reinterpret_cast<void*>(new wxTimer(*reinterpret_cast<wxTimer*>(other.handle)));
|
||||
//}
|
||||
|
||||
rTimer::~rTimer()
|
||||
{
|
||||
delete reinterpret_cast<wxTimer*>(handle);
|
||||
|
@ -2,22 +2,6 @@
|
||||
|
||||
const int rPATH_MKDIR_FULL = wxPATH_MKDIR_FULL;
|
||||
|
||||
//enum rSeekMode
|
||||
//{
|
||||
// rFromStart,
|
||||
// rFromCurrent,
|
||||
// rFromEnd
|
||||
//};
|
||||
//
|
||||
// enum OpenMode
|
||||
// {
|
||||
// read,
|
||||
// write,
|
||||
// read_write,
|
||||
// write_append,
|
||||
// write_excl
|
||||
// };
|
||||
|
||||
wxFile::OpenMode convertOpenMode(rFile::OpenMode open)
|
||||
{
|
||||
wxFile::OpenMode mode;
|
||||
|
@ -26,11 +26,6 @@ rCanvas::~rCanvas()
|
||||
delete static_cast<wxGLCanvas*>(handle);
|
||||
}
|
||||
|
||||
//void *rCanvas::GetCurrent()
|
||||
//{
|
||||
// static_cast<wxGLCanvas*>(handle)->GetCur;
|
||||
//}
|
||||
|
||||
bool rCanvas::SetCurrent(void *ctx)
|
||||
{
|
||||
return static_cast<wxGLCanvas*>(handle)->SetCurrent(*static_cast<wxGLContext *>(ctx));
|
||||
|
@ -2,7 +2,6 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
//struct rGLContext;
|
||||
#include "Emu/Io/Null/NullKeyboardHandler.h"
|
||||
#include "Emu/Io/Null/NullMouseHandler.h"
|
||||
#include "Emu/Io/Null/NullPadHandler.h"
|
||||
@ -18,31 +17,7 @@ struct rCanvas
|
||||
void *handle;
|
||||
};
|
||||
|
||||
//struct rGLContext
|
||||
//{
|
||||
// rGLContext();
|
||||
// rGLContext(rGLContext &) = delete;
|
||||
// rGLContext(rCanvas *canvas);
|
||||
// ~rGLContext();
|
||||
//
|
||||
// void *handle;
|
||||
//};
|
||||
|
||||
//struct rFrame
|
||||
//{
|
||||
// rFrame();
|
||||
// rFrame(rFrame &) = delete;
|
||||
// ~rFrame();
|
||||
//
|
||||
// void Close();
|
||||
// bool IsShown();
|
||||
// void Hide();
|
||||
// void Show();
|
||||
//
|
||||
// void *handle;
|
||||
//};
|
||||
|
||||
struct rGLFrame/*: public rFrame*/
|
||||
struct rGLFrame
|
||||
{
|
||||
rGLFrame();
|
||||
rGLFrame(const rGLFrame &) = delete;
|
||||
@ -56,7 +31,6 @@ struct rGLFrame/*: public rFrame*/
|
||||
void *handle;
|
||||
|
||||
void SetCurrent( void *ctx);
|
||||
//rCanvas *GetCanvas();
|
||||
void *GetNewContext();
|
||||
void Flip(/*rGLContext*/void *ctx);
|
||||
};
|
||||
|
@ -47,31 +47,6 @@ rDateSpan::rDateSpan(int a, int b, int c, int d)
|
||||
handle = static_cast<void *>(new wxDateSpan(a,b,c,d));
|
||||
}
|
||||
|
||||
//enum TZ
|
||||
//{
|
||||
// Local, GMT, UTC
|
||||
//};
|
||||
//enum Calender
|
||||
//{
|
||||
// Gregorian
|
||||
//};
|
||||
|
||||
//struct rTimeZone
|
||||
//{
|
||||
// rTimeZone();
|
||||
// rTimeZone(rDateTime::TZ timezone);
|
||||
//};
|
||||
//struct WeekDay
|
||||
//{
|
||||
// WeekDay();
|
||||
// WeekDay(int a);
|
||||
//};
|
||||
//struct Month
|
||||
//{
|
||||
// Month();
|
||||
// Month(int a);
|
||||
//};
|
||||
|
||||
rDateTime::rDateTime()
|
||||
{
|
||||
handle = static_cast<void *>(new wxDateTime());
|
||||
@ -143,11 +118,6 @@ void rDateTime::Add(const rDateSpan& span)
|
||||
static_cast<wxDateTime*>(handle)->Add(*static_cast<wxDateSpan*>(span.handle));
|
||||
}
|
||||
|
||||
//void rDateTime::Close()
|
||||
//{
|
||||
// static_cast<wxDateTime*>(handle)->Close();
|
||||
//}
|
||||
|
||||
wxDateTime::TimeZone convertTZ(rDateTime::rTimeZone tz)
|
||||
{
|
||||
switch (tz)
|
||||
@ -170,7 +140,7 @@ std::string rDateTime::Format(const std::string &format, const rTimeZone &tz) co
|
||||
|
||||
void rDateTime::ParseDateTime(const std::string & format)
|
||||
{
|
||||
/*return fmt::ToUTF8(*/static_cast<wxDateTime*>(handle)->ParseDateTime(fmt::FromUTF8(format));
|
||||
static_cast<wxDateTime*>(handle)->ParseDateTime(fmt::FromUTF8(format));
|
||||
}
|
||||
|
||||
u32 rDateTime::GetAsDOS()
|
||||
|
@ -69,14 +69,14 @@
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
@ -151,9 +151,6 @@
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<Lib>
|
||||
<LinkTimeCodeGeneration>false</LinkTimeCodeGeneration>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
@ -169,9 +166,6 @@
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<Lib>
|
||||
<LinkTimeCodeGeneration>false</LinkTimeCodeGeneration>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
@ -1,8 +1,6 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.21005.1
|
||||
# Visual Studio Express 2013 for Windows Desktop
|
||||
VisualStudioVersion = 12.0.30501.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rpcs3", "rpcs3\rpcs3.vcxproj", "{70CD65B0-91D6-4FAE-9A7B-4AF55D0D1B12}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include "Emu/Memory/Memory.h"
|
||||
#include "Emu/Cell/PPUThread.h"
|
||||
#include "Emu/SysCalls/SysCalls.h"
|
||||
//#include "rpcs3.h" //GUI dependency
|
||||
#include <stdint.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
|
@ -2,7 +2,6 @@
|
||||
#define PPUTHREAD_H
|
||||
#include "Emu/Cell/PPCThread.h"
|
||||
#include "Emu/SysCalls/SysCalls.h"
|
||||
//#include "rpcs3.h" //GUI dependency
|
||||
#include <cmath>
|
||||
|
||||
enum
|
||||
|
@ -2,62 +2,6 @@
|
||||
|
||||
#include <cstring> //for memset
|
||||
|
||||
//struct _DbgBuffer : public MTPacketBuffer<DbgPacket>
|
||||
//{
|
||||
// _DbgBuffer() : MTPacketBuffer<DbgPacket>(1024)
|
||||
// {
|
||||
// }
|
||||
//
|
||||
// void _push(const DbgPacket& data)
|
||||
// {
|
||||
// const u32 stext = data.m_text.length();
|
||||
//
|
||||
// m_buffer.resize(m_buffer.size() + sizeof(int) + sizeof(u32) + stext);
|
||||
//
|
||||
// u32 c_put = m_put;
|
||||
//
|
||||
// memcpy(&m_buffer[c_put], &data.m_ch, sizeof(int));
|
||||
// c_put += sizeof(int);
|
||||
//
|
||||
// memcpy(&m_buffer[c_put], &stext, sizeof(u32));
|
||||
// c_put += sizeof(u32);
|
||||
// memcpy(&m_buffer[c_put], data.m_text.data(), stext);
|
||||
// c_put += stext;
|
||||
//
|
||||
// m_put = c_put;
|
||||
// CheckBusy();
|
||||
// }
|
||||
//
|
||||
// DbgPacket _pop()
|
||||
// {
|
||||
// DbgPacket ret;
|
||||
//
|
||||
// u32 c_get = m_get;
|
||||
//
|
||||
// ret.m_ch = *(int*)&m_buffer[c_get];
|
||||
// c_get += sizeof(int);
|
||||
//
|
||||
// const u32& stext = *(u32*)&m_buffer[c_get];
|
||||
// c_get += sizeof(u32);
|
||||
// if (stext) ret.m_text = std::string(reinterpret_cast<const char*>(&m_buffer[c_get]), stext );
|
||||
// c_get += stext;
|
||||
//
|
||||
// m_get = c_get;
|
||||
// if(!HasNewPacket()) Flush();
|
||||
//
|
||||
// return ret;
|
||||
// }
|
||||
//};
|
||||
//
|
||||
//struct DbgConsole
|
||||
//{
|
||||
// void *congui;
|
||||
// DbgConsole();
|
||||
// void Close();
|
||||
// void Clear();
|
||||
// void Write(int ch, const std::string &msg);
|
||||
//};
|
||||
|
||||
struct DbgPacket
|
||||
{
|
||||
int m_ch;
|
||||
|
@ -608,9 +608,8 @@ void GLGSRender::OnInit()
|
||||
|
||||
void GLGSRender::OnInitThread()
|
||||
{
|
||||
m_context = m_frame->GetNewContext();//new rGLContext(m_frame->GetCanvas());
|
||||
m_context = m_frame->GetNewContext();
|
||||
|
||||
//m_frame->GetCanvas()->SetCurrent(*m_context);
|
||||
m_frame->SetCurrent(m_context);
|
||||
|
||||
InitProcTable();
|
||||
|
@ -3,14 +3,6 @@
|
||||
#include "rpcs3/Ini.h"
|
||||
#include "Pad.h"
|
||||
#include "Null/NullPadHandler.h"
|
||||
#ifdef wxGUI
|
||||
#include "Windows/WindowsPadHandler.h"
|
||||
#include "rpcs3.h"
|
||||
#if defined(_WIN32)
|
||||
#include "XInput/XInputPadHandler.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
PadManager::PadManager()
|
||||
: m_pad_handler(nullptr)
|
||||
|
@ -110,15 +110,12 @@ void Module::UnLoad()
|
||||
|
||||
bool Module::Load(u32 id)
|
||||
{
|
||||
//std::lock_guard<std::mutex> lock(g_funcs_lock);
|
||||
|
||||
if(Emu.GetModuleManager().IsLoadedFunc(id)) return false;
|
||||
|
||||
for(u32 i=0; i<m_funcs_list.size(); ++i)
|
||||
{
|
||||
if(m_funcs_list[i]->id == id)
|
||||
{
|
||||
//g_modules_funcs_list.push_back(m_funcs_list[i]);
|
||||
Emu.GetModuleManager().AddFunc(m_funcs_list[i]);
|
||||
return true;
|
||||
}
|
||||
|
@ -14,8 +14,6 @@
|
||||
class EventManager;
|
||||
class ModuleManager;
|
||||
class StaticFuncManager;
|
||||
//class CPUThreadManager;
|
||||
//class CPUThread;
|
||||
|
||||
struct EmuInfo
|
||||
{
|
||||
@ -75,8 +73,6 @@ class Emulator
|
||||
|
||||
u32 m_rsx_callback;
|
||||
u32 m_ppu_thr_exit;
|
||||
//MemoryViewerPanel* m_memory_viewer; //GUI dependency
|
||||
//ArrayF<CPUThread> m_cpu_threads;
|
||||
std::vector<std::unique_ptr<ModuleInitializer>> m_modules_init;
|
||||
|
||||
std::vector<u64> m_break_points;
|
||||
|
@ -10,11 +10,7 @@
|
||||
#define SARRSIZEOF(array) (sizeof(array)/sizeof(array[0]))
|
||||
|
||||
#define NOMINMAX
|
||||
//#ifdef wxGUI
|
||||
#ifndef QT_UI
|
||||
#ifdef _WIN32
|
||||
//#include <wx/msw/setup.h>
|
||||
#endif
|
||||
#include <wx/wxprec.h>
|
||||
#include <wx/config.h>
|
||||
#include <wx/string.h>
|
||||
@ -44,7 +40,6 @@
|
||||
#include <wx/listctrl.h>
|
||||
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
#ifdef MSVC_CRT_MEMLEAK_DETECTION
|
||||
#ifdef _DEBUG
|
||||
@ -55,11 +50,6 @@
|
||||
#endif // _DEBUG
|
||||
#endif // MSVC_CRT_MEMLEAK_DETECTION
|
||||
|
||||
#ifndef _WIN32
|
||||
//hack, disabled
|
||||
//#define wx_str() ToStdString().c_str()
|
||||
#endif
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
typedef unsigned int uint;
|
||||
@ -300,8 +290,6 @@ enum Status
|
||||
#include "Emu/System.h"
|
||||
#include "Emu/SysCalls/Callback.h"
|
||||
#include "Emu/DbgCommand.h"
|
||||
//#ifdef wxGUI
|
||||
//#endif
|
||||
#include "Emu/Cell/PPUThread.h"
|
||||
#include "Emu/SysCalls/SC_FUNC.h"
|
||||
#include "Emu/SysCalls/Modules.h"
|
||||
@ -315,7 +303,6 @@ enum Status
|
||||
#include "Emu/FS/vfsStreamMemory.h"
|
||||
#include "Emu/FS/vfsFile.h"
|
||||
#include "Emu/FS/vfsDir.h"
|
||||
//#ifdef wxGUI
|
||||
#include "rpcs3.h"
|
||||
|
||||
#define _PRGNAME_ "RPCS3"
|
||||
|
Loading…
Reference in New Issue
Block a user