mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Add a GetShareDir helper
This commit is contained in:
parent
6e3950ef1f
commit
b77327aec0
@ -86,6 +86,11 @@ std::string GetLocale ()
|
|||||||
// Retourne le nom de dossier en cours.
|
// Retourne le nom de dossier en cours.
|
||||||
|
|
||||||
std::string GetBaseDir()
|
std::string GetBaseDir()
|
||||||
|
{
|
||||||
|
return GetShareDir () + "planetblupi/";
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetShareDir ()
|
||||||
{
|
{
|
||||||
static std::string basePath;
|
static std::string basePath;
|
||||||
|
|
||||||
@ -99,7 +104,7 @@ std::string GetBaseDir()
|
|||||||
SDL_free (sdlBasePath);
|
SDL_free (sdlBasePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
return basePath + "share/planetblupi/";
|
return basePath + "share/";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ajoute le chemin permettant de lire un fichier
|
// Ajoute le chemin permettant de lire un fichier
|
||||||
|
@ -12,5 +12,6 @@ extern void InitRandom();
|
|||||||
extern Sint32 Random (Sint32 min, Sint32 max);
|
extern Sint32 Random (Sint32 min, Sint32 max);
|
||||||
|
|
||||||
std::string GetBaseDir ();
|
std::string GetBaseDir ();
|
||||||
|
std::string GetShareDir ();
|
||||||
std::string GetLocale ();
|
std::string GetLocale ();
|
||||||
extern void AddUserPath (char *pFilename);
|
extern void AddUserPath (char *pFilename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user