mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-22 07:27:58 +01:00
Fix warnings.
This commit is contained in:
parent
a54844becf
commit
faf7b1573f
@ -64,7 +64,8 @@ internal class AssetsDirectoryAccess(context: Context) : DirectoryAccessHandler.
|
|||||||
override fun hasDirId(dirId: Int) = dirs.indexOfKey(dirId) >= 0
|
override fun hasDirId(dirId: Int) = dirs.indexOfKey(dirId) >= 0
|
||||||
|
|
||||||
override fun dirOpen(path: String): Int {
|
override fun dirOpen(path: String): Int {
|
||||||
val assetsPath = getAssetsPath(path) ?: return INVALID_DIR_ID
|
val assetsPath : String = getAssetsPath(path)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
val files = assetManager.list(assetsPath) ?: return INVALID_DIR_ID
|
val files = assetManager.list(assetsPath) ?: return INVALID_DIR_ID
|
||||||
// Empty directories don't get added to the 'assets' directory, so
|
// Empty directories don't get added to the 'assets' directory, so
|
||||||
@ -85,7 +86,8 @@ internal class AssetsDirectoryAccess(context: Context) : DirectoryAccessHandler.
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun dirExists(path: String): Boolean {
|
override fun dirExists(path: String): Boolean {
|
||||||
val assetsPath = getAssetsPath(path)
|
val assetsPath : String = getAssetsPath(path)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
val files = assetManager.list(assetsPath) ?: return false
|
val files = assetManager.list(assetsPath) ?: return false
|
||||||
// Empty directories don't get added to the 'assets' directory, so
|
// Empty directories don't get added to the 'assets' directory, so
|
||||||
@ -99,7 +101,7 @@ internal class AssetsDirectoryAccess(context: Context) : DirectoryAccessHandler.
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun fileExists(path: String): Boolean {
|
override fun fileExists(path: String): Boolean {
|
||||||
val assetsPath = getAssetsPath(path) ?: return false
|
val assetsPath : String = getAssetsPath(path)
|
||||||
try {
|
try {
|
||||||
val files = assetManager.list(assetsPath) ?: return false
|
val files = assetManager.list(assetsPath) ?: return false
|
||||||
// Empty directories don't get added to the 'assets' directory, so
|
// Empty directories don't get added to the 'assets' directory, so
|
||||||
|
Loading…
Reference in New Issue
Block a user