이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
도움말
로그인
lolengine
/
lol
의 미러
https://github.com/lolengine/lol
보기
1
좋아요
0
포크
0
코드
이슈
0
릴리즈
0
위키
활동
소스 검색
Print error reports before panicking when asset loads fail.
legacy
Sam Hocevar
sam
15 년 전
부모
72dbe887c5
커밋
87ed8cdf52
3개의 변경된 파일
과
15개의 추가작업
그리고
0개의 파일을 삭제
분할 보기
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
파일 보기
@@ -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
파일 보기
@@ -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
파일 보기
@@ -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);
}
쓰기
미리보기
불러오는 중...
취소
저장