Reduce Code Duplication
Some checks failed
CI / Build (ARM64, Client) (push) Waiting to run
CI / Build (ARM64, Server) (push) Waiting to run
CI / Build (ARMHF, Client) (push) Waiting to run
CI / Build (ARMHF, Server) (push) Waiting to run
CI / Test (Client) (push) Waiting to run
CI / Test (Server) (push) Waiting to run
CI / Build Example Mods (push) Waiting to run
CI / Release (push) Blocked by required conditions
CI / Build (AMD64, Client) (push) Has been cancelled
CI / Build (AMD64, Server) (push) Has been cancelled
Some checks failed
CI / Build (ARM64, Client) (push) Waiting to run
CI / Build (ARM64, Server) (push) Waiting to run
CI / Build (ARMHF, Client) (push) Waiting to run
CI / Build (ARMHF, Server) (push) Waiting to run
CI / Test (Client) (push) Waiting to run
CI / Test (Server) (push) Waiting to run
CI / Build Example Mods (push) Waiting to run
CI / Release (push) Blocked by required conditions
CI / Build (AMD64, Client) (push) Has been cancelled
CI / Build (AMD64, Server) (push) Has been cancelled
This commit is contained in:
parent
75fc48da24
commit
c88db307d7
@ -3,6 +3,7 @@
|
||||
#include <GLES/gl.h>
|
||||
|
||||
#include <mods/touch/touch.h>
|
||||
#include <mods/home/home.h>
|
||||
|
||||
#include "options-internal.h"
|
||||
|
||||
@ -38,10 +39,9 @@ static std::string extra_version_info_full = !extra_version_info.empty() ? (" ("
|
||||
// Profile Directory
|
||||
static std::string profile_directory_suffix =
|
||||
#ifdef MCPI_IS_FLATPAK_BUILD
|
||||
"/.var/app/" MCPI_APP_ID "/.minecraft-pi"
|
||||
#else
|
||||
"/.minecraft-pi"
|
||||
"/.var/app/" MCPI_APP_ID
|
||||
#endif
|
||||
HOME_SUBDIRECTORY_FOR_GAME_DATA
|
||||
;
|
||||
static std::string get_profile_directory_url() {
|
||||
const char *home = getenv("HOME");
|
||||
|
Loading…
x
Reference in New Issue
Block a user