Browse Source

Update MaxComponent for pfLocalization changes.

Adds limited plString usage to MaxComponent's plPickLocalizationDlg
for compatibility with pfLocalizationDataMgr.
Joseph Davies 12 years ago
parent
commit
bcc97fa1dc
  1. 12
      Sources/Tools/MaxComponent/plPickLocalizationDlg.cpp
  2. 2
      Sources/Tools/MaxMain/GlobalUtility.cpp

12
Sources/Tools/MaxComponent/plPickLocalizationDlg.cpp

@ -129,20 +129,20 @@ HTREEITEM plPickLocalizationDlg::IAddVar(std::string name, std::string match, HT
void plPickLocalizationDlg::IAddLocalizations(std::string ageName, std::string setName, std::string itemName)
{
std::vector<std::wstring> ages = pfLocalizationDataMgr::Instance().GetAgeList();
std::vector<plString> ages = pfLocalizationDataMgr::Instance().GetAgeList();
for (int curAge = 0; curAge < ages.size(); curAge++)
{
HTREEITEM hAgeItem = IAddVar(WStringToString(ages[curAge]), ageName, TVI_ROOT);
HTREEITEM hAgeItem = IAddVar(ages[curAge].c_str(), ageName, TVI_ROOT);
std::vector<std::wstring> sets = pfLocalizationDataMgr::Instance().GetSetList(ages[curAge]);
std::vector<plString> sets = pfLocalizationDataMgr::Instance().GetSetList(ages[curAge]);
for (int curSet = 0; curSet < sets.size(); curSet++)
{
std::vector<std::wstring> elements = pfLocalizationDataMgr::Instance().GetElementList(ages[curAge], sets[curSet]);
std::vector<plString> elements = pfLocalizationDataMgr::Instance().GetElementList(ages[curAge], sets[curSet]);
HTREEITEM hSetItem = IAddVar(WStringToString(sets[curSet]), setName, hAgeItem);
HTREEITEM hSetItem = IAddVar(sets[curSet].c_str(), setName, hAgeItem);
for (int curElement = 0; curElement < elements.size(); curElement++)
IAddVar(WStringToString(elements[curElement]), itemName, hSetItem);
IAddVar(elements[curElement].c_str(), itemName, hSetItem);
}
}
}

2
Sources/Tools/MaxMain/GlobalUtility.cpp

@ -230,7 +230,7 @@ DWORD PlasmaMax::Start()
{
std::string clientPath(pathTemp);
clientPath += "dat";
pfLocalizationMgr::Initialize(clientPath);
pfLocalizationMgr::Initialize(clientPath.c_str());
}
return GUPRESULT_KEEP;

Loading…
Cancel
Save