mirror of
https://github.com/Michael-Prince-Sharpe/bsnes-classic.git
synced 2025-04-02 10:21:42 -04:00
85 lines
1.7 KiB
C++
85 lines
1.7 KiB
C++
#include <snes.hpp>
|
|
|
|
#include <nall/base64.hpp>
|
|
#include <nall/config.hpp>
|
|
#include <nall/directory.hpp>
|
|
#include <nall/filemap.hpp>
|
|
#include <nall/input.hpp>
|
|
#include <nall/ups.hpp>
|
|
#include <nall/snes/cartridge.hpp>
|
|
using namespace nall;
|
|
|
|
#include <ruby/ruby.hpp>
|
|
using namespace ruby;
|
|
|
|
#include <phoenix/phoenix.hpp>
|
|
using namespace phoenix;
|
|
|
|
struct TopLevelWindow : Window {
|
|
string name;
|
|
string position;
|
|
};
|
|
|
|
#include "interface.hpp"
|
|
#include "config.hpp"
|
|
#include "general/general.hpp"
|
|
#include "settings/settings.hpp"
|
|
#include "tools/tools.hpp"
|
|
#include "input/input.hpp"
|
|
#include "utility/utility.hpp"
|
|
#include "cartridge/cartridge.hpp"
|
|
|
|
#if defined(DEBUGGER)
|
|
#include "debugger/debugger.hpp"
|
|
#endif
|
|
|
|
struct Application {
|
|
Font proportionalFont;
|
|
Font proportionalFontBold;
|
|
Font monospaceFont;
|
|
|
|
bool pause;
|
|
bool quit;
|
|
void main(int argc, char **argv);
|
|
|
|
void addWindow(TopLevelWindow *window, const string &name, const string &position);
|
|
Application();
|
|
|
|
private:
|
|
array<TopLevelWindow*> windows;
|
|
configuration geometryConfig;
|
|
void loadGeometry();
|
|
void saveGeometry();
|
|
};
|
|
|
|
extern Application application;
|
|
|
|
struct Style {
|
|
enum : unsigned {
|
|
#if defined(PHOENIX_WINDOWS)
|
|
ButtonHeight = 25,
|
|
CheckBoxHeight = 15,
|
|
ComboBoxHeight = 22,
|
|
EditBoxHeight = 22,
|
|
LabelHeight = 15,
|
|
SliderHeight = 25,
|
|
TextBoxHeight = 22,
|
|
#elif defined(PHOENIX_GTK)
|
|
ButtonHeight = 25,
|
|
CheckBoxHeight = 15,
|
|
ComboBoxHeight = 22,
|
|
EditBoxHeight = 22,
|
|
LabelHeight = 15,
|
|
SliderHeight = 22,
|
|
TextBoxHeight = 22,
|
|
#elif defined(PHOENIX_QT)
|
|
ButtonHeight = 25,
|
|
CheckBoxHeight = 15,
|
|
ComboBoxHeight = 22,
|
|
EditBoxHeight = 22,
|
|
LabelHeight = 15,
|
|
SliderHeight = 22,
|
|
TextBoxHeight = 22,
|
|
#endif
|
|
};
|
|
};
|