Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
32 lines
971 B
C++
32 lines
971 B
C++
#include "Contents/Items/ItemDescription.h"
|
|
#include "Contents/Items/ItemResources.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
|
|
#include <cstdlib>
|
|
#include <string>
|
|
|
|
// OFFSET: 0x00DDDA20
|
|
// FUNCTION: fn_23391
|
|
const char* ItemDragResource(ItemDescriptions& descriptions, const char* id, int identified) {
|
|
static std::string resource;
|
|
resource = "\xBE\xC6\xC0\xCC\xC5\xDB\\";
|
|
const ITEM_DESC& value = descriptions.Find(std::atoi(id));
|
|
const char* name = identified != 0 ? value.identifiedResource : value.unidentifiedResource;
|
|
resource += name ? name : "\xBB\xE7\xB0\xFA";
|
|
|
|
return resource.c_str();
|
|
}
|
|
|
|
// OFFSET: 0x00DDDCD0
|
|
// FUNCTION: fn_23392
|
|
const char* SkillDragResource(ResourceMgr& resources, const char* name) {
|
|
static std::string resource;
|
|
resource = "\xBE\xC6\xC0\xCC\xC5\xDB\\";
|
|
resource += name;
|
|
|
|
if (!resources.Exists((resource + ".act").c_str())) {
|
|
resource = "\xBE\xC6\xC0\xCC\xC5\xDB\\am_berserkpitcher";
|
|
}
|
|
|
|
return resource.c_str();
|
|
}
|