mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 00:29:50 -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;
|
||||
|
||||
// Search "DISABLED" to find disabled codes.
|
||||
|
||||
import java.io.Writer;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.ArrayList;
|
||||
@ -1257,7 +1255,6 @@ public class GLTextureView
|
||||
Log.i("GLThread", "noticed surfaceView surface lost tid=" + getId());
|
||||
}
|
||||
if (mHaveEglSurface) {
|
||||
// DISABLED
|
||||
stopEglSurfaceLocked();
|
||||
}
|
||||
mWaitingForSurface = true;
|
||||
@ -1505,7 +1502,7 @@ public class GLTextureView
|
||||
synchronized(sGLThreadManager) {
|
||||
if (LOG_THREADS) {
|
||||
Log.i("GLThread", "surfaceDestroyed tid=" + getId());
|
||||
new Throwable("Surface destroy calling at???").printStackTrace();
|
||||
// new Throwable("Surface destroy calling at???").printStackTrace();
|
||||
}
|
||||
mHasSurface = false;
|
||||
sGLThreadManager.notifyAll();
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.kdt.filerapi;
|
||||
package com.kdt.pickafile;
|
||||
|
||||
import android.support.v7.app.*;
|
||||
import android.content.*;
|
@ -1,4 +1,4 @@
|
||||
package com.kdt.filerapi;
|
||||
package com.kdt.pickafile;
|
||||
|
||||
import java.io.File;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.kdt.filerapi;
|
||||
package com.kdt.pickafile;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
@ -6,7 +6,7 @@ import android.support.v7.app.*;
|
||||
import android.text.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import com.kdt.filerapi.*;
|
||||
import com.kdt.pickafile.*;
|
||||
import java.io.*;
|
||||
import net.kdt.pojavlaunch.fragments.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
|
@ -9,7 +9,7 @@ import android.support.v7.preference.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import com.google.gson.*;
|
||||
import com.kdt.filerapi.*;
|
||||
import com.kdt.pickafile.*;
|
||||
import java.io.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
|
@ -13,7 +13,7 @@ import android.view.*;
|
||||
import android.widget.*;
|
||||
import android.widget.AdapterView.*;
|
||||
import com.google.gson.*;
|
||||
import com.kdt.filerapi.*;
|
||||
import com.kdt.pickafile.*;
|
||||
import java.io.*;
|
||||
import java.nio.charset.*;
|
||||
import java.util.*;
|
||||
|
@ -14,7 +14,7 @@ import android.view.*;
|
||||
import android.widget.*;
|
||||
import android.widget.AdapterView.*;
|
||||
import com.google.gson.*;
|
||||
import com.kdt.filerapi.*;
|
||||
import com.kdt.pickafile.*;
|
||||
import java.io.*;
|
||||
import java.nio.charset.*;
|
||||
import java.util.*;
|
||||
|
@ -16,7 +16,7 @@ import android.util.Log;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import android.widget.CompoundButton.*;
|
||||
import com.kdt.filerapi.*;
|
||||
import com.kdt.pickafile.*;
|
||||
import com.kdt.mojangauth.*;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
@ -333,6 +333,21 @@ public class PojavLoginActivity extends BaseActivity
|
||||
mkdirs(Tools.MAIN_PATH + "/lwjgl3");
|
||||
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);
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user