Tämä sivusto toimii paremmin JavaScriptillä.
Etusivu
Apua
Kirjaudu sisään
lolengine
/
lol
peilaus alkaen
https://github.com/lolengine/lol
Tarkkaile
1
Äänestä
0
Fork
0
Koodi
Ongelmat
0
Julkaisut
0
Wiki
Toiminta
Selaa lähdekoodia
Print error reports before panicking when asset loads fail.
legacy
Sam Hocevar
sam
14 vuotta sitten
vanhempi
72dbe887c5
commit
87ed8cdf52
3 muutettua tiedostoa
jossa
15 lisäystä
ja
0 poistoa
Jaettu näkymä
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
src/font.cpp
+9
-0
src/sample.cpp
+3
-0
src/tileset.cpp
+ 3
- 0
src/font.cpp
Näytä tiedosto
@@ -61,6 +61,9 @@ Font::Font(char const *path)
if (!data->img)
{
#if !FINAL_RELEASE
fprintf(stderr, "ERROR: could not load %s\n", path);
#endif
SDL_Quit();
exit(1);
}
+ 9
- 0
src/sample.cpp
Näytä tiedosto
@@ -15,6 +15,7 @@
#include <cstdlib>
#include <cmath>
#include <SDL.h>
#include <SDL_mixer.h>
#include "core.h"
@@ -41,6 +42,14 @@ Sample::Sample(char const *path)
{
data->name = strdup(path);
data->chunk = Mix_LoadWAV(path);
if (!data->chunk)
{
#if !FINAL_RELEASE
fprintf(stderr, "ERROR: could not load %s\n", path);
#endif
SDL_Quit();
exit(1);
}
}
Sample::~Sample()
+ 3
- 0
src/tileset.cpp
Näytä tiedosto
@@ -67,6 +67,9 @@ TileSet::TileSet(char const *path, int w, int h, float dilate)
if (!data->img)
{
#if !FINAL_RELEASE
fprintf(stderr, "ERROR: could not load %s\n", path);
#endif
SDL_Quit();
exit(1);
}
Kirjoita
Esikatselu
Ladataan…
Peruuta
Tallenna