mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix map delete on windows (concatenate paths correctly with / or \ depending on OS)
This commit is contained in:
parent
ef397dca7c
commit
67a6bc4ab5
8 changed files with 46 additions and 33 deletions
|
@ -118,7 +118,7 @@ std::string getTexturePath(const std::string &filename)
|
|||
std::string texture_path = g_settings->get("texture_path");
|
||||
if(texture_path != "")
|
||||
{
|
||||
std::string testpath = texture_path + '/' + filename;
|
||||
std::string testpath = texture_path + DIR_DELIM + filename;
|
||||
// Check all filename extensions. Returns "" if not found.
|
||||
fullpath = getImagePath(testpath);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue