void a_file__uninit(void) { A_LIST_ITERATE(g_openedFiles, AFile*, f) { a_out__warning("You should close %s/%s with a_file_close", f->path, f->name); a_file__close(f); }
void a_fade_screens(int FramesDuration) { if(g_fadePending) { a_out__warning("a_fade_screens: fade pending, ignoring"); return; } g_framesDuration = FramesDuration; updateCachedBuffer(true); a_state_push("a__fadeScreens"); g_fadePending = true; }
void a_fade_toColor(int FramesDuration) { if(g_fadePending) { a_out__warning("a_fade_toColor: fade pending, ignoring"); return; } g_framesDuration = FramesDuration; g_savedColor = a_pixel__state.pixel; updateCachedBuffer(false); a_state_push("a__fadeToColor"); g_fadePending = true; }