diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-16 17:23:16 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-16 17:23:16 +0000 |
| commit | 5a3caba55f4d90e7e58fe797b805fb610e0de9c4 (patch) | |
| tree | 0889514af166dec69faad91eb2ca76496f124aab /src/common | |
| parent | feat(input): new keybindings and persistent mode as default (#181) (diff) | |
| download | sl0ppij-5a3caba55f4d90e7e58fe797b805fb610e0de9c4.tar.gz sl0ppij-5a3caba55f4d90e7e58fe797b805fb610e0de9c4.tar.xz sl0ppij-5a3caba55f4d90e7e58fe797b805fb610e0de9c4.zip | |
Install assets on first run
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/install.rs | 12 | ||||
| -rw-r--r-- | src/common/mod.rs | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/common/install.rs b/src/common/install.rs new file mode 100644 index 00000000..cd00aa1f --- /dev/null +++ b/src/common/install.rs @@ -0,0 +1,12 @@ +#[macro_export] +macro_rules! asset_map { + ($($path:literal),+) => { + { + let mut assets = std::collections::HashMap::new(); + $( + assets.insert($path, include_bytes!(concat!("../assets/", $path)).to_vec()); + )+ + assets + } + } +}
\ No newline at end of file diff --git a/src/common/mod.rs b/src/common/mod.rs index 00ee64fd..a256e3ef 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -2,6 +2,7 @@ pub mod command_is_executing; pub mod errors; pub mod input; pub mod ipc; +pub mod install; pub mod os_input_output; pub mod pty_bus; pub mod screen; |
