diff options
author | Willem Jan Palenstijn | 2013-08-27 00:00:37 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-08-27 00:00:37 +0200 |
commit | e88ce8d9630265e54e2a70b1fd71cc1537a28268 (patch) | |
tree | 90d29c07ce66e1215eda894322e4f32cc3a5a629 /engines | |
parent | e5f9cb3cbbc047a1359354475c1128454491f331 (diff) | |
download | scummvm-rg350-e88ce8d9630265e54e2a70b1fd71cc1537a28268.tar.gz scummvm-rg350-e88ce8d9630265e54e2a70b1fd71cc1537a28268.tar.bz2 scummvm-rg350-e88ce8d9630265e54e2a70b1fd71cc1537a28268.zip |
WINTERMUTE: Simplify string matching
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp index a5b3505202..382f50605a 100644 --- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp @@ -143,7 +143,7 @@ bool BaseSurfaceOSystem::finishLoad() { _width = image->getSurface()->w; _height = image->getSurface()->h; - bool isSaveGameGrayscale = scumm_strnicmp(_filename.c_str(), "savegame:", 9) == 0 && (_filename.c_str()[_filename.size() - 1] == 'g' || _filename.c_str()[_filename.size() - 1] == 'G'); + bool isSaveGameGrayscale = _filename.matchString("savegame:*g", true); if (isSaveGameGrayscale) { warning("grayscaleConversion not yet implemented"); // FIBITMAP *newImg = FreeImage_ConvertToGreyscale(img); TODO |