Integrating latest 47acbe8
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "StandaloneTools_precompiled.h"
|
||||
#include "LuaEditor.h"
|
||||
#include <Source/LuaIDEApplication.h>
|
||||
|
||||
#if defined(AZ_COMPILER_MSVC)
|
||||
#include "resource.h"
|
||||
#endif
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
#if defined(EXTERNAL_CRASH_REPORTING)
|
||||
#include <ToolsCrashHandler.h>
|
||||
#endif
|
||||
|
||||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
|
||||
// Editor.cpp : Defines the entry point for the application.
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// here we free the console (and close the console window) in release.
|
||||
|
||||
int exitCode = 0;
|
||||
|
||||
{
|
||||
if (!AZ::AllocatorInstance<AZ::OSAllocator>::IsReady())
|
||||
{
|
||||
AZ::AllocatorInstance<AZ::OSAllocator>::Create();
|
||||
}
|
||||
|
||||
AZStd::unique_ptr<AZ::IO::LocalFileIO> fileIO = AZStd::unique_ptr<AZ::IO::LocalFileIO>(aznew AZ::IO::LocalFileIO());
|
||||
AZ::IO::FileIOBase::SetInstance(fileIO.get());
|
||||
|
||||
LUAEditor::Application app(argc, argv);
|
||||
|
||||
QString procName;
|
||||
{
|
||||
QCoreApplication qca(argc, argv);
|
||||
procName = QFileInfo(qca.applicationFilePath()).fileName();
|
||||
}
|
||||
|
||||
LegacyFramework::ApplicationDesc desc(procName.toUtf8().data(), argc, argv);
|
||||
desc.m_applicationModule = NULL;
|
||||
desc.m_enableProjectManager = false;
|
||||
|
||||
#if defined(EXTERNAL_CRASH_REPORTING)
|
||||
CrashHandler::ToolsCrashHandler::InitCrashHandler("LuaEditor", {});
|
||||
#endif
|
||||
|
||||
exitCode = app.Run(desc);
|
||||
// this call will block until someone tells the core app to shut down via a bus message.
|
||||
// the bus message is usually sent (in gui mode) in response to pressing the quit button or something.
|
||||
// in an app that does not require GUI to be manufactured or use GUI windows, you should still call RUN
|
||||
// but make a component which does your processing, in response to RestoreState(). in the CoreMessages bus.
|
||||
// RestoreState will always be called right before the main message pump activates.
|
||||
// and will then block until someone calls:
|
||||
/*EBUS_EVENT(UIFramework::FrameworkMessages::Bus, UserWantsToQuit); */
|
||||
// so ideally to make a file processor or something, simply call app.Initialize(.... but with false as the gui mode ... )
|
||||
// and make at least one component which starts processing in response to CoreMessages::RestoreState(), and then sends UserWantsToQuit() once it has done its processing.
|
||||
// calling UserWantsToQuit will simply queue the quit, so its safe to call from any thread.
|
||||
// your components can query EBUS_EVENT_RESULT(res, LegacyFramework::FrameworkApplicationMessages::IsRunningInGUIMode) to determine
|
||||
// if its in GUI mode or not.
|
||||
}
|
||||
|
||||
if (AZ::AllocatorInstance<AZ::OSAllocator>::IsReady())
|
||||
{
|
||||
AZ::AllocatorInstance<AZ::OSAllocator>::Destroy();
|
||||
}
|
||||
|
||||
return exitCode;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
Binary file not shown.
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "StandaloneTools_precompiled.h"
|
||||
#include "ProfilerEditor.h"
|
||||
#include <Source/ProfilerApplication.h>
|
||||
|
||||
#if defined(AZ_COMPILER_MSVC)
|
||||
#include "resource.h"
|
||||
#endif
|
||||
|
||||
#include <QString>
|
||||
#include <QCoreApplication>
|
||||
#include <QFileInfo>
|
||||
|
||||
// Editor.cpp : Defines the entry point for the application.
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// here we free the console (and close the console window) in release.
|
||||
|
||||
int exitCode = 0;
|
||||
|
||||
{
|
||||
if (!AZ::AllocatorInstance<AZ::OSAllocator>::IsReady())
|
||||
{
|
||||
AZ::AllocatorInstance<AZ::OSAllocator>::Create();
|
||||
}
|
||||
|
||||
AZStd::unique_ptr<AZ::IO::LocalFileIO> fileIO = AZStd::unique_ptr<AZ::IO::LocalFileIO>(aznew AZ::IO::LocalFileIO());
|
||||
AZ::IO::FileIOBase::SetInstance(fileIO.get());
|
||||
|
||||
Driller::Application app(argc, argv);
|
||||
|
||||
QString procName;
|
||||
{
|
||||
QCoreApplication qca(argc, argv);
|
||||
procName = QFileInfo(qca.applicationFilePath()).fileName();
|
||||
}
|
||||
|
||||
LegacyFramework::ApplicationDesc desc(procName.toUtf8().data(), argc, argv);
|
||||
desc.m_applicationModule = NULL;
|
||||
desc.m_enableProjectManager = false;
|
||||
|
||||
exitCode = app.Run(desc);
|
||||
// this call will block until someone tells the core app to shut down via a bus message.
|
||||
// the bus message is usually sent (in gui mode) in response to pressing the quit button or something.
|
||||
// in an app that does not require GUI to be manufactured or use GUI windows, you should still call RUN
|
||||
// but make a component which does your processing, in response to RestoreState(). in the CoreMessages bus.
|
||||
// RestoreState will always be called right before the main message pump activates.
|
||||
// and will then block until someone calls:
|
||||
/*EBUS_EVENT(UIFramework::FrameworkMessages::Bus, UserWantsToQuit); */
|
||||
// so ideally to make a file processor or something, simply call app.Initialize(.... but with false as the gui mode ... )
|
||||
// and make at least one component which starts processing in response to CoreMessages::RestoreState(), and then sends UserWantsToQuit() once it has done its processing.
|
||||
// calling UserWantsToQuit will simply queue the quit, so its safe to call from any thread.
|
||||
// your components can query EBUS_EVENT_RESULT(res, LegacyFramework::FrameworkApplicationMessages::IsRunningInGUIMode) to determine
|
||||
// if its in GUI mode or not.
|
||||
}
|
||||
|
||||
return exitCode;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by Editor.rc
|
||||
//
|
||||
#define IDC_MYICON 2
|
||||
#define IDD_EDITOR_DIALOG 102
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDI_ICON1 129
|
||||
#define IDC_STATIC -1
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NO_MFC 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 131
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 110
|
||||
#endif
|
||||
#endif
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8b291f16009fb4e8611eec975c418d718ff86a77e43fba4a6f025c2e17475fb7
|
||||
size 2238
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b4863291cd214b33baf55b42e4184e6e2d6de02bcc621d6b037f5d1aab7b978a
|
||||
size 2238
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Including SDKDDKVer.h defines the highest available Windows platform.
|
||||
|
||||
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
|
||||
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
|
||||
|
||||
#include <SDKDDKVer.h>
|
||||
Reference in New Issue
Block a user