mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-29 00:40:01 +02:00
Update to v096r03 release.
byuu says: Changelog: - fixed icarus to save settings properly - fixed higan's full screen toggle on OS X - increased "Add Codes" button width to avoid text clipping - implemented cocoa/canvas.cpp - added 1s delay after mapping inputs before re-enabling the window (wasn't actually necessary, but already added it) - fixed setEnabled(false) on Cocoa's ListView and TextEdit widgets - updated nall::programpath() to use GetModuleFileName on Windows - GB: system uses open collector logic, so unmapped reads return 0xFF, not 0x00 (passes blargg's cpu_instrs again) [gekkio]
This commit is contained in:
@@ -24,11 +24,11 @@ auto realpath(rstring name) -> string {
|
||||
|
||||
auto programpath() -> string {
|
||||
#if defined(PLATFORM_WINDOWS)
|
||||
int argc = 0;
|
||||
wchar_t** argv = CommandLineToArgvW(GetCommandLine(), &argc);
|
||||
string argv0 = (const char*)utf8_t(argv[0]);
|
||||
LocalFree(argv);
|
||||
return realpath(argv0);
|
||||
wchar_t path[PATH_MAX] = L"";
|
||||
GetModuleFileName(nullptr, path, PATH_MAX);
|
||||
string result = (const char*)utf8_t(path);
|
||||
result.transform("\\", "/");
|
||||
return realpath(result);
|
||||
#else
|
||||
Dl_info info;
|
||||
dladdr((void*)&programpath, &info);
|
||||
|
Reference in New Issue
Block a user