Disable the gus from loading if machine != vga
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1852
This commit is contained in:
parent
802d1137d5
commit
24123486b8
1 changed files with 4 additions and 2 deletions
|
@ -978,11 +978,13 @@ void MakeTables(void)
|
|||
|
||||
|
||||
void GUS_Init(Section* sec) {
|
||||
if(machine!=MCH_VGA) return;
|
||||
Section_prop * section=static_cast<Section_prop *>(sec);
|
||||
if(!section->Get_bool("gus")) return;
|
||||
|
||||
memset(&myGUS,0,sizeof(myGUS));
|
||||
memset(GUSRam,0,1024*1024);
|
||||
|
||||
Section_prop * section=static_cast<Section_prop *>(sec);
|
||||
if(!section->Get_bool("gus")) return;
|
||||
myGUS.rate=section->Get_int("rate");
|
||||
|
||||
myGUS.portbase = section->Get_hex("base") - 0x200;
|
||||
|
|
Loading…
Add table
Reference in a new issue