diff options
author | Torbjörn Andersson | 2003-09-21 16:19:25 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-09-21 16:19:25 +0000 |
commit | df6028b17af1b04432942fabb81714c404018f10 (patch) | |
tree | ae5f979e472ec1f70e81135cc371eb0c4a98771e | |
parent | dadad7bafa62861a6855528cdf949c1e97d0c1bf (diff) | |
download | scummvm-rg350-df6028b17af1b04432942fabb81714c404018f10.tar.gz scummvm-rg350-df6028b17af1b04432942fabb81714c404018f10.tar.bz2 scummvm-rg350-df6028b17af1b04432942fabb81714c404018f10.zip |
cleanup
svn-id: r10352
-rw-r--r-- | sword2/driver/language.cpp | 42 |
1 files changed, 9 insertions, 33 deletions
diff --git a/sword2/driver/language.cpp b/sword2/driver/language.cpp index 13d482d834..f3ea54674f 100644 --- a/sword2/driver/language.cpp +++ b/sword2/driver/language.cpp @@ -62,60 +62,37 @@ // //============================================================================= - #include "stdafx.h" #include "driver96.h" - - uint8 languageVersion = ENGLISH; static uint8 versionFromFile = 0; - - - -int32 GetLanguageVersion(uint8 *version) - -{ - - if (versionFromFile) - { +int32 GetLanguageVersion(uint8 *version) { + if (versionFromFile) { *version = languageVersion; - } - else - { + } else { versionFromFile = 1; languageVersion = AMERICAN; return(RDERR_OPENVERSIONFILE); } - return(RD_OK); - + return RD_OK; } -int32 SetLanguageVersion(uint8 version) - -{ - +int32 SetLanguageVersion(uint8 version) { languageVersion = version; - return(RD_OK); - + return RD_OK; } - -int32 GetGameName(uint8 *name) - -{ - +int32 GetGameName(uint8 *name) { uint8 version; int32 rv; - rv = GetLanguageVersion(&version); - switch(version) - { + switch (version) { case ENGLISH: strcpy((char *)name, "Broken Sword II"); break; @@ -130,6 +107,5 @@ int32 GetGameName(uint8 *name) return(RDERR_INVALIDVERSION); } - return(rv); - + return rv; } |