Skip to content

Commit

Permalink
Allow backslash (\) in macOS and Linux filenames
Browse files Browse the repository at this point in the history
Related to: #68
Should fix: aseprite/aseprite#3936
  • Loading branch information
dacap committed May 8, 2024
1 parent 3103504 commit b858148
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ std::string get_absolute_path(const std::string& filename)

bool is_path_separator(std::string::value_type chr)
{
return (chr == '\\' || chr == '/');
return (
#if LAF_WINDOWS
chr == '\\' ||
#endif
chr == '/');
}

std::string get_file_path(const std::string& filename)
Expand Down

0 comments on commit b858148

Please sign in to comment.