Skip to content

Commit

Permalink
fixed #14
Browse files Browse the repository at this point in the history
  • Loading branch information
darvin committed Jun 5, 2012
1 parent b4c9e9c commit 107c758
Show file tree
Hide file tree
Showing 21 changed files with 13 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
Binary file removed Classes/ControlPadConnectViewController.o
Binary file not shown.
Binary file removed Classes/ControlPadManager.o
Binary file not shown.
2 changes: 1 addition & 1 deletion Classes/EmulationViewController.m
Expand Up @@ -378,7 +378,7 @@ - (void)object:(id)object clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == quitIndex) {
NSLog(@"Quit button clicked");
__emulation_run = 0;
[AppDelegate() showEmulator:NO];
// [self performSelector:@selector(exit:) withObject:self afterDelay:1.0];
} else if (buttonIndex == saveCurrentIndex) {
NSLog(@"save to current file button clicked");
__emulation_saving = 2;
Expand Down
Binary file removed Classes/EmulationViewController.o
Binary file not shown.
Binary file removed Classes/RomDetailViewController.o
Binary file not shown.
Binary file removed Classes/RomSelectionViewController.o
Binary file not shown.
6 changes: 6 additions & 0 deletions Classes/SNES4iOSAppDelegate.m
Expand Up @@ -37,6 +37,12 @@ @implementation SNES4iOSAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
NSDictionary *new = [NSDictionary dictionaryWithObject:@"Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" forKey:@"UserAgent"];
[[NSUserDefaults standardUserDefaults] registerDefaults:new];
}


[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

settingsViewController = [[SettingsViewController alloc] init];
Expand Down
Binary file removed Classes/SNES4iOSAppDelegate.o
Binary file not shown.
Binary file removed Classes/SNESControllerAppDelegate.o
Binary file not shown.
Binary file removed Classes/SNESControllerViewController.o
Binary file not shown.
Binary file removed Classes/SaveStateSelectionViewController.o
Binary file not shown.
Binary file removed Classes/ScreenLayer.o
Binary file not shown.
Binary file removed Classes/ScreenView.o
Binary file not shown.
Binary file removed Classes/SessionController.o
Binary file not shown.
Binary file removed Classes/SettingsViewController.o
Binary file not shown.
4 changes: 4 additions & 0 deletions Classes/WebBrowserViewController.m
Expand Up @@ -51,6 +51,7 @@ - (void)WebDownloadInternal_downloadDidBegin:(NSURLDownload *)download
}
#endif


-(void)UIWebView_webView:(id)sender decidePolicyForMIMEType:(NSString*)type request:(NSURLRequest*)request frame:(id)frame decisionListener:(WebPolicyDecisionListener*)listener
{
//NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:apiUrl] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:30];
Expand Down Expand Up @@ -227,6 +228,7 @@ - (void) viewDidLoad
[NSClassFromString(@"WebDefaultPolicyDelegate") changeMethod: @selector(webView:decidePolicyForMIMEType:request:frame:decisionListener:) withMethod: @selector(UIWebView_webView:decidePolicyForMIMEType:request:frame:decisionListener:) error:nil];

[webView setScalesPageToFit: YES];

webView.delegate = self;

UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"ArrowBack.png"]
Expand Down Expand Up @@ -283,6 +285,8 @@ - (void)loadBaseURL

//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];



//Load the request in the UIWebView.
NSLog(@"loading URL: %@", url);
Expand Down
Binary file removed Classes/WebBrowserViewController.o
Binary file not shown.
2 changes: 2 additions & 0 deletions src/snes4iphone_src/main.mm
Expand Up @@ -1313,6 +1313,8 @@ int main(int argc, char *argv[])
}
if(!__emulation_run)
{
printf("exit from emulation");

set_gamma(100);
gp_Reset();
app_MuteSound();
Expand Down
Binary file removed src/snes4iphone_src/pocketsnesd
Binary file not shown.
Binary file removed src/snes4iphone_src/snes4iphone
Binary file not shown.

0 comments on commit 107c758

Please sign in to comment.