mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-02 02:23:56 +00:00
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.
25 lines
567 B
C++
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;
|
|
}
|