Skip to content

Commit

Permalink
Merge pull request #117 from rust3ds/feature/romfs-comp-error
Browse files Browse the repository at this point in the history
Compilation error when romfs can't be found
  • Loading branch information
Meziu authored Apr 8, 2023
2 parents 9098ad1 + 5a21920 commit 7eaf973
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ctru-rs/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ cfg_if::cfg_if! {
//! [package.metadata.cargo-3ds]
//! romfs_dir = "romfs"
//! ```
// If the feature is set, but no "romfs" directory was found: send an error during compilation.
#[cfg(feature = "romfs")]
compile_error!("romfs feature is enabled but no romfs found!");
}
}
}
Expand Down

0 comments on commit 7eaf973

Please sign in to comment.