PlatformDefault_ResourceProvider.cpp
Go to the documentation of this file.
2 
3 namespace iv
4 {
5 
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 
22 {
23  return this->provider.instance();
24 }
25 
26 }