mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 15:29:51 +00:00
Oatmeal Cookie
This commit is contained in:
parent
9992b42125
commit
21f7540c28
9 changed files with 113 additions and 88 deletions
|
|
@ -545,10 +545,6 @@ public class VectrasApp extends Application {
|
|||
}
|
||||
|
||||
public static void deleteDirectory(String _pathToDelete) {
|
||||
//Prevent accidental deletion of user data outside of Vectras VM.
|
||||
if (!_pathToDelete.contains(AppConfig.maindirpath))
|
||||
return;
|
||||
|
||||
File _dir = new File(_pathToDelete);
|
||||
if (_dir.isDirectory()) {
|
||||
String[] children = _dir.list();
|
||||
|
|
@ -743,7 +739,8 @@ public class VectrasApp extends Application {
|
|||
AppConfig.maindirpath = FileUtils.getExternalFilesDirectory(_activity).getPath() + "/";
|
||||
AppConfig.sharedFolder = AppConfig.maindirpath + "SharedFolder/";
|
||||
AppConfig.downloadsFolder = AppConfig.maindirpath + "Downloads/";
|
||||
AppConfig.romsdatajson = Environment.getExternalStorageDirectory().toString() + "/Documents/VectrasVM/roms-data.json";
|
||||
AppConfig.romsdatajson = AppConfig.maindirpath + "roms-data.json";
|
||||
AppConfig.vmFolder = AppConfig.maindirpath + "roms/";
|
||||
}
|
||||
|
||||
public static String quickScanDiskFileInFolder(String _foderpath) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue