mirror of
https://github.com/ApfelTeeSaft/azahar.git
synced 2026-08-26 19:23:31 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user