SDL: new method SDL_ANDROID_RestartMyself() that will restart current app
This commit is contained in:
@@ -923,6 +923,14 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
|
||||
}
|
||||
}
|
||||
|
||||
public void restartMyself(String restartParams)
|
||||
{
|
||||
Intent intent = new Intent(context, RestartMainActivity.class);
|
||||
intent.putExtra(RestartMainActivity.SDL_RESTART_PARAMS, restartParams);
|
||||
context.startActivity(intent);
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
private int PowerOf2(int i)
|
||||
{
|
||||
int value = 1;
|
||||
|
||||
Reference in New Issue
Block a user