Changeset 835


Ignore:
Timestamp:
Aug 18, 2011, 8:44:33 AM (8 years ago)
Author:
sam
Message:

image: error reporting in the Android image loading class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/image.cpp

    r833 r835  
    135135    data->bmp = g_env->CallObjectMethod(g_ctx, mid, name);
    136136    g_env->DeleteLocalRef(name);
     137    if (!data->bmp)
     138    {
     139#if !LOL_RELEASE
     140        Log::Error("could not load %s\n", path);
     141#endif
     142        exit(1);
     143    }
    137144    g_env->NewGlobalRef(data->bmp);
    138145
Note: See TracChangeset for help on using the changeset viewer.