Searched refs:rwops (Results 1 – 2 of 2) sorted by relevance
31 static void rwops_error_quit( unsigned line, SDL_RWops *rwops) { in rwops_error_quit() argument34 if (rwops) { in rwops_error_quit()35 rwops->close(rwops); /* This calls SDL_FreeRW(rwops); */ in rwops_error_quit()47 SDL_RWops *rwops = NULL; in main() local54 rwops = SDL_RWFromFile(NULL,NULL); in main()55 if (rwops) RWOP_ERR_QUIT(rwops); in main()56 rwops = SDL_RWFromFile(NULL,"ab+"); in main()57 if (rwops) RWOP_ERR_QUIT(rwops); in main()58 rwops = SDL_RWFromFile(NULL,"sldfkjsldkfj"); in main()59 if (rwops) RWOP_ERR_QUIT(rwops); in main()[all …]
485 SDL_RWops *rwops = NULL; in SDL_RWFromFile() local496 rwops = SDL_AllocRW(); in SDL_RWFromFile()497 if (!rwops) in SDL_RWFromFile()499 if (win32_file_open(rwops,file,mode) < 0) { in SDL_RWFromFile()500 SDL_FreeRW(rwops); in SDL_RWFromFile()503 rwops->seek = win32_file_seek; in SDL_RWFromFile()504 rwops->read = win32_file_read; in SDL_RWFromFile()505 rwops->write = win32_file_write; in SDL_RWFromFile()506 rwops->close = win32_file_close; in SDL_RWFromFile()522 rwops = SDL_RWFromFP(fp, 1); in SDL_RWFromFile()[all …]