mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-08 13:21:51 +08:00
Shortcuts improvements
This commit is contained in:
@@ -113,6 +113,9 @@ try{
|
||||
public void createShortcut(View view)
|
||||
{
|
||||
Intent intent = new Intent(this, ShortcutActivity.class);
|
||||
intent.putExtra( "basedir", resPath.getText().toString() );
|
||||
intent.putExtra( "name", "Xash3D" );
|
||||
intent.putExtra( "argv", cmdArgs.getText().toString() );
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,13 +31,13 @@ public class ShortcutActivity extends Activity
|
||||
argv.setText(argvs);
|
||||
String pkgnames = intent.getStringExtra("pkgname");
|
||||
if( pkgnames != null )
|
||||
argv.setText(pkgnames);
|
||||
pkgname.setText(pkgnames);
|
||||
String gamedirs = intent.getStringExtra("gamedir");
|
||||
if( gamedirs != null )
|
||||
argv.setText(gamedirs);
|
||||
gamedir.setText(gamedirs);
|
||||
String names = intent.getStringExtra("name");
|
||||
if( names != null )
|
||||
argv.setText(names);
|
||||
name.setText(names);
|
||||
|
||||
//name.setText("Name");
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ import android.content.*;
|
||||
*/
|
||||
public class SDLActivity extends Activity {
|
||||
private static final String TAG = "SDL";
|
||||
private static final int PAK_VERSION = 1;
|
||||
private static final int PAK_VERSION = 2;
|
||||
|
||||
// Keep track of the paused state
|
||||
public static boolean mIsPaused, mIsSurfaceReady, mHasFocus, mUseVolume;
|
||||
|
||||
Reference in New Issue
Block a user