mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 01:50:12 +02:00
Update to v094r44 release.
byuu says: Changelog: - return open bus instead of mirroring addresses on the bus (fixes Mario&Luigi, Minish Cap, etc) [Jonas Quinn] - add boolean flag to load requests for slotted game carts (fixes slot load prompts) - rename BS-X Town cart from psram to ram - icarus: add support for game database Note: I didn't rename "bsx" to "mcc" in the database for icarus before uploading that. But I just fixed it locally, so it'll be in the next WIP. For now, make it create the manifest for you and then rename it yourself. I did fix the PSRAM size to 256kbit.
This commit is contained in:
@@ -2,44 +2,44 @@
|
||||
|
||||
namespace nall {
|
||||
|
||||
auto downcase(string& self) -> string& {
|
||||
char* p = self.get();
|
||||
for(unsigned n = 0; n < self.size(); n++) {
|
||||
auto string::downcase() -> string& {
|
||||
char* p = get();
|
||||
for(unsigned n = 0; n < size(); n++) {
|
||||
if(p[n] >= 'A' && p[n] <= 'Z') p[n] += 0x20;
|
||||
}
|
||||
return self;
|
||||
return *this;
|
||||
}
|
||||
|
||||
auto qdowncase(string& self) -> string& {
|
||||
char* p = self.get();
|
||||
for(unsigned n = 0, quoted = 0; n < self.size(); n++) {
|
||||
auto string::qdowncase() -> string& {
|
||||
char* p = get();
|
||||
for(unsigned n = 0, quoted = 0; n < size(); n++) {
|
||||
if(p[n] == '\"') quoted ^= 1;
|
||||
if(!quoted && p[n] >= 'A' && p[n] <= 'Z') p[n] += 0x20;
|
||||
}
|
||||
return self;
|
||||
return *this;
|
||||
}
|
||||
|
||||
auto upcase(string& self) -> string& {
|
||||
char* p = self.get();
|
||||
for(unsigned n = 0; n < self.size(); n++) {
|
||||
auto string::upcase() -> string& {
|
||||
char* p = get();
|
||||
for(unsigned n = 0; n < size(); n++) {
|
||||
if(p[n] >= 'a' && p[n] <= 'z') p[n] -= 0x20;
|
||||
}
|
||||
return self;
|
||||
return *this;
|
||||
}
|
||||
|
||||
auto qupcase(string& self) -> string& {
|
||||
char* p = self.get();
|
||||
for(unsigned n = 0, quoted = 0; n < self.size(); n++) {
|
||||
auto string::qupcase() -> string& {
|
||||
char* p = get();
|
||||
for(unsigned n = 0, quoted = 0; n < size(); n++) {
|
||||
if(p[n] == '\"') quoted ^= 1;
|
||||
if(!quoted && p[n] >= 'a' && p[n] <= 'z') p[n] -= 0x20;
|
||||
}
|
||||
return self;
|
||||
return *this;
|
||||
}
|
||||
|
||||
auto transform(string& self, rstring from, rstring to) -> string& {
|
||||
if(from.size() != to.size() || from.size() == 0) return self; //patterns must be the same length
|
||||
char* p = self.get();
|
||||
for(unsigned n = 0; n < self.size(); n++) {
|
||||
auto string::transform(rstring from, rstring to) -> string& {
|
||||
if(from.size() != to.size() || from.size() == 0) return *this; //patterns must be the same length
|
||||
char* p = get();
|
||||
for(unsigned n = 0; n < size(); n++) {
|
||||
for(unsigned s = 0; s < from.size(); s++) {
|
||||
if(p[n] == from[s]) {
|
||||
p[n] = to[s];
|
||||
@@ -47,7 +47,7 @@ auto transform(string& self, rstring from, rstring to) -> string& {
|
||||
}
|
||||
}
|
||||
}
|
||||
return self;
|
||||
return *this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user