Crates.io | bevy_etcetera |
lib.rs | bevy_etcetera |
version | 0.1.0 |
source | src |
created_at | 2024-08-18 20:41:14.650481 |
updated_at | 2024-08-18 20:41:14.650481 |
description | Tiny Bevy wrapper for etcetera: An unopinionated library for obtaining configuration, data, cache, & other directories |
homepage | https://github.com/piedoom/bevy_etcetera |
repository | https://github.com/piedoom/bevy_etcetera |
max_upload_size | |
id | 1342980 |
size | 6,503 |
bevy_etcetera
A very small bevy wrapper over etcetera
. It allows you to
access common directories across MacOS, Windows, and Linux.
bevy_etcetera = { git = "https://github.com/piedoom/bevy_etcetera" }
# Alternatively, copy the contents of `lib.rs` into your project
use bevy_etcetera::Directories;
use bevy::prelude::*;
let mut world = World::new();
let directories = Directories::new("com", "doomy", "Cool Bevy Game");
world.insert_resource(directories);
fn my_system(directories: Res<Directories>) {
// Path dependent on OS
let path = directories.data_dir().join("some_file").with_extension("item.ron");
}