[ オリジナルレポート ]

BugID: #04479

カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
インターフェイス認証済み未処理2011-09-04 19:162013-09-02 23:14
 
テスターstealth担当者 ソース
バージョン0.143u4発生バージョン修正バージョン
修正コミットプルリク
フラグ
セット
セット詳細
 
概 要default.cfgで、ジョイスティックをつながないとユーザーによるのJOYCODE設定が失われる。
詳 細Mame lost my personal settings after playing games without problem (parameters are ok in game)

<code><?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default">
<input>
<port type="START1">
<newseq type="standard">
KEYCODE_1PAD OR JOYCODE_1_BUTTON7
</newseq>
</port>
<port type="START2">
<newseq type="standard">
KEYCODE_2PAD OR JOYCODE_2_UNKNOWN_SWITCH
</newseq>
</port>
<port type="COIN1">
<newseq type="standard">
KEYCODE_5PAD OR JOYCODE_1_BUTTON8
</newseq>
</port>
<port type="COIN2">
<newseq type="standard">
KEYCODE_6PAD OR JOYCODE_2_UNKNOWN_SWITCH
</newseq>
</port>
<port type="UI_CANCEL">
<newseq type="standard">
JOYCODE_1_BUTTON6 OR KEYCODE_ESC
</newseq>
</port>
</input>
</system>
</mameconfig></code>
再現手順1) Write default.cfg with JOYCODE options
<code><?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default">
<input>
<port type="START1">
<newseq type="standard">
KEYCODE_1PAD OR JOYCODE_1_BUTTON7
</newseq>
</port>
<port type="START2">
<newseq type="standard">
KEYCODE_2PAD OR JOYCODE_2_BUTTON7
</newseq>
</port>
<port type="COIN1">
<newseq type="standard">
KEYCODE_5PAD OR JOYCODE_1_BUTTON8
</newseq>
</port>
<port type="COIN2">
<newseq type="standard">
KEYCODE_6PAD OR JOYCODE_2_BUTTON7
</newseq>
</port>
<port type="UI_CANCEL">
<newseq type="standard">
JOYCODE_1_BUTTON6 OR KEYCODE_ESC
</newseq>
</port>
</input>
</system>
</mameconfig></code>
2) Play game without pad2 connected and mame rewrite file -> see UNKNOWN_SWITCH
<code><?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default">
<input>
<port type="START1">
<newseq type="standard">
KEYCODE_1PAD OR JOYCODE_1_BUTTON7
</newseq>
</port>
<port type="START2">
<newseq type="standard">
KEYCODE_2PAD OR JOYCODE_2_UNKNOWN_SWITCH
</newseq>
</port>
<port type="COIN1">
<newseq type="standard">
KEYCODE_5PAD OR JOYCODE_1_BUTTON8
</newseq>
</port>
<port type="COIN2">
<newseq type="standard">
KEYCODE_6PAD OR JOYCODE_2_UNKNOWN_SWITCH
</newseq>
</port>
<port type="UI_CANCEL">
<newseq type="standard">
JOYCODE_1_BUTTON6 OR KEYCODE_ESC
</newseq>
</port>
</input>
</system>
</mameconfig></code>
3) I play another game and mame lost default.cfg
<code><?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default" />
</mameconfig></code>

You can reproduce with pad1 also
<code> <input>
<port type="START1">
<newseq type="standard">
KEYCODE_1PAD OR JOYCODE_1_UNKNOWN_SWITCH</code>

When i remove an usb pad mame rewrite default.cfg
追加情報I tested with looping.zip and robby.zip from http://mamedev.org/roms/

Ubuntu Natty and deb from http://sdlmame.wallyweek.org/
 
添付ファイル