TASEmulators / TASEmulators/BizHawk
Config Menu--Core settings--SubBSNESv115+--Controller Configuration
Open
Nobody has claimed this yet.
App: EmuHawk
Core: BSNES
- Dominant language
- C#
- Stars
- 2.8k
- Forks
- 468
- PR merge metrics
- No merged PRs in 30d
Description
System.InvalidCastException: 无法将类型为“System.Object”的对象强制转换为类型“SnesSyncSettings”。
在 BizHawk.Client.EmuHawk.BSNESControllerSettings..ctor(ISettingsAdapter settable) 位置 /src/BizHawk.Client.EmuHawk/config/SNES/BSNESControllerConfig.cs:行号 17
在 BizHawk.Client.EmuHawk.MainForm.OpenBSNESGamepadSettingsDialog(ISettingsAdapter settable) 位置 /src/BizHawk.Client.EmuHawk/MainForm.VSystem.cs:行号 781
在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
在 System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
在 System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ToolStrip.WndProc(Message& m)
在 System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with config/SNES/BSNESControllerConfig.cs at line 17, then trace the settings object passed from MainForm.VSystem.cs at line 781. Reproduce the Core settings > SubBSNESv115+ > Controller Configuration path and inspect why the dialog receives the wrong settings type. Done means the controller configuration dialog opens without the InvalidCastException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100