1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Stdafx: More cleanup

This commit is contained in:
Sacha 2014-07-11 06:54:12 +10:00
parent 3737993bb2
commit 8793d75811
11 changed files with 28 additions and 36 deletions

View File

@ -1,5 +1,6 @@
#pragma once
#include "BEType.h"
#include "Emu/System.h"
extern void SM_Sleep();
extern size_t SM_GetCurrentThreadId();
@ -123,7 +124,7 @@ public:
default: return res;
}
if (wait) wait();
if (wait != nullptr) wait();
if (timeout && counter++ > timeout)
{

View File

@ -1,6 +1,7 @@
#include "stdafx.h"
#include "rpcs3.h"
void SendDbgCommand(DbgCommand id, CPUThread* thr )
{
wxGetApp().SendDbgCommand(id, thr);
}
}

View File

@ -1330,10 +1330,8 @@ static const std::string GetMethodName(const u32 id)
{ NV4097_SET_TRANSFORM_BRANCH_BITS, "SetTransformBranchBits" } ,
};
for (u32 i = 0; i < SARRSIZEOF(METHOD_NAME_LIST); ++i)
{
if(METHOD_NAME_LIST[i].id == id) return "cellGcm" + METHOD_NAME_LIST[i].name;
}
for(auto& s: METHOD_NAME_LIST)
if(s.id == id) return "cellGcm" + s.name;
return fmt::Format("unknown/illegal method [0x%08x]", id);
}

View File

@ -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));
break;
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);
}

View File

@ -3,6 +3,7 @@
#include <algorithm>
#include <vector>
#include "Emu/Io/KeyboardHandler.h"
#include "rpcs3.h"
class WindowsKeyboardHandler final
: 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_YEN_106);
}
};
};

View File

@ -5,6 +5,7 @@
#include "Emu/Cell/PPUThread.h"
#include "Emu/SysCalls/SC_FUNC.h"
#include "Emu/SysCalls/Modules.h"
#include "rpcs3.h"
#include "cellSysutil.h"
#include "cellMsgDialog.h"
@ -442,4 +443,4 @@ int cellMsgDialogProgressBarInc(u32 progressBarIndex, u32 delta)
}
});
return CELL_OK;
}
}

View File

@ -8,9 +8,18 @@
#include "Emu/GS/GSManager.h"
#include "Emu/Audio/AudioManager.h"
#include "Emu/FS/VFS.h"
#include "Emu/DbgCommand.h"
#include "Loader/Loader.h"
#include "SysCalls/Callback.h"
enum Status
{
Running,
Paused,
Stopped,
Ready,
};
class EventManager;
class ModuleManager;
class StaticFuncManager;

View File

@ -4,6 +4,7 @@
#include "Loader/ELF64.h"
#include <wx/aui/aui.h>
#include <wx/richtext/richtextctrl.h>
#include "Gui/MainFrame.h"
class CompilerELF : public FrameBase
{

View File

@ -1,5 +1,6 @@
#include "stdafx.h"
#include "GSFrame.h"
#include "rpcs3.h"
BEGIN_EVENT_TABLE(GSFrame, wxFrame)
EVT_PAINT(GSFrame::OnPaint)
@ -79,4 +80,4 @@ m_size.SetHeight(height);
//wxFrame::SetSize(width, height);
OnSize(wxSizeEvent());
}
*/
*/

View File

@ -2,6 +2,7 @@
#include "Gui/Debugger.h"
#include "Gui/ConLogFrame.h"
#include "Gui/FrameBase.h"
#include <wx/aui/aui.h>

View File

@ -6,9 +6,6 @@
#include <crtdbg.h>
#endif
/* size of statically declared array */
#define SARRSIZEOF(array) (sizeof(array)/sizeof(array[0]))
#define NOMINMAX
#ifndef QT_UI
#include <wx/wxprec.h>
@ -41,14 +38,10 @@
#include <wx/aui/auibook.h>
#endif
#ifdef MSVC_CRT_MEMLEAK_DETECTION
#ifdef _DEBUG
#ifndef DBG_NEW
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
#define new DBG_NEW
#endif
#endif // _DEBUG
#endif // MSVC_CRT_MEMLEAK_DETECTION
#if defined(MSVC_CRT_MEMLEAK_DETECTION) && defined(_DEBUG) && !defined(DBG_NEW)
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
#define new DBG_NEW
#endif
// This header should be frontend-agnostic, so don't assume wx includes everything
#include <cstdio>
@ -68,14 +61,6 @@ typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
enum Status
{
Running,
Paused,
Stopped,
Ready,
};
#include "Utilities/StrFmt.h"
#include "Utilities/Log.h"
#include "Utilities/BEType.h"
@ -90,15 +75,11 @@ enum Status
#include "Utilities/Timer.h"
#include "Utilities/IdManager.h"
#include "Gui/FrameBase.h"
#include "Emu/System.h"
#include "Emu/SysCalls/Callback.h"
#include "Emu/DbgCommand.h"
#include "Emu/Cell/PPUThread.h"
#include "Emu/SysCalls/SC_FUNC.h"
#include "Emu/SysCalls/Modules.h"
#include "Emu/FS/vfsDirBase.h"
#include "Emu/FS/vfsFileBase.h"
#include "Emu/FS/vfsLocalDir.h"
@ -107,9 +88,6 @@ enum Status
#include "Emu/FS/vfsStreamMemory.h"
#include "Emu/FS/vfsFile.h"
#include "Emu/FS/vfsDir.h"
#ifndef QT_UI
#include "rpcs3.h"
#endif
#define _PRGNAME_ "RPCS3"
#define _PRGVER_ "0.0.0.4"