Browse Source

Merge pull request #117 from rust3ds/feature/romfs-comp-error

Compilation error when romfs can't be found
pull/119/head
Meziu 2 years ago committed by GitHub
parent
commit
7eaf973f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ctru-rs/src/services/mod.rs

4
ctru-rs/src/services/mod.rs

@ -34,6 +34,10 @@ cfg_if::cfg_if! { @@ -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!");
}
}
}

Loading…
Cancel
Save