DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

71cb5b3b83a4e4ab0f04761dfa251a9837920225 — Jonni Liljamo 2 years ago 6b47c89
Constants for Cfg filenames
1 files changed, 6 insertions(+), 0 deletions(-)

M sdbclient/src/cfg/mod.rs
M sdbclient/src/cfg/mod.rs => sdbclient/src/cfg/mod.rs +6 -0
@@ 9,6 9,12 @@
use bevy::prelude::*;

use serde::{Deserialize, Serialize};

// Constants for file names
pub const FILE_CFG_SETTINGS: &str = "cfgsettings.json";
pub const FILE_CFG_USER: &str = "cfguser.json";
pub const FILE_CFG_HIDDEN: &str = ".cfghidden.json";

/// Stores a directories::ProjectDirs for easy access
#[derive(Resource, Debug, Component, Clone)]
pub struct CfgDirs(pub directories::ProjectDirs);