aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2010-09-11COMMON: Fix int-Rational operatorsSven Hesse
svn-id: r52675
2010-09-07COMMON: Fix edge case for wildcard in matchStringWillem Jan Palenstijn
svn-id: r52618
2010-09-07COMMON: Remove Rational::operator int/doubleWillem Jan Palenstijn
This prevents accidental implicit rounding and might also fix compilation on AmigaOS4 (bug #3060981). svn-id: r52616
2010-09-06COMMON: Add a debugPrint function to RationalMatthew Hoops
svn-id: r52593
2010-09-04COMMON: Fix Rational::operator!=(int)Matthew Hoops
svn-id: r52535
2010-09-01COMMON: changed read/write endian function to use __may_alias__ attributeYotam Barnoy
This is a better solution for the gcc aliasing problem that happens when aliasing a struct onto something else. What happens is that the compiler assumes no aliasing can happen when -O2 and -O3 are activated, and a call to READ_UINT32() followed by WRITE_UINT32() and another READ_UINT32() will be optimized to return the original read value instead of re-reading. svn-id: r52480
2010-08-30I18N: Add "lowres" context for several GUI strings when in 1x mode.Thierry Crozat
This enables translators to use a different translation for these strings in 1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes. svn-id: r52461
2010-08-30I18N: Add a macro to define a context for a translatable string.Thierry Crozat
Currently static strings are marked with the _s() macro so that xgettext knows the string needs to be translated. But there was no way to tell xgettext that the string could get translated in different contexts. This is the role of this new macro. svn-id: r52460
2010-08-28I18N: Look for translations data file in Themes pathThierry Crozat
If the translations.dat file is not found using the SearchMan, it now looks for that file into the themepath directory and sub-directories (if the path is defined). svn-id: r52428
2010-08-25COMMON: Fix eos handling in BufferedReadStreamWillem Jan Palenstijn
This makes it pass the test added in r52382. svn-id: r52389
2010-08-25COMMON: fixed EOS handling in BufferedReadStream and BufferedSeekableReadStreamYotam Barnoy
EOS problem was causing Discworld to crash and zip files not to load on the PSP. svn-id: r52377
2010-08-24COMMON: implemented BufferedWriteStream and fixed bug in BufferedReadStreamYotam Barnoy
I need the write buffering for the new version of the PSP streams and thought the simplest way to implement it would be along the lines of BufferedReadStream. Sadly, I found a nasty little bug in BRS but that's taken care of. Also, I adapted these streams for target-specific memory allocation by using virtual functions for allocation/deallocation. svn-id: r52325
2010-08-23i18n: Add support for context in translations.Thierry Crozat
This change means there can now be different translations for the same english string depending on the context. It is based on gettext msgctxt feature. There is a new macro _c(msg, ctxt) that should be used instead of _(msg) in the source code when we want to add a context to the message. For the moment I have added contexts to only one message ("None") so that I could test the changes. Context could be added also to get shorter translations when GUI is in 1x mode. I have also added back the fuzzy option to msmerge since it is useful when adding contexts to populate the translations for the new contexts. svn-id: r52308
2010-08-23CONFIG: Always sort 'scummvm' and keymapper domains firstMax Horn
svn-id: r52296
2010-08-21i18n: Changed wording of messages about translations.dat file.Johannes Schickel
svn-id: r52261
2010-08-21i18n: Formatting fixes.Johannes Schickel
svn-id: r52260
2010-08-21i18n: Style fixes.Johannes Schickel
svn-id: r52257
2010-08-21COMMON: Added equality operators to Common::RectPaul Gilbert
svn-id: r52249
2010-08-20i18n: Fix previous commit when translation support is disabledThierry Crozat
Previous commit of translation.cpp introduced a defined but not implemented operator when the translation support was disabled. This was probably fine since it was not used, but not very clean. svn-id: r52241
2010-08-20i18n: Sort the list of available languages alphabeticallyThierry Crozat
svn-id: r52239
2010-08-19DINGOO: new port. Patch #3039277Eugene Sandulenko
svn-id: r52210
2010-08-19i18n: Move translations to standalone file. Patch #3044975Eugene Sandulenko
svn-id: r52208
2010-08-19COMMON: Add caching to ZipArchive. Patch #3048388Eugene Sandulenko
Based on patch #3048388: "Hash map for ZipArchive class", though I made the hashing by default and removed the old code. It is a really good thing and will speed up any archive operations. svn-id: r52204
2010-08-17COMMON: fix MSVC assert when using umlauts (or other characters > 127) in ↵Florian Kagerer
the global save/load menu svn-id: r52173
2010-08-17COMMON: Remove redundant include from str.cppEugene Sandulenko
If it is needed for your specific platform, then readd it, but for that platform. Although to me it looks all redundant. svn-id: r52155
2010-08-16COMMON: Try to clarify and update some Common::Archive docsMax Horn
svn-id: r52131
2010-08-16OSYSTEM: revert r52120 and r52121. Introduced regressionsEugene Sandulenko
svn-id: r52127
2010-08-16Common: Fix bug in lastPathComponent.Johannes Schickel
Prior to this change lastPathComponent would not create a correct result, when the input of lastPathComponent did not contain a single separator. I also added a test case for this in our unit tests. svn-id: r52123
2010-08-16OSYSTEM: Add directories to archive list just as in other variantsEugene Sandulenko
svn-id: r52121
2010-08-16OSYSTEM: Fix file archive for non-flat directoriesEugene Sandulenko
svn-id: r52120
2010-08-14COMMON: Cleanup MacResManager::convertCrsrCursor a bitMatthew Hoops
It's now a static function since it doesn't require any local variables and is really separate from the resource fork code. Also, actually assigning the keycolor (which was just being ignored). svn-id: r52075
2010-08-13i18n: Update Russian translationEugene Sandulenko
svn-id: r52062
2010-08-12i18n: Fix link error when localization is disabledThierry Crozat
This fix a regression introduced in revision 50448 ("Add support for locale-dependant font'). When disabling localization a function was declared, called but not implemented. svn-id: r52048
2010-08-11i18n: Update German translationThierry Crozat
svn-id: r52014
2010-08-11i18n: Update all translations.Thierry Crozat
Template and all translations were updated from source code. The German and French translations contain additional changes. svn-id: r52008
2010-08-11Use tabs instead of spaces for indentation.Eugene Sandulenko
svn-id: r51997
2010-08-11GUI: add music devices for c64, amiga and apple II gsFlorian Kagerer
These devices are not able to create appropriate drivers. The only purpose for now is having proper gui options and flags and music types for the device detector. The corresponding GUIO flags for the new devices have been added, too. svn-id: r51995
2010-08-01i18n: Adding Spanish and Ukrainian translationsThierry Crozat
svn-id: r51596
2010-08-01i18n: Update Russian translationEugene Sandulenko
svn-id: r51574
2010-07-31i18n: use user friendly language names in GUIThierry Crozat
The GUI now uses the content of the Language field from the po file header if it is present and not empty for the language selection PopupWidget. If not present it uses the file name as before (e.g. ru_RU). Also update all the translation template and all the translation files. svn-id: r51542
2010-07-30JANITORIAL: Some small explanation about stability of sorting algorithms.Johannes Schickel
Special thanks to lskovlun for his suggestion to add this. svn-id: r51524
2010-07-30JANITORIAL: Add comment about the stability of Common::sort.Johannes Schickel
svn-id: r51522
2010-07-21Strip trailing whitespaces in our common code base.Johannes Schickel
svn-id: r51094
2010-07-17Remove PalmOS portMax Horn
svn-id: r50964
2010-07-12Some documentation fixes.Johannes Schickel
svn-id: r50830
2010-07-12Consistently use "MT-32" as short name of the Roland MT-32 in our GUI and ↵Johannes Schickel
credits files. svn-id: r50821
2010-07-11Update German translation.Thierry Crozat
svn-id: r50808
2010-07-09Update template and all translation files following the addition of a new ↵Thierry Crozat
translatable string. French and German translations also have additional updates. svn-id: r50764
2010-07-05Note Common::String's behaviour may be undefined with \0 characters.Willem Jan Palenstijn
Also make operator=(char) and String(char) behave the same. svn-id: r50712
2010-07-05Fix update of GUI options, which only differ in the language setting.Johannes Schickel
svn-id: r50706