Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mediadirs.hpp
Go to the documentation of this file.
1 
3 #pragma once
4 
5 #include <string> // for string
6 
7 #include "inexor/io/filesystem/path.hpp" // for Path
8 #include "inexor/network/SharedVar.hpp" // for SharedVar
9 
10 enum {
21 };
22 
24 
25 namespace inexor {
26 namespace filesystem {
27 
29 extern const char *getmediadir(int type);
30 
33 extern Path getmediapath(const std::string &basename, int type);
34 extern const char *getmediapath(char *output, int outputlen, const std::string &basename, int type);
35 extern std::string &getmediapath(std::string &output, const std::string basename, int type);
36 
37 
38 } // namespace filesystem
39 } // namespace inexor
Definition: mediadirs.hpp:12
Definition: mediadirs.hpp:17
SharedVar< char * > mapdir
media path types.
SharedVar< char * > texturedir
SharedVar< char * > musicdir
SharedVar< char * > radardir
Path getmediapath(const std::string &basename, int type)
Append the media directory specified by type to the basename.
Definition: mediadirs.cpp:43
SharedVar< char * > icondir
SharedVar< char * > modeldir
SharedVar< char * > sounddir
Definition: mediadirs.hpp:16
Definition: mediadirs.hpp:20
Definition: mediadirs.hpp:18
Definition: mediadirs.hpp:13
Definition: mediadirs.hpp:15
SharedVar< char * > interfacedir
Definition: mediadirs.hpp:19
SharedVar< char * > skyboxdir
char string[MAXSTRLEN]
cube-strings (char arrays of fixed size).
Definition: cube_types.hpp:18
SharedVar wrapper for primitive/immutable objects.
Definition: SharedVar.hpp:55
Definition: mediadirs.hpp:11
boost::filesystem::path Path
Definition: path.hpp:13
Definition: mediadirs.hpp:14
const char * getmediadir(int type)
Returns the specific media dir according to type.
Definition: mediadirs.cpp:27