1
0
Fork 0
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:
grorp 2024-10-27 14:04:51 +01:00 committed by GitHub
parent b7073df68c
commit 4b90e582b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
118 changed files with 206 additions and 179 deletions

View file

@ -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";