Subversion Repositories spk

Rev

Rev 131 | Rev 143 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 131 Rev 134
Line 49... Line 49...
49
	case FILETYPE_TEXT:
49
	case FILETYPE_TEXT:
50
		return "T";
50
		return "T";
51
	case FILETYPE_README:
51
	case FILETYPE_README:
52
	{
52
	{
53
		if (file)
53
		if (file)
54
			return Utils::String("PluginManager/Readme/") + file->GetNameValidFile().ToString();
54
			return Utils::String("PluginManager/Readme/") + file->getNameValidFile();
55
		return "PluginManager/Readme";
55
		return "PluginManager/Readme";
56
	}
56
	}
57
	case FILETYPE_MAP:
57
	case FILETYPE_MAP:
58
		return "Maps";
58
		return "Maps";
59
	case FILETYPE_MOD:
59
	case FILETYPE_MOD:
Line 171... Line 171...
171
	if ((!sDir.empty()) && (m_iFileType != FILETYPE_README) && sDir != ".")
171
	if ((!sDir.empty()) && (m_iFileType != FILETYPE_README) && sDir != ".")
172
	{
172
	{
173
		Utils::String dir = sDir.findReplace("\\", "/");
173
		Utils::String dir = sDir.findReplace("\\", "/");
174
		if (file)
174
		if (file)
175
		{
175
		{
176
			dir = dir.findReplace("$scriptname", file->GetNameValidFile().ToString());
176
			dir = dir.findReplace("$scriptname", file->getNameValidFile());
177
			dir = dir.findReplace("$scriptauthor", file->author());
177
			dir = dir.findReplace("$scriptauthor", file->author());
178
		}
178
		}
179
		return dir;
179
		return dir;
180
	}
180
	}
181
 
181
 
Line 1173... Line 1173...
1173
	}
1173
	}
1174
 
1174
 
1175
	return writeToFile(fullfile, data, len);
1175
	return writeToFile(fullfile, data, len);
1176
}
1176
}
1177
 
1177
 
1178
CyString C_File::GetDataSizeString ()
1178
Utils::String C_File::dataSizeString() const
1179
{
1179
{
1180
	return SPK::GetSizeString ( m_lDataSize );
1180
	return SPK::GetSizeString(m_lDataSize);
1181
}
1181
}
1182
CyString C_File::GetUncompressedSizeString ()
1182
CyString C_File::GetUncompressedSizeString ()
1183
{
1183
{
1184
	return SPK::GetSizeString ( GetUncompressedDataSize() );
1184
	return SPK::GetSizeString ( GetUncompressedDataSize() );
1185
}
1185
}