Decompile fn_11307 (ItemLinkDisplay::BracketName)
Batch #6680 by Bielhp: 0 byte-identical, 1 confirmed by peer review. - fn_11307 ItemLinkDisplay::BracketName: logic confirmed by peer review Peer-reviewed-by: eAthena, KWDev 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
db7ed471c1
commit
9f097590ab
2 changed files with 11 additions and 0 deletions
|
|
@ -124,3 +124,13 @@ std::string ItemLinkDisplay::Convert(const std::string& text) {
|
|||
result += remaining;
|
||||
return result;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00884460
|
||||
// FUNCTION: fn_11307
|
||||
std::string ItemLinkDisplay::BracketName(const std::string& name) {
|
||||
std::string result;
|
||||
result += '<';
|
||||
result += FitText(this->surface, name, this->width / 2);
|
||||
result += '>';
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ struct ItemLinkDisplay {
|
|||
bool Name(const std::string& encoded, std::string& output);
|
||||
bool Next(std::string& remaining, std::string& encoded, unsigned& position, const char* original);
|
||||
std::string Convert(const std::string& text);
|
||||
std::string BracketName(const std::string& name);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue