#define UNICODE #define QT_NO_DEBUG #define QT_CORE_LIB #define QT_GUI_LIB #define QT_THREAD_SUPPORT #include #include //Q_IMPORT_PLUGIN(QJpegPlugin) //Q_IMPORT_PLUGIN(QMngPlugin) #include <../base.hpp> #include #include using namespace nall; #include using namespace ruby; #include #include #if defined(GZIP_SUPPORT) #include #include #endif #if defined(JMA_SUPPORT) #include #endif #include #include "input/input.hpp" #include "utility/utility.hpp" class Application { public: class App : public QApplication { public: #ifdef _WIN32 bool winEventFilter(MSG *msg, long *result); #endif App(int argc, char **argv) : QApplication(argc, argv) {} } *app; bool terminate; //set to true to terminate main() loop and exit emulator bool power; bool pause; bool autopause; clock_t clockTime; clock_t autosaveTime; clock_t screensaverTime; string configFilename; string styleSheetFilename; int main(int argc, char **argv); void processEvents(); void locateFile(string &filename, bool createDataDirectory = false); void initPaths(const char *basename); void init(); Application(); ~Application(); } application; struct Style { enum { WindowMargin = 5, WidgetSpacing = 5, SeparatorSpacing = 5, }; };