aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-10-31 13:04:45 +0300
committerWohlstand <admin@wohlnet.ru>2017-10-31 13:04:45 +0300
commit2b0cfc0b3a05fc93c8d6fd9aab7b9e59bbd2c11c (patch)
treed58507a6b6941b06845d3757b8a84b9cd84d0fbc /src
parent3707313e7dea178a44f13daa653e072f9b930b66 (diff)
downloadlibADLMIDI-2b0cfc0b3a05fc93c8d6fd9aab7b9e59bbd2c11c.tar.gz
libADLMIDI-2b0cfc0b3a05fc93c8d6fd9aab7b9e59bbd2c11c.tar.bz2
libADLMIDI-2b0cfc0b3a05fc93c8d6fd9aab7b9e59bbd2c11c.zip
Added ability to print name of currently using OPL3 emulator
Diffstat (limited to 'src')
-rw-r--r--src/adlmidi.cpp9
1 files changed, 9 insertions, 0 deletions
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();