isle-portable/extensions/src/common/pathutils.cpp
Christian Semmler 3d7bbdf0ae
Add third person camera extension
Introduces a third person camera system with orbit camera, input handling
(mouse/keyboard/touch/gamepad), display actor cloning, and camera-relative
movement. Includes shared character utilities (animator, cloner, customizer)
and an IExtraAnimHandler interface for optional animation extensions.
Also includes generic base game fixes and extension system improvements.
2026-03-29 08:20:57 -07:00

25 lines
567 B
C++

#include "extensions/common/pathutils.h"
#include "legomain.h"
#include <SDL3/SDL_filesystem.h>
using namespace Extensions::Common;
bool Extensions::Common::ResolveGamePath(const char* p_relativePath, MxString& p_outPath)
{
p_outPath = MxString(MxOmni::GetHD()) + p_relativePath;
p_outPath.MapPathToFilesystem();
if (SDL_GetPathInfo(p_outPath.GetData(), NULL)) {
return true;
}
p_outPath = MxString(MxOmni::GetCD()) + p_relativePath;
p_outPath.MapPathToFilesystem();
if (SDL_GetPathInfo(p_outPath.GetData(), NULL)) {
return true;
}
return false;
}