Common Source Code Project for Qt (a.k.a for FM-7).
Revision | e77cd0c4179495dc852b8025d154367d8fdf9fa1 (tree) |
---|---|
Time | 2020-12-20 21:10:45 |
Author | K.Ohta <whatisthis.sowhat@gmai...> |
Commiter | K.Ohta |
[VM][FMTOWNS][CDROM] Even reply without REQ_STATUS bit (0x20) with PAUSE/RESUME CDDA (85h/87h).
@@ -2028,18 +2028,15 @@ void TOWNS_CDROM::unpause_cdda_from_cmd() | ||
2028 | 2028 | status_media_changed(false); |
2029 | 2029 | return; |
2030 | 2030 | } |
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; | |
2043 | 2040 | } |
2044 | 2041 | |
2045 | 2042 | void TOWNS_CDROM::stop_cdda_from_cmd() |
@@ -2071,19 +2068,14 @@ void TOWNS_CDROM::pause_cdda_from_cmd() | ||
2071 | 2068 | status_media_changed(false); |
2072 | 2069 | return; |
2073 | 2070 | } |
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; | |
2087 | 2079 | } |
2088 | 2080 | |
2089 | 2081 | bool TOWNS_CDROM::seek_relative_frame_in_image(uint32_t frame_no) |