diff options
author | Max Horn | 2010-02-13 11:58:15 +0000 |
---|---|---|
committer | Max Horn | 2010-02-13 11:58:15 +0000 |
commit | e17a2bd37d23cbfec63f28b1399ce5ebded536ee (patch) | |
tree | 6b75cd0760e97349551b9e4c5a7794319939d6ec /engines/sci/sci.h | |
parent | 2c9883773ce7df2955d077b9c04c4c00eff94c26 (diff) | |
download | scummvm-rg350-e17a2bd37d23cbfec63f28b1399ce5ebded536ee.tar.gz scummvm-rg350-e17a2bd37d23cbfec63f28b1399ce5ebded536ee.tar.bz2 scummvm-rg350-e17a2bd37d23cbfec63f28b1399ce5ebded536ee.zip |
SCI: Change getSciVersionDesc() to return 'const char *' instead of 'Common::String'
svn-id: r48044
Diffstat (limited to 'engines/sci/sci.h')
-rw-r--r-- | engines/sci/sci.h | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/engines/sci/sci.h b/engines/sci/sci.h index 0b2a7d0e1a..31e8631fa8 100644 --- a/engines/sci/sci.h +++ b/engines/sci/sci.h @@ -159,36 +159,10 @@ private: */ SciVersion getSciVersion(); -inline static Common::String getSciVersionDesc(SciVersion version) { - switch (version) { - case SCI_VERSION_NONE: - return "Invalid SCI version"; - case SCI_VERSION_0_EARLY: - return "Early SCI0"; - case SCI_VERSION_0_LATE: - return "Late SCI0"; - case SCI_VERSION_01: - return "SCI01"; - case SCI_VERSION_1_EGA: - return "SCI1 EGA"; - case SCI_VERSION_1_EARLY: - return "Early SCI1"; - case SCI_VERSION_1_MIDDLE: - return "Middle SCI1"; - case SCI_VERSION_1_LATE: - return "Late SCI1"; - case SCI_VERSION_1_1: - return "SCI1.1"; - case SCI_VERSION_2: - return "SCI2"; - case SCI_VERSION_2_1: - return "SCI2.1"; - case SCI_VERSION_3: - return "SCI3"; - default: - return "Unknown"; - } -} +/** + * Convenience function converting an SCI version into a human-readable string. + */ +const char *getSciVersionDesc(SciVersion version); } // End of namespace Sci |