Updating memory arena by hand because Gemini did something weird.
Added some os functions for memory handling. Starting conversion to memory arena
This commit is contained in:
@@ -80,6 +80,15 @@
|
||||
}
|
||||
.LinkerOptions + .CRTLibs
|
||||
|
||||
// Pointing the entry point
|
||||
.SubSystem = ' /SUBSYSTEM:WINDOWS'
|
||||
If ( .BuildConfigName == 'Debug' )
|
||||
{
|
||||
^SubSystem = ' /SUBSYSTEM:WINDOWS' // We use console in debug
|
||||
|
||||
}
|
||||
.LinkerOptions + .SubSystem
|
||||
|
||||
// Manifest
|
||||
.LinkerAssemblyResources = .ManifestFile
|
||||
.LinkerOptions + ' /MANIFEST:EMBED'
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <Core/JulietInit.h>
|
||||
#include <Core/Logging/LogManager.h>
|
||||
#include <Core/Logging/LogTypes.h>
|
||||
#include <Core/Main.h>
|
||||
#include <Core/Math/Matrix.h>
|
||||
#include <Core/Memory/MemoryArena.h>
|
||||
#include <Core/Memory/Utils.h>
|
||||
@@ -23,7 +24,6 @@
|
||||
#include <Juliet.h>
|
||||
|
||||
#ifdef JULIET_ENABLE_IMGUI
|
||||
#include <Graphics/ImGuiRenderer.h>
|
||||
#include <imgui.h>
|
||||
#endif
|
||||
|
||||
@@ -454,19 +454,8 @@ JulietApplication& GetEditorApplication()
|
||||
return EditorApplication;
|
||||
}
|
||||
|
||||
int main(int /*argc*/, char** /*argv*/)
|
||||
int JulietMain(int, wchar_t**)
|
||||
{
|
||||
// Allow only one instance to be launched.
|
||||
// Need to create Mutex code in the lib because i dont want to include windows.h in this file anymore
|
||||
// CreateMutex(0, false, L"Local\\Juliet.App");
|
||||
// if (GetLastError() == ERROR_ALREADY_EXISTS)
|
||||
// {
|
||||
// MessageBox(nullptr, L"An instance of Juliet is already running.", L"Juliet", MB_OK | MB_ICONEXCLAMATION);
|
||||
// return EXIT_FAILURE;
|
||||
// }
|
||||
|
||||
setvbuf(stdout, nullptr, _IONBF, 0);
|
||||
|
||||
if (__argc > 1)
|
||||
{
|
||||
for (int i = 1; i < __argc; ++i)
|
||||
|
||||
Reference in New Issue
Block a user