summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/floptool.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-12-14 21:38:14 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-12-14 21:42:42 -0500
commit1214aac0928e5c7ebe3484f06a5c9a000f9962ef (patch)
tree08e4ee14aa16c1fd721dfef0b9dc1eb28471eb8a /src/tools/floptool.cpp
parent8a8b56bc24a398f5bda13b0e24a56012a1252353 (diff)
Filesystem code cleanup
- Eliminate dependencies on emu.h, replacing most fatalerror calls and floptool's ersatz emu_fatalerror class with standard exception classes - Use range-based std::string constructors in some methods - Move filesystem metadata handling to a separate source file - Eliminate src/emu as an include path for libformats (necessitates kludge in ti99_dsk.cpp)
Diffstat (limited to 'src/tools/floptool.cpp')
-rw-r--r--src/tools/floptool.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/floptool.cpp b/src/tools/floptool.cpp
index f021e084a62..7be0560bae9 100644
--- a/src/tools/floptool.cpp
+++ b/src/tools/floptool.cpp
@@ -10,6 +10,9 @@
#include "corestr.h"
#include "ioprocs.h"
+#include "strformat.h"
+
+#include "osdcomm.h"
#include <cassert>
#include <cctype>
@@ -18,6 +21,7 @@
#include <cstdlib>
#include <cstring>
#include <ctime>
+#include <exception>
static formats_table formats;
@@ -704,7 +708,7 @@ int CLIB_DECL main(int argc, char *argv[])
display_usage();
return 1;
}
- } catch(const emu_fatalerror &err) {
+ } catch(const std::exception &err) {
fprintf(stderr, "Error: %s", err.what());
return 1;
}