Пример #1
0
bool Map::saveCopyAs()
{
    // Let's see if we can remember a
    if (_lastCopyMapName.empty()) {
        _lastCopyMapName = getMapName();
    }

    std::string filename =
        MapFileManager::getMapFilename(false, _("Save Copy As..."), "map", _lastCopyMapName);

    if (!filename.empty()) {
        // Remember the last name
        _lastCopyMapName = filename;

        // Return the result of the actual save method
        return saveDirect(filename);
    }

    // Not executed, return false
    return false;
}
Пример #2
0
 void ConfigFile::save(const String& filename, const String& separators, bool trimWhitespace)
 {
     saveDirect(filename, separators, trimWhitespace);
 }