Debian Codegraph @

src/engine/export.cpp

raw
1 /**
2 * Furnace Tracker - multi-system chiptune tracker
3 * Copyright (C) 2021-2025 tildearrow and contributors
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #include "engine.h"
21
22 #include "export/amigaValidation.h"
23 #include "export/sapr.h"
24 #include "export/tiuna.h"
25 #include "export/zsm.h"
26 #include "export/ipod.h"
27 #include "export/grub.h"
28
29 DivROMExport* DivEngine::buildROM(DivROMExportOptions sys) {
30 DivROMExport* exporter=NULL;
31 switch (sys) {
32 case DIV_ROM_AMIGA_VALIDATION:
33 exporter=new DivExportAmigaValidation;
34 break;
35 case DIV_ROM_TIUNA:
36 exporter=new DivExportTiuna;
37 break;
38 case DIV_ROM_ZSM:
39 exporter=new DivExportZSM;
40 break;
41 case DIV_ROM_SAP_R:
42 exporter=new DivExportSAPR;
43 break;
44 case DIV_ROM_IPOD:
45 exporter=new DivExportiPod;
46 break;
47 case DIV_ROM_GRUB:
48 exporter=new DivExportGRUB;
49 break;
50 default:
51 exporter=new DivROMExport;
52 break;
53 }
54 return exporter;
55 }