Decompile fn_02759 (GetFileName)
Batch #14398 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review. - fn_02759 GetFileName: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
582c3cfb92
commit
4b853a3faf
1 changed files with 5 additions and 3 deletions
|
|
@ -111,15 +111,17 @@ bool ContainsText(const std::string& text, std::string_view pattern) {
|
|||
return text.find(pattern) != std::string::npos;
|
||||
}
|
||||
|
||||
#pragma inline_depth(0)
|
||||
// OFFSET: 0x0058A8F0
|
||||
// FUNCTION: fn_02759
|
||||
std::string GetFileName(const std::string& path) {
|
||||
std::size_t position = path.find_last_of("\\/");
|
||||
if (position == std::string::npos) {
|
||||
return path;
|
||||
if (position != std::string::npos) {
|
||||
return path.substr(position + 1);
|
||||
}
|
||||
return path.substr(position + 1);
|
||||
return path;
|
||||
}
|
||||
#pragma inline_depth()
|
||||
|
||||
// OFFSET: 0x0058AAF0
|
||||
// FUNCTION: fn_02761
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue