else
{
if(s)
- s[0] = 0;
+ s[1] = 0;
else
n[0] = 0;
}
}
else
{
- StringOutputStream o(64);
- o << cat << "/";
- cs = o.c_str();
+ globalErrorStream() << "category name " << cat << " doesn't end with slash?\n";
+ cs = "";
+ string_release(n, l);
}
return cs;
}
Radiant_getImageModules().foreachModule(FindTexturesByTypeVisitor(groups, dirstring.c_str()));
}
else
- groups.insert(directory);
+ {
+ StringOutputStream dirstring(64);
+ dirstring << directory << "/";
+ groups.insert(dirstring.c_str());
+ }
}
typedef ReferenceCaller1<TextureGroups, const char*, TextureGroups_addDirectory> TextureGroupsAddDirectoryCaller;
&& string_equal_start((*next).c_str(), dirRoot))
{
gtk_tree_store_append(store, &iter, NULL);
- gtk_tree_store_set (store, &iter, 0, CopiedString(StringRange(dirName, firstUnderscore)).c_str(), -1);
+ gtk_tree_store_set (store, &iter, 0, CopiedString(StringRange(dirName, firstUnderscore+1)).c_str(), -1);
// keep going...
while (i != groups.end() && string_equal_start((*i).c_str(), dirRoot))
g_TextureBrowser.m_searchedTags = false;
- if(!TextureBrowser_showWads())
- if(!cutAtDash)
- strcat(dirName, "/");
-
ScopeDisableScreenUpdates disableScreenUpdates(dirName, "Loading Textures");
TextureBrowser_ShowDirectory(GlobalTextureBrowser (), dirName);
TextureBrowser_queueDraw(GlobalTextureBrowser ());