{"action":"created","issue":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/194","labels_url":"https://api.github.com/repos/openMSX/openMSX/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/openMSX/openMSX/issues/194/comments","events_url":"https://api.github.com/repos/openMSX/openMSX/issues/194/events","html_url":"https://github.com/openMSX/openMSX/issues/194","id":85896774,"number":194,"title":"[Feature] Support saving on *existing* cassette images [sf#160]","user":{"login":"andete","id":689017,"avatar_url":"https://avatars.githubusercontent.com/u/689017?v=3","gravatar_id":"","url":"https://api.github.com/users/andete","html_url":"https://github.com/andete","followers_url":"https://api.github.com/users/andete/followers","following_url":"https://api.github.com/users/andete/following{/other_user}","gists_url":"https://api.github.com/users/andete/gists{/gist_id}","starred_url":"https://api.github.com/users/andete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andete/subscriptions","organizations_url":"https://api.github.com/users/andete/orgs","repos_url":"https://api.github.com/users/andete/repos","events_url":"https://api.github.com/users/andete/events{/privacy}","received_events_url":"https://api.github.com/users/andete/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-07T12:04:35Z","updated_at":"2015-06-07T12:04:49Z","closed_at":null,"body":"**Reported by sick_soul on 2008-12-09 20:44 UTC**\nHello,\r\n\r\nin order to be able to program effectively using openMSX and cassetteplayer for storage, I found it difficult/impossible to load a previous taped basic program and then modify it and save it.\r\n\r\nI use a different .CAS file for each program,\r\nand in order to load, modify and overwrite the program I use the attached patch.\r\n\r\nThis is probably not ok for general purpose use, but some better implementation of 'switching to record mode' would be great I think.\r\n\r\nTrivial patch for CassettePlayer.cc attached.\r\n"},"comment":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/comments/109745147","html_url":"https://github.com/openMSX/openMSX/issues/194#issuecomment-109745147","issue_url":"https://api.github.com/repos/openMSX/openMSX/issues/194","id":109745147,"user":{"login":"andete","id":689017,"avatar_url":"https://avatars.githubusercontent.com/u/689017?v=3","gravatar_id":"","url":"https://api.github.com/users/andete","html_url":"https://github.com/andete","followers_url":"https://api.github.com/users/andete/followers","following_url":"https://api.github.com/users/andete/following{/other_user}","gists_url":"https://api.github.com/users/andete/gists{/gist_id}","starred_url":"https://api.github.com/users/andete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andete/subscriptions","organizations_url":"https://api.github.com/users/andete/orgs","repos_url":"https://api.github.com/users/andete/repos","events_url":"https://api.github.com/users/andete/events{/privacy}","received_events_url":"https://api.github.com/users/andete/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T12:04:49Z","updated_at":"2015-06-07T12:04:49Z","body":"**Commented by sick_soul on 2008-12-09 20:44 UTC**\nunified diff to apply to src/cassette/CassettePlayer.cc\nAttached file CassettePlayer.cc.record_mode.diff:\n\n    --- CassettePlayer.cc~\t2007-12-09 22:09:23.000000000 +0100\n    +++ CassettePlayer.cc\t2008-12-09 21:24:16.000000000 +0100\n    @@ -618,7 +618,12 @@\n     \t\tresult += cassettePlayer.motorControl ? \"on\" : \"off\";\n     \n     \t} else if (tokens[1] == \"record\") {\n    -\t\t\tresult += \"TODO: implement this... (sorry)\";\n    +\t    if (cassettePlayer.getState() == CassettePlayer::RECORD) {\n    +\t\tresult += \"Already in record mode.\";\n    +\t    } else {\n    +\t\tcassettePlayer.recordTape(cassettePlayer.getName(), time);\n    +\t\tresult += \"Record mode set.\";\n    +\t    }\n     \n     \t} else if (tokens[1] == \"play\") {\n     \t\tif (cassettePlayer.getState() == CassettePlayer::RECORD) {\n"}}