mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
DirectoryInitialization.kt: Switch to getFilesDir for internalUserPath (#1646)
* DirectoryInitialization.kt: Switch to getFilesDir for internalUserPath Was previously getExternalFilesDir filesDir is used here, which is just recommended shorthand for getFilesDir * DirectoryInitialization.kt: Updated license header
This commit is contained in:
parent
f5053868b4
commit
4deb7e63b5
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2023 Citra Emulator Project
|
||||
// Copyright Citra Emulator Project / Azahar Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
|
|
@ -28,8 +28,8 @@ object DirectoryInitialization {
|
|||
@Volatile
|
||||
private var directoryState: DirectoryInitializationState? = null
|
||||
var userPath: String? = null
|
||||
val internalUserPath
|
||||
get() = CitraApplication.appContext.getExternalFilesDir(null)!!.canonicalPath
|
||||
val internalUserPath: String
|
||||
get() = CitraApplication.appContext.filesDir.canonicalPath
|
||||
private val isCitraDirectoryInitializationRunning = AtomicBoolean(false)
|
||||
|
||||
val context: Context get() = CitraApplication.appContext
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue