mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-08 22:26:52 +02:00
Update to v106r58 release.
byuu says: The main thing I worked on today was emulating the MBC7 EEPROM. And... I have many things to say about that, but not here, and not now... The missing EEPROM support is why the accelerometer was broken. Although it's not evidently clear that I'm emulating the actual values incorrectly. I'll think about it and get it fixed, though. bsnes went from ~308fps to ~328fps, and I don't even know why. Probably something somewhere in the 140KB of changes to other things made in this WIP.
This commit is contained in:
@@ -11,7 +11,11 @@ auto OpenGL::setShader(const string& pathname) -> void {
|
||||
relativeWidth = 0, relativeHeight = 0;
|
||||
|
||||
uint historySize = 0;
|
||||
if(pathname) {
|
||||
if(pathname == "None") {
|
||||
filter = GL_NEAREST;
|
||||
} else if(pathname == "Blur") {
|
||||
filter = GL_LINEAR;
|
||||
} else if(directory::exists(pathname)) {
|
||||
auto document = BML::unserialize(file::read({pathname, "manifest.bml"}));
|
||||
|
||||
for(auto node : document["settings"]) {
|
||||
@@ -180,7 +184,7 @@ auto OpenGL::output() -> void {
|
||||
}
|
||||
}
|
||||
|
||||
auto OpenGL::initialize() -> bool {
|
||||
auto OpenGL::initialize(const string& shader) -> bool {
|
||||
if(!OpenGLBind()) return false;
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
@@ -196,7 +200,7 @@ auto OpenGL::initialize() -> bool {
|
||||
OpenGLSurface::allocate();
|
||||
glrLinkProgram(program);
|
||||
|
||||
setShader("");
|
||||
setShader(shader);
|
||||
return initialized = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user