Debian Codegraph @

src/engine/export/abstract.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 "../export.h"
21 #include "../../ta-log.h"
22
23 bool DivROMExport::go(DivEngine* eng) {
24 logW("what's this? the null ROM export?");
25 return false;
26 }
27
28 void DivROMExport::abort() {
29 }
30
31 std::vector<DivROMExportOutput>& DivROMExport::getResult() {
32 return output;
33 }
34
35 bool DivROMExport::hasFailed() {
36 return true;
37 }
38
39 DivROMExportProgress DivROMExport::getProgress(int index) {
40 DivROMExportProgress ret;
41 ret.name="";
42 ret.amount=0.0f;
43 return ret;
44 }
45
46 void DivROMExport::logAppend(String what) {
47 logLock.lock();
48 exportLog.push_back(what);
49 logLock.unlock();
50 logD("export: %s",what);
51 }
52
53 void DivROMExport::wait() {
54 }
55
56 bool DivROMExport::isRunning() {
57 return false;
58 }
59
60 void DivROMExport::setConf(DivConfig& c) {
61 conf=c;
62 }