Sfoglia il codice sorgente

image: error reporting in the Android image loading class.

legacy
Sam Hocevar sam 13 anni fa
parent
commit
df638532d8
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. +7
    -0
      src/image.cpp

+ 7
- 0
src/image.cpp Vedi File

@@ -134,6 +134,13 @@ Image::Image(char const *path)
jstring name = g_env->NewStringUTF(path);
data->bmp = g_env->CallObjectMethod(g_ctx, mid, name);
g_env->DeleteLocalRef(name);
if (!data->bmp)
{
#if !LOL_RELEASE
Log::Error("could not load %s\n", path);
#endif
exit(1);
}
g_env->NewGlobalRef(data->bmp);

/* Get image dimensions */


Caricamento…
Annulla
Salva