Skip to content

Commit bbce5c0

Browse files
committed
Ensure module config directory exists before file creation
Added a call to mkdirs() to create the module config directory if it does not exist before attempting to create the config file. Also updated mmrl version in libs.versions.toml.
1 parent f51fc14 commit bbce5c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
mmrl = "7d178829fe"
2+
mmrl = "af412b433d"
33
adaptiveAndroid = "1.1.0-rc01"
44
androidGradlePlugin = "8.9.1"
55
androidxActivity = "1.9.3"

webui/src/main/kotlin/com/dergoogler/mmrl/webui/model/Config.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ data class WebUIConfig(
344344
val moduleConfigConfig = SuFile(moduleConfigDir, "config.webroot.json")
345345

346346
if (!moduleConfigConfig.exists()) {
347+
moduleConfigDir.mkdirs()
347348
moduleConfigConfig.createNewFile()
348349
moduleConfigConfig.writeText("{}")
349350
}

0 commit comments

Comments
 (0)