Skip to content

Commit

Permalink
v107
Browse files Browse the repository at this point in the history
  • Loading branch information
byuu committed Dec 21, 2019
1 parent 9100e15 commit 3a12e1c
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 17 deletions.
4 changes: 2 additions & 2 deletions higan/emulator/emulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ using namespace nall;

namespace higan {
static const string Name = "higan";
static const string Version = "106.234";
static const string Version = "107";
static const string Author = "byuu";
static const string License = "GPLv3";
static const string Website = "https://byuu.org";

//incremented only when serialization format changes
static const string SerializerVersion = "106.234";
static const string SerializerVersion = "107";

namespace Constants {
namespace Colorburst {
Expand Down
9 changes: 0 additions & 9 deletions higan/sfc/coprocessor/icd/icd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ auto ICD::unload() -> void {
}

auto ICD::main() -> void {
#if 0
static uint n = 0;
float x = sin((2*3.141592*(n++/64)*1000.0)/44100.0)*0.1;
GameBoy::apu.stream->sample(x, x);
Thread::step(2);
Thread::synchronize(cpu);
return;
#endif

if(r6003.bit(7)) {
GameBoy::system.run();
Thread::step(GameBoy::system.clocksExecuted());
Expand Down
19 changes: 19 additions & 0 deletions higan/target-higan/higan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,25 @@ auto nall::main(Arguments arguments) -> void {
emulator.inputUpdate();
inputManager.poll();
hotkeys.bind();

if(settings.prototypeWarning) {
MessageDialog dialog;
dialog.setTitle({"higan v", higan::Version, " (feedback prototype)"});
dialog.setText(
"Note: this is a prototype release meant for feedback; not general use.\n"
"Compared to higan v106, a new tree-based user interface has been designed.\n"
"Please go to 'Help -> User Guide' for an overview on how to use this program.\n\n"
"As this is exerpimental, the next release will likely be quite different as well.\n"
"If you're not interested in this experiment, please continue using v106 for now.\n"
"Otherwise, I would appreciate any feedback on how to improve higan's usability.\n"
"Please go to 'Help -> Feedback' for ways to send me feedback.\n\n"
"Thank you!"
);
dialog.setOption("Don't show this message again");
dialog.information();
if(dialog.checked()) settings.prototypeWarning = false;
}

Application::onMain({&Emulator::main, &emulator});
Application::run();

Expand Down
3 changes: 3 additions & 0 deletions higan/target-higan/menus/help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ HelpMenu::HelpMenu(MenuBar* parent) : Menu(parent) {
userGuide.setIcon(Icon::Application::Browser).setText("User Guide ...").onActivate([&] {
invoke("https://byuu.org/higan/user-guide");
});
feedback.setIcon(Icon::Application::Browser).setText("Feedback ...").onActivate([&] {
invoke("https://byuu.org/higan/feedback");
});
about.setIcon(Icon::Prompt::Question).setText("About ...").onActivate([&] {
AboutDialog()
.setLogo(Resource::Logo)
Expand Down
1 change: 1 addition & 0 deletions higan/target-higan/menus/menus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ struct HelpMenu : Menu {
HelpMenu(MenuBar*);
MenuItem webpage{this};
MenuItem userGuide{this};
MenuItem feedback{this};
MenuSeparator separator{this};
MenuItem about{this};
};
2 changes: 1 addition & 1 deletion higan/target-higan/program/system-overview.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SystemOverview::SystemOverview(View* parent) : PanelItem(parent, Size{~0, ~0}) {
setCollapsible().setVisible(false);
header.setText("Overview").setFont(Font().setBold());
header.setText("Preview (read-only)").setFont(Font().setBold());
}

auto SystemOverview::show() -> void {
Expand Down
9 changes: 7 additions & 2 deletions higan/target-higan/settings/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ auto Settings::save() -> void {

auto Settings::properties(bool mode, Markup::Node document) -> void {
#define s(name) \
if(mode == 0) document[string{#name}.trimRight(".identifier", 1L).transform(".", "/")].value(name); \
if(mode == 1) document(string{#name}.trimRight(".identifier", 1L).transform(".", "/")).setValue(name);
if(mode == 0 && document[string{#name}.trimRight(".identifier", 1L).transform(".", "/")]) { \
document[string{#name}.trimRight(".identifier", 1L).transform(".", "/")].value(name); \
} \
if(mode == 1) { \
document(string{#name}.trimRight(".identifier", 1L).transform(".", "/")).setValue(name); \
}
s(prototypeWarning)
s(video.driver)
s(video.monitor)
s(video.format)
Expand Down
2 changes: 2 additions & 0 deletions higan/target-higan/settings/settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ struct Settings {
auto save() -> void;
auto properties(bool mode, Markup::Node document) -> void;

bool prototypeWarning = true;

struct {
string driver = Video::safestDriver();
string monitor = "Primary";
Expand Down
2 changes: 1 addition & 1 deletion icarus/icarus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using namespace hiro;

namespace icarus {
static const string Name = "icarus";
static const string Version = "106.234";
static const string Version = "107";
static const string Author = "byuu";
static const string License = "GPLv3";
static const string Website = "https://byuu.org";
Expand Down
5 changes: 3 additions & 2 deletions ruby/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ifeq ($(ruby),)
ruby += input.sdl input.xlib input.udev
else ifeq ($(platform),bsd)
ruby += video.glx video.glx2 video.xvideo video.xshm
ruby += audio.oss #audio.pulseaudio
ruby += audio.oss audio.openal #audio.pulseaudio
ruby += input.sdl input.xlib
endif
endif
Expand Down Expand Up @@ -65,7 +65,8 @@ endif

ifeq ($(platform),bsd)
ruby.options += -lX11 -lXext -lXrandr
ruby.options += $(if $(findstring audio.openal,$(ruby)),-lopenal)
ruby.options += $(if $(findstring audio.openal,$(ruby)),-lopenal -fuse-ld=bfd)
# -fuse-ld=bfd: see FreeBSD bug 219089
endif

ruby.objects := $(object.path)/ruby.o
Expand Down

0 comments on commit 3a12e1c

Please sign in to comment.