Decompile fn_18378 (Resolve)
Batch #15531 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_18378 Resolve: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
42924d1912
commit
339db0a80a
1 changed files with 36 additions and 36 deletions
|
|
@ -37,47 +37,47 @@ const char* Resolve(const char* name) {
|
|||
|
||||
const std::string original(name);
|
||||
|
||||
if (original.find("유저인터페이스", 0, 14) == std::string::npos) {
|
||||
return name;
|
||||
}
|
||||
if (original.find("유저인터페이스", 0, 14) != std::string::npos) {
|
||||
if (g_modeMgr.gameMode && g_skinInfo.Selected() == true) {
|
||||
const std::string prefix(g_skinInfo.Prefix());
|
||||
// STATIC: 0x016D58CC
|
||||
// GLOBAL: gl_24385
|
||||
static std::string selectedPath;
|
||||
std::string path(name);
|
||||
selectedPath.clear();
|
||||
const int length = static_cast<int>(path.size()) - 15;
|
||||
for (int index = 0; index < length; ++index) {
|
||||
selectedPath.push_back(path[index + 15]);
|
||||
}
|
||||
|
||||
if (g_modeMgr.gameMode && g_skinInfo.Selected() == true) {
|
||||
const std::string prefix(g_skinInfo.Prefix());
|
||||
// STATIC: 0x016D58CC
|
||||
// GLOBAL: gl_24385
|
||||
static std::string selectedPath;
|
||||
std::string path(name);
|
||||
selectedPath.clear();
|
||||
for (int index = 0; index < static_cast<int>(path.size()) - 15; ++index) {
|
||||
selectedPath.push_back(path[index + 15]);
|
||||
g_skinInfo.Prepare();
|
||||
selectedPath = prefix + selectedPath;
|
||||
path = selectedPath;
|
||||
if (ResourceMgr::Instance().Exists(path.c_str())) {
|
||||
return selectedPath.c_str();
|
||||
}
|
||||
}
|
||||
|
||||
g_skinInfo.Prepare();
|
||||
selectedPath = prefix + selectedPath;
|
||||
path = selectedPath;
|
||||
if (ResourceMgr::Instance().Exists(path.c_str())) {
|
||||
return selectedPath.c_str();
|
||||
}
|
||||
}
|
||||
if (g_serviceType != 0) {
|
||||
if (ResourceMgr::Instance().Exists(g_serverLanguage->ServiceName(name))) {
|
||||
return g_serverLanguage->ServiceName(name);
|
||||
}
|
||||
|
||||
if (g_serviceType != 0) {
|
||||
if (ResourceMgr::Instance().Exists(g_serverLanguage->ServiceName(name))) {
|
||||
return g_serverLanguage->ServiceName(name);
|
||||
}
|
||||
// STATIC: 0x016D58E8
|
||||
// GLOBAL: gl_24386
|
||||
static std::string uiPath;
|
||||
std::string path(name);
|
||||
uiPath.clear();
|
||||
const int length = static_cast<int>(path.size()) - 15;
|
||||
for (int index = 0; index < length; ++index) {
|
||||
uiPath.push_back(path[index + 15]);
|
||||
}
|
||||
|
||||
// STATIC: 0x016D58E8
|
||||
// GLOBAL: gl_24386
|
||||
static std::string uiPath;
|
||||
std::string path(name);
|
||||
uiPath.clear();
|
||||
for (int index = 0; index < static_cast<int>(path.size()) - 15; ++index) {
|
||||
uiPath.push_back(path[index + 15]);
|
||||
}
|
||||
|
||||
uiPath = "UI\\" + uiPath;
|
||||
path = uiPath;
|
||||
if (ResourceMgr::Instance().Exists(path.c_str())) {
|
||||
return uiPath.c_str();
|
||||
uiPath = "UI\\" + uiPath;
|
||||
path = uiPath;
|
||||
if (ResourceMgr::Instance().Exists(path.c_str())) {
|
||||
return uiPath.c_str();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue