mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-20 17:11:46 +02:00
Update to v095r07 release.
byuu says: Changelog: - entire GBA core ported to auto function() -> return; syntax - fixed GBA BLDY bug that was causing flickering in a few games - replaced nall/config usage with nall/string/markup/node - this merges all configuration files to a unified settings.bml file - added "Ignore Manifests" option to the advanced setting tab - this lets you keep a manifest.bml for an older version of higan; if you want to do regression testing Be sure to remap your controller/hotkey inputs, and for SNES, choose "Gamepad" from "Controller Port 1" in the system menu. Otherwise you won't get any input. No need to blow away your old config files, unless you want to.
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace nall {
|
||||
|
||||
template<bool Insensitive, bool Quoted> auto string::_find(signed offset, rstring source) const -> maybe<unsigned> {
|
||||
template<bool Insensitive, bool Quoted> auto string::_find(int offset, rstring source) const -> maybe<uint> {
|
||||
if(source.size() == 0) return nothing;
|
||||
|
||||
auto p = data();
|
||||
for(unsigned n = offset, quoted = 0; n < size();) {
|
||||
for(uint n = offset, quoted = 0; n < size();) {
|
||||
if(Quoted) { if(p[n] == '\"') { quoted ^= 1; n++; continue; } if(quoted) { n++; continue; } }
|
||||
if(_compare<Insensitive>(p + n, size() - n, source.data(), source.size())) { n++; continue; }
|
||||
return n - offset;
|
||||
@@ -15,13 +15,13 @@ template<bool Insensitive, bool Quoted> auto string::_find(signed offset, rstrin
|
||||
return nothing;
|
||||
}
|
||||
|
||||
auto string::find(rstring source) const -> maybe<unsigned> { return _find<0, 0>(0, source); }
|
||||
auto string::ifind(rstring source) const -> maybe<unsigned> { return _find<1, 0>(0, source); }
|
||||
auto string::qfind(rstring source) const -> maybe<unsigned> { return _find<0, 1>(0, source); }
|
||||
auto string::iqfind(rstring source) const -> maybe<unsigned> { return _find<1, 1>(0, source); }
|
||||
auto string::find(rstring source) const -> maybe<uint> { return _find<0, 0>(0, source); }
|
||||
auto string::ifind(rstring source) const -> maybe<uint> { return _find<1, 0>(0, source); }
|
||||
auto string::qfind(rstring source) const -> maybe<uint> { return _find<0, 1>(0, source); }
|
||||
auto string::iqfind(rstring source) const -> maybe<uint> { return _find<1, 1>(0, source); }
|
||||
|
||||
auto string::findFrom(signed offset, rstring source) const -> maybe<unsigned> { return _find<0, 0>(offset, source); }
|
||||
auto string::ifindFrom(signed offset, rstring source) const -> maybe<unsigned> { return _find<1, 0>(offset, source); }
|
||||
auto string::findFrom(int offset, rstring source) const -> maybe<uint> { return _find<0, 0>(offset, source); }
|
||||
auto string::ifindFrom(int offset, rstring source) const -> maybe<uint> { return _find<1, 0>(offset, source); }
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user