Skip to content

Commit d08f644

Browse files
Merge pull request #121 from ethangreen-dev/make-dir-interp-hacky
fix: change patch dir interp to be backwards compat
2 parents 18103f0 + 3cf8b63 commit d08f644

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/lovely-core/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ impl PatchTable {
350350
panic!("Failed to read patch file at {patch_file:?}:\n{e:?}")
351351
});
352352

353-
// HACK: Replace instances of {{lovely:patch_file_path}} with patch_file.
353+
// HACK: Replace instances of {{lovely_hack:patch_dir}} with mod directory.
354354
let clean_mod_dir = &mod_dir.to_string_lossy().replace("\\", "\\\\");
355-
let str = str.replace("{{lovely:mod_dir}}", clean_mod_dir);
355+
let str = str.replace("{{lovely_hack:patch_dir}}", clean_mod_dir);
356356

357357
// Handle invalid fields in a non-explosive way.
358358
let ignored_key_callback = |key: serde_ignored::Path| {

0 commit comments

Comments
 (0)