mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 07:02:27 +01:00
byuu says: Implemented the cheat database dialog, and most of the cheat editor dialog. I still have to handle loading and saving the cheats.bml file for each game. I wanted to finish it today, but I burned out. It's a ton of really annoying work to support cheat codes. There's also some issue with the width calculation for the "code(s)" column in hiro/GTK. Short-term: - add input port changing support - add other input types (mouse-based, etc) - finish cheat codes Long-term: - add slotted cart loader (SGB, BSX, ST) - add DIP switch selection window (NSS) - add overscan masking - add timing configuration (video/audio sync) Not planned: - video color adjustments (will allow emulated color vs raw color; but no more sliders) - pixel shaders - ananke integration (will need to make a command-line version to get my games in) - fancy audio adjustment controls (resampler, latency, volume) - input focus settings - localization support (not enough users) - window geometry memory - anything else not in higan v094
29 lines
582 B
C++
29 lines
582 B
C++
#include "../tomoko.hpp"
|
|
#include "cheat-database.cpp"
|
|
#include "cheat-editor.cpp"
|
|
#include "state-manager.cpp"
|
|
CheatDatabase* cheatDatabase = nullptr;
|
|
ToolsManager* toolsManager = nullptr;
|
|
|
|
ToolsManager::ToolsManager() {
|
|
toolsManager = this;
|
|
|
|
layout.setMargin(5);
|
|
|
|
setTitle("Tools");
|
|
setSize({600, 400});
|
|
setPlacement(1.0, 1.0);
|
|
|
|
onSize([&] {
|
|
cheatEditor.cheatList.resizeColumns();
|
|
stateManager.stateList.resizeColumns();
|
|
});
|
|
}
|
|
|
|
auto ToolsManager::show(unsigned tool) -> void {
|
|
panel.item(tool)->setSelected();
|
|
setVisible();
|
|
setFocused();
|
|
doSize();
|
|
}
|