All pastes #25009 Raw Edit

Anonymous

public c v1 · immutable
#25009 ·published 2005-10-09 05:55 UTC
rendered paste body
SDL_RWops *SDL_RWFromFileW(const wchar_t *file, const char *mode){        FILE *fp;        SDL_RWops *rwops;        rwops = NULL;        fp = _wfopen(file, mode);        if ( fp == NULL ) {                SDL_SetError("Couldn't open %s", file);        } else {                in_sdl = 1;                rwops = SDL_RWFromFP(fp, 1);                in_sdl = 0;        }        return(rwops);}