project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/SDLActivity.java
branchhedgeroid
changeset 5943 5b2b86a37089
parent 5934 9f05a0f43003
child 6033 6bcc36225162
equal deleted inserted replaced
5941:db4751cb4f53 5943:5b2b86a37089
   283 		// Runs SDL_main() with added parameters
   283 		// Runs SDL_main() with added parameters
   284 		SDLActivity.nativeInit(new String[] { String.valueOf(ipc.port),
   284 		SDLActivity.nativeInit(new String[] { String.valueOf(ipc.port),
   285 				String.valueOf(surfaceWidth), String.valueOf(surfaceHeight),
   285 				String.valueOf(surfaceWidth), String.valueOf(surfaceHeight),
   286 				"0", "null", "xeli", "1", "1", "1", "0", "", path });
   286 				"0", "null", "xeli", "1", "1", "1", "0", "", path });
   287 
   287 
       
   288 		try {
       
   289 			ipc.quitIPC();
       
   290 			ipc.join();
       
   291 		} catch (InterruptedException e) {
       
   292 			e.printStackTrace();
       
   293 		}
   288 		//Log.v("SDL", "SDL thread terminated");
   294 		//Log.v("SDL", "SDL thread terminated");
   289 		SDLActivity.mSingleton.finish();
   295 		SDLActivity.mSingleton.finish();
   290 	}
   296 	}
   291 }
   297 }
   292 
   298 
   349 			} catch (Exception e) {
   355 			} catch (Exception e) {
   350 				Log.v("SDL", "Problem stopping thread: " + e);
   356 				Log.v("SDL", "Problem stopping thread: " + e);
   351 			}
   357 			}
   352 			mSDLThread = null;
   358 			mSDLThread = null;
   353 
   359 
   354 			// Log.v("SDL", "Finished waiting for SDL thread");
   360 			Log.v("SDL", "Finished waiting for SDL thread");
   355 		}
   361 		}
   356 
   362 
   357 		//enableSensor(Sensor.TYPE_ACCELEROMETER, false);
   363 		//enableSensor(Sensor.TYPE_ACCELEROMETER, false);
   358 	}
   364 	}
   359 
   365