mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-14 18:58:52 +01:00
Backed out changeset: ba8115b47676
This commit is contained in:
parent
94526ea8a9
commit
410ee1c8e4
@ -26,7 +26,6 @@
|
|||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <wordexp.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string Configuration::AbsolutePath;
|
std::string Configuration::AbsolutePath;
|
||||||
@ -307,18 +306,6 @@ std::string Configuration::ConvertToAbsolutePath(std::string prefix, std::string
|
|||||||
char first = ' ';
|
char first = ' ';
|
||||||
char second = ' ';
|
char second = ' ';
|
||||||
|
|
||||||
// expand path variables
|
|
||||||
#ifdef WIN32
|
|
||||||
// Do something equivalent to the 'nix code using Windows' ExpandEnvironmentStrings() here
|
|
||||||
#else
|
|
||||||
wordexp_t expandedPath;
|
|
||||||
wordexp(path.c_str(), &expandedPath, 0);
|
|
||||||
path = "\"" + path + "\"";
|
|
||||||
path.assign(expandedPath.we_wordv[0]);
|
|
||||||
path.erase(std::remove(path.begin(), path.end(), '"'), path.end());
|
|
||||||
wordfree(&expandedPath);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if(path.length() >= 0)
|
if(path.length() >= 0)
|
||||||
{
|
{
|
||||||
first = path.c_str()[0];
|
first = path.c_str()[0];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user