Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_game
Misc
PlatformDefault_ResourceProvider.cpp
Go to the documentation of this file.
1
#include "
PlatformDefault_ResourceProvider.hpp
"
2
3
namespace
iv
4
{
5
6
PlatformDefault_ResourceProvider::PlatformDefault_ResourceProvider
(
Instance
* inst,
size_t
priority ) :
7
cm( inst, this,
"PlatformDefault_ResourceProvider"
),
8
#if IV_FSPLATFORM_XDG || IV_FSPLATFORM_WIN
9
provider( inst, priority,
"./data/"
)
10
#elif IV_FSPLATFORM_EMSCRIPTEN
11
provider( inst, priority,
"./data/"
)
12
#elif IV_FSPLATFORM_ANDROID
13
provider( inst, priority,
""
)
14
#else
15
#error
"Unimplemented FS Platform."
16
#endif
17
{
18
this->
cm
.
inherits
( this->provider.
cm
);
19
}
20
21
Instance
*
PlatformDefault_ResourceProvider::instance
()
const
22
{
23
return
this->provider.instance();
24
}
25
26
}