251 if (asc_has_error()) { |
251 if (asc_has_error()) { |
252 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, |
252 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, |
253 "Fatal Error",asc_get_error(), NULL); |
253 "Fatal Error",asc_get_error(), NULL); |
254 return 1; |
254 return 1; |
255 } |
255 } |
256 #ifdef TEST_BUILD |
|
257 asc_set_font_path("../../fonts"); |
|
258 asc_set_shader_path("../../shader"); |
|
259 asc_set_texture_path("../../test/snake/textures"); |
|
260 #endif |
|
261 |
256 |
262 // initialize globals |
257 // initialize globals |
263 init_globals(); |
258 init_globals(); |
264 |
259 |
265 // create window |
260 // create window |