Skip to content

Commit

Permalink
Project: Updates the app version with corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
shadergz committed Jan 4, 2024
1 parent 9d1a7db commit 309f816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
minSdk = 31

targetSdk = 34
versionCode = 16
versionName = "0.0.16"
versionCode = 17
versionName = "0.0.17"
ndk {
abiFilters.clear()
abiFilters.add("arm64-v8a")
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/emu/cosmic/helpers/DriverHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DriverHelper : ViewModel() {
val settings = CosmicSettings.globalSettings

var driversDir = File(settings.appStorage, "Drivers")
private val driversPack: Array<out File> get() = driversDir.listFiles()
private val driversPack: Array<out File>? get() = driversDir.listFiles()

fun getVendorDriver() : DriverContainer {
val info = DriverMeta("Vulkan", "Vendor driver", "Qualcomm", "Unknown", "Adreno", "Unknown", "31", "libvulkan.so")
Expand All @@ -37,7 +37,7 @@ class DriverHelper : ViewModel() {
}

fun getInUse(default: Int): Int {
driversPack.forEachIndexed { index, drv ->
driversPack?.forEachIndexed { index, drv ->
val drvFiles = File(drv.path).listFiles()!!
// The first index is always the system driver, so we need to increment the return value by one
if (drvFiles.first { it.extension == "so" }.path == settings.customDriver)
Expand Down Expand Up @@ -124,7 +124,7 @@ class DriverHelper : ViewModel() {
}

fun getInstalledDrivers(): List<DriverContainer> {
driversPack.forEach { driverDir ->
driversPack?.forEach { driverDir ->
val wasInstalled = driverList.filter {
it.driverPath == driverDir.path
}
Expand Down

0 comments on commit 309f816

Please sign in to comment.