From ea8660029f2cc38cde452ec746eef489548c4950 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Wed, 2 Dec 2020 11:35:12 +0100 Subject: [PATCH] update highscores doc, added currently supported game list added input char limitation to DataGridWidget --- docs/index.html | 76 ++++++++++++++++++++++++----- src/debugger/gui/DataGridWidget.cxx | 2 + 2 files changed, 67 insertions(+), 11 deletions(-) diff --git a/docs/index.html b/docs/index.html index 4f979ac70..a6319a4f6 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2280,19 +2280,20 @@

- High Scores

+ High Scores Saving
-

Stella allows saving high scores when the required definitions for a ROM - exist. For a number of popular games this has been done already. You are - welcome to help us with defining more games.

+

Stella allows the user to save high scores when the required definitions + for a ROM exist. For a number of popular classic and homebrew games (see + High Scores - supported games) this has + been done already.

High Scores dialog:

This dialog can be opened by pressing 'Insert' any time while a game is - played. It will read the current score from the game and allow the user - to add it as a new high score. Of course this makes most sense when a game + played. It will provide the current variation and score and allow the user + to add this as a new high score. Of course this makes most sense when a game is over. The dialog items are explained in the following two tables.

@@ -2309,10 +2310,8 @@
  • Besides 'Rank' and 'Score' an optional special value (e.g. 'Level', 'Wave' or 'Round') is displayed.
  • In the 'Name' column, the player's initials are displayed. - These can be entered when a new high score is added to the list. -
  • -
  • 'Date' and 'Time' record the time when the high score was - added.
  • + These can be entered when a new high score is added to the list. +
  • 'Date' and 'Time' record when the high score was added.
  • The buttons at the right allow deleting individual high scores from the list.
  • @@ -4738,7 +4737,8 @@ Ms Pac-Man (Stella extended codes): 0-basedDefines whether the special number is stored is stored zero-based. NoteAllows defining some free text which explains the high scores properties. -

    To find the required definition values, you can use Stella's built-in debugger.

    +

    To find the required definition values, you can use Stella's built-in debugger. + Please share your results, so that we can extend the list of supported games.

    Note: To verify the definitions, the current values of the addresses and the resulting score are displayed.

    @@ -4843,6 +4843,60 @@ Ms Pac-Man (Stella extended codes): for changes to this file to take effect.

    +

    High Scores - supported games

    +
    + The following games (incl. TV system variations and many hacks, excluding + prototypes) are currently configured to save high scores. + +

    Classic games

    + +

    Homebrews

    + +

    Everyone is more than welcome to help us to fill the gaps by defining more + games.

    +


    diff --git a/src/debugger/gui/DataGridWidget.cxx b/src/debugger/gui/DataGridWidget.cxx index 9fa82bcdc..2e7214379 100644 --- a/src/debugger/gui/DataGridWidget.cxx +++ b/src/debugger/gui/DataGridWidget.cxx @@ -62,6 +62,8 @@ DataGridWidget::DataGridWidget(GuiObject* boss, const GUI::Font& font, // Set lower and upper bounds to sane values setRange(0, 1 << bits); + // Limit number of chars allowed + setMaxLen(colchars); // Add a scrollbar if necessary if(useScrollbar)