カテゴリ | 重要度 | ステータス | 解決状況 | 登録日時 | 最終更新 |
---|---|---|---|---|---|
低 | 指示待ち | 未処理 | 2025-02-12 19:34 | 2025-02-19 11:21 | |
テスター | Robbbert | 担当者 |   | ソース | |
バージョン | 0.274 | 発生バージョン | 修正バージョン | ||
修正コミット | プルリク | ||||
フラグ | |||||
セット | All systems that have cassette support | ||||
セット詳細 | |||||
概 要 | 存在しないカセットファイルを指定すると0バイトファイルが生成される。 | ||||
詳 細 | On any system that supports cassettes, if a file that doesn't exist was accidentally specified on the command line, an unwanted zero-byte file gets left behind. I've used super80 in the examples below, but any cassette-supporting system can be used. | ||||
再現手順 | If you didn't specify a folder then the MAME folder gets used. >mame super80 -cass t Firstly it lists a bunch of nearly matching software items. Then it says: Unable to load image 't': No such file or directory (generic:2) This isn't fatal: the emulation starts up. MAME creates an empty file and loads it into the file manager. If you now quit, the zero-byte file gets left behind. >dir t Directory of C:\MAME 2025-02-12 20:13 0 t ----------------- Now, we specifiy a folder that exists: >mame super80 -cass temp This time there's no software list suggestions; it just says: Unable to load image 'temp ': No such file or directory (generic:2) Again, a zero-byte file is left behind. ------------------ Now we specifiy a folder that doesn't exist >mame super80 -cass temp2 Unable to load image 'temp2 ': No such file or directory (generic:2) Unable to create image 'temp2 ': No such file or directory (generic:2) Fatal error: Device Cassette load (-cassette ) failed: No such file or directory (generic:2) This is fatal. You can see that it tries to create a file. | ||||
追加情報 | What happens above is almost right, but I'd suggest that a new file gets created only if it was written to. Leaving zero-byte files littering the system is untidy at best. Other missing media (eg floppies) don't create empty files. Also note that MAME will allow creation and usage of files that don't have approved extensions, and thus cannot be used for reading later. | ||||
添付ファイル |