2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-04 03:55:52 +00:00

restored projectpath constructor

This commit is contained in:
Jack Andersen 2015-08-05 13:19:28 -10:00
parent b8391c7a5f
commit 23bc65c4b9

View File

@ -398,7 +398,7 @@ protected:
std::string m_utf8RelPath; std::string m_utf8RelPath;
#endif #endif
ProjectPath(const SystemString& projRoot) ProjectPath(const SystemString& projRoot)
: m_projRoot(projRoot), m_absPath(projRoot), m_relPath(_S(".")) : m_projRoot(projRoot), m_absPath(projRoot), m_relPath(_S("."))
{ {
SanitizePath(m_projRoot); SanitizePath(m_projRoot);
SanitizePath(m_relPath); SanitizePath(m_relPath);
@ -427,10 +427,10 @@ public:
* @param parentPath previously constructed ProjectPath which ultimately connects to a ProjectRootPath * @param parentPath previously constructed ProjectPath which ultimately connects to a ProjectRootPath
* @param path valid filesystem-path (relative or absolute) to subpath * @param path valid filesystem-path (relative or absolute) to subpath
*/ */
/* ProjectPath(const ProjectPath& parentPath, const SystemString& path) {assign(parentPath, path);} ProjectPath(const ProjectPath& parentPath, const SystemString& path) {assign(parentPath, path);}
void assign(const ProjectPath& parentPath, const SystemString& path);*/ void assign(const ProjectPath& parentPath, const SystemString& path);
#ifndef HECL_UCS2 #if HECL_UCS2
ProjectPath(const ProjectPath& parentPath, const std::string& path) {assign(parentPath, path);} ProjectPath(const ProjectPath& parentPath, const std::string& path) {assign(parentPath, path);}
void assign(const ProjectPath& parentPath, const std::string& path); void assign(const ProjectPath& parentPath, const std::string& path);
#endif #endif