This patch is parallel to commit 0bb63fe6f5a in mupen64plus-ui-console.
0bb63fe6f5
I intend to submit patches for removing configuration saving from
plugins (mupen64plus-audio-sdl is aleady done).
In exchange, the front-ends should save the configuration at the latest
safe opportunity, to capture any changes before most chances of crashes,
power outages, kill -9, etc.
Discussion:
https://github.com/mupen64plus/mupen64plus-audio-sdl/pull/26
This turns many options in the glide64mk2 plugin from SpinBox into
ComboBox. This commit also fixes an issue with the fps option not
showing "VI/s counter" correctly because it contains a slash.
This prevents a crash that happened if you selected a joystick device
and then unplugged it and went back to the input settings window. The
crash happened because set_opts() tried to select the item in the list
when it did not exist.
The core library has added these fields so all frontends must be updated
or recompiled to continue working. Otherwise the wrong size will be
sent to CoreGetRomSettings() and it will return a M64ERR_INPUT_INVALID
response.
Early this week, GitHub user xX-Yoshi-Xx informed me that there was an
issue installing using my last commit. This was due to the script trying
to import a module from `src/m64py` before it was added to the path. So
I fixed that just by moving the import down a few lines.
I also rewrote the README in reStructuredText, since this is the
default Python markup format. I added some new content on using the
`requirements.txt`` file to install the Python dependencies as well as a
few other notes. I also did a few smaller things like making the
Changelog file in all caps like the other files.
Earlier today I got a warning from Pip saying that ability to uninstall
programs that were installed using the Distutils module is going to be
depricated. So I decided to update everything over to Setuptools, which
is the new Python standard. While doing so, I ran the script through
flake8 and pylint a bit and took care of warnings not dealing with line
length or the lack of docstrings. I also took a bit of creative license
when I felt comfortable doing so to make the script more readable.