mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 18:21:44 +00:00
Fix base::open_folder() in case paths are specified with non-standard slashes
This commit is contained in:
parent
df629db6c6
commit
83fe139600
@ -11,6 +11,7 @@
|
|||||||
#include "base/exception.h"
|
#include "base/exception.h"
|
||||||
#include "base/fs.h"
|
#include "base/fs.h"
|
||||||
#include "base/launcher.h"
|
#include "base/launcher.h"
|
||||||
|
#include "base/path.h"
|
||||||
#include "base/string.h"
|
#include "base/string.h"
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
@ -90,8 +91,10 @@ bool open_file(const std::string& file)
|
|||||||
return (ret == 0);
|
return (ret == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool open_folder(const std::string& file)
|
bool open_folder(const std::string& _file)
|
||||||
{
|
{
|
||||||
|
std::string file = base::fix_path_separators(_file);
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
int ret;
|
int ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user