mirror of
https://github.com/libretro/Play-.git
synced 2025-01-07 09:00:25 +00:00
35 lines
760 B
C++
35 lines
760 B
C++
#pragma once
|
|
|
|
#include <boost/signals2.hpp>
|
|
#include "../MIPS.h"
|
|
#include "../VirtualMachine.h"
|
|
#include "MemoryView.h"
|
|
|
|
class CMemoryViewMIPS : public CMemoryView, public boost::signals2::trackable
|
|
{
|
|
public:
|
|
CMemoryViewMIPS(HWND, const RECT&, CVirtualMachine&, CMIPS*);
|
|
virtual ~CMemoryViewMIPS();
|
|
|
|
protected:
|
|
enum
|
|
{
|
|
ID_MEMORYVIEWMIPS_GOTOADDRESS = ID_MEMORYVIEW_MENU_MAX,
|
|
ID_MEMORYVIEWMIPS_FOLLOWPOINTER
|
|
};
|
|
|
|
uint8 GetByte(uint32) override;
|
|
HMENU CreateContextualMenu() override;
|
|
|
|
long OnCommand(unsigned short, unsigned short, HWND) override;
|
|
|
|
private:
|
|
void GotoAddress();
|
|
void FollowPointer();
|
|
|
|
void OnMachineStateChange();
|
|
|
|
CMIPS* m_context;
|
|
CVirtualMachine& m_virtualMachine;
|
|
};
|