Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
v110.1
Browse files Browse the repository at this point in the history
Fixed region detection issue in Hanguk Pro Yagu
Fixed boot hanging issue in Kishin Douji Zenki - Tenchi Meidou
Fixed slowdown issue in Mega Man X2 & X3
Added mute hotkey
Added HD mode 7 hotkeys (likely temporary, we'll see)
  • Loading branch information
byuu committed Sep 23, 2019
1 parent 675662e commit 6e5542a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bsnes/emulator/emulator.hpp
Expand Up @@ -29,7 +29,7 @@ using namespace nall;

namespace Emulator {
static const string Name = "bsnes";
static const string Version = "110";
static const string Version = "110.1";
static const string Author = "byuu";
static const string License = "GPLv3";
static const string Website = "https://byuu.org";
Expand Down
2 changes: 1 addition & 1 deletion bsnes/heuristics/super-famicom.cpp
Expand Up @@ -194,7 +194,7 @@ auto SuperFamicom::region() const -> string {

auto SuperFamicom::videoRegion() const -> string {
auto region = data[headerAddress + 0x29];
return (region <= 0x01 || region >= 0x12) ? "NTSC" : "PAL";
return (region <= 0x01 || region >= 0x0c) ? "NTSC" : "PAL";
}

auto SuperFamicom::revision() const -> string {
Expand Down
5 changes: 3 additions & 2 deletions bsnes/processor/hg51b/hg51b.cpp
Expand Up @@ -84,8 +84,9 @@ auto HG51B::cache() -> bool {

io.cache.address[io.cache.page] = address;
for(uint offset : range(256)) {
step(wait(address)); programRAM[io.cache.page][offset] = read(address++) << 0;
step(wait(address)); programRAM[io.cache.page][offset] |= read(address++) << 8;
step(wait(address));
programRAM[io.cache.page][offset] = read(address++) << 0;
programRAM[io.cache.page][offset] |= read(address++) << 8;
}
return io.cache.enable = 0, true;
}
Expand Down
2 changes: 1 addition & 1 deletion bsnes/sfc/smp/memory.cpp
Expand Up @@ -14,9 +14,9 @@ auto SMP::idle() -> void {
}

auto SMP::read(uint16 address) -> uint8 {
wait(address);
uint8 data = readRAM(address);
if((address & 0xfff0) == 0x00f0) data = readIO(address);
wait(address);
return data;
}

Expand Down
22 changes: 22 additions & 0 deletions bsnes/target-bsnes/input/hotkeys.cpp
Expand Up @@ -23,6 +23,10 @@ auto InputManager::bindHotkeys() -> void {
cheatEditor.enableCheats.setChecked(!cheatEditor.enableCheats.checked()).doToggle();
}));

hotkeys.append(InputHotkey("Toggle Mute").onPress([] {
presentation.muteAudio.setChecked(!presentation.muteAudio.checked()).doToggle();
}));

hotkeys.append(InputHotkey("Rewind").onPress([&] {
if(!emulator->loaded() || fastForwarding) return;
rewinding = true;
Expand Down Expand Up @@ -125,6 +129,24 @@ auto InputManager::bindHotkeys() -> void {
}
}));

hotkeys.append(InputHotkey("Increase HD Mode 7").onPress([] {
int index = enhancementSettings.mode7Scale.selected().offset() - 1;
if(index < 0) return;
enhancementSettings.mode7Scale.item(index).setSelected();
enhancementSettings.mode7Scale.doChange();
}));

hotkeys.append(InputHotkey("Decrease HD Mode 7").onPress([] {
int index = enhancementSettings.mode7Scale.selected().offset() + 1;
if(index >= enhancementSettings.mode7Scale.itemCount()) return;
enhancementSettings.mode7Scale.item(index).setSelected();
enhancementSettings.mode7Scale.doChange();
}));

hotkeys.append(InputHotkey("Toggle Supersampling").onPress([] {
enhancementSettings.mode7Supersample.setChecked(!enhancementSettings.mode7Supersample.checked()).doToggle();
}));

hotkeys.append(InputHotkey("Reset Emulation").onPress([] {
program.reset();
}));
Expand Down
2 changes: 1 addition & 1 deletion bsnes/target-bsnes/settings/settings.hpp
Expand Up @@ -325,7 +325,7 @@ struct EmulatorSettings : VerticalLayout {
struct EnhancementSettings : VerticalLayout {
auto create() -> void;

private:
public:
Label overclockingLabel{this, Size{~0, 0}, 2};
TableLayout overclockingLayout{this, Size{~0, 0}};
Label cpuLabel{&overclockingLayout, Size{0, 0}};
Expand Down

0 comments on commit 6e5542a

Please sign in to comment.