Skip to content

Commit

Permalink
add internal directory method
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Jan 20, 2024
1 parent e7a3b72 commit 05eb3af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/src/main/java/com/geode/launcher/utils/GeodeUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,13 @@ object GeodeUtils {
@JvmStatic
fun getBaseDirectory(): String {
val activity = activity.get()!!
return LaunchUtils.getBaseDirectory(activity).path
return LaunchUtils.getBaseDirectory(activity).canonicalPath
}

@JvmStatic
fun getInternalDirectory(): String {
val activity = activity.get()!!
return activity.filesDir.canonicalPath
}

private val gameVersionMap = mapOf(
Expand Down

0 comments on commit 05eb3af

Please sign in to comment.