1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-20 19:40:18 +02:00

Use user folder for gamemanager too

This commit is contained in:
sapier 2013-07-17 21:03:00 +02:00 committed by PilzAdam
parent 8beb0f19d1
commit 07fb257c04

View File

@ -821,7 +821,7 @@ int guiLuaApi::l_get_modpath(lua_State *L)
int guiLuaApi::l_get_gamepath(lua_State *L)
{
std::string gamepath
= fs::RemoveRelativePathComponents(porting::path_share + DIR_DELIM + "games" + DIR_DELIM);
= fs::RemoveRelativePathComponents(porting::path_user + DIR_DELIM + "games" + DIR_DELIM);
lua_pushstring(L, gamepath.c_str());
return 1;
}