diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cdabstract.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/cdabstract.cpp b/lib/cdabstract.cpp new file mode 100644 index 0000000..083aa4d --- /dev/null +++ b/lib/cdabstract.cpp @@ -0,0 +1,11 @@ +#include "cdabstract.h" +#include "Input.h" +#include "cdreader.h" + +Handle * open_iso(const String & nom) { + if (nom.extract(0, 2).toupper() == "CD:") { + return new cdreader(nom.extract(3)); + } else { + return new Input(nom); + } +} |