mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
10 lines
235 B
Rust
10 lines
235 B
Rust
|
|
use anyhow::Result;
|
||
|
|
|
||
|
|
pub fn init() -> Result<()> {
|
||
|
|
let bytes = glib::Bytes::from(include_bytes!(@RESOURCEFILE@).as_ref());
|
||
|
|
let resource = gio::Resource::from_data(&bytes)?;
|
||
|
|
gio::resources_register(&resource);
|
||
|
|
|
||
|
|
Ok(())
|
||
|
|
}
|