From 2b0cfc0b3a05fc93c8d6fd9aab7b9e59bbd2c11c Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 31 Oct 2017 13:04:45 +0300 Subject: Added ability to print name of currently using OPL3 emulator --- src/adlmidi.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/adlmidi.cpp') diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 7aa9e8b..0f0353c 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -265,6 +265,15 @@ ADLMIDI_EXPORT int adl_openData(ADL_MIDIPlayer *device, void *mem, long size) } +ADLMIDI_EXPORT const char *adl_emulatorName() +{ + #ifdef ADLMIDI_USE_DOSBOX_OPL + return "DosBox"; + #else + return "Nuked"; + #endif +} + ADLMIDI_EXPORT const char *adl_errorString() { return ADLMIDI_ErrorString.c_str(); -- cgit v1.2.3