file_error emu_file::compress(int level) { if (m_filename == "RAM") { // Silently ignore compress requests for ramfiles. return FILERR_NONE; } return core_fcompress(m_file, level); }
void core_fclose(core_file *file) { /* close files and free memory */ if (file->zdata != NULL) core_fcompress(file, FCOMPRESS_NONE); if (file->file != NULL) osd_close(file->file); if (file->data != NULL && file->data_allocated) free(file->data); free(file); }
file_error emu_file::compress(int level) { return core_fcompress(m_file, level); }