README.Platforms
author Sam Lantinga <slouken@libsdl.org>
Tue, 02 Apr 2013 07:57:37 -0700
changeset 7045 4be2c24b7de1
parent 7031 3242aa26100f
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 
     2 This is a list of the platforms SDL supports, and who maintains them.
     3 
     4 Officially supported platforms
     5 ==============================
     6 (code compiles, and thoroughly tested for release)
     7 ==============================
     8 Windows XP
     9 Windows Vista
    10 Windows 7
    11 Mac OS X 10.4+
    12 Linux 2.6+
    13 iOS 3.1.3+
    14 Android 2.3.3+
    15 
    16 Unofficially supported platforms
    17 ================================
    18 (code compiles, but not thoroughly tested)
    19 ================================
    20 FreeBSD
    21 NetBSD
    22 OpenBSD
    23 Solaris
    24 
    25 Platforms supported by volunteers
    26 =================================
    27 Haiku - maintained by Axel Dörfler <axeld@pinc-software.de>
    28 PSP - maintained by 527721088@qq.com
    29 Pandora - maintained by Scott Smith <pickle136@sbcglobal.net>
    30 
    31 Platforms that need maintainers
    32 ===============================