bumxd 16 Posted July 16, 2018 Share Posted July 16, 2018 # Link to comment Share on other sites More sharing options...
kasko30 19 Posted July 17, 2018 Share Posted July 17, 2018 I never though of hidden files,I hope you find a solution than we can both use ! Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4868 Posted July 17, 2018 Bot Share Posted July 17, 2018 Does it really matters? I think there aren't differences between hidden and visible files for application. Link to comment Share on other sites More sharing options...
bumxd 16 Posted July 17, 2018 Author Share Posted July 17, 2018 # Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted July 17, 2018 Premium Share Posted July 17, 2018 Why don't you block loading from d:/ at all? Checking is folder exists is just crap Link to comment Share on other sites More sharing options...
bumxd 16 Posted July 17, 2018 Author Share Posted July 17, 2018 # Link to comment Share on other sites More sharing options...
ridetpro 116 Posted July 17, 2018 Share Posted July 17, 2018 //Add this at top of the EterPack.cpp namespace bfs = boost::filesystem; namespace { bool is_ymir(const bfs::path& p) { auto it = p.begin(); if (it == p.end() || *it != "d:") return false; ++it; if (it == p.end()) return false; if (*it == "/" || *it == "\\") ++it; if (it == p.end() || *it != "ymir work") return false; return true; } }; //Intro bool CEterPack::Put //Add bfs::path packpath = ConvertPackFilename(filename); if (!is_ymir(packpath) && !packpath.is_relative()) return false; Link to comment Share on other sites More sharing options...
bumxd 16 Posted July 17, 2018 Author Share Posted July 17, 2018 # Link to comment Share on other sites More sharing options...
ridetpro 116 Posted July 17, 2018 Share Posted July 17, 2018 On 7/17/2018 at 4:56 PM, bumxd said: error compile: https://metin2.download/picture/19MSr1OoPpn7TAMoWgROJ6PmS8XxrvtN/.png https://metin2.download/picture/28ZokwaFBZAGg3JTlFRVIqSt5omnyh9w/.png eterpack.cpp: https://pastebin.com/GWc5ZStC #include <boost/filesystem.hpp> Link to comment Share on other sites More sharing options...
bumxd 16 Posted July 17, 2018 Author Share Posted July 17, 2018 # Link to comment Share on other sites More sharing options...
ridetpro 116 Posted July 17, 2018 Share Posted July 17, 2018 (edited) Acum 13 minute, bumxd a spus: error compile: https://metin2.download/picture/HK1DM92hISiVCi3V7Mx9wBySK47dd7jQ/.png // Open EterPack folder //Find inline.h // And paste this std::string ConvertPackFilename(const std::string& name) { std::string ret; std::transform(name.begin(), name.end(), std::back_inserter(ret), [](char ch) { if (ch == '\\') return '/'; else return (char)tolower(ch); }); return ret; } I apologize for so many replies, I wrote these codes a long time ago. So I forgot all the code dependencies. Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
bumxd 16 Posted July 17, 2018 Author Share Posted July 17, 2018 # Link to comment Share on other sites More sharing options...
ridetpro 116 Posted July 17, 2018 Share Posted July 17, 2018 (edited) Acum 8 minute, bumxd a spus: eh again error( https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif Try to paste the ConvertPackFilename intro the EterPack.cpp namespace. It should works Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now