mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-19 18:12:06 +02:00
Update to v095 release.
byuu says: After 20 months of development, higan v095 is released at long last! The most notable feature is vastly improved Game Boy Advance emulation. With many thanks to endrift, Cydrak, Jonas Quinn and jchadwick, this release contains substantially improved CPU timings and many bugfixes. Being one of only two GBA emulators to offer ROM prefetch emulation, higan is very near mGBA in terms of accuracy, and far ahead of all others. As a result of these fixes, compatibility is also much higher than in v094. There are also several improvements to SNES emulation. Most significantly is support for mid-scanline changes to the background mode in the accuracy profile. Due to substantial changes to the user interface library used by higan, this release features yet again a brand-new UI. With the exception of video shaders and NSS DIP switch selection, it is at feature-parity with the previous UI. It also offers some new features that v094 lacked. The cheat code database has also been updated to the latest version by mightymo.
This commit is contained in:
25
nall/encode/url.hpp
Normal file
25
nall/encode/url.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef NALL_ENCODE_URL_HPP
|
||||
#define NALL_ENCODE_URL_HPP
|
||||
|
||||
namespace nall { namespace Encode {
|
||||
|
||||
inline auto URL(const string& input) -> string {
|
||||
string output;
|
||||
for(auto c : input) {
|
||||
if(c >= 'A' && c <= 'Z') { output.append(c); continue; }
|
||||
if(c >= 'a' && c <= 'z') { output.append(c); continue; }
|
||||
if(c >= '0' && c <= '9') { output.append(c); continue; }
|
||||
if(c == '-' || c == '_' || c == '.' || c == '~') { output.append(c); continue; }
|
||||
if(c == ' ') { output.append('+'); continue; }
|
||||
unsigned hi = (c >> 4) & 15;
|
||||
unsigned lo = (c >> 0) & 15;
|
||||
output.append('%');
|
||||
output.append((char)(hi < 10 ? ('0' + hi) : ('a' + hi - 10)));
|
||||
output.append((char)(lo < 10 ? ('0' + lo) : ('a' + lo - 10)));
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user