mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
Fallback to external files dir, if writedir invalid(empty)
This commit is contained in:
@@ -133,7 +133,13 @@ public class XashActivity extends Activity {
|
||||
mPref = this.getSharedPreferences( "engine", 0 );
|
||||
|
||||
mUseRoDir = mPref.getBoolean("use_rodir", false);
|
||||
mWriteDir = mPref.getString("writedir", FWGSLib.getExternalFilesDir(this) );
|
||||
mWriteDir = mPref.getString("writedir", FWGSLib.getExternalFilesDir( this ));
|
||||
|
||||
// just in case
|
||||
if( mWriteDir.length() == 0 )
|
||||
{
|
||||
mWriteDir = FWGSLib.getExternalFilesDir( this );
|
||||
}
|
||||
|
||||
if( mPref.getBoolean( "folderask", true ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user