diff options
author | 2020-06-06 20:41:11 +0200 | |
---|---|---|
committer | 2020-06-06 20:43:10 +0200 | |
commit | 3f9bb5d1eae63463ee7b193d8544a98f36a2fe55 (patch) | |
tree | 914031a1938ce104f0169193e4d797a107c13d35 /src/lib/netlist/plib/putil.cpp | |
parent | c891603d86f08eecc7e7d9620fd4211173461aec (diff) |
netlist: Enable utf7 filenames on windows. (nw)
Diffstat (limited to 'src/lib/netlist/plib/putil.cpp')
-rw-r--r-- | src/lib/netlist/plib/putil.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/putil.cpp b/src/lib/netlist/plib/putil.cpp index 56ada5c2dd9..44e8141f10a 100644 --- a/src/lib/netlist/plib/putil.cpp +++ b/src/lib/netlist/plib/putil.cpp @@ -5,6 +5,7 @@ #include "penum.h" #include "pstrutil.h" #include "ptypes.h" +#include "pstream.h" #include <algorithm> #include <cstdlib> // needed for getenv ... @@ -42,6 +43,12 @@ namespace plib return filename.substr(0, p); } + bool exists (const pstring &filename) + { + plib::ifstream f(filename); + return f.good(); + } + pstring buildpath(std::initializer_list<pstring> list ) { pstring ret = ""; |