Alexander Tkachev
d04c1dfad4
COMMON: Add getHumanReadableBytes() in util.h
...
This function was used in cloud-related DownloadDialog before,
and now it is also used in Options > Cloud tab.
2019-07-30 14:51:41 -04:00
Cameron Cawley
30edabf589
COMMON: Add wrappers for iscntrl() and isgraph()
2019-07-24 22:47:40 +03:00
Paul Gilbert
105a1b94bd
GLK: TADS2: Added code for output, run, various miscellaneous
2019-05-24 18:21:06 -07:00
SupSuper
d0512db25c
WIN32: Move all ARRAYSIZE undefs to util.h
...
Instead of trying to undefine ARRAYSIZE everywhere we use a Windows header, let's just do it before we define our own
2018-12-17 12:28:33 +02:00
Adrian Frühwirth
f8a195b034
COMMON: Fix Doxygen comment
2018-03-29 00:19:33 +02:00
Colin Snover
914bb1bd2d
COMMON: Undefine ABS if it is a macro
...
Fixes iOS7 compilation when common/util.h is included after
NSObjCRuntime.h, as happens in ios7_video.mm.
2017-10-07 13:04:05 -05:00
Eugene Sandulenko
355c4fa646
JANITORIAL: Remove more trailing spaces
2016-10-09 15:02:02 +02:00
Paul Gilbert
68e230182c
TITANIC: Implement TTparser normalize
2016-07-10 16:39:35 -04:00
Joel Teichroeb
c43ce9ecf3
ALL: Remove support for MSVC8 and older
...
MSVC8 gives various compile error relating to templates that were changed
back in 2008, leading me to belive that no one is using it, and that there
is not point adding work arounds for a 9 year old compiler no one uses.
2014-06-21 11:32:45 -07:00
Johannes Schickel
854e22b38b
COMMON: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
Johannes Schickel
2f9b7ba686
COMMON: Enforce formatting guidelines a bit more in util.h.
2013-07-30 21:02:01 +02:00
Johannes Schickel
b0ba4b01a4
COMMON: Add wrapper for isprint.
...
This is done in the spirit of 658080deed
.
2012-12-13 21:08:47 +01:00
Joel Teichroeb
f83f5c5677
COMMON: Fix spelling of length
2012-04-04 21:22:31 -07:00
Max Horn
367131ef0e
COMMON: Move Language and Platform functionality into separate files
2012-02-26 15:21:36 +01:00
Max Horn
215b41b244
COMMON: Move RenderMode and GUIOptions functionality into separate files
2012-02-26 15:19:31 +01:00
athrxx
3b574466fa
COMMON: distinguish between 256 colors and 16 colors PC-98 rendering modes
...
KYRA 1 PC-98 supports both modes in the same target. The desired mode can now be selected in the rendering options. We did have good support for the 16 colors mode of KYRA 1 already. This mode could not really be selected though (except by manually modifying the config file or the code).
2012-02-24 18:09:38 +01:00
athrxx
d9c05f7121
COMMON: add gui options for rendering modes
...
The purpose is the same as for the sound gui options: users shouldn't be offered modes that the engine doesn't support.
2012-02-21 21:48:35 +01:00
Max Horn
4f8665fc83
COMMON: Move isFoo functions to namespace Common, add doxygen comments
2012-02-20 16:18:27 +01:00
Max Horn
658080deed
ALL: Avoid using is* macros from ctype.h
...
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Johannes Schickel
8ff9e0cbff
GUI: Fix GUIO flags again.
...
The GUIO flags use an escape sequence for octal numbers. Starting with
18e84f9c11
GUIO_MIDICMS used "\008" which
resulted in the CMS flag adding a zero into the flags and thus terminating the
GUIO flag string.
2011-12-04 15:54:32 +01:00
athrxx
18e84f9c11
GUI: fix GUIO_NOSPEECH/GUIO_NOSFX settings
2011-12-04 15:05:00 +01:00
Filippos Karapetis
c65146cde1
COMMON: Added Croatian language (for a localized version of BS2.5)
2011-11-18 17:52:26 +02:00
Strangerke
bab4b6f729
LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE)
2011-11-16 22:38:58 +01:00
Strangerke
9912d7b856
GUI: Add GUIO EGA Dithering option
...
This will be used to disable the EGA dithering option
2011-10-24 16:51:18 +02:00
Strangerke
cfa42fee80
LAUNCHER: Add GUIO_NOASPECT to SCUMM engine
2011-10-23 21:45:02 +02:00
Eugene Sandulenko
32972a5ffb
AD: Switched rest of the engines to new GUIO
2011-10-23 17:53:13 +01:00
Eugene Sandulenko
77c65648b1
AD: Swtich GUI options to a char array.
...
This eliminates nasty limitation of caping number of flags to 31.
Current code has limitation of 255 flags, though.
Only SCUMM engine is converted, rest do not even compile.
Detection of fan talkie MI is broken as it has to be implemented
differently.
2011-10-23 17:53:13 +01:00
Eugene Sandulenko
2585de56b6
COMMON: Restore locale <-> Common::Language conversion utils
...
This reverts commit 284b49aabc
.
2011-08-20 12:52:29 +01:00
Christoph Mallon
ab80b20a30
COMMON: Replace x + ARRAYSIZE(x) by the simpler ARRAYEND(x).
2011-08-07 15:19:08 +02:00
Christoph Mallon
84220d2ca0
COMMON: Remove superfluous Common:: qualifiers.
2011-08-07 15:19:07 +02:00
Johannes Schickel
3b7c91f2a7
COMMON: Move HerculesDimensions enum to SCUMM.
...
The enum is only used inside the SCUMM engine so it is rather pointless to
keep it in common/util.h right now. Also if we really want it in some common
place it should probably be better in graphics/ too.
2011-06-21 16:59:50 +02:00
Matthew Hoops
aa49b38c5a
Merge remote branch 'upstream/master' into t7g-ios
...
Conflicts:
engines/groovie/script.cpp
2011-05-31 14:16:29 -04:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Matthew Hoops
a1d41da096
Merge remote branch 'upstream/master' into t7g-ios
...
Conflicts:
audio/decoders/qdm2.h
common/util.cpp
engines/groovie/music.cpp
engines/groovie/resource.h
video/qt_decoder.cpp
video/qt_decoder.h
2011-05-11 00:30:28 -04:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Matthew Hoops
50d2519552
COMMON: Add iOS platform type
2011-04-07 10:52:58 -04:00
Johannes Schickel
284b49aabc
COMMON: Comment out locale <-> Common::Language conversion utils for now.
...
svn-id: r54517
2010-11-28 02:12:53 +00:00
Johannes Schickel
189c9bf216
OSYSTEM: Add API to query the system locale.
...
I also adapted the SDL backend to implement the API.
svn-id: r54479
2010-11-25 18:40:56 +00:00
Max Horn
c0063a6d50
COMMON: Add SCUMMVM_CURRENT_FUNCTION macro (useful for debugging)
...
svn-id: r53931
2010-10-30 00:32:45 +00:00
Eugene Sandulenko
ff8b296c29
Use tabs instead of spaces for indentation.
...
svn-id: r51997
2010-08-11 19:32:07 +00:00
Florian Kagerer
4a159bcb1e
GUI: add music devices for c64, amiga and apple II gs
...
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-11 18:54:56 +00:00
Johannes Schickel
1443a2721c
Fix update of GUI options, which only differ in the language setting.
...
svn-id: r50706
2010-07-05 20:10:56 +00:00
Florian Kagerer
3962f8ba59
AUDIO: some fixes in the audio device code (no sound option, new GUIO flags)
...
svn-id: r50281
2010-06-25 18:47:52 +00:00
Max Horn
bbad3f333a
Patch #1956501 : "GUI/LAUNCHER: Midi device selection"
...
svn-id: r50128
2010-06-21 21:36:36 +00:00
Eugene Sandulenko
01bc5dda94
GUI: Implemented Languages as GUI options.
...
SCUMM and AdvancedDetector support this feature.
svn-id: r49786
2010-06-15 10:57:28 +00:00
Eugene Sandulenko
67bc711580
GUI: Implement MIDI drivers as GUI options.
...
Proper version of patch #2988641 : "GSoC: Select drivers in GUI
based on output types". So far only SCUMM engine supports this
feature.
svn-id: r49783
2010-06-15 10:56:12 +00:00
Ori Avtalion
2fc9d6845b
Apply patch #2982163 - CONFIG: Use HE keyword instead of HB for the Hebrew language
...
svn-id: r48645
2010-04-12 21:21:06 +00:00
Max Horn
7c510f2dfa
COMMON: Add Common::parseBool
...
svn-id: r48566
2010-04-06 09:27:13 +00:00
Johannes Schickel
38b2b3c04f
Move StringTokenizer to its own files (tokenizer.h/tokenizer.cpp).
...
svn-id: r48310
2010-03-20 12:56:56 +00:00
Max Horn
30c84d2cff
COMMON: Move tag2str from util.h to str.h
...
svn-id: r48281
2010-03-18 15:07:48 +00:00