summaryrefslogtreecommitdiff
path: root/client/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/state.rs')
-rw-r--r--client/src/state.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/state.rs b/client/src/state.rs
index 623caaa..a658f51 100644
--- a/client/src/state.rs
+++ b/client/src/state.rs
@@ -52,9 +52,7 @@ pub struct InputState {
impl<'a> State<'a> {
pub fn new(conn: TcpStream, window: &'a winit::window::Window) -> Result<State<'a>> {
info!("new state");
- let downloader = Arc::new(Downloader::new(ResourceStore::new_persistent(
- &xdg::BaseDirectories::with_prefix("weareclient")?.place_cache_file("resources")?,
- )?));
+ let downloader = Arc::new(Downloader::new(ResourceStore::new_env()?));
Ok(Self {
camera: Camera::new(),
network: Network::new(conn).into(),