Decompile 2 functions in Source/Contents/NavigationSource.cpp, Source/Contents/NavigationManager.h
Batch #1395 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_19597 NavigationManager::GetCurrentTargetType: byte-identical - fn_19635 NavigationManager::SaveCurrentTarget: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Contents/NavigationSource.cpp
This commit is contained in:
parent
c05b411b4d
commit
9d3e6d1668
3 changed files with 59 additions and 0 deletions
25
Source/Contents/NavigationSource.cpp
Normal file
25
Source/Contents/NavigationSource.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#include "Contents/NavigationManager.h"
|
||||
|
||||
// OFFSET: 0x00B96980
|
||||
|
||||
// OFFSET: 0x00B96AE0
|
||||
|
||||
// OFFSET: 0x00B971D0
|
||||
// FUNCTION: fn_19597
|
||||
int NavigationManager::GetCurrentTargetType() const {
|
||||
return this->currentTarget.type;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00BA0AE0
|
||||
// FUNCTION: fn_19635
|
||||
int NavigationManager::SaveCurrentTarget() {
|
||||
const int type = this->currentTarget.type;
|
||||
if (type == 6) {
|
||||
return -92;
|
||||
}
|
||||
if ((type != 1 && type != 2 && type != 3 && type != 0) || !this->currentTarget.object) {
|
||||
return -97;
|
||||
}
|
||||
this->savedTarget = this->currentTarget;
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue