protected string GetIqFilename(string filename)
{
var targetName = ServiceLocator.FileStorage.Combine(ServiceLocator.FileStorage.GetDirectoryName(Game.Path), Game.Id);
if (_game.GameId == Scumm.IO.GameId.Indy4)
{
filename = targetName + ".iq";
}
else if (_game.GameId == Scumm.IO.GameId.Monkey1 || _game.GameId == Scumm.IO.GameId.Monkey2)
{
filename = targetName + ".cfg";
}
else
{
throw new NotSupportedException(string.Format("SO_SAVE_STRING: Unsupported filename {0}", filename));
}
return filename;
}