fix: Use correct path to fix invalid file paths

This commit is contained in:
oSumAtrIX 2025-01-30 01:53:44 +01:00
parent b809d373d5
commit 5ff4ee823d
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -359,7 +359,7 @@ val addResourcesPatch = resourcePatch(
}
getOrPut(resourceFileName) {
val targetFile = this@finalize["res/$value/$resourceFileName.xml"].also {
this@finalize["res/$value/$resourceFileName.xml"].also {
it.parentFile?.mkdirs()
if (it.createNewFile()) {
@ -367,7 +367,7 @@ val addResourcesPatch = resourcePatch(
}
}
document(targetFile.path).let { document ->
document("res/$value/$resourceFileName.xml").let { document ->
// Save the target node here as well
// in order to avoid having to call document.getNode("resources")