archrelease: copy trunk to community-any
[ArchLinux/community.git] / higan / trunk / higan-paths.patch
blob51d0ca880ce538c3b27b39e68d1b34ffe4211b2e
1 From c0495ce121ab0c3eeffdf08614e18bd4f0c455f2 Mon Sep 17 00:00:00 2001
2 From: Maxime Gauduin <alucryd@archlinux.org>
3 Date: Wed, 18 Mar 2020 12:19:31 +0100
4 Subject: [PATCH] use more sensible paths
6 ---
7 higan/target-higan/higan.cpp | 5 ++---
8 icarus/icarus.cpp | 3 +--
9 2 files changed, 3 insertions(+), 5 deletions(-)
11 diff --git a/higan/target-higan/higan.cpp b/higan/target-higan/higan.cpp
12 index 1ce9b991..7d1ae122 100644
13 --- a/higan/target-higan/higan.cpp
14 +++ b/higan/target-higan/higan.cpp
15 @@ -43,11 +43,10 @@ auto nall::main(Arguments arguments) -> void {
16 Path::data = document["data"].text();
18 if(!directory::exists(Path::templates)) {
19 - Path::templates = {Path::userData(), "higan/"};
20 - directory::create(Path::templates);
21 + Path::templates = {Path::sharedData(), "higan/Templates/"};
23 if(!directory::exists(Path::data)) {
24 - Path::data = {Path::user(), "higan/"};
25 + Path::data = {Path::userData(), "higan/Systems/"};
26 directory::create(Path::data);
28 file::write({Path::settings, "paths.bml"}, string{
29 diff --git a/icarus/icarus.cpp b/icarus/icarus.cpp
30 index 95435f38..a46744e5 100644
31 --- a/icarus/icarus.cpp
32 +++ b/icarus/icarus.cpp
33 @@ -8,8 +8,7 @@ auto locate(string name) -> string {
34 string location = {Path::program(), name};
35 if(inode::exists(location)) return location;
37 - directory::create({Path::userData(), "icarus/"});
38 - return {Path::userData(), "icarus/", name};
39 + return {Path::sharedData(), "icarus/", name};
42 auto operator+=(string& lhs, const string& rhs) -> string& {