Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Boxer/BXSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ - (BOOL) readFromURL: (NSURL *)absoluteURL
//Check if the user was running a program last time, and restore that if available.
NSString *previousPath = [self.gameSettings objectForKey: BXGameboxSettingsLastProgramPathKey];
NSURL *previousURL = nil;
if (previousPath && !previousPath.isAbsolutePath)
if (previousPath.length > 0)
{
if (previousPath.isAbsolutePath)
{
Expand Down Expand Up @@ -1570,6 +1570,10 @@ - (void) emulatorDidReturnToShell: (NSNotification *)notification

//Let the display sleep while we're at the shell
[self _syncSuppressesDisplaySleep];

//The session is ready to launch another URL once DOSBox has returned to
//an idle shell, including the initial shell reached after startup.
self.canOpenURLs = !self.emulator.isRunningActiveProcess;

//If this was the last program in the stack, then clean up a bunch of our state
//and switch back to the launcher panel if appropriate.
Expand Down
Loading