From a24cd9004e42eac37d617ebdc6093d7894d5a6c7 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 10 Jan 2024 12:01:27 +0100 Subject: [PATCH] TEST: trying to build origina untouched manifest --- mame-patches/floppy.patch | 41 --------------------------------------- mame-patches/mame.ini | 33 ------------------------------- mame-patches/sound.patch | 28 -------------------------- mame-patches/ym3802.patch | 13 ------------- 4 files changed, 115 deletions(-) delete mode 100644 mame-patches/floppy.patch delete mode 100644 mame-patches/mame.ini delete mode 100644 mame-patches/sound.patch delete mode 100644 mame-patches/ym3802.patch diff --git a/mame-patches/floppy.patch b/mame-patches/floppy.patch deleted file mode 100644 index 1754f61..0000000 --- a/mame-patches/floppy.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp -index 3c00336d..cda94d92 100644 ---- a/src/devices/imagedev/floppy.cpp -+++ b/src/devices/imagedev/floppy.cpp -@@ -1707,9 +1707,10 @@ void floppy_sound_device::sound_stream_update(sound_stream &stream, std::vector< - { - idx = m_spin_playback_sample; - sampleend = m_sample[idx].data.size(); -- out = m_sample[idx].data[m_spin_samplepos++]; -- -- if (m_spin_samplepos >= sampleend) -+ m_spin_samplepos++; -+ if (m_spin_samplepos < sampleend) -+ out = m_sample[idx].data[m_spin_samplepos]; -+ else - { - // Motor sample has completed - switch (m_spin_playback_sample) -@@ -1763,7 +1764,8 @@ void floppy_sound_device::sound_stream_update(sound_stream &stream, std::vector< - idx = m_step_base + m_seek_playback_sample; - sampleend = m_sample[idx].data.size(); - // Mix it into the stream value -- out += m_sample[idx].data[(int)m_seek_samplepos]; -+ if (m_seek_samplepos < sampleend) -+ out += m_sample[idx].data[(int)m_seek_samplepos]; - // By adding different values than 1, we can change the playback speed - // This will be used to adjust the seek sound - m_seek_samplepos += m_seek_pitch; -@@ -1781,8 +1783,10 @@ void floppy_sound_device::sound_stream_update(sound_stream &stream, std::vector< - sampleend = m_sample[idx].data.size(); - - // Mix it into the stream value -- out += m_sample[idx].data[m_step_samplepos++]; -- if (m_step_samplepos >= sampleend) -+ m_step_samplepos++; -+ if (m_step_samplepos < sampleend) -+ out += m_sample[idx].data[m_step_samplepos]; -+ else - { - // Step sample done - m_step_samplepos = 0; \ No newline at end of file diff --git a/mame-patches/mame.ini b/mame-patches/mame.ini deleted file mode 100644 index 0164486..0000000 --- a/mame-patches/mame.ini +++ /dev/null @@ -1,33 +0,0 @@ -# -# CORE SEARCH PATH OPTIONS -# -homepath $HOME/.mame -rompath /app/share/mame/roms -hashpath /app/share/mame/hash -samplepath /app/share/mame/samples -artpath /app/share/mame/artwork -ctrlrpath /app/share/mame/ctrlr -inipath $HOME/.mame;/app/share/mame/ini -fontpath /app/bin/ -cheatpath /app/share/mame/cheat -crosshairpath /app/share/mame/crosshair -pluginspath /app/share/mame/plugins -languagepath /app/share/mame/language -swpath /app/share/mame/software - -# -# CORE OUTPUT DIRECTORY OPTIONS -# -cfg_directory $HOME/.mame/cfg -nvram_directory $HOME/.mame/nvram -input_directory $HOME/.mame/inp -state_directory $HOME/.mame/sta -snapshot_directory $HOME/.mame/snap -diff_directory $HOME/.mame/diff -comment_directory $HOME/.mame/comments -share_directory $HOME/.mame/share - -# -# OSD VIDEO OPTIONS -# -video opengl \ No newline at end of file diff --git a/mame-patches/sound.patch b/mame-patches/sound.patch deleted file mode 100644 index 84b51ff..0000000 --- a/mame-patches/sound.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp -index a0293063..c4989abb 100644 ---- a/src/emu/sound.cpp -+++ b/src/emu/sound.cpp -@@ -761,6 +761,9 @@ read_stream_view sound_stream::update_view(attotime start, attotime end, u32 out - } - g_profiler.stop(); - -+ if (!m_output_view[outputnum].valid()) -+ m_output_view[outputnum] = empty_view(start, end); -+ - // return the requested view - return read_stream_view(m_output_view[outputnum], start); - } -diff --git a/src/emu/sound.h b/src/emu/sound.h -index 15f6a574..bfa45c45 100644 ---- a/src/emu/sound.h -+++ b/src/emu/sound.h -@@ -284,6 +284,9 @@ public: - return *this; - } - -+ // check basic constraints -+ bool valid() const { return m_buffer != nullptr; } -+ - // return the local gain - sample_t gain() const { return m_gain; } - \ No newline at end of file diff --git a/mame-patches/ym3802.patch b/mame-patches/ym3802.patch deleted file mode 100644 index a48925a..0000000 --- a/mame-patches/ym3802.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/devices/machine/ym3802.cpp b/src/devices/machine/ym3802.cpp -index 4a8f6a7ffae..d1bf2b961f6 100644 ---- a/src/devices/machine/ym3802.cpp -+++ b/src/devices/machine/ym3802.cpp -@@ -45,7 +45,7 @@ void ym3802_device::device_start() - - void ym3802_device::device_reset() - { -- m_reg.clear(); -+ m_reg.assign(REG_MAX, 0); - reset_irq(0xff); - transmit_register_reset(); - receive_register_reset(); \ No newline at end of file