mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-19 04:21:55 +02:00
Update to v094r37 release.
byuu says: Changelog: - synchronizes lots of nall changes - changes displayed program title from tomoko to higan(*) - browser dialog sort is case-insensitive - .sys folders look at user-selected library path; no longer hard-coded Tried to get rid of the file modes from the Windows browser dialog, but it was being a bitch so I left it on for now. - The storage locations and binary still use tomoko. I'm not really sure what to do here. The idea is there may be more than one "higan" UI in the future, but I don't want people to go around calling the entire program by the UI name. For official Windows releases, I can rename the binaries to "higan-{profile}.exe", and by putting the config files with the binary, they won't ever see the tomoko folder. Linux is of course trickier. Note: Windows users will need to edit hiro/components.hpp and comment out these lines: #define Hiro_Console #define Hiro_IconView #define Hiro_SourceView #define Hiro_TreeView I forgot to do that, and too lazy to upload another WIP.
This commit is contained in:
@@ -73,7 +73,7 @@ template<typename... P> auto print(P&&... p) -> void {
|
||||
fputs(s.data(), stdout);
|
||||
}
|
||||
|
||||
template<signed precision, char padchar> auto integer(intmax_t value) -> string {
|
||||
auto integer(intmax_t value, long precision, char padchar) -> string {
|
||||
string buffer;
|
||||
buffer.resize(1 + sizeof(intmax_t) * 3);
|
||||
char* p = buffer.pointer();
|
||||
@@ -92,7 +92,7 @@ template<signed precision, char padchar> auto integer(intmax_t value) -> string
|
||||
return buffer;
|
||||
}
|
||||
|
||||
template<signed precision, char padchar> auto decimal(uintmax_t value) -> string {
|
||||
auto decimal(uintmax_t value, long precision, char padchar) -> string {
|
||||
string buffer;
|
||||
buffer.resize(sizeof(uintmax_t) * 3);
|
||||
char* p = buffer.pointer();
|
||||
@@ -108,7 +108,7 @@ template<signed precision, char padchar> auto decimal(uintmax_t value) -> string
|
||||
return buffer;
|
||||
}
|
||||
|
||||
template<signed precision, char padchar> auto hex(uintmax_t value) -> string {
|
||||
auto hex(uintmax_t value, long precision, char padchar) -> string {
|
||||
string buffer;
|
||||
buffer.resize(sizeof(uintmax_t) * 2);
|
||||
char* p = buffer.pointer();
|
||||
@@ -125,7 +125,7 @@ template<signed precision, char padchar> auto hex(uintmax_t value) -> string {
|
||||
return buffer;
|
||||
}
|
||||
|
||||
template<signed precision, char padchar> auto octal(uintmax_t value) -> string {
|
||||
auto octal(uintmax_t value, long precision, char padchar) -> string {
|
||||
string buffer;
|
||||
buffer.resize(sizeof(uintmax_t) * 3);
|
||||
char* p = buffer.pointer();
|
||||
@@ -141,7 +141,7 @@ template<signed precision, char padchar> auto octal(uintmax_t value) -> string {
|
||||
return buffer;
|
||||
}
|
||||
|
||||
template<signed precision, char padchar> auto binary(uintmax_t value) -> string {
|
||||
auto binary(uintmax_t value, long precision, char padchar) -> string {
|
||||
string buffer;
|
||||
buffer.resize(sizeof(uintmax_t) * 8);
|
||||
char* p = buffer.pointer();
|
||||
@@ -157,14 +157,14 @@ template<signed precision, char padchar> auto binary(uintmax_t value) -> string
|
||||
return buffer;
|
||||
}
|
||||
|
||||
template<signed precision, typename T> auto pointer(const T* value) -> string {
|
||||
template<typename T> auto pointer(const T* value, long precision) -> string {
|
||||
if(value == nullptr) return "(null)";
|
||||
return {"0x", hex<precision>((uintptr_t)value)};
|
||||
return {"0x", hex((uintptr_t)value, precision)};
|
||||
}
|
||||
|
||||
template<signed precision> auto pointer(uintptr_t value) -> string {
|
||||
auto pointer(uintptr_t value, long precision) -> string {
|
||||
if(value == 0) return "(null)";
|
||||
return {"0x", hex<precision>(value)};
|
||||
return {"0x", hex(value, precision)};
|
||||
}
|
||||
|
||||
auto real(long double value) -> string {
|
||||
|
Reference in New Issue
Block a user