mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 13:45:11 +00:00
Adding a global goto but it still doesn't work with rectangle shadows
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "../../ui/ui_ramView.h"
|
||||
#include "../../ui/ui_gotoDialog.h"
|
||||
#include "../Ram/Ram.hpp"
|
||||
#include "../Memory/MemoryBus.hpp"
|
||||
#include <memory>
|
||||
|
||||
using ComSquare::Ram::Ram;
|
||||
@@ -52,6 +53,8 @@ namespace ComSquare
|
||||
private:
|
||||
//! @brief SNES containing all rams to view.
|
||||
SNES &_snes;
|
||||
//! @brief The memory bus used to get the view for a given address.
|
||||
Memory::MemoryBus &_bus;
|
||||
//! @brief The layout of the viewer.
|
||||
Ui::RamView _ui;
|
||||
//! @brief The Ram visualizer model for QT.
|
||||
@@ -60,7 +63,8 @@ namespace ComSquare
|
||||
void _internalGoto(bool isAbsolute);
|
||||
public:
|
||||
//! @brief Select the memory tab corresponding to a 24 bit address (map the address via the bus).
|
||||
void switchToAddrTab(uint24_t addr);
|
||||
//! @return The address converted to the new tab's locale space.
|
||||
unsigned switchToAddrTab(uint24_t addr);
|
||||
|
||||
//! @brief Callback called when a memory tab is selected.
|
||||
void changeRam(int id);
|
||||
@@ -69,7 +73,7 @@ namespace ComSquare
|
||||
//! @brief Create a popup asking you where you want to jump to with the absolute mode selected.
|
||||
void gotoAbsoluteAddr();
|
||||
|
||||
explicit MemoryViewer(SNES &snes);
|
||||
explicit MemoryViewer(SNES &snes, Memory::MemoryBus &bus);
|
||||
MemoryViewer(const MemoryViewer &) = delete;
|
||||
MemoryViewer &operator=(const MemoryViewer &) = delete;
|
||||
~MemoryViewer() override = default;
|
||||
|
||||
Reference in New Issue
Block a user