summaryrefslogtreecommitdiff
path: root/src/resources.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources.c')
-rw-r--r--src/resources.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources.c b/src/resources.c
index 0358e3a3..5c7e41ea 100644
--- a/src/resources.c
+++ b/src/resources.c
@@ -101,8 +101,9 @@ iBool init_Resources(const char *path) {
101 iBool ok = iFalse; 101 iBool ok = iFalse;
102#if defined (iPlatformAndroidMobile) 102#if defined (iPlatformAndroidMobile)
103 /* Resources are bundled as assets so they cannot be loaded as a regular file. 103 /* Resources are bundled as assets so they cannot be loaded as a regular file.
104 Fortunately, SDL implements a file wrapper. */ { 104 Fortunately, SDL implements a file wrapper. */
105 SDL_RWops *io = SDL_RWFromFile(path, "rb"); 105 SDL_RWops *io = SDL_RWFromFile(path, "rb");
106 if (io) {
106 iBlock buf; 107 iBlock buf;
107 init_Block(&buf, (size_t) SDL_RWsize(io)); 108 init_Block(&buf, (size_t) SDL_RWsize(io));
108 SDL_RWread(io, data_Block(&buf), size_Block(&buf), 1); 109 SDL_RWread(io, data_Block(&buf), size_Block(&buf), 1);