summaryrefslogtreecommitdiff
path: root/src/resource.rs
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-05 14:46:49 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-05 14:46:49 +0100
commit38cfe0b12b45d703375682cce5b45fbbbe2fce07 (patch)
treea3395f0cdcd371123f2f4472a230d7337cc21534 /src/resource.rs
parent52293448680bbbd81c78bc7b6c1350d034d6b660 (diff)
downloadsubplot-38cfe0b12b45d703375682cce5b45fbbbe2fce07.tar.gz
resources: Hidden subcommand to list internal resources
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/resource.rs')
-rw-r--r--src/resource.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resource.rs b/src/resource.rs
index f22e1ef..cfcc63a 100644
--- a/src/resource.rs
+++ b/src/resource.rs
@@ -50,6 +50,11 @@ lazy_static! {
static EMBEDDED_FILES: &[(&str, &[u8])] = include!(concat!(env!("OUT_DIR"), "/embedded_files.inc"));
+/// Retrieve the embedded file list
+pub fn embedded_files() -> &'static [(&'static str, &'static [u8])] {
+ EMBEDDED_FILES
+}
+
/// Put a path at the back of the queue to search in
fn add_search_path<P: AsRef<Path>>(path: P) {
SEARCH_PATHS