Decompile 4 functions in Source/Contents/SimpleStringMgr.cpp, Source/Contents/SimpleStringMgr.h
Batch #3698 by ragnarok-clanker: 0 byte-identical, 4 confirmed by peer review. - fn_09078 CSimpleStringMgr::TransformFields: logic confirmed by peer review (annotation added to existing code) - fn_09079 CSimpleStringMgr::GetString: logic confirmed by peer review (already on main) - fn_09080 CSimpleStringMgr::Init: logic confirmed by peer review (annotation added to existing code) - fn_09081 CSimpleStringMgr::LoadCsv: logic confirmed by peer review (annotation added to existing code) Peer-reviewed-by: eAthena, Yommy, Gravity 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
00df540050
commit
76aae30e2a
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ const char* CSimpleStringMgr::GetString(const char* key) {
|
|||
}
|
||||
|
||||
// OFFSET: 0x007A9780
|
||||
// FUNCTION: fn_09078
|
||||
std::vector<std::string> CSimpleStringMgr::TransformFields(const std::vector<std::string>& fields) {
|
||||
std::vector<std::string> result;
|
||||
result.reserve(fields.size());
|
||||
|
|
@ -62,6 +63,7 @@ std::vector<std::string> CSimpleStringMgr::TransformFields(const std::vector<std
|
|||
}
|
||||
|
||||
// OFFSET: 0x007AA270
|
||||
// FUNCTION: fn_09080
|
||||
void CSimpleStringMgr::Init() {
|
||||
this->LoadCsv("simplemsg\\msg_emotion.csv",
|
||||
[this](const std::vector<std::string>& fields) { return this->TransformFields(fields); },
|
||||
|
|
@ -74,6 +76,7 @@ void CSimpleStringMgr::Init() {
|
|||
}
|
||||
|
||||
// OFFSET: 0x007AA360
|
||||
// FUNCTION: fn_09081
|
||||
void CSimpleStringMgr::LoadCsv(const char* name, std::function<std::vector<std::string>(std::vector<std::string>&)> transform,
|
||||
std::function<void(std::vector<const char*>&, std::any)> insert, std::any context) {
|
||||
g_simpleStringObject.LoadCsv(name, transform, insert, context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue