ViewManager: Hack for loading Trilogy projects

This commit is contained in:
Luke Street 2020-09-17 19:34:21 -04:00
parent b2573db3a3
commit 723ee78f47
1 changed files with 6 additions and 1 deletions

View File

@ -160,7 +160,12 @@ void ViewManager::RootSpaceViewBuilt(specter::View* view) {
void ViewManager::ProjectChanged(hecl::Database::Project& proj) { void ViewManager::ProjectChanged(hecl::Database::Project& proj) {
CDvdFile::Shutdown(); CDvdFile::Shutdown();
CDvdFile::Initialize(hecl::ProjectPath(proj.getProjectWorkingPath(), _SYS_STR("out/files"))); // FIXME trilogy hack
hecl::ProjectPath projectPath(proj.getProjectWorkingPath(), _SYS_STR("out/files/MP1"));
if (!projectPath.isDirectory()) {
projectPath = hecl::ProjectPath(proj.getProjectWorkingPath(), _SYS_STR("out/files"));
}
CDvdFile::Initialize(projectPath);
} }
void ViewManager::SetupEditorView() { void ViewManager::SetupEditorView() {