Browse Source

Use APK as a last fall back to other file access methodes

pull/3185/head
Anders Jenbo 4 years ago
parent
commit
82657e7d21
  1. 8
      Source/storm/storm_sdl_rw.cpp

8
Source/storm/storm_sdl_rw.cpp

@ -102,6 +102,10 @@ SDL_RWops *SFileRw_FromStormHandle(HANDLE handle)
SDL_RWops *SFileOpenRw(const char *filename)
{
HANDLE handle;
if (SFileOpenFile(filename, &handle))
return SFileRw_FromStormHandle(handle);
#ifdef __ANDROID__
std::string relativePath = filename;
for (std::size_t i = 0; i < relativePath.size(); ++i) {
@ -113,10 +117,6 @@ SDL_RWops *SFileOpenRw(const char *filename)
return rwops;
#endif
HANDLE handle;
if (SFileOpenFile(filename, &handle))
return SFileRw_FromStormHandle(handle);
return nullptr;
}

Loading…
Cancel
Save