openMSX
AndroidApiWrapper.hh
Go to the documentation of this file.
1 #ifndef ANDROIDAPIWRAPPER_HH
2 
3 #include "build-info.hh"
4 #if PLATFORM_ANDROID
5 #include "MSXException.hh"
6 
7 namespace openmsx {
8 
9 class AndroidApiWrapper
10 {
11 public:
12  static std::string getStorageDirectory();
13 };
14 
15 class JniException final : public MSXException
16 {
17 public:
18  explicit JniException(string_view message)
19  : MSXException(message) {}
20 };
21 
22 } // namespace openmsx
23 #endif // #if PLATFORM_ANDROID
24 
25 #endif
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:15