mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-06 20:30:36 +08:00
android: rename package for new engine
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
//Created by Solexid
|
||||
import android.app.Activity;
|
||||
import android.app.ListActivity;
|
||||
@@ -31,8 +31,7 @@ import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import su.xash.fwgslib.FWGSLib;
|
||||
|
||||
import in.celest.xash3d.hl.R;
|
||||
import su.xash.engine.R;
|
||||
|
||||
public class FPicker extends Activity {
|
||||
private File currentDir;
|
||||
@@ -1,4 +1,5 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -1,4 +1,4 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
|
||||
import android.app.*;
|
||||
import android.content.*;
|
||||
@@ -12,7 +12,7 @@ import android.text.style.*;
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import in.celest.xash3d.hl.*;
|
||||
import su.xash.engine.*;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import org.json.*;
|
||||
@@ -21,9 +21,9 @@ import su.xash.fwgslib.*;
|
||||
|
||||
public class LauncherActivity extends Activity
|
||||
{
|
||||
// public final static String ARGV = "in.celest.xash3d.MESSAGE";
|
||||
// public final static String ARGV = "su.xash.engine.MESSAGE";
|
||||
public final static int sdk = FWGSLib.sdk;
|
||||
public final static String UPDATE_LINK = "https://api.github.com/repos/FWGS/xash3d-android-project/releases"; // releases/latest doesn't return prerelease and drafts
|
||||
public final static String UPDATE_LINK = "https://api.github.com/repos/FWGS/xash3d-fwgs/releases"; // releases/latest doesn't return prerelease and drafts
|
||||
static SharedPreferences mPref;
|
||||
|
||||
static EditText cmdArgs, resPath, writePath, resScale, resWidth, resHeight;
|
||||
@@ -440,14 +440,14 @@ public class LauncherActivity extends Activity
|
||||
int m_iFirstRunCounter = 0;
|
||||
public void showFirstRun()
|
||||
{
|
||||
startActivity(new Intent(this, in.celest.xash3d.XashTutorialActivity.class));
|
||||
startActivity(new Intent(this, su.xash.engine.XashTutorialActivity.class));
|
||||
}
|
||||
|
||||
public static final int ID_SELECT_FOLDER = 42, ID_SELECT_RW_FOLDER = 43;
|
||||
|
||||
public void selectFolder(View view)
|
||||
{
|
||||
Intent intent = new Intent(this, in.celest.xash3d.FPicker.class);
|
||||
Intent intent = new Intent(this, su.xash.engine.FPicker.class);
|
||||
startActivityForResult(intent, ID_SELECT_FOLDER);
|
||||
resPath.setEnabled(false);
|
||||
XashActivity.setFolderAsk( this, false );
|
||||
@@ -455,7 +455,7 @@ public class LauncherActivity extends Activity
|
||||
|
||||
public void selectRwFolder(View view)
|
||||
{
|
||||
Intent intent = new Intent(this, in.celest.xash3d.FPicker.class);
|
||||
Intent intent = new Intent(this, su.xash.engine.FPicker.class);
|
||||
startActivityForResult(intent, ID_SELECT_RW_FOLDER);
|
||||
writePath.setEnabled(false);
|
||||
XashActivity.setFolderAsk( this, false );
|
||||
@@ -511,7 +511,7 @@ public class LauncherActivity extends Activity
|
||||
{
|
||||
Intent intent = new Intent(this, ShortcutActivity.class);
|
||||
intent.putExtra( "basedir", resPath.getText().toString() );
|
||||
intent.putExtra( "name", "Xash3D" );
|
||||
intent.putExtra( "name", "Xash3D FWGS" );
|
||||
intent.putExtra( "argv", cmdArgs.getText().toString() );
|
||||
startActivity(intent);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.view.View;
|
||||
@@ -6,7 +6,7 @@ import android.content.Intent;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.widget.Toast;
|
||||
import in.celest.xash3d.hl.R;
|
||||
import su.xash.engine.R;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Button;
|
||||
import java.io.File;
|
||||
@@ -58,7 +58,7 @@ public class ShortcutActivity extends Activity
|
||||
public void saveShortcut(View view)
|
||||
{
|
||||
Intent intent = new Intent();
|
||||
intent.setAction("in.celest.xash3d.START");
|
||||
intent.setAction("su.xash.engine.START");
|
||||
if(argv.length() != 0) intent.putExtra("argv",argv.getText().toString());
|
||||
if(pkgname.length() != 0)
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
|
||||
import javax.microedition.khronos.egl.EGL10;
|
||||
import javax.microedition.khronos.egl.EGLConfig;
|
||||
@@ -30,9 +30,9 @@ import java.lang.reflect.*;
|
||||
import java.util.*;
|
||||
import java.security.MessageDigest;
|
||||
|
||||
import in.celest.xash3d.hl.R;
|
||||
import in.celest.xash3d.XashConfig;
|
||||
import in.celest.xash3d.JoystickHandler;
|
||||
import su.xash.engine.R;
|
||||
import su.xash.engine.XashConfig;
|
||||
import su.xash.engine.JoystickHandler;
|
||||
import android.provider.Settings.Secure;
|
||||
|
||||
import su.xash.fwgslib.*;
|
||||
@@ -144,7 +144,7 @@ public class XashActivity extends Activity {
|
||||
{
|
||||
Log.v( TAG, "folderask == true. Opening FPicker..." );
|
||||
|
||||
Intent intent = new Intent( this, in.celest.xash3d.FPicker.class );
|
||||
Intent intent = new Intent( this, su.xash.engine.FPicker.class );
|
||||
startActivityForResult( intent, FPICKER_RESULT );
|
||||
}
|
||||
else
|
||||
@@ -944,7 +944,7 @@ public class XashActivity extends Activity {
|
||||
{
|
||||
try
|
||||
{
|
||||
mSingleton.startActivity( new Intent( Intent.ACTION_VIEW, Uri.parse("market://details?id=in.celest.xash3d.hl") ) );
|
||||
mSingleton.startActivity( new Intent( Intent.ACTION_VIEW, Uri.parse("market://details?id=su.xash.engine.hl") ) );
|
||||
return;
|
||||
}
|
||||
catch( android.content.ActivityNotFoundException e )
|
||||
@@ -1,4 +1,4 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
public class XashConfig {
|
||||
public static final boolean PKG_TEST = false;
|
||||
public static final boolean CHECK_SIGNATURES = false;
|
||||
@@ -1,4 +1,4 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
|
||||
import javax.microedition.khronos.egl.EGL10;
|
||||
import javax.microedition.khronos.egl.EGLConfig;
|
||||
@@ -29,9 +29,9 @@ import java.lang.*;
|
||||
import java.util.List;
|
||||
import java.security.MessageDigest;
|
||||
|
||||
import in.celest.xash3d.hl.R;
|
||||
import in.celest.xash3d.XashConfig;
|
||||
import in.celest.xash3d.JoystickHandler;
|
||||
import su.xash.engine.R;
|
||||
import su.xash.engine.XashConfig;
|
||||
import su.xash.engine.JoystickHandler;
|
||||
|
||||
|
||||
public class XashService extends Service
|
||||
@@ -1,4 +1,4 @@
|
||||
package in.celest.xash3d;
|
||||
package su.xash.engine;
|
||||
|
||||
import android.animation.*;
|
||||
import android.app.*;
|
||||
@@ -9,7 +9,7 @@ import android.view.*;
|
||||
import android.view.View.*;
|
||||
import android.widget.*;
|
||||
import android.widget.TableRow.*;
|
||||
import in.celest.xash3d.hl.*;
|
||||
import su.xash.engine.*;
|
||||
import java.util.*;
|
||||
import su.xash.fwgslib.*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package su.xash.fwgslib;
|
||||
package su.xash.fwgslib;
|
||||
|
||||
import android.content.*;
|
||||
import android.view.*;
|
||||
@@ -17,8 +17,7 @@ import java.lang.*;
|
||||
import java.util.List;
|
||||
import java.security.MessageDigest;
|
||||
|
||||
import in.celest.xash3d.XashConfig; // change pkgname if needed
|
||||
// import in.celest.xash3d.hl.BuildConfig; // change pkgname if needed
|
||||
import su.xash.engine.XashConfig; // change pkgname if needed
|
||||
|
||||
public class CertCheck
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ import android.net.*;
|
||||
import android.os.*;
|
||||
import android.util.*;
|
||||
import android.widget.*;
|
||||
import in.celest.xash3d.hl.*;
|
||||
import su.xash.engine.*;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import org.json.*;
|
||||
|
||||
Reference in New Issue
Block a user