Fix crashes

This commit is contained in:
Gabriel Machado 2024-10-24 18:14:04 -04:00
parent 6a483ba018
commit 6d61983049
2 changed files with 1 additions and 2 deletions

View file

@ -89,6 +89,7 @@ AlberFunction(void, Finalize)(JNIEnv* env, jobject obj) {
emulator = nullptr; emulator = nullptr;
hidService = nullptr; hidService = nullptr;
renderer = nullptr; renderer = nullptr;
romLoaded = false;
} }
AlberFunction(jboolean, HasRomLoaded)(JNIEnv* env, jobject obj) { return romLoaded; } AlberFunction(jboolean, HasRomLoaded)(JNIEnv* env, jobject obj) { return romLoaded; }

View file

@ -18,8 +18,6 @@ import com.panda3ds.pandroid.app.preferences.screen_editor.ScreenLayoutsPreferen
import com.panda3ds.pandroid.data.config.GlobalConfig; import com.panda3ds.pandroid.data.config.GlobalConfig;
import com.panda3ds.pandroid.utils.FileUtils; import com.panda3ds.pandroid.utils.FileUtils;
import java.io.File;
public class GeneralPreferences extends BasePreferenceFragment implements ActivityResultCallback<Uri> { public class GeneralPreferences extends BasePreferenceFragment implements ActivityResultCallback<Uri> {
private final ActivityResultContracts.OpenDocument openFolderContract = new ActivityResultContracts.OpenDocument(); private final ActivityResultContracts.OpenDocument openFolderContract = new ActivityResultContracts.OpenDocument();
private ActivityResultLauncher<String[]> pickFileRequest; private ActivityResultLauncher<String[]> pickFileRequest;