(svn r224) -Fix: Music now finally works on WinXP. DirectMusic is now default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc).

This commit is contained in:
darkvater
2004-09-12 22:03:14 +00:00
parent e295e46e3e
commit 989ed101bc
8 changed files with 61 additions and 19 deletions

View File

@@ -730,7 +730,7 @@ void IConsoleCmdHook(const byte * name, byte type, void * proc)
bool IConsoleCmdHookHandle(_iconsole_cmd * hook_cmd, byte type)
{
bool (*proc)(_iconsole_cmd * hook_cmd);
bool (*proc)(_iconsole_cmd * hook_cmd) = NULL;
switch (type) {
case ICONSOLE_HOOK_AFTER_EXEC:
proc = hook_cmd->hook_after_exec;
@@ -741,11 +741,9 @@ bool IConsoleCmdHookHandle(_iconsole_cmd * hook_cmd, byte type)
case ICONSOLE_HOOK_ACCESS:
proc = hook_cmd->hook_access;
break;
default:
proc = NULL;
break;
default: return true;
}
if (proc == NULL) return true;
return proc(hook_cmd);
}