mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename to Luanti (#15294)
The new header intentionally isn't in MTG stone design (or any other MTG-esque design), since we want to distance Luanti and MTG from each other. The font "undefined medium" (https://undefined-medium.com/) was used. ASCII art generated by https://patorjk.com/software/taag/#p=display&f=Graffiti&t=luanti https://github.com/minetest/minetest/pull/11952#issuecomment-1013364703 --------- Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
b7073df68c
commit
4b90e582b4
118 changed files with 206 additions and 179 deletions
|
@ -464,7 +464,8 @@ bool setSystemPaths()
|
|||
// Use "C:\Users\<user>\AppData\Roaming\<PROJECT_NAME_C>"
|
||||
len = GetEnvironmentVariable("APPDATA", buf, sizeof(buf));
|
||||
FATAL_ERROR_IF(len == 0 || len > sizeof(buf), "Failed to get APPDATA");
|
||||
path_user = std::string(buf) + DIR_DELIM + PROJECT_NAME_C;
|
||||
// TODO: Luanti with migration
|
||||
path_user = std::string(buf) + DIR_DELIM + "Minetest";
|
||||
} else {
|
||||
path_user = std::string(buf);
|
||||
}
|
||||
|
@ -529,8 +530,9 @@ bool setSystemPaths()
|
|||
if (minetest_user_path && minetest_user_path[0] != '\0') {
|
||||
path_user = std::string(minetest_user_path);
|
||||
} else {
|
||||
// TODO: luanti with migration
|
||||
path_user = std::string(getHomeOrFail()) + DIR_DELIM "."
|
||||
+ PROJECT_NAME;
|
||||
+ "minetest";
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -557,9 +559,10 @@ bool setSystemPaths()
|
|||
if (minetest_user_path && minetest_user_path[0] != '\0') {
|
||||
path_user = std::string(minetest_user_path);
|
||||
} else {
|
||||
// TODO: luanti with migration
|
||||
path_user = std::string(getHomeOrFail())
|
||||
+ "/Library/Application Support/"
|
||||
+ PROJECT_NAME;
|
||||
+ "minetest";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -574,8 +577,9 @@ bool setSystemPaths()
|
|||
if (minetest_user_path && minetest_user_path[0] != '\0') {
|
||||
path_user = std::string(minetest_user_path);
|
||||
} else {
|
||||
// TODO: luanti with migration
|
||||
path_user = std::string(getHomeOrFail()) + DIR_DELIM "."
|
||||
+ lowercase(PROJECT_NAME);
|
||||
+ "minetest";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -681,11 +685,13 @@ void initializePaths()
|
|||
const char *cache_dir = getenv("XDG_CACHE_HOME");
|
||||
const char *home_dir = getenv("HOME");
|
||||
if (cache_dir && cache_dir[0] != '\0') {
|
||||
path_cache = std::string(cache_dir) + DIR_DELIM + PROJECT_NAME;
|
||||
// TODO: luanti with migration
|
||||
path_cache = std::string(cache_dir) + DIR_DELIM + "minetest";
|
||||
} else if (home_dir) {
|
||||
// Then try $HOME/.cache/PROJECT_NAME
|
||||
// TODO: luanti with migration
|
||||
path_cache = std::string(home_dir) + DIR_DELIM + ".cache"
|
||||
+ DIR_DELIM + PROJECT_NAME;
|
||||
+ DIR_DELIM + "minetest";
|
||||
} else {
|
||||
// If neither works, use $PATH_USER/cache
|
||||
path_cache = path_user + DIR_DELIM + "cache";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue