mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Changes
- Automatic disable Forge splash screen. - Change package of some components.
This commit is contained in:
parent
2c8b213911
commit
acd5b8a393
@ -1,7 +1,5 @@
|
|||||||
package com.kdt.glsupport;
|
package com.kdt.glsupport;
|
||||||
|
|
||||||
// Search "DISABLED" to find disabled codes.
|
|
||||||
|
|
||||||
import java.io.Writer;
|
import java.io.Writer;
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -1257,7 +1255,6 @@ public class GLTextureView
|
|||||||
Log.i("GLThread", "noticed surfaceView surface lost tid=" + getId());
|
Log.i("GLThread", "noticed surfaceView surface lost tid=" + getId());
|
||||||
}
|
}
|
||||||
if (mHaveEglSurface) {
|
if (mHaveEglSurface) {
|
||||||
// DISABLED
|
|
||||||
stopEglSurfaceLocked();
|
stopEglSurfaceLocked();
|
||||||
}
|
}
|
||||||
mWaitingForSurface = true;
|
mWaitingForSurface = true;
|
||||||
@ -1505,7 +1502,7 @@ public class GLTextureView
|
|||||||
synchronized(sGLThreadManager) {
|
synchronized(sGLThreadManager) {
|
||||||
if (LOG_THREADS) {
|
if (LOG_THREADS) {
|
||||||
Log.i("GLThread", "surfaceDestroyed tid=" + getId());
|
Log.i("GLThread", "surfaceDestroyed tid=" + getId());
|
||||||
new Throwable("Surface destroy calling at???").printStackTrace();
|
// new Throwable("Surface destroy calling at???").printStackTrace();
|
||||||
}
|
}
|
||||||
mHasSurface = false;
|
mHasSurface = false;
|
||||||
sGLThreadManager.notifyAll();
|
sGLThreadManager.notifyAll();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.kdt.filerapi;
|
package com.kdt.pickafile;
|
||||||
|
|
||||||
import android.support.v7.app.*;
|
import android.support.v7.app.*;
|
||||||
import android.content.*;
|
import android.content.*;
|
@ -1,4 +1,4 @@
|
|||||||
package com.kdt.filerapi;
|
package com.kdt.pickafile;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.kdt.filerapi;
|
package com.kdt.pickafile;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
@ -6,7 +6,7 @@ import android.support.v7.app.*;
|
|||||||
import android.text.*;
|
import android.text.*;
|
||||||
import android.view.*;
|
import android.view.*;
|
||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import com.kdt.filerapi.*;
|
import com.kdt.pickafile.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import net.kdt.pojavlaunch.fragments.*;
|
import net.kdt.pojavlaunch.fragments.*;
|
||||||
import net.kdt.pojavlaunch.prefs.*;
|
import net.kdt.pojavlaunch.prefs.*;
|
||||||
|
@ -9,7 +9,7 @@ import android.support.v7.preference.*;
|
|||||||
import android.view.*;
|
import android.view.*;
|
||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import com.google.gson.*;
|
import com.google.gson.*;
|
||||||
import com.kdt.filerapi.*;
|
import com.kdt.pickafile.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import net.kdt.pojavlaunch.*;
|
import net.kdt.pojavlaunch.*;
|
||||||
import net.kdt.pojavlaunch.prefs.*;
|
import net.kdt.pojavlaunch.prefs.*;
|
||||||
|
@ -13,7 +13,7 @@ import android.view.*;
|
|||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import android.widget.AdapterView.*;
|
import android.widget.AdapterView.*;
|
||||||
import com.google.gson.*;
|
import com.google.gson.*;
|
||||||
import com.kdt.filerapi.*;
|
import com.kdt.pickafile.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.charset.*;
|
import java.nio.charset.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -14,7 +14,7 @@ import android.view.*;
|
|||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import android.widget.AdapterView.*;
|
import android.widget.AdapterView.*;
|
||||||
import com.google.gson.*;
|
import com.google.gson.*;
|
||||||
import com.kdt.filerapi.*;
|
import com.kdt.pickafile.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.charset.*;
|
import java.nio.charset.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -16,7 +16,7 @@ import android.util.Log;
|
|||||||
import android.view.*;
|
import android.view.*;
|
||||||
import android.widget.*;
|
import android.widget.*;
|
||||||
import android.widget.CompoundButton.*;
|
import android.widget.CompoundButton.*;
|
||||||
import com.kdt.filerapi.*;
|
import com.kdt.pickafile.*;
|
||||||
import com.kdt.mojangauth.*;
|
import com.kdt.mojangauth.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@ -333,6 +333,21 @@ public class PojavLoginActivity extends BaseActivity
|
|||||||
mkdirs(Tools.MAIN_PATH + "/lwjgl3");
|
mkdirs(Tools.MAIN_PATH + "/lwjgl3");
|
||||||
mkdirs(Tools.MAIN_PATH + "/mods");
|
mkdirs(Tools.MAIN_PATH + "/mods");
|
||||||
|
|
||||||
|
File forgeSplashFile = new File(Tools.MAIN_PATH, "config/splash.properties");
|
||||||
|
forgeSplashFile.mkdir();
|
||||||
|
String forgeSplashContent = "enabled=true";
|
||||||
|
try {
|
||||||
|
if (forgeSplashFile.exists()) {
|
||||||
|
forgeSplashContent = Tools.read(forgeSplashFile.toString());
|
||||||
|
}
|
||||||
|
if (forgeSplashContent.contains("enabled=true")) {
|
||||||
|
Tools.write(forgeSplashFile.toString(),
|
||||||
|
forgeSplashContent.replace("enabled=true", "enabled=false"));
|
||||||
|
}
|
||||||
|
} catch (IOException e) {
|
||||||
|
Log.w(Tools.APP_NAME, "Could not disable Forge splash screen!");
|
||||||
|
}
|
||||||
|
|
||||||
mkdirs(Tools.CTRLMAP_PATH);
|
mkdirs(Tools.CTRLMAP_PATH);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user