diff --git a/demos/misc/Dreamliner_FMTowns.fur b/demos/misc/Dreamliner_FMTowns.fur new file mode 100644 index 00000000..d7120416 Binary files /dev/null and b/demos/misc/Dreamliner_FMTowns.fur differ diff --git a/demos/pce/Ma-Da-Ra.fur b/demos/pce/Ma-Da-Ra.fur new file mode 100644 index 00000000..98139ed7 Binary files /dev/null and b/demos/pce/Ma-Da-Ra.fur differ diff --git a/demos/snes/MM8_Frost_Man.fur b/demos/snes/MM8_Frost_Man.fur new file mode 100644 index 00000000..bad1ceee Binary files /dev/null and b/demos/snes/MM8_Frost_Man.fur differ diff --git a/src/engine/platform/k007232.h b/src/engine/platform/k007232.h index 6e020f9d..04e6e73f 100644 --- a/src/engine/platform/k007232.h +++ b/src/engine/platform/k007232.h @@ -92,7 +92,6 @@ class DivPlatformK007232: public DivDispatch, public k007232_intf { void tick(bool sysTick=true); void muteChannel(int ch, bool mute); bool isStereo(); - void setChipModel(int type); void notifyInsChange(int ins); void notifyWaveChange(int wave); void notifyInsDeletion(void* ins); diff --git a/src/engine/platform/sound/ymfm/README.md b/src/engine/platform/sound/ymfm/README.md index 788b9901..40e64f19 100644 --- a/src/engine/platform/sound/ymfm/README.md +++ b/src/engine/platform/sound/ymfm/README.md @@ -4,7 +4,7 @@ # modified version -this is a modified version of ymfm with a small bug fix. +this is a modified version which contains many fixes. ## Supported environments diff --git a/src/engine/platform/sound/ymfm/ymfm_opm.h b/src/engine/platform/sound/ymfm/ymfm_opm.h index 2034b5f4..830b195e 100644 --- a/src/engine/platform/sound/ymfm/ymfm_opm.h +++ b/src/engine/platform/sound/ymfm/ymfm_opm.h @@ -174,7 +174,7 @@ public: // system-wide registers uint32_t test() const { return byte(0x01, 0, 8); } uint32_t lfo_reset() const { return byte(0x01, 1, 1); } - uint32_t noise_frequency() const { return byte(0x0f, 0, 5) ^ 0x1f; } + uint32_t noise_frequency() const { return byte(0x0f, 0, 5); } uint32_t noise_enable() const { return byte(0x0f, 7, 1); } uint32_t timer_a_value() const { return word(0x10, 0, 8, 0x11, 0, 2); } uint32_t timer_b_value() const { return byte(0x12, 0, 8); } diff --git a/src/winMain.cpp b/src/winMain.cpp index 853b1153..c904b996 100644 --- a/src/winMain.cpp +++ b/src/winMain.cpp @@ -22,6 +22,10 @@ typedef HRESULT (*SPDA)(int); int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, PSTR args, int state) { + if (AttachConsole(ATTACH_PARENT_PROCESS)==0) { + if (GetLastError()==ERROR_ACCESS_DENIED) FreeConsole(); + } + int argc=0; wchar_t** argw=CommandLineToArgvW(GetCommandLineW(),&argc); char** argv=new char*[argc+1];