/* Mednafen - Multi-system Emulator1*2* This program is free software; you can redistribute it and/or modify3* it under the terms of the GNU General Public License as published by4* the Free Software Foundation; either version 2 of the License, or5* (at your option) any later version.6*7* This program is distributed in the hope that it will be useful,8* but WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10* GNU General Public License for more details.11*12* You should have received a copy of the GNU General Public License13* along with this program; if not, write to the Free Software14* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA15*/1617#include "emuware/emuware.h"18#include "CDAccess.h"19#include "CDAccess_Image.h"20#include "CDAccess_CCD.h"2122using namespace CDUtility;2324CDAccess::CDAccess()25{2627}2829CDAccess::~CDAccess()30{3132}3334CDAccess* CDAccess_Open(const std::string& path, bool image_memcache)35{36CDAccess *ret = NULL;3738if(path.size() >= 4 && !strcasecmp(path.c_str() + path.size() - 4, ".ccd"))39ret = new CDAccess_CCD(path, image_memcache);40else41ret = new CDAccess_Image(path, image_memcache);4243return ret;44}45464748