2015-02-28 01:51:53 +00:00
|
|
|
struct Presentation : Window {
|
|
|
|
Presentation();
|
2015-05-23 05:29:18 +00:00
|
|
|
auto updateEmulator() -> void;
|
2015-03-03 10:14:49 +00:00
|
|
|
auto resizeViewport() -> void;
|
2015-04-13 11:16:33 +00:00
|
|
|
auto toggleFullScreen() -> void;
|
2015-03-03 10:14:49 +00:00
|
|
|
auto drawSplashScreen() -> void;
|
2015-11-08 08:54:42 +00:00
|
|
|
auto loadShaders() -> void;
|
2015-02-28 01:51:53 +00:00
|
|
|
|
|
|
|
MenuBar menuBar{this};
|
|
|
|
Menu libraryMenu{&menuBar};
|
|
|
|
vector<MenuItem*> loadBootableMedia;
|
2015-03-02 09:13:28 +00:00
|
|
|
Menu systemMenu{&menuBar};
|
|
|
|
MenuItem powerSystem{&systemMenu};
|
|
|
|
MenuItem resetSystem{&systemMenu};
|
2015-05-23 05:29:18 +00:00
|
|
|
MenuSeparator systemMenuSeparatorPorts{&systemMenu};
|
|
|
|
Menu inputPort1{&systemMenu};
|
|
|
|
Menu inputPort2{&systemMenu};
|
2015-11-10 11:02:29 +00:00
|
|
|
Menu inputPort3{&systemMenu};
|
2015-05-23 05:29:18 +00:00
|
|
|
MenuSeparator systemMenuSeparatorUnload{&systemMenu};
|
2015-03-02 09:13:28 +00:00
|
|
|
MenuItem unloadSystem{&systemMenu};
|
2015-02-28 01:51:53 +00:00
|
|
|
Menu settingsMenu{&menuBar};
|
2015-03-03 10:14:49 +00:00
|
|
|
Menu videoScaleMenu{&settingsMenu};
|
|
|
|
MenuRadioItem videoScaleSmall{&videoScaleMenu};
|
2015-08-24 09:42:11 +00:00
|
|
|
MenuRadioItem videoScaleMedium{&videoScaleMenu};
|
2015-03-03 10:14:49 +00:00
|
|
|
MenuRadioItem videoScaleLarge{&videoScaleMenu};
|
2015-08-24 09:42:11 +00:00
|
|
|
Group videoScales{&videoScaleSmall, &videoScaleMedium, &videoScaleLarge};
|
2015-03-03 10:14:49 +00:00
|
|
|
MenuSeparator videoScaleSeparator{&videoScaleMenu};
|
|
|
|
MenuCheckItem aspectCorrection{&videoScaleMenu};
|
Update to v094r13 release.
byuu says:
This version polishes up the input dialogue (reset, erase, disable
button when item not focused, split device ID from mapping name), adds
color emulation toggle, and add dummy menu items for remaining features
(to be filled in later.)
Also, it now compiles cleanly on Windows with GTK.
I didn't test with TDM-GCC-32, because for god knows what reason, the
32-bit version ships with headers from Windows 95 OSR2 only. So I built
with TDM-GCC-64 with arch=x86.
And uh, apparently, moving or resizing a window causes a Visual C++
runtime exception in the GTK+ DLLs. This doesn't happen with trance or
renshuu built with TDM-GCC-32. So, yeah, like I said, don't use -m32.
2015-03-07 10:21:47 +00:00
|
|
|
Menu videoFilterMenu{&settingsMenu};
|
|
|
|
MenuRadioItem videoFilterNone{&videoFilterMenu};
|
|
|
|
MenuRadioItem videoFilterBlur{&videoFilterMenu};
|
2015-06-12 13:14:38 +00:00
|
|
|
Group videoFilters{&videoFilterNone, &videoFilterBlur};
|
Update to v094r13 release.
byuu says:
This version polishes up the input dialogue (reset, erase, disable
button when item not focused, split device ID from mapping name), adds
color emulation toggle, and add dummy menu items for remaining features
(to be filled in later.)
Also, it now compiles cleanly on Windows with GTK.
I didn't test with TDM-GCC-32, because for god knows what reason, the
32-bit version ships with headers from Windows 95 OSR2 only. So I built
with TDM-GCC-64 with arch=x86.
And uh, apparently, moving or resizing a window causes a Visual C++
runtime exception in the GTK+ DLLs. This doesn't happen with trance or
renshuu built with TDM-GCC-32. So, yeah, like I said, don't use -m32.
2015-03-07 10:21:47 +00:00
|
|
|
MenuSeparator videoFilterSeparator{&videoFilterMenu};
|
|
|
|
MenuCheckItem colorEmulation{&videoFilterMenu};
|
2015-04-21 11:58:59 +00:00
|
|
|
MenuCheckItem maskOverscan{&videoFilterMenu};
|
2015-11-08 08:54:42 +00:00
|
|
|
Menu videoShaderMenu{&settingsMenu};
|
|
|
|
MenuRadioItem videoShaderNone{&videoShaderMenu};
|
|
|
|
Group videoShaders{&videoShaderNone};
|
2015-03-03 10:14:49 +00:00
|
|
|
MenuSeparator settingsMenuSeparator1{&settingsMenu};
|
|
|
|
MenuCheckItem synchronizeVideo{&settingsMenu};
|
|
|
|
MenuCheckItem synchronizeAudio{&settingsMenu};
|
|
|
|
MenuCheckItem muteAudio{&settingsMenu};
|
2015-04-13 11:16:33 +00:00
|
|
|
MenuCheckItem showStatusBar{&settingsMenu};
|
2015-03-03 10:14:49 +00:00
|
|
|
MenuSeparator settingsMenuSeparator2{&settingsMenu};
|
2015-03-02 09:13:28 +00:00
|
|
|
MenuItem showConfiguration{&settingsMenu};
|
2015-02-28 01:51:53 +00:00
|
|
|
Menu toolsMenu{&menuBar};
|
Update to v094r13 release.
byuu says:
This version polishes up the input dialogue (reset, erase, disable
button when item not focused, split device ID from mapping name), adds
color emulation toggle, and add dummy menu items for remaining features
(to be filled in later.)
Also, it now compiles cleanly on Windows with GTK.
I didn't test with TDM-GCC-32, because for god knows what reason, the
32-bit version ships with headers from Windows 95 OSR2 only. So I built
with TDM-GCC-64 with arch=x86.
And uh, apparently, moving or resizing a window causes a Visual C++
runtime exception in the GTK+ DLLs. This doesn't happen with trance or
renshuu built with TDM-GCC-32. So, yeah, like I said, don't use -m32.
2015-03-07 10:21:47 +00:00
|
|
|
Menu saveStateMenu{&toolsMenu};
|
|
|
|
MenuItem saveSlot1{&saveStateMenu};
|
|
|
|
MenuItem saveSlot2{&saveStateMenu};
|
|
|
|
MenuItem saveSlot3{&saveStateMenu};
|
|
|
|
MenuItem saveSlot4{&saveStateMenu};
|
|
|
|
MenuItem saveSlot5{&saveStateMenu};
|
|
|
|
Menu loadStateMenu{&toolsMenu};
|
|
|
|
MenuItem loadSlot1{&loadStateMenu};
|
|
|
|
MenuItem loadSlot2{&loadStateMenu};
|
|
|
|
MenuItem loadSlot3{&loadStateMenu};
|
|
|
|
MenuItem loadSlot4{&loadStateMenu};
|
|
|
|
MenuItem loadSlot5{&loadStateMenu};
|
|
|
|
MenuSeparator toolsMenuSeparator{&toolsMenu};
|
2015-04-21 11:51:57 +00:00
|
|
|
MenuItem cheatEditor{&toolsMenu};
|
|
|
|
MenuItem stateManager{&toolsMenu};
|
Update to higan and icarus v095r15 release.
r13 and r14 weren't posted as individual releases, but their changelogs
were posted.
byuu says about r13:
I'm not going to be posting WIPs for r13 and above for a while.
The reason is that I'm working on the major manifest overhaul I've
discussed previously on the icarus subforum.
I'm recreating my boards database from scratch using the map files
and the new map analyzer. The only games that will load are ones
I've created board definitions for, and updated
sfc/cartridge/markup.cpp to parse. Once I've finished all the
boards, then I'll update the heuristics.
Then finally, I'll sync the syntax changes over to the fc, gb, gba
cores.
Once that's done, I'll start posting WIPs again, along with a new
build of icarus.
But I'll still post changelogs as I work through things.
Changelog (r13):
- preservation: created new database-builder tool (merges
region-specific databases with boards)
- icarus: support new, external database format
(~/.config/icarus/Database/(Super Famicom.bml, ...)
- added 1A3B-(10,11,12); 1A3B-20
byuu says about r14:
r14 work:
I successfully created mappings for every board used in the US set.
I also updated icarus' heuristics to use the new mappings, and
created ones there for the boards that are only in the JP set.
Then I patched icarus to support pulling games out of the database
when it's used on a game folder to generate a manifest file.
Then I updated a lot of code in higan/sfc to support the new mapping
syntax. sfc/cartridge/markup.cpp is about half the size it used to
be with the new mappings, and I was able to kill off both map/id and
map/select entirely.
Then I updated all four emulated systems (and both subsystems) to
use "board" as the root node, and harmonized their syntax (made them
all more consistent with each other.)
Then I added a manifest viewer to the tools window+menu. It's kind
of an advanced user feature, but oh well. No reason to coddle people
when the feature is very useful for developers. The viewer will show
all manifests in order when you load multi-cart games as well.
Still not going to call any syntax 100% done right now, but
thankfully with the new manifest-free folders, nobody will have to
do anything to use the new format. Just download the new version and
go.
The Super Famicom Event stuff is currently broken (CC92/PF94
boards). That's gonna be fun to support.
byuu says about r15:
EDIT: small bug in icarus with heuristics. Edit
core/super-famicom.cpp line 27:
if(/*auto*/ markup = cartridge.markup) {
Gotta remove that "auto" so that it returns valid markup.
Resolved the final concerns I had with the new manifest format.
Right now there are two things that are definitely broken: MCC (BS-X
Town cart) and Event (CC '92 and PF'94).
And there are a few things that are untested: SPC7110, EpsonRTC,
SharpRTC, SDD1+RAM, SufamiTurbo, BS-X slotted carts.
2015-12-19 08:52:34 +00:00
|
|
|
MenuItem manifestViewer{&toolsMenu};
|
2015-02-28 01:51:53 +00:00
|
|
|
|
2015-04-13 11:16:33 +00:00
|
|
|
FixedLayout layout{this};
|
|
|
|
Viewport viewport{&layout, Geometry{0, 0, 1, 1}};
|
2015-02-28 01:51:53 +00:00
|
|
|
|
|
|
|
StatusBar statusBar{this};
|
|
|
|
};
|
|
|
|
|
|
|
|
extern Presentation* presentation;
|