mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-20 16:51:48 +02:00
v114.5
* improved appended firmware detection [devinacker] * added dynamic rate control support to ALSA and PulseAudio drivers [RedDwarf] * added option to use native file dialogs
This commit is contained in:
@@ -37,6 +37,11 @@ NSTimer* applicationTimer = nullptr;
|
||||
|
||||
namespace hiro {
|
||||
|
||||
auto pApplication::exit() -> void {
|
||||
quit();
|
||||
::exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
auto pApplication::modal() -> bool {
|
||||
return Application::state().modal > 0;
|
||||
}
|
||||
|
@@ -11,6 +11,7 @@
|
||||
namespace hiro {
|
||||
|
||||
struct pApplication {
|
||||
static auto exit() -> void;
|
||||
static auto modal() -> bool;
|
||||
static auto run() -> void;
|
||||
static auto pendingEvents() -> bool;
|
||||
|
@@ -26,7 +26,7 @@ auto pBrowserWindow::open(BrowserWindow::State& state) -> string {
|
||||
@autoreleasepool {
|
||||
NSMutableArray* filters = [[NSMutableArray alloc] init];
|
||||
for(auto& rule : state.filters) {
|
||||
string pattern = rule.split("(", 1L)(1).trimRight(")", 1L);
|
||||
string pattern = rule.split("|", 1L)(1).transform(":", ";");
|
||||
if(pattern) [filters addObject:[NSString stringWithUTF8String:pattern]];
|
||||
}
|
||||
NSOpenPanel* panel = [NSOpenPanel openPanel];
|
||||
@@ -51,7 +51,7 @@ auto pBrowserWindow::save(BrowserWindow::State& state) -> string {
|
||||
@autoreleasepool {
|
||||
NSMutableArray* filters = [[NSMutableArray alloc] init];
|
||||
for(auto& rule : state.filters) {
|
||||
string pattern = rule.split("(", 1L)(1).trimRight(")", 1L);
|
||||
string pattern = rule.split("|", 1L)(1).transform(":", ";");
|
||||
if(pattern) [filters addObject:[NSString stringWithUTF8String:pattern]];
|
||||
}
|
||||
NSSavePanel* panel = [NSSavePanel savePanel];
|
||||
|
Reference in New Issue
Block a user