bsnes/kaijuu/interface.hpp

73 lines
1.7 KiB
C++
Raw Normal View History

Update to v090 release. byuu says: Most notably, this release adds Nintendo DS emulation. The Nintendo DS module was written entirely by Cydrak, so please give him all of the credit for it. I for one am extremely grateful to be allowed to use his module in bsnes. The Nintendo DS emulator's standalone name is dasShiny. You will need the Nintendo DS firmware, which I cannot provide, in order to use it. It also cannot (currently?) detect the save type used by NDS games. As such, manifest.xml files must be created manually for this purpose. The long-term plan is to create a database of save types for each game. Also, you will need an analog input device for the touch screen for now (joypad axes work well.) There have also been a lot of changes from my end: a unified manifest.xml format across all systems, major improvements to SPC7110 emulation, enhancements to RTC emulation, MSU1 enhancements, icons in the file browser list, improvements to SNES coprocessor memory mapping, cleanups and improvements in the libraries used to build bsnes, etc. I've also included kaijuu (which allows launching game folders directly with bsnes) and purify (which allows opening images that are compressed, have copier headers, and have wrong extensions); both of which are fully GUI-based. This release only loads game folders, not files. Use purify to load ROM files in bsnes. Note that this will likely be the last release for a long time, and that I will probably rename the emulator for the next release, due to how many additional systems it now supports.
2012-08-07 14:08:37 +00:00
#include <nall/platform.hpp>
#include <nall/invoke.hpp>
#include <nall/string.hpp>
#include <nall/windows/registry.hpp>
using namespace nall;
#include <phoenix/phoenix.hpp>
using namespace phoenix;
#include "guid.hpp"
#include "settings.hpp"
struct Application : Window {
VerticalLayout layout;
HorizontalLayout installLayout;
Label statusLabel;
Button uninstallButton;
Button installButton;
HorizontalLayout settingLayout;
ListView settingList;
VerticalLayout controlLayout;
Button appendButton;
Button modifyButton;
Button moveUpButton;
Button moveDownButton;
Button removeButton;
Button resetButton;
Widget spacer;
Button helpButton;
Canvas canvas;
Application(const string &pathname);
void synchronize();
void refresh();
void install();
void uninstall();
void appendAction();
void modifyAction();
void moveUpAction();
void moveDownAction();
void removeAction();
void resetAction();
string pathname;
};
struct RuleEditor : Window {
VerticalLayout layout;
HorizontalLayout nameLayout;
Label nameLabel;
LineEdit nameValue;
HorizontalLayout patternLayout;
Label patternLabel;
LineEdit patternValue;
HorizontalLayout commandLayout;
Label commandLabel;
LineEdit commandValue;
Button commandSelect;
HorizontalLayout controlLayout;
CheckBox defaultAction;
CheckBox filesAction;
CheckBox foldersAction;
Widget spacer;
Button assignButton;
bool modal;
signed index;
RuleEditor();
void synchronize();
void show(signed rule = -1);
};