Commit graph

67 commits

Author SHA1 Message Date
Nebuleon Fumika a1d1e01e11 Dynamically allocate memory for the file selector to store the name pointers into. Also dramatically simplify the file selector's name management code. This has many effects:
* It allows the file selector to handle directories of more than 511 files and a parent directory entry. (Fixes GitHub issue #37).
* It allows the file selector to sort directories along with files, which is a more common use case (game folders that contain ROM hacks, plus single game files, are sorted by name as the user expects).
* The file selector now reports progress while loading a large directory.
* The screenshot slideshow function now shows an existing dedicated message, "No screenshots found", instead of crashing when the screenshot directory contains no screenshots.

Add Quicksort code from GameYob. See <https://github.com/Nebuleon/GameYob/commit/afbeeba>.

* Faster sorting in the common case where a directory's natural order is already sorted, using the isSorted function.
* Use the median-of-three algorithm first described by Robert Sedgewick to select the pivot. Causes less recursion in many cases.
* Associates file names with their is-directory flag, keeping both in sync.
2013-06-15 23:40:29 -04:00
Nebuleon Fumika 3f501f9c90 Add support for custom main menu active/inactive, message text and background colors. Fill in default values for the purple skin in uicolors.txt. 2013-05-23 20:07:48 -04:00
kukuasir 5edf465c07 Complete the Simplified Chinese block and rewrite some unclear messages for Chinese speakers. Taken from TempGBA commit 657856afdc0639c446665aa71eeb3003c0bb81ad. 2013-05-21 22:11:16 -04:00
Nebuleon Fumika 3e412a93c5 Complete the Dutch, German, Portuguese (Brazil) and Spanish localisations, aligning some messages to columns for option screens. Taken from TempGBA commit 0b4252dc2f1d6a5c7445ffd6f265e59df277ceef.
* Dutch: Add missing messages. Fix a typo in global button mappings. Thanks to Aeter for this part.
* German: Add missing messages. Thanks to SignZ for this part.
* Portuguese: Add missing messages. Thanks to Diego Liberal for this part.
* Spanish: Add missing messages. Thanks to Boriar for this part.
2013-05-20 18:46:27 -04:00
Nebuleon Fumika 4b5a5a15d7 Add an option to put the game on the Lower Screen.
* Before entering the menu, copy the game screen to the Upper Screen if it's on the Lower Screen.
* Now, the frame that's shown in the menu doesn't appear to be the previous frame for a fraction of a second anymore.
2013-05-20 03:17:02 -04:00
Nebuleon Fumika 41c50b372e CATSFC/system/gui/uicolors.txt: Theme support for active and inactive item text colors. 2013-05-20 00:46:43 -04:00
rickvdwetering 0e68b604c6 Update language.msg
Fixed minor Dutch translation errors.
2013-04-16 16:37:27 +03:00
Hyura 700a1535d6 Brazilian Portuguese block: Correct typing errors and add missing accents. Imported from TempGBA commit d55e30a2cc4943e74a2d2505c9823dc222e220a3. 2013-04-03 18:15:40 -04:00
Nebuleon Fumika 55b5c8ff65 Increase the row count from 6 to 8 in the GUI, file selector and cheats. Remove the useless "dynamic cheat" functions. 2013-03-30 01:08:07 -04:00
Nebuleon Fumika 577541b509 Make the Back button more visibly selected in the default skin. 2013-03-26 19:27:52 -04:00
Boriar 14e8017953 Spanish change backported from TempGBA commit 4f2205f2e554a6fa33237395c1350f194ca9308e. 2013-03-23 19:57:12 -04:00
Syphurith e35df7290c Simplified Chinese block completion. 2013-03-16 01:30:30 -04:00
Nebuleon Fumika 936cb38b5e Center text without needing endless spaces; also support \n in centered text.
* Text positioning in message boxes is now controlled by #defines.
* The various MSG_PLAY_SLIDE<n> messages are now one, MSG_SCREENSHOT_SLIDESHOW_KEYS, with \n between lines.
* Use \n in some more message pairs.
* Lengthy scrollers broke. This will be investigated in a later commit.
2013-03-10 21:21:37 -04:00
Nebuleon Fumika 47a63742d7 Modified the SNES file icon not to resemble a generic controller anymore. 2013-03-07 22:10:02 -05:00
Nebuleon Fumika 964ce2a58d Brazilian Portuguese adjustment: Frequencia da CPU -> Frequência da CPU. 2013-03-03 15:51:37 -05:00
Aeter e46e351594 Dutch adjustments. Most things are shortened and aligned. 2013-02-19 18:02:35 -05:00
Diego Liberal 82c9daff5e Brazilian Portuguese adjustments.
* Frame skipping is now translated.
* Some accents were missing over "vídeo" and "áudio".
* Version information uses a better phrase.
2013-02-15 14:56:45 -05:00
Nebuleon Fumika 11c08d9d8f German adjustments, honoring GBAtemp user Charli (github: seesawCharli)'s notes on commit ea8ff33951.
Since then, pictograms for directions have been implemented and I settled on 2 spaces of spacing between a key and its description in the screenshot slideshow window.
2013-02-14 15:56:02 -05:00
Nebuleon Fumika 7dd9763658 Brazilian Portuguese adjustments.
* Align text in columns for options.
* Fix a spelling mistake, "relaizar".
* Consistency with other languages.
* Reorder the hotkey options, which I pasted in incorrectly.
2013-02-14 15:50:37 -05:00
Diego Liberal e156b47503 Add a Brazilian Portuguese localisation. 2013-02-14 15:28:38 -05:00
Nebuleon Fumika 03e8e8863a Italian adjustments.
* Align some messages in columns.
* Make Attiva/Disattiva into (Dis)attiva to reduce the length of the fullscreen hotkey option.
* Remove "dalla card" (from the card) from "seleziona gioco" and make the title "nuovo gioco" for consistency.
* Use key pictograms in the screenshot slideshow.
2013-02-14 04:18:09 -05:00
Nebuleon Fumika a1b2ff6e87 Merge pull request #35 from alexinfurs/master
Add an Italian translation
2013-02-14 04:05:35 -05:00
Alessandro Pelliccia 5a8a513b66 Update CATSFC/system/language.msg 2013-02-14 09:46:18 +01:00
Alessandro Pelliccia 2dcd76bced Update CATSFC/system/language.msg 2013-02-14 09:44:59 +01:00
Nebuleon Fumika a8c2fcdb2c Add hotkeys to quickly load from and save to saved state #1, as well as to toggle full-screen (going from mode 3, middle of screen, to mode 4, full-screen smoothed).
This commit uses text that has not been validated in some languages.
2013-02-14 03:02:33 -05:00
Alessandro Pelliccia 9b95e3c26b Update CATSFC/system/language.msg
Add an Italian translation
2013-02-13 21:10:40 +01:00
Nebuleon Fumika 7a2bde06a1 Language file adjustments and arrows for direction keys (*u, *d, *l, *r).
* All languages except Chinese: Remove redundancy in the New game menu. Remove "from the card".
* All languages except German and Chinese: Remove "games" in "recently played games". It's implied by the rest of the menu.
* Spanish: menu should be menú.
* All languages: modify keys in the screenshot slideshow message so that direction keys are arrows.
* Tools/Screenshots, English, French, Spanish: Stop implying that you can browse the screenshots; instead imply that it's a slideshow you control only sequentially.
* Dutch: Try to shorten "Ga terug naar het spel" so it can fit in a button, by removing the "Ga". It still splits.
2013-02-11 18:27:49 -05:00
Nebuleon Fumika 18e56b68fd Add retro sound as a setting in all languages except Chinese. 2013-02-09 23:41:06 -05:00
jomaper 6e2e64109d Update CATSFC/system/language.msg (Spanish block)
Hice unos cambios pequeños, nada importante, más que nada cosméticos.

I did small changes, no big deal, cosmetic stuff more than anything
2013-02-09 22:01:58 -05:00
boriar be3128ddd2 Update CATSFC/system/language.msg 2013-02-09 01:06:25 +01:00
Boriar 267da6d5e1 Add a Spanish translation. 2013-02-08 17:04:32 -05:00
Aeter fa19e1551a Add a Dutch translation. 2013-02-08 16:52:31 -05:00
SignZ ea8ff33951 EN: Added a German translation. DE: Deutsche Übersetzung hinzugefügt. 2013-02-07 04:56:34 -05:00
Nebuleon Fumika 0b165c3133 Use key pictograms from Pictochat to display keys for yes/no dialog(ue)s. 2013-02-06 16:16:43 -05:00
Nebuleon Fumika 04037a3096 When changing languages, quit doing the "Changing language, please wait..." as it only takes a few milliseconds. 2013-02-06 06:27:11 -05:00
Nebuleon Fumika 772e24ae50 Reinstate frame skipping options 0 and 1, but keep the new meaning (>= 2 equivalent skip level) for automatic frame skipping. Remove the automatic CPU frequency option, which was making audio emit 0.25 second of silence every so often. 2013-02-06 03:46:48 -05:00
Nebuleon Fumika 9e87a7a2b2 Implement automatic CPU frequency switching, which improves battery life if playing games that don't use all of the MIPS CPU. If all of it is indeed needed, then the game will constantly play at 396 MHz. 2013-02-06 00:34:01 -05:00
Nebuleon Fumika d4dd98e8c1 Add an option that controls which element should be more fluid, per game: video or audio.
This makes most games playable, but the player can choose to get fluid audio instead of fluid video in sound-test modes or games with epic soundtracks.
2013-02-01 20:09:24 -05:00
Nebuleon Fumika 2cf733eef4 Add three hotkeys: temporary fast-forward, sound toggle and return to menu. These hotkeys can be overridden per game so that the global version of the hotkey can be ignored.
* Language file fixups related to \n (newlines).
* Pictochat fixups: shorten START and SELECT to ST and SEL. Should still be recognisable.
2013-01-22 04:16:15 -05:00
Nebuleon Fumika 7ca34093be Remove GBAFILE from the icon list as it's never used. 2013-01-20 19:17:48 -05:00
Nebuleon Fumika b6a2065e21 Remove SUBSELB from the icon list as it's never used. Make inactive items a deep purple instead of a light teal. 2013-01-20 18:35:16 -05:00
Nebuleon Fumika 2bb2ee8c0a Prepare code to ask for a hotkey. Prepare a temporary fast-forward switch. 2013-01-19 02:24:37 -05:00
Nebuleon Fumika 71a57cc449 Prepare for adding hotkeys. 2013-01-19 01:40:38 -05:00
Nebuleon Fumika 753f4817fe Add A, B, X, Y, L, R, Start and Select pictograms in the font, starting at U+05C8. 2013-01-18 23:51:19 -05:00
Nebuleon Fumika 993a1adb41 Remove a quasi-green pixel that was showing up in main menu selected items. 2013-01-18 22:17:15 -05:00
Nebuleon Fumika bf8b341f82 Change the "back" icon. 2013-01-18 21:58:10 -05:00
Nebuleon Fumika 4b4349ac8a GUI picture overhaul.
* Glass buttons. These new buttons are in the SVG format in source/images if you wish to make derived skins.
* Icons from the Tango Icon Library and the RRZE Icon Set. These new icons are in the SVG format in source/images if you wish to make derived skins.
* Main menu: More readable text on unselected options.
* Main menu: Make "New game", "Return to game" and "Reset game" localised in English, French and Simplified Chinese. These three options also all use the same button image now; snewo, snnewo, sreseto, snreseto, sreteno and snreteno are gone and replaced by smaini and snmaini.
* copyright: Update.
* Align main menu icons and text better.
2013-01-18 21:36:59 -05:00
Nebuleon Fumika b291d9daca Fix alignment and transparency problems in the previous commit's images. 2013-01-18 17:31:02 -05:00
Nebuleon Fumika ef49954182 Make many of the buttons be glass images. Darken the lines in the 6-line background for visibility. 2013-01-18 17:15:51 -05:00
Nebuleon Fumika 009019e1bf Make "Create saved state" have its own row of slot cells.
Raise the number of cells to 16.

Cache existence of saved state files, and invalidate the cache when saving or deleting a saved state.

CATSFC/system/gui: Make the unselected and selected cells more visibly different, while also leaving full and empty cells visibly different.
2013-01-14 03:46:14 -05:00