https://github.com/piedoom/bevy_etcetera
https://github.com/piedoom/bevy_etcetera
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/piedoom/bevy_etcetera
- Owner: piedoom
- Created: 2024-08-18T11:42:22.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T20:40:52.000Z (10 months ago)
- Last Synced: 2025-04-01T20:18:58.048Z (2 months ago)
- Language: Rust
- Size: 1.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `bevy_etcetera`
A very small bevy wrapper over [`etcetera`](https://docs.rs/etcetera/latest/etcetera/). It allows you to
access common directories across MacOS, Windows, and Linux.# Basic usage
```toml
bevy_etcetera = { git = "https://github.com/piedoom/bevy_etcetera" }
# Alternatively, copy the contents of `lib.rs` into your project
``````rs
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) {
// Path dependent on OS
let path = directories.data_dir().join("some_file").with_extension("item.ron");
}
```