1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

- fixed several cases of accessing full path to files in archives

This commit is contained in:
Ivan Savenko
2013-07-29 11:38:18 +00:00
parent 9f7c89d5e3
commit 77496bcea9
3 changed files with 12 additions and 15 deletions

View File

@@ -660,7 +660,7 @@ void processCommand(const std::string &message)
{
CDefEssential * cde = CDefHandler::giveDefEss(URI);
std::string outName = *CResourceHandler::get()->getResourceName(ResourceID("SPRITES/" + URI));
std::string outName = URI;
std::string outPath = VCMIDirs::get().userCachePath() + "/extracted/";
boost::filesystem::create_directories(outPath + outName);
@@ -681,7 +681,7 @@ void processCommand(const std::string &message)
if (CResourceHandler::get()->existsResource(ResourceID(URI)))
{
std::string outName = *CResourceHandler::get()->getResourceName(ResourceID(URI));
std::string outName = URI;
std::string outPath = VCMIDirs::get().userCachePath() + "/extracted/";
std::string fullPath = outPath + outName;