Split *Options::FromString into FromString and FromOneModString.

Check for invalid mod names when loading a course by checking whether the mod is a valid PlayerOption or a valid SongOption.  Previously, SongOption mods were being flagged as errors by PlayerOptions.
This commit is contained in:
Chris Danford
2007-08-20 02:57:05 +00:00
parent e2d8d6d718
commit 4311158735
9 changed files with 265 additions and 226 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ void CatalogXml::Save( LoadingWindow *loading_window )
{
PlayerOptions po;
RString s = *iter;
po.FromString( s, false );
po.FromString( s );
vector<RString> v;
po.GetLocalizedMods( v );
if( v.empty() )