mirror of https://github.com/bsnes-emu/bsnes.git
Update to bsnes v027r06? release.
Double post! Better to separate this, I think. Okay, new WIP lacks Windows binary, and only changes one header. I figured it might be fun to show you guys what I've been doing as far as code cleanup goes, something a little different, you know? Okay, here was the config.hpp file from the last WIP: http://byuu.cinnamonpirate.com/temp/config_old.txt And here is the new one: http://byuu.cinnamonpirate.com/temp/config_new.txt Or for those who do not know C++ ... :) Like a standard library should be, I've reverted UpperCase to lower_case, I've converted everything to const-correctness, I've hidden everything that should not be public, improved the code formatting, added proper casting, removed the needless template overloads all over the place, converted the variable names from incomprehensible gibberish (idef, ifmt?) to clean, understandable alternatives (default_value, type), removed needless copying of const char* data, which means no more destructors needed, and added proper int -> unsigned types when indexing arrays. The only thing left is to add better-named integer->string conversion routines to string.hpp, to get rid of the ugly sprintf code. [No archive available]
This commit is contained in:
parent
a85ff8c437
commit
3b65b50aea