Skip to content

Fix exception and bad state if save chip is not detected#130

Open
fredemmott wants to merge 1 commit into
Lesserkuma:masterfrom
fredemmott:save-chip-none
Open

Fix exception and bad state if save chip is not detected#130
fredemmott wants to merge 1 commit into
Lesserkuma:masterfrom
fredemmott:save-chip-none

Conversation

@fredemmott
Copy link
Copy Markdown
Contributor

I have ModRetro Centipede, with a SST39VF1682 and FM28V020-SG; save_chip is None with both a Joey Jr and my Chromatic when detecting.

I have ModRetro Centipede, with a SST39VF1682 and FM28V020-SG; save_chip
is `None` with both a Joey Jr and my Chromatic when detecting.
Comment thread FlashGBX/FlashGBX_GUI.py

if save_type == 0:
if "Unknown" in save_chip:
if save_chip is not None and "Unknown" in save_chip:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taking a second look, isn't this whole block inverted?

From the text, it looks like the text below should not be taken for "Unknown"

Perhaps this should be:

if save_chip is None or "Unknown" in save_chip:
    msg_save_type_s = "<b>Save Type:</b> None or unknown (no save data detected)<br>"
else
    msg_save_type_s = "<b>Save Type:</b> {:s}<br>".format(save_chip)

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