README.pandora
author Sam Lantinga <slouken@libsdl.org>
Tue, 02 Apr 2013 07:57:37 -0700
changeset 7045 4be2c24b7de1
parent 6987 7084af936d82
permissions -rw-r--r--
Fixed bug 1780 - SDL_RWFromFile() sets an error on Android although a valid SDL_RWops pointer is returned.

Philipp Wiesemann

SDL_RWFromFile() sets an error to be queried with SDL_GetError() on Android although a valid SDL_RWops pointer is returned.

This happens if the fallback implemented in SDL_android.cpp is used to load compressed assets (see README.android in section "Loading assets") and results in a message like "java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed". I think this is confusing and not needed because the loading works as expected.

I attached a patch which changes SDL_android.cpp to not set an error if compressed assets are loaded. In this case also no Exception is queried and no additional string are created.
     1 SDL 2.0 with open pandora console support ( http://openpandora.org/ )
     2 =====================================================================
     3 
     4 - A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES
     5 support to work on the pandora under the framebuffer. This driver do not have
     6 input support for now, so if you use it you will have to add your own control code.
     7 The video driver name is "pandora" so if you have problem running it from
     8 the framebuffer, try to set the following variable before starting your application :
     9 "export SDL_VIDEODRIVER=pandora"
    10 
    11 - OpenGL ES support was added to the x11 driver, so it's working like the normal
    12 x11 driver one with OpenGLX support, with SDL input event's etc..
    13 
    14 
    15 David Carré (Cpasjuste)
    16 cpasjuste@gmail.com