diff options
Diffstat (limited to 'games/rstnode/rst-client/src/settings.rs')
-rw-r--r-- | games/rstnode/rst-client/src/settings.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/games/rstnode/rst-client/src/settings.rs b/games/rstnode/rst-client/src/settings.rs index a339c4106da5..cb44eacca3a3 100644 --- a/games/rstnode/rst-client/src/settings.rs +++ b/games/rstnode/rst-client/src/settings.rs @@ -1,16 +1,18 @@ //! Configuration structures for the game client use ggez::conf::{FullscreenType, NumSamples}; +use std::path::PathBuf; pub fn default() -> GameSettings { GameSettings { + assets: None, window: WindowSettings { width: 1280, height: 720, window_mode: WindowMode::Windowed, }, graphics: GraphicsSettings { - samples: Samples(16), + samples: Samples(8), vsync: true, }, } @@ -18,6 +20,7 @@ pub fn default() -> GameSettings { /// Complete tree of basic game client settings pub struct GameSettings { + pub assets: Option<PathBuf>, pub window: WindowSettings, pub graphics: GraphicsSettings, } @@ -45,7 +48,7 @@ impl<'s> From<&'s Samples> for NumSamples { 2 => Self::Two, 4 => Self::Four, 8 => Self::Eight, - 16 => Self::Sixteen, + // 16 => Self::Sixteen, // currently broken _ => panic!("Invalid multisampling value: {}", s.0), } } |