• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revisione77cd0c4179495dc852b8025d154367d8fdf9fa1 (tree)
Time2020-12-20 21:10:45
AuthorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][FMTOWNS][CDROM] Even reply without REQ_STATUS bit (0x20) with PAUSE/RESUME CDDA (85h/87h).

Change Summary

Incremental Difference

--- a/source/src/vm/fmtowns/cdrom.cpp
+++ b/source/src/vm/fmtowns/cdrom.cpp
@@ -2028,18 +2028,15 @@ void TOWNS_CDROM::unpause_cdda_from_cmd()
20282028 status_media_changed(false);
20292029 return;
20302030 }
2031- if(cdda_status == CDDA_PAUSED) {
2032- set_cdda_status(CDDA_PLAYING);
2033- /*!
2034- * @note This may solve halt incident of Kyukyoku Tiger, but something are wrong.
2035- * @note 20201113 K.O
2036- */
2037- set_subq();
2038- if(req_status) {
2039- set_status_cddareply(true, 1, TOWNS_CD_STATUS_ACCEPT, 0x01, 0x00, 0x00);
2040- return;
2041- }
2042- }
2031+
2032+ set_cdda_status(CDDA_PLAYING);
2033+ /*!
2034+ * @note This may solve halt incident of Kyukyoku Tiger, but something are wrong.
2035+ * @note 20201113 K.O
2036+ */
2037+ set_subq();
2038+ set_status_cddareply(true, 1, TOWNS_CD_STATUS_ACCEPT, 0x01, 0x00, 0x00);
2039+ return;
20432040 }
20442041
20452042 void TOWNS_CDROM::stop_cdda_from_cmd()
@@ -2071,19 +2068,14 @@ void TOWNS_CDROM::pause_cdda_from_cmd()
20712068 status_media_changed(false);
20722069 return;
20732070 }
2074- if((cdda_status == CDDA_PLAYING)) {
2075- set_cdda_status(CDDA_PAUSED);
2076- /*!
2077- * @note This may solve halt incident of Kyukyoku Tiger, but something are wrong.
2078- * @note 20201113 K.O
2079- */
2080- set_subq();
2081- if(req_status) {
2082- set_status_cddareply(true, 1, TOWNS_CD_STATUS_ACCEPT, 0x01, 0x00, 0x00);
2083- return;
2084- }
2085- }
2086- return;
2071+ set_cdda_status(CDDA_PAUSED);
2072+ /*!
2073+ * @note This may solve halt incident of Kyukyoku Tiger, but something are wrong.
2074+ * @note 20201113 K.O
2075+ */
2076+ set_subq();
2077+ set_status_cddareply(true, 1, TOWNS_CD_STATUS_ACCEPT, 0x01, 0x00, 0x00);
2078+ return;
20872079 }
20882080
20892081 bool TOWNS_CDROM::seek_relative_frame_in_image(uint32_t frame_no)
Show on old repository browser