summaryrefslogtreecommitdiff
path: root/games/higan/higan-paths.diff
blob: 65fe4a24ebdda44bc564f1e9c99b677ef44504b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
kFrom c0495ce121ab0c3eeffdf08614e18bd4f0c455f2 Mon Sep 17 00:00:00 2001
From: Maxime Gauduin <alucryd@archlinux.org>
Date: Wed, 18 Mar 2020 12:19:31 +0100
Subject: [PATCH] use more sensible paths

---
 higan/target-higan/higan.cpp | 5 ++---
 icarus/icarus.cpp            | 3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/higan/target-higan/higan.cpp b/higan/target-higan/higan.cpp
index 1ce9b991..7d1ae122 100644
--- a/higan/target-higan/higan.cpp
+++ b/higan/target-higan/higan.cpp
@@ -43,11 +43,10 @@ auto nall::main(Arguments arguments) -> void {
     Path::data = document["data"].text();
   }
   if(!directory::exists(Path::templates)) {
-    Path::templates = {Path::userData(), "higan/"};
-    directory::create(Path::templates);
+    Path::templates = {Path::sharedData(), "higan/Templates/"};
   }
   if(!directory::exists(Path::data)) {
-    Path::data = {Path::user(), "higan/"};
+    Path::data = {Path::userData(), "higan/Systems/"};
     directory::create(Path::data);
   }
   file::write({Path::settings, "paths.bml"}, string{
diff --git a/icarus/icarus.cpp b/icarus/icarus.cpp
index 95435f38..a46744e5 100644
--- a/icarus/icarus.cpp
+++ b/icarus/icarus.cpp
@@ -8,8 +8,7 @@ auto locate(string name) -> string {
   string location = {Path::program(), name};
   if(inode::exists(location)) return location;
 
-  directory::create({Path::userData(), "icarus/"});
-  return {Path::userData(), "icarus/", name};
+  return {Path::sharedData(), "icarus/", name};
 }
 
 auto operator+=(string& lhs, const string& rhs) -> string& {