File diff r23693:af865e4d65a3 → r23694:b199bc1e26b1
src/base_media_func.h
Show inline comments
 
@@ -156,15 +156,15 @@ bool BaseMedia<Tbase_set>::AddFile(const
 
{
 
	bool ret = false;
 
	DEBUG(grf, 1, "Checking %s for base " SET_TYPE " set", filename);
 

	
 
	Tbase_set *set = new Tbase_set();
 
	IniFile *ini = new IniFile();
 
	ini->LoadFromDisk(filename, BASESET_DIR);
 
	char *path = stredup(filename + basepath_length);
 
	ini->LoadFromDisk(path, BASESET_DIR);
 

	
 
	char *path = stredup(filename + basepath_length);
 
	char *psep = strrchr(path, PATHSEPCHAR);
 
	if (psep != nullptr) {
 
		psep[1] = '\0';
 
	} else {
 
		*path = '\0';
 
	}