1 Commits

Author SHA1 Message Date
clobber f5d5eb1cf9 Update to BSNES 115. 2020-05-04 16:01:16 -06:00
3 changed files with 19 additions and 8 deletions
+4 -4
View File
@@ -2433,14 +2433,14 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CLANG_ENABLE_OBJC_ARC = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 114;
CURRENT_PROJECT_VERSION = 115;
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
GCC_UNROLL_LOOPS = YES;
GCC_WARN_UNUSED_VARIABLE = NO;
HEADER_SEARCH_PATHS = "\"$(PROJECT_DIR)/bsnes\"";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "\"$(USER_LIBRARY_DIR)/Application Support/OpenEmu/Cores\"";
MARKETING_VERSION = 114;
MARKETING_VERSION = 115;
OTHER_CFLAGS = (
"-DGB_INTERNAL",
"-DDISABLE_DEBUGGER",
@@ -2460,14 +2460,14 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
CLANG_ENABLE_OBJC_ARC = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 114;
CURRENT_PROJECT_VERSION = 115;
GCC_OPTIMIZATION_LEVEL = fast;
GCC_UNROLL_LOOPS = YES;
GCC_WARN_UNUSED_VARIABLE = NO;
HEADER_SEARCH_PATHS = "\"$(PROJECT_DIR)/bsnes\"";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "\"$(USER_LIBRARY_DIR)/Application Support/OpenEmu/Cores\"";
MARKETING_VERSION = 114;
MARKETING_VERSION = 115;
OTHER_CFLAGS = (
"-DGB_INTERNAL",
"-DDISABLE_DEBUGGER",
+1 -1
Submodule bsnes updated: 55e78b03de...8e80d2f8a4
+14 -3
View File
@@ -41,7 +41,7 @@ struct Program : Emulator::Platform {
auto open(uint id, string name, vfs::file::mode mode, bool required) -> shared_pointer<vfs::file> override;
auto load(uint id, string name, string type, vector<string> options = {}) -> Emulator::Platform::Load override;
auto videoFrame(const uint16* data, uint pitch, uint width, uint height, uint scale) -> void override;
auto audioFrame(const float* samples, uint channels) -> void override;
auto audioFrame(const double* samples, uint channels) -> void override;
auto inputPoll(uint port, uint device, uint input) -> int16 override;
auto inputRumble(uint port, uint device, uint input, bool enable) -> void override;
@@ -197,7 +197,7 @@ static int16_t d2i16(double v)
return int16_t(floor(v + 0.5));
}
auto Program::audioFrame(const float* samples, uint channels) -> void
auto Program::audioFrame(const double* samples, uint channels) -> void
{
int16_t data[2];
data[0] = d2i16(samples[0]);
@@ -246,7 +246,18 @@ auto Program::openRomSuperFamicom(string name, vfs::file::mode mode) -> shared_p
if(name == "expansion.rom" && mode == vfs::file::mode::read) {
return vfs::memory::file::open(superFamicom.expansion.data(), superFamicom.expansion.size());
}
if(name == "msu1/data.rom")
{
return vfs::fs::file::open({Location::notsuffix(superFamicom.location), ".msu"}, mode);
}
if(name.match("msu1/track*.pcm"))
{
name.trimLeft("msu1/track", 1L);
return vfs::fs::file::open({Location::notsuffix(superFamicom.location), name}, mode);
}
/* DSP3.rom */
if ((name == "upd7725.program.rom" || name == "upd7725.data.rom") && !superFamicom.firmware.size()) {
if(auto memory = superFamicom.document["game/board/memory(type=ROM,content=Program,architecture=uPD7725)"]) {