arsa  2.7
exampleHelper.h
Go to the documentation of this file.
1 // Copyright (C) 2015 Patryk Nadrowski
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __EXAMPLE_HELPER_H_INCLUDED__
6 #define __EXAMPLE_HELPER_H_INCLUDED__
7 
8 #include "IrrCompileConfig.h"
9 #include "path.h"
10 
11 namespace irr
12 {
13 
14 static io::path getExampleMediaPath()
15 {
16 #if defined (_IRR_IOS_PLATFORM_) || defined (_IRR_ANDROID_PLATFORM_) || defined (_IRR_OSX_PLATFORM_) || defined (_IRR_EMSCRIPTEN_PLATFORM_)
17  return io::path("media/");
18 #else
19  return io::path("../../media/");
20 #endif
21 }
22 
23 } // end namespace irr
24 
25 #endif
core::string< fschar_t > path
Type used for all file system related strings.
Definition: path.h:17
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6