fallout2-ce/src/mapper/mp_targt.cc

63 lines
976 B
C++
Raw Normal View History

2023-07-23 20:50:07 -07:00
#include "mapper/mp_targt.h"
2023-07-23 22:08:01 -07:00
#include <string.h>
#include "art.h"
#include "proto.h"
2023-07-23 20:50:07 -07:00
namespace fallout {
2023-07-23 22:08:01 -07:00
// 0x53F354
static char default_target_path_base[] = "\\fallout2\\dev\\proto\\";
// 0x559CD0
static char* target_path_base = default_target_path_base;
2023-07-23 22:03:25 -07:00
// 0x559DBC
static bool tgt_overriden = false;
2023-07-23 20:50:07 -07:00
// 0x49B2F0
void target_override_protection()
{
// TODO: Incomplete.
}
2023-07-23 22:03:25 -07:00
// 0x49B2F0
bool target_overriden()
{
return tgt_overriden;
}
2023-07-23 22:08:01 -07:00
// 0x49B34C
void target_make_path(char* path, int pid)
{
if (_cd_path_base[0] != '\0' && _cd_path_base[1] == ':') {
strncpy(path, _cd_path_base, 2);
strcat(path, target_path_base);
} else {
strcpy(path, target_path_base);
}
if (pid != -1) {
strcat(path, artGetObjectTypeName(PID_TYPE(pid)));
}
}
2023-07-23 20:50:07 -07:00
// 0x49B424
int target_init()
{
// TODO: Incomplete.
return 0;
}
2023-07-23 21:17:21 -07:00
// 0x49B434
int target_exit()
{
// TODO: Incomplete.
return 0;
}
2023-07-23 20:50:07 -07:00
} // namespace fallout