i obviously forgot one piece
authorkoda
Mon, 07 Feb 2011 23:22:14 +0100
changeset 4934 727da72f754a
parent 4933 86bd82d58a0b
child 4935 27fb500dd6b1
i obviously forgot one piece
project_files/HedgewarsMobile/Classes/StatsPageViewController.m
project_files/HedgewarsMobile/SDL.patch
--- a/project_files/HedgewarsMobile/Classes/StatsPageViewController.m	Mon Feb 07 23:12:56 2011 +0100
+++ b/project_files/HedgewarsMobile/Classes/StatsPageViewController.m	Mon Feb 07 23:22:14 2011 +0100
@@ -141,8 +141,10 @@
 #pragma mark -
 #pragma mark Table view delegate
 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-    if ([indexPath section] == 3)
+    if ([indexPath section] == 3) {
+        playSound(@"backSound");
         [self dismissModalViewControllerAnimated:YES];
+    }
 }
 
 #pragma mark -
--- a/project_files/HedgewarsMobile/SDL.patch	Mon Feb 07 23:12:56 2011 +0100
+++ b/project_files/HedgewarsMobile/SDL.patch	Mon Feb 07 23:22:14 2011 +0100
@@ -1,6 +1,6 @@
 diff -r 1fbe1c202501 Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj
 --- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 10:40:21 2011 -0800
-+++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 23:10:55 2011 +0100
++++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Mon Feb 07 23:21:28 2011 +0100
 @@ -1603,11 +1603,15 @@
  			isa = XCBuildConfiguration;
  			buildSettings = {
@@ -39,7 +39,7 @@
  				TARGETED_DEVICE_FAMILY = "1,2";
 diff -r 1fbe1c202501 include/SDL_config_iphoneos.h
 --- a/include/SDL_config_iphoneos.h	Mon Feb 07 10:40:21 2011 -0800
-+++ b/include/SDL_config_iphoneos.h	Mon Feb 07 23:10:55 2011 +0100
++++ b/include/SDL_config_iphoneos.h	Mon Feb 07 23:21:28 2011 +0100
 @@ -119,7 +119,7 @@
  /* enable iPhone version of Core Audio driver */
  #define SDL_AUDIO_DRIVER_COREAUDIOIPHONE 1
@@ -79,3 +79,14 @@
 +#define SDL_VIEW_TAG 456987
 +
  #endif /* _SDL_config_iphoneos_h */
+diff -r 1fbe1c202501 src/video/uikit/SDL_uikitopengles.m
+--- a/src/video/uikit/SDL_uikitopengles.m	Mon Feb 07 10:40:21 2011 -0800
++++ b/src/video/uikit/SDL_uikitopengles.m	Mon Feb 07 23:21:28 2011 +0100
+@@ -117,6 +117,7 @@
+                                     majorVersion: _this->gl_config.major_version];
+     
+     data->view = view;
++    view.tag = SDL_VIEW_TAG;
+     
+     /* add the view to our window */
+     [uiwindow addSubview: view ];