Skip to content

mod_EmuELEC: wrap get_controls only once - #359

Merged
kloptops merged 1 commit into
PortsMaster:mainfrom
kloptops:fix-emuelec-wrap-twice
Oct 23, 2026
Merged

kloptops merged 1 commit into
PortsMaster:mainfrom
kloptops:fix-emuelec-wrap-twice

Conversation

@kloptops

Copy link
Copy Markdown
Member

Sourcing mod_EmuELEC.txt a second time wrapped the wrapper: its _pm_get_controls_orig became the wrapper itself, so get_controls called itself until bash crashed. Mystik Belle, The Flayed Man and The Sphinx of Time source it twice; they call get_controls in between, so only a port calling it after the second source would crash, but nothing stopped that.

tests/test_mod_files.py runs the wrapper sourced once, twice and three times (bash crashes without the check), and with a small config it must keep.

Sourcing mod_EmuELEC.txt a second time wrapped the wrapper: its
_pm_get_controls_orig became the wrapper itself, so get_controls called
itself until bash crashed. Mystik Belle, The Flayed Man and The Sphinx
of Time source it twice; they call get_controls in between, so only a
port calling it after the second source would crash, but nothing
stopped that.

tests/test_mod_files.py runs the wrapper sourced once, twice and three
times (bash crashes without the check), and with a small config it
must keep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NxABmR1rUUgi4iicVLZchY
@kloptops
kloptops merged commit 03151d0 into PortsMaster:main Oct 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant