mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-05-03 16:14:28 +02:00
fix: Use correct path to fix invalid file paths
This commit is contained in:
parent
b809d373d5
commit
5ff4ee823d
@ -359,7 +359,7 @@ val addResourcesPatch = resourcePatch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
getOrPut(resourceFileName) {
|
getOrPut(resourceFileName) {
|
||||||
val targetFile = this@finalize["res/$value/$resourceFileName.xml"].also {
|
this@finalize["res/$value/$resourceFileName.xml"].also {
|
||||||
it.parentFile?.mkdirs()
|
it.parentFile?.mkdirs()
|
||||||
|
|
||||||
if (it.createNewFile()) {
|
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
|
// Save the target node here as well
|
||||||
// in order to avoid having to call document.getNode("resources")
|
// in order to avoid having to call document.getNode("resources")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user