2018-07-24 13:41:41 +00:00
|
|
|
#if defined(Hiro_Application)
|
|
|
|
struct Application {
|
|
|
|
Application() = delete;
|
|
|
|
|
Update to bsnes v107.1 release.
byuu says:
Don't let the point release fool you, there are many significant changes in this
release. I will be keeping bsnes releases using a point system until the new
higan release is ready.
Changelog:
- GUI: added high DPI support
- GUI: fixed the state manager image preview
- Windows: added a new waveOut driver with support for dynamic rate control
- Windows: corrected the XAudio 2.1 dynamic rate control support [BearOso]
- Windows: corrected the Direct3D 9.0 fullscreen exclusive window centering
- Windows: fixed XInput controller support on Windows 10
- SFC: added high-level emulation for the DSP1, DSP2, DSP4, ST010, and Cx4
coprocessors
- SFC: fixed a slight rendering glitch in the intro to Megalomania
If the coprocessor firmware is missing, bsnes will fallback on HLE where it is
supported, which is everything other than SD Gundam GX and the two Hayazashi
Nidan Morita Shougi games.
The Windows dynamic rate control works best with Direct3D in fullscreen
exclusive mode. I recommend the waveOut driver over the XAudio 2.1 driver, as it
is not possible to target a single XAudio2 version on all Windows OS releases.
The waveOut driver should work everywhere out of the box.
Note that with DRC, the synchronization source is your monitor, so you will
want to be running at 60hz (NTSC) or 50hz (PAL). If you have an adaptive sync
monitor, you should instead use the WASAPI (exclusive) or ASIO audio driver.
2019-04-09 01:16:30 +00:00
|
|
|
static auto abort() -> void;
|
2018-07-24 13:41:41 +00:00
|
|
|
static auto doMain() -> void;
|
Update to bsnes v107.1 release.
byuu says:
Don't let the point release fool you, there are many significant changes in this
release. I will be keeping bsnes releases using a point system until the new
higan release is ready.
Changelog:
- GUI: added high DPI support
- GUI: fixed the state manager image preview
- Windows: added a new waveOut driver with support for dynamic rate control
- Windows: corrected the XAudio 2.1 dynamic rate control support [BearOso]
- Windows: corrected the Direct3D 9.0 fullscreen exclusive window centering
- Windows: fixed XInput controller support on Windows 10
- SFC: added high-level emulation for the DSP1, DSP2, DSP4, ST010, and Cx4
coprocessors
- SFC: fixed a slight rendering glitch in the intro to Megalomania
If the coprocessor firmware is missing, bsnes will fallback on HLE where it is
supported, which is everything other than SD Gundam GX and the two Hayazashi
Nidan Morita Shougi games.
The Windows dynamic rate control works best with Direct3D in fullscreen
exclusive mode. I recommend the waveOut driver over the XAudio 2.1 driver, as it
is not possible to target a single XAudio2 version on all Windows OS releases.
The waveOut driver should work everywhere out of the box.
Note that with DRC, the synchronization source is your monitor, so you will
want to be running at 60hz (NTSC) or 50hz (PAL). If you have an adaptive sync
monitor, you should instead use the WASAPI (exclusive) or ASIO audio driver.
2019-04-09 01:16:30 +00:00
|
|
|
static auto exit() -> void;
|
2018-07-24 13:41:41 +00:00
|
|
|
static auto font() -> Font;
|
|
|
|
static auto locale() -> Locale&;
|
|
|
|
static auto modal() -> bool;
|
|
|
|
static auto name() -> string;
|
|
|
|
static auto onMain(const function<void ()>& callback = {}) -> void;
|
|
|
|
static auto run() -> void;
|
|
|
|
static auto scale() -> float;
|
|
|
|
static auto scale(float value) -> float;
|
|
|
|
static auto pendingEvents() -> bool;
|
|
|
|
static auto processEvents() -> void;
|
|
|
|
static auto quit() -> void;
|
|
|
|
static auto screenSaver() -> bool;
|
|
|
|
static auto setFont(const Font& font = {}) -> void;
|
|
|
|
static auto setName(const string& name = "") -> void;
|
|
|
|
static auto setScale(float scale = 1.0) -> void;
|
|
|
|
static auto setScreenSaver(bool screenSaver = true) -> void;
|
Update to v106r57 release.
byuu says:
I've added tool tips to hiro for Windows, GTK, and Qt. I'm unsure how to
add them for Cocoa. I wasted am embarrassing ~14 hours implementing tool
tips from scratch on Windows, because the `TOOLTIPS_CLASS` widget just
absolutely refused to show up, no matter what I tried. As such, they're
not quite 100% native, but I would really appreciate any patch
submissions to help improve my implementation.
I added tool tips to all of the confusing settings in bsnes. And of
course, for those of you who don't like them, there's a configuration
file setting to turn them off globally.
I also improved Mega Drive handling of the Game Genie a bit, and
restructured the way the Settings class works in bsnes.
Starting now, I'm feature-freezing bsnes and higan. From this point
forward:
- polishing up and fixing bugs caused by the ruby/hiro changes
- adding DRC to XAudio2, and maybe exclusive mode to WGL
- correcting FEoEZ (English) to load and work again out of the box
Once that's done, a final beta of bsnes will go out, I'll fix any
reported bugs that I'm able to, and then v107 should be ready. This time
with higan being functional, but marked as v107 beta. v108 will restore
higan to production status again, alongside bsnes.
2018-08-08 08:46:58 +00:00
|
|
|
static auto setToolTips(bool toolTips = true) -> void;
|
|
|
|
static auto toolTips() -> bool;
|
2018-07-24 13:41:41 +00:00
|
|
|
static auto unscale(float value) -> float;
|
|
|
|
|
|
|
|
struct Cocoa {
|
|
|
|
static auto doAbout() -> void;
|
|
|
|
static auto doActivate() -> void;
|
|
|
|
static auto doPreferences() -> void;
|
|
|
|
static auto doQuit() -> void;
|
|
|
|
static auto onAbout(const function<void ()>& callback = {}) -> void;
|
|
|
|
static auto onActivate(const function<void ()>& callback = {}) -> void;
|
|
|
|
static auto onPreferences(const function<void ()>& callback = {}) -> void;
|
|
|
|
static auto onQuit(const function<void ()>& callback = {}) -> void;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Namespace : Locale::Namespace {
|
|
|
|
Namespace(const string& value) : Locale::Namespace(Application::locale(), value) {}
|
|
|
|
};
|
|
|
|
|
|
|
|
//private:
|
|
|
|
struct State {
|
|
|
|
Font font;
|
Update to v106r57 release.
byuu says:
I've added tool tips to hiro for Windows, GTK, and Qt. I'm unsure how to
add them for Cocoa. I wasted am embarrassing ~14 hours implementing tool
tips from scratch on Windows, because the `TOOLTIPS_CLASS` widget just
absolutely refused to show up, no matter what I tried. As such, they're
not quite 100% native, but I would really appreciate any patch
submissions to help improve my implementation.
I added tool tips to all of the confusing settings in bsnes. And of
course, for those of you who don't like them, there's a configuration
file setting to turn them off globally.
I also improved Mega Drive handling of the Game Genie a bit, and
restructured the way the Settings class works in bsnes.
Starting now, I'm feature-freezing bsnes and higan. From this point
forward:
- polishing up and fixing bugs caused by the ruby/hiro changes
- adding DRC to XAudio2, and maybe exclusive mode to WGL
- correcting FEoEZ (English) to load and work again out of the box
Once that's done, a final beta of bsnes will go out, I'll fix any
reported bugs that I'm able to, and then v107 should be ready. This time
with higan being functional, but marked as v107 beta. v108 will restore
higan to production status again, alongside bsnes.
2018-08-08 08:46:58 +00:00
|
|
|
bool initialized = false;
|
2018-07-24 13:41:41 +00:00
|
|
|
Locale locale;
|
|
|
|
int modal = 0;
|
|
|
|
string name;
|
|
|
|
function<void ()> onMain;
|
|
|
|
bool quit = false;
|
|
|
|
float scale = 1.0;
|
|
|
|
bool screenSaver = true;
|
Update to v106r57 release.
byuu says:
I've added tool tips to hiro for Windows, GTK, and Qt. I'm unsure how to
add them for Cocoa. I wasted am embarrassing ~14 hours implementing tool
tips from scratch on Windows, because the `TOOLTIPS_CLASS` widget just
absolutely refused to show up, no matter what I tried. As such, they're
not quite 100% native, but I would really appreciate any patch
submissions to help improve my implementation.
I added tool tips to all of the confusing settings in bsnes. And of
course, for those of you who don't like them, there's a configuration
file setting to turn them off globally.
I also improved Mega Drive handling of the Game Genie a bit, and
restructured the way the Settings class works in bsnes.
Starting now, I'm feature-freezing bsnes and higan. From this point
forward:
- polishing up and fixing bugs caused by the ruby/hiro changes
- adding DRC to XAudio2, and maybe exclusive mode to WGL
- correcting FEoEZ (English) to load and work again out of the box
Once that's done, a final beta of bsnes will go out, I'll fix any
reported bugs that I'm able to, and then v107 should be ready. This time
with higan being functional, but marked as v107 beta. v108 will restore
higan to production status again, alongside bsnes.
2018-08-08 08:46:58 +00:00
|
|
|
bool toolTips = true;
|
2018-07-24 13:41:41 +00:00
|
|
|
|
|
|
|
struct Cocoa {
|
|
|
|
function<void ()> onAbout;
|
|
|
|
function<void ()> onActivate;
|
|
|
|
function<void ()> onPreferences;
|
|
|
|
function<void ()> onQuit;
|
|
|
|
} cocoa;
|
|
|
|
};
|
2018-08-05 09:00:15 +00:00
|
|
|
|
2018-07-24 13:41:41 +00:00
|
|
|
static auto initialize() -> void;
|
2018-08-05 09:00:15 +00:00
|
|
|
static auto state() -> State&;
|
2018-07-24 13:41:41 +00:00
|
|
|
};
|
|
|
|
#endif
|