Ticket #9065: gmm-load_del_empty-v2_alternative.patch

File gmm-load_del_empty-v2_alternative.patch, 583 bytes (added by SF/buddha_, 15 years ago)

Alternative patch version with nothing but the mapping of empty descriptions to "Untitled savestate" (Made against trunk r43077, Unix style line endings)

  • gui/saveload.cpp

     
    345345                        }
    346346                }
    347347
    348                 saveNames.push_back(x->description());
     348                // Show "Untitled savestate" for empty/whitespace savegame descriptions
     349                Common::String description = x->description();
     350                Common::String trimmedDescription = description;
     351                trimmedDescription.trim();
     352                if (trimmedDescription.empty())
     353                        description = "Untitled savestate";
     354
     355                saveNames.push_back(description);
    349356                curSlot++;
    350357        }
    351358