You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Address kotlin build warnings
This commit is contained in:
@@ -64,7 +64,7 @@ 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 = 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
|
||||||
@@ -99,7 +99,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 = 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
|
||||||
|
|||||||
Reference in New Issue
Block a user