Integrating up through commit 90f050496
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
|
||||
#include "EditorUtils.h"
|
||||
|
||||
#include "EditorToolsApplicationAPI.h"
|
||||
|
||||
// Qt
|
||||
#include <QColor>
|
||||
#include <QMessageBox>
|
||||
@@ -278,5 +280,26 @@ namespace EditorUtils
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* LevelFile::GetOldCryFileExtension()
|
||||
{
|
||||
const char* oldCryExtension = nullptr;
|
||||
EditorInternal::EditorToolsApplicationRequestBus::BroadcastResult(
|
||||
oldCryExtension, &EditorInternal::EditorToolsApplicationRequests::GetOldCryLevelExtension);
|
||||
|
||||
AZ_Assert(oldCryExtension, "Cannot retrieve file extension");
|
||||
return oldCryExtension;
|
||||
}
|
||||
|
||||
const char* LevelFile::GetDefaultFileExtension()
|
||||
{
|
||||
const char* levelExtension = nullptr;
|
||||
EditorInternal::EditorToolsApplicationRequestBus::BroadcastResult(
|
||||
levelExtension, &EditorInternal::EditorToolsApplicationRequests::GetLevelExtension);
|
||||
|
||||
AZ_Assert(levelExtension, "Cannot retrieve file extension");
|
||||
return levelExtension;
|
||||
}
|
||||
|
||||
} // namespace EditorUtils
|
||||
|
||||
|
||||
@@ -176,6 +176,13 @@ namespace EditorUtils
|
||||
AZStd::string m_window;
|
||||
};
|
||||
|
||||
namespace LevelFile
|
||||
{
|
||||
//! Retrieve old cry level file extension (With prepending '.')
|
||||
const char* GetOldCryFileExtension();
|
||||
//! Retrieve default level file extension (With prepending '.')
|
||||
const char* GetDefaultFileExtension();
|
||||
}
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user