Nebula
Loading...
Searching...
No Matches
projectlocator.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
26#include "core/types.h"
27#include "util/string.h"
28
29//------------------------------------------------------------------------------
30namespace IO
31{
33{
34public:
36 static const char* ProjectInfoFileName;
37
43 static Util::String FindProjectRoot(const Util::String& startDir);
44};
45
46} // namespace IO
47//------------------------------------------------------------------------------
Resolves the project root and the toolkit (nebula root) directory.
Definition projectlocator.h:33
static Util::String GetProjectRoot()
resolve the project root, empty string if it cannot be found
Definition projectlocator.cc:47
static Util::String GetToolkitRoot()
resolve the toolkit (nebula root) directory, empty if not found
Definition projectlocator.cc:80
static Util::String FindProjectRoot(const Util::String &startDir)
walk up from startDir looking for the project info file
Definition projectlocator.cc:20
static const char * ProjectInfoFileName
name of the project info file, which is always in the project root
Definition projectlocator.h:36
Nebula's universal string class.
Definition string.h:50
Instances of wrapped stream classes.
Definition multiplayerfeatureunit.cc:324