Skip to content

Commit 6115afc

Browse files
Default to finding everything, not necessarily under a mods/ folder
1 parent 20a8d59 commit 6115afc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dylo-cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const DYLO_RUNTIME_VERSION: &str = "1.0.0";
1818
struct ModInfo {
1919
/// human-readable name of the mod, extracted from the directory name (without mod- prefix)
2020
name: String,
21-
/// location of the mod's implementation code ($workspace/mods/mod-$name/)
21+
/// location of the mod's implementation code ($workspace/mod-$name/)
2222
mod_path: Utf8PathBuf,
23-
/// destination path for generating consumer version ($workspace/mods/$name/)
23+
/// destination path for generating consumer version ($workspace/$name/)
2424
con_path: Utf8PathBuf,
2525
/// timestamp of most recently modified file in mod directory
2626
mod_timestamp: SystemTime,
@@ -36,7 +36,7 @@ enum ProcessReason {
3636
Modified,
3737
}
3838

39-
/// Discover all mods in the `mods/` directory.
39+
/// Discover all mods in the `./` directory, recursively
4040
fn list_mods(mods_dir: &camino::Utf8Path) -> std::io::Result<Vec<ModInfo>> {
4141
let mut mods = Vec::new();
4242
for entry in fs_err::read_dir(mods_dir)? {
@@ -761,7 +761,7 @@ fn main() -> std::io::Result<()> {
761761
}
762762

763763
let args = parse_args();
764-
let mods_dir = Utf8Path::new("mods");
764+
let mods_dir = Utf8Path::new(".");
765765

766766
let mut mods = list_mods(mods_dir)?;
767767
tracing::info!("🔍 Found {} mods total", mods.len());

dylo-runtime/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
However, this is the right place to learn about environment variables that will impact the
1010
behavior of dylo-runtime:
1111

12-
* `DYLO_TARGET_DIR`: Set the build directory for hot-reloadable plugins. By default, plugins are built into `$HOME/.con-mods/{mod-name}` or `%USERPROFILE%\.con-mods\{mod-name}` on Windows.
12+
* `DYLO_TARGET_DIR`: Set the build directory for hot-reloadable plugins. By default, plugins are built into `$HOME/.dylo-mods/{mod-name}` or `%USERPROFILE%\.dylo-mods\{mod-name}` on Windows.
1313

1414
* `DYLO_BUILD`: Set to "0" to disable automatic mod compilation. Defaults to "1".
1515
Set to "verbose" to have cargo inherit stdout/stderr, which will show progress messages

dylo-runtime/src/details.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn get_target_dir(mod_name: &str) -> std::path::PathBuf {
3333
.expect("Neither HOME nor USERPROFILE environment variables are set");
3434

3535
std::path::PathBuf::from(home_dir)
36-
.join(".con-mods")
36+
.join(".dylo-mods")
3737
.join(mod_name)
3838
}
3939

0 commit comments

Comments
 (0)