2015-03-03 10:14:49 +00:00
|
|
|
AdvancedSettings::AdvancedSettings(TabFrame* parent) : TabFrameItem(parent) {
|
2016-01-07 08:14:33 +00:00
|
|
|
setIcon(Icon::Action::Settings);
|
2015-03-03 10:14:49 +00:00
|
|
|
setText("Advanced");
|
|
|
|
|
|
|
|
layout.setMargin(5);
|
2015-04-21 11:51:57 +00:00
|
|
|
|
Update to v094r43 release.
byuu says:
Updated to compile with all of the new hiro changes. My next step is to
write up hiro API documentation, and move the API from alpha (constantly
changing) to beta (rarely changing), in preparation for the first stable
release (backward-compatible changes only.)
Added "--fullscreen" command-line option. I like this over
a configuration file option. Lets you use the emulator in both modes
without having to modify the config file each time.
Also enhanced the command-line game loading. You can now use any of
these methods:
higan /path/to/game-folder.sfc
higan /path/to/game-folder.sfc/
higan /path/to/game-folder.sfc/program.rom
The idea is to support launchers that insist on loading files only.
Technically, the file can be any name (manifest.bml also works); the
only criteria is that the file actually exists and is a file, and not
a directory. This is a requirement to support the first version (a
directory lacking the trailing / identifier), because I don't want my
nall::string class to query the file system to determine if the string
is an actual existing file or directory for its pathname() / dirname()
functions.
Anyway, every game folder I've made so far has program.rom, and that's
very unlikely to change, so this should be fine.
Now, of course, if you drop a regular "game.sfc" file on the emulator,
it won't even try to load it, unless it's in a folder that ends in .fc,
.sfc, etc. In which case, it'll bail out immediately by being unable to
produce a manifest for what is obviously not really a game folder.
2015-08-30 02:08:26 +00:00
|
|
|
driverLabel.setText("Driver Selection").setFont(Font().setBold());
|
2015-03-03 10:14:49 +00:00
|
|
|
videoLabel.setText("Video:");
|
2015-11-16 08:38:05 +00:00
|
|
|
videoDriver.onChange([&] { settings["Video/Driver"].setValue(videoDriver.selected().text()); });
|
2015-06-20 05:44:05 +00:00
|
|
|
for(auto& driver : Video::availableDrivers()) {
|
2015-03-03 10:14:49 +00:00
|
|
|
ComboButtonItem item;
|
|
|
|
item.setText(driver);
|
|
|
|
videoDriver.append(item);
|
2015-11-16 08:38:05 +00:00
|
|
|
if(settings["Video/Driver"].text() == driver) item.setSelected();
|
2015-03-03 10:14:49 +00:00
|
|
|
}
|
|
|
|
audioLabel.setText("Audio:");
|
2015-11-16 08:38:05 +00:00
|
|
|
audioDriver.onChange([&] { settings["Audio/Driver"].setValue(audioDriver.selected().text()); });
|
2015-06-20 05:44:05 +00:00
|
|
|
for(auto& driver : Audio::availableDrivers()) {
|
2015-03-03 10:14:49 +00:00
|
|
|
ComboButtonItem item;
|
|
|
|
item.setText(driver);
|
|
|
|
audioDriver.append(item);
|
2015-11-16 08:38:05 +00:00
|
|
|
if(settings["Audio/Driver"].text() == driver) item.setSelected();
|
2015-03-03 10:14:49 +00:00
|
|
|
}
|
|
|
|
inputLabel.setText("Input:");
|
2015-11-16 08:38:05 +00:00
|
|
|
inputDriver.onChange([&] { settings["Input/Driver"].setValue(inputDriver.selected().text()); });
|
2015-06-20 05:44:05 +00:00
|
|
|
for(auto& driver : Input::availableDrivers()) {
|
2015-03-03 10:14:49 +00:00
|
|
|
ComboButtonItem item;
|
|
|
|
item.setText(driver);
|
|
|
|
inputDriver.append(item);
|
2015-11-16 08:38:05 +00:00
|
|
|
if(settings["Input/Driver"].text() == driver) item.setSelected();
|
2015-03-03 10:14:49 +00:00
|
|
|
}
|
2015-04-21 11:51:57 +00:00
|
|
|
|
Update to v094r43 release.
byuu says:
Updated to compile with all of the new hiro changes. My next step is to
write up hiro API documentation, and move the API from alpha (constantly
changing) to beta (rarely changing), in preparation for the first stable
release (backward-compatible changes only.)
Added "--fullscreen" command-line option. I like this over
a configuration file option. Lets you use the emulator in both modes
without having to modify the config file each time.
Also enhanced the command-line game loading. You can now use any of
these methods:
higan /path/to/game-folder.sfc
higan /path/to/game-folder.sfc/
higan /path/to/game-folder.sfc/program.rom
The idea is to support launchers that insist on loading files only.
Technically, the file can be any name (manifest.bml also works); the
only criteria is that the file actually exists and is a file, and not
a directory. This is a requirement to support the first version (a
directory lacking the trailing / identifier), because I don't want my
nall::string class to query the file system to determine if the string
is an actual existing file or directory for its pathname() / dirname()
functions.
Anyway, every game folder I've made so far has program.rom, and that's
very unlikely to change, so this should be fine.
Now, of course, if you drop a regular "game.sfc" file on the emulator,
it won't even try to load it, unless it's in a folder that ends in .fc,
.sfc, etc. In which case, it'll bail out immediately by being unable to
produce a manifest for what is obviously not really a game folder.
2015-08-30 02:08:26 +00:00
|
|
|
libraryLabel.setText("Game Library").setFont(Font().setBold());
|
2015-04-21 11:51:57 +00:00
|
|
|
libraryPrefix.setText("Location:");
|
2015-11-16 08:38:05 +00:00
|
|
|
libraryLocation.setEditable(false).setText(settings["Library/Location"].text());
|
2015-04-21 11:51:57 +00:00
|
|
|
libraryChange.setText("Change ...").onActivate([&] {
|
Update to v094r23 release.
byuu says:
The library window is gone, and replaced with
hiro::BrowserWindow::openFolder(). This gives navigation capabilities to
game loading, and it also completes our slotted cart selection code. As
an added bonus, it's less code this way, too.
I also set the window size to consistent sizes between all emulated
systems, so that switching between SFC and GB don't cause the window
size to keep changing, and so that the scaling size is consistent (eg at
normal scale, GB @ 3x is closer to SNES @ 2x.) This means black borders
in GB/GBA mode, but it doesn't look that bad, and it's not like many
people ever use these modes anyway.
Finally, added the placeholder tabs for video, audio and timing. I don't
intend to add the timing calculator code to v095 (it might be better as
a separate tool), but I'll add the ability to set video/audio rates, at
least.
Glitch 1: despite selecting the first item in the BrowserDialog list, if
you press enter when the window appears, it doesn't activate the item
until you press an arrow key first.
Glitch 2: in Game Boy mode, if you set the 4x window size, it's not
honoring the full requested height because the viewport is smaller than
the window. 8+ years of trying to get GTK+ and Qt to simply set the god
damned window size I ask for, and I still can't get them to do it
reliably.
Remaining issues:
- finish configuration panels (video, audio, timing)
- fix ruby driver compilation on Windows
- add DIP switch selection window (NSS) [I may end up punting this one
to v096]
2015-05-30 11:39:09 +00:00
|
|
|
if(auto location = BrowserDialog().setTitle("Select Library Location").selectFolder()) {
|
2015-11-16 08:38:05 +00:00
|
|
|
settings["Library/Location"].setValue(location);
|
|
|
|
libraryLocation.setText(location);
|
2015-04-21 11:51:57 +00:00
|
|
|
}
|
|
|
|
});
|
2015-11-16 08:38:05 +00:00
|
|
|
|
|
|
|
ignoreManifests.setText("Ignore Manifests").setChecked(settings["Library/IgnoreManifests"].boolean()).onToggle([&] {
|
|
|
|
settings["Library/IgnoreManifests"].setValue(ignoreManifests.checked());
|
|
|
|
});
|
2015-03-03 10:14:49 +00:00
|
|
|
}
|