mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
Stdafx: More cleanup
This commit is contained in:
parent
3737993bb2
commit
8793d75811
11 changed files with 28 additions and 36 deletions
|
@ -1,5 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "BEType.h"
|
#include "BEType.h"
|
||||||
|
#include "Emu/System.h"
|
||||||
|
|
||||||
extern void SM_Sleep();
|
extern void SM_Sleep();
|
||||||
extern size_t SM_GetCurrentThreadId();
|
extern size_t SM_GetCurrentThreadId();
|
||||||
|
@ -123,7 +124,7 @@ public:
|
||||||
default: return res;
|
default: return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wait) wait();
|
if (wait != nullptr) wait();
|
||||||
|
|
||||||
if (timeout && counter++ > timeout)
|
if (timeout && counter++ > timeout)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#include "rpcs3.h"
|
||||||
|
|
||||||
void SendDbgCommand(DbgCommand id, CPUThread* thr )
|
void SendDbgCommand(DbgCommand id, CPUThread* thr )
|
||||||
{
|
{
|
||||||
wxGetApp().SendDbgCommand(id, thr);
|
wxGetApp().SendDbgCommand(id, thr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1330,10 +1330,8 @@ static const std::string GetMethodName(const u32 id)
|
||||||
{ NV4097_SET_TRANSFORM_BRANCH_BITS, "SetTransformBranchBits" } ,
|
{ NV4097_SET_TRANSFORM_BRANCH_BITS, "SetTransformBranchBits" } ,
|
||||||
};
|
};
|
||||||
|
|
||||||
for (u32 i = 0; i < SARRSIZEOF(METHOD_NAME_LIST); ++i)
|
for(auto& s: METHOD_NAME_LIST)
|
||||||
{
|
if(s.id == id) return "cellGcm" + s.name;
|
||||||
if(METHOD_NAME_LIST[i].id == id) return "cellGcm" + METHOD_NAME_LIST[i].name;
|
|
||||||
}
|
|
||||||
|
|
||||||
return fmt::Format("unknown/illegal method [0x%08x]", id);
|
return fmt::Format("unknown/illegal method [0x%08x]", id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ std::string GLVertexDecompilerThread::GetSRC(const u32 n)
|
||||||
ret += m_parr.AddParam(PARAM_NONE, "vec4", "tmp" + std::to_string(src[n].tmp_src));
|
ret += m_parr.AddParam(PARAM_NONE, "vec4", "tmp" + std::to_string(src[n].tmp_src));
|
||||||
break;
|
break;
|
||||||
case 2: //input
|
case 2: //input
|
||||||
if (d1.input_src < SARRSIZEOF(reg_table))
|
if (d1.input_src < (sizeof(reg_table)/sizeof(reg_table[0])))
|
||||||
{
|
{
|
||||||
ret += m_parr.AddParam(PARAM_IN, "vec4", reg_table[d1.input_src], d1.input_src);
|
ret += m_parr.AddParam(PARAM_IN, "vec4", reg_table[d1.input_src], d1.input_src);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "Emu/Io/KeyboardHandler.h"
|
#include "Emu/Io/KeyboardHandler.h"
|
||||||
|
#include "rpcs3.h"
|
||||||
|
|
||||||
class WindowsKeyboardHandler final
|
class WindowsKeyboardHandler final
|
||||||
: public wxWindow
|
: public wxWindow
|
||||||
|
@ -171,4 +172,4 @@ public:
|
||||||
m_keyboards[0].m_buttons.emplace_back('\\', CELL_KEYC_BACKSLASH_106);
|
m_keyboards[0].m_buttons.emplace_back('\\', CELL_KEYC_BACKSLASH_106);
|
||||||
//m_keyboards[0].m_buttons.emplace_back(, CELL_KEYC_YEN_106);
|
//m_keyboards[0].m_buttons.emplace_back(, CELL_KEYC_YEN_106);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include "Emu/Cell/PPUThread.h"
|
#include "Emu/Cell/PPUThread.h"
|
||||||
#include "Emu/SysCalls/SC_FUNC.h"
|
#include "Emu/SysCalls/SC_FUNC.h"
|
||||||
#include "Emu/SysCalls/Modules.h"
|
#include "Emu/SysCalls/Modules.h"
|
||||||
|
#include "rpcs3.h"
|
||||||
|
|
||||||
#include "cellSysutil.h"
|
#include "cellSysutil.h"
|
||||||
#include "cellMsgDialog.h"
|
#include "cellMsgDialog.h"
|
||||||
|
@ -442,4 +443,4 @@ int cellMsgDialogProgressBarInc(u32 progressBarIndex, u32 delta)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,18 @@
|
||||||
#include "Emu/GS/GSManager.h"
|
#include "Emu/GS/GSManager.h"
|
||||||
#include "Emu/Audio/AudioManager.h"
|
#include "Emu/Audio/AudioManager.h"
|
||||||
#include "Emu/FS/VFS.h"
|
#include "Emu/FS/VFS.h"
|
||||||
|
#include "Emu/DbgCommand.h"
|
||||||
#include "Loader/Loader.h"
|
#include "Loader/Loader.h"
|
||||||
#include "SysCalls/Callback.h"
|
#include "SysCalls/Callback.h"
|
||||||
|
|
||||||
|
enum Status
|
||||||
|
{
|
||||||
|
Running,
|
||||||
|
Paused,
|
||||||
|
Stopped,
|
||||||
|
Ready,
|
||||||
|
};
|
||||||
|
|
||||||
class EventManager;
|
class EventManager;
|
||||||
class ModuleManager;
|
class ModuleManager;
|
||||||
class StaticFuncManager;
|
class StaticFuncManager;
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include "Loader/ELF64.h"
|
#include "Loader/ELF64.h"
|
||||||
#include <wx/aui/aui.h>
|
#include <wx/aui/aui.h>
|
||||||
#include <wx/richtext/richtextctrl.h>
|
#include <wx/richtext/richtextctrl.h>
|
||||||
|
#include "Gui/MainFrame.h"
|
||||||
|
|
||||||
class CompilerELF : public FrameBase
|
class CompilerELF : public FrameBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "GSFrame.h"
|
#include "GSFrame.h"
|
||||||
|
#include "rpcs3.h"
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(GSFrame, wxFrame)
|
BEGIN_EVENT_TABLE(GSFrame, wxFrame)
|
||||||
EVT_PAINT(GSFrame::OnPaint)
|
EVT_PAINT(GSFrame::OnPaint)
|
||||||
|
@ -79,4 +80,4 @@ m_size.SetHeight(height);
|
||||||
//wxFrame::SetSize(width, height);
|
//wxFrame::SetSize(width, height);
|
||||||
OnSize(wxSizeEvent());
|
OnSize(wxSizeEvent());
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include "Gui/Debugger.h"
|
#include "Gui/Debugger.h"
|
||||||
#include "Gui/ConLogFrame.h"
|
#include "Gui/ConLogFrame.h"
|
||||||
|
#include "Gui/FrameBase.h"
|
||||||
|
|
||||||
#include <wx/aui/aui.h>
|
#include <wx/aui/aui.h>
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* size of statically declared array */
|
|
||||||
#define SARRSIZEOF(array) (sizeof(array)/sizeof(array[0]))
|
|
||||||
|
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#ifndef QT_UI
|
#ifndef QT_UI
|
||||||
#include <wx/wxprec.h>
|
#include <wx/wxprec.h>
|
||||||
|
@ -41,14 +38,10 @@
|
||||||
#include <wx/aui/auibook.h>
|
#include <wx/aui/auibook.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MSVC_CRT_MEMLEAK_DETECTION
|
#if defined(MSVC_CRT_MEMLEAK_DETECTION) && defined(_DEBUG) && !defined(DBG_NEW)
|
||||||
#ifdef _DEBUG
|
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
|
||||||
#ifndef DBG_NEW
|
#define new DBG_NEW
|
||||||
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
|
#endif
|
||||||
#define new DBG_NEW
|
|
||||||
#endif
|
|
||||||
#endif // _DEBUG
|
|
||||||
#endif // MSVC_CRT_MEMLEAK_DETECTION
|
|
||||||
|
|
||||||
// This header should be frontend-agnostic, so don't assume wx includes everything
|
// This header should be frontend-agnostic, so don't assume wx includes everything
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
@ -68,14 +61,6 @@ typedef int16_t s16;
|
||||||
typedef int32_t s32;
|
typedef int32_t s32;
|
||||||
typedef int64_t s64;
|
typedef int64_t s64;
|
||||||
|
|
||||||
enum Status
|
|
||||||
{
|
|
||||||
Running,
|
|
||||||
Paused,
|
|
||||||
Stopped,
|
|
||||||
Ready,
|
|
||||||
};
|
|
||||||
|
|
||||||
#include "Utilities/StrFmt.h"
|
#include "Utilities/StrFmt.h"
|
||||||
#include "Utilities/Log.h"
|
#include "Utilities/Log.h"
|
||||||
#include "Utilities/BEType.h"
|
#include "Utilities/BEType.h"
|
||||||
|
@ -90,15 +75,11 @@ enum Status
|
||||||
#include "Utilities/Timer.h"
|
#include "Utilities/Timer.h"
|
||||||
#include "Utilities/IdManager.h"
|
#include "Utilities/IdManager.h"
|
||||||
|
|
||||||
#include "Gui/FrameBase.h"
|
|
||||||
#include "Emu/System.h"
|
|
||||||
#include "Emu/SysCalls/Callback.h"
|
#include "Emu/SysCalls/Callback.h"
|
||||||
#include "Emu/DbgCommand.h"
|
|
||||||
#include "Emu/Cell/PPUThread.h"
|
#include "Emu/Cell/PPUThread.h"
|
||||||
#include "Emu/SysCalls/SC_FUNC.h"
|
#include "Emu/SysCalls/SC_FUNC.h"
|
||||||
#include "Emu/SysCalls/Modules.h"
|
#include "Emu/SysCalls/Modules.h"
|
||||||
|
|
||||||
|
|
||||||
#include "Emu/FS/vfsDirBase.h"
|
#include "Emu/FS/vfsDirBase.h"
|
||||||
#include "Emu/FS/vfsFileBase.h"
|
#include "Emu/FS/vfsFileBase.h"
|
||||||
#include "Emu/FS/vfsLocalDir.h"
|
#include "Emu/FS/vfsLocalDir.h"
|
||||||
|
@ -107,9 +88,6 @@ enum Status
|
||||||
#include "Emu/FS/vfsStreamMemory.h"
|
#include "Emu/FS/vfsStreamMemory.h"
|
||||||
#include "Emu/FS/vfsFile.h"
|
#include "Emu/FS/vfsFile.h"
|
||||||
#include "Emu/FS/vfsDir.h"
|
#include "Emu/FS/vfsDir.h"
|
||||||
#ifndef QT_UI
|
|
||||||
#include "rpcs3.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define _PRGNAME_ "RPCS3"
|
#define _PRGNAME_ "RPCS3"
|
||||||
#define _PRGVER_ "0.0.0.4"
|
#define _PRGVER_ "0.0.0.4"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue