Subversion Repositories spk

Rev

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

Rev 177 Rev 196
Line 41... Line 41...
41
 
41
 
42
bool CMultiSpkFile::addFileNow(const Utils::String &file, bool on )
42
bool CMultiSpkFile::addFileNow(const Utils::String &file, bool on )
43
{
43
{
44
	if ( this->addFile(file, on) )
44
	if ( this->addFile(file, on) )
45
	{
45
	{
46
		Utils::String findFile = CFileIO(file).filename();
46
		Utils::String findFile = CFileIO(file).filenameStr();
47
 
47
 
48
		const SMultiSpkFile *p = this->findFile(findFile);
48
		const SMultiSpkFile *p = this->findFile(findFile);
49
		if ( p )
49
		if ( p )
50
		{
50
		{
51
			this->CreatePackage(const_cast<SMultiSpkFile*>(p));
51
			this->CreatePackage(const_cast<SMultiSpkFile*>(p));
Line 152... Line 152...
152
 
152
 
153
	// create entry
153
	// create entry
154
	SMultiSpkFile *ms = new SMultiSpkFile;
154
	SMultiSpkFile *ms = new SMultiSpkFile;
155
	ms->bRemove = false;
155
	ms->bRemove = false;
156
	ms->pFile = NULL;
156
	ms->pFile = NULL;
157
	ms->sName = CFileIO(file).filename();
157
	ms->sName = CFileIO(file).filenameStr();
158
	ms->bOn = on;
158
	ms->bOn = on;
159
 
159
 
160
	// read data
160
	// read data
161
	ms->sData = (char *)File.readAll((size_t *)&ms->lSize);
161
	ms->sData = (char *)File.readAll((size_t *)&ms->lSize);
162
	File.close();
162
	File.close();