Update to latest nazarautils

This commit is contained in:
SirLynix 2024-01-02 12:02:45 +01:00
parent d2e2c075b4
commit 7dc7104cc4
11 changed files with 18 additions and 15 deletions

View File

@ -2,7 +2,7 @@
// This file is part of the "Nazara Engine - Core module" // This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp // For conditions of distribution and use, see copyright notice in Config.hpp
#include <NazaraUtils/Algorithm.hpp> #include <NazaraUtils/PathUtils.hpp>
#include <Nazara/Core/Debug.hpp> #include <Nazara/Core/Debug.hpp>
namespace Nz namespace Nz

View File

@ -2,6 +2,7 @@
// This file is part of the "Nazara Engine - Core module" // This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp // For conditions of distribution and use, see copyright notice in Config.hpp
#include <NazaraUtils/PathUtils.hpp>
#include <Nazara/Core/Config.hpp> #include <Nazara/Core/Config.hpp>
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <Nazara/Core/File.hpp> #include <Nazara/Core/File.hpp>

View File

@ -2,6 +2,7 @@
// This file is part of the "Nazara Engine - Core module" // This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp // For conditions of distribution and use, see copyright notice in Config.hpp
#include <NazaraUtils/PathUtils.hpp>
#include <Nazara/Core/Config.hpp> #include <Nazara/Core/Config.hpp>
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <Nazara/Core/File.hpp> #include <Nazara/Core/File.hpp>

View File

@ -6,8 +6,8 @@
#include <Nazara/Audio/OpenALDevice.hpp> #include <Nazara/Audio/OpenALDevice.hpp>
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <Nazara/Core/ErrorFlags.hpp> #include <Nazara/Core/ErrorFlags.hpp>
#include <NazaraUtils/Algorithm.hpp>
#include <NazaraUtils/CallOnExit.hpp> #include <NazaraUtils/CallOnExit.hpp>
#include <NazaraUtils/PathUtils.hpp>
#include <array> #include <array>
#include <sstream> #include <sstream>
#include <stdexcept> #include <stdexcept>

View File

@ -4,6 +4,7 @@
#include <Nazara/Core/Posix/DynLibImpl.hpp> #include <Nazara/Core/Posix/DynLibImpl.hpp>
#include <NazaraUtils/Algorithm.hpp> #include <NazaraUtils/Algorithm.hpp>
#include <NazaraUtils/PathUtils.hpp>
#include <dlfcn.h> #include <dlfcn.h>
#include <cstring> #include <cstring>
#include <Nazara/Core/Debug.hpp> #include <Nazara/Core/Debug.hpp>

View File

@ -7,6 +7,7 @@
#include <Nazara/Core/Error.hpp> #include <Nazara/Core/Error.hpp>
#include <Nazara/Core/StringExt.hpp> #include <Nazara/Core/StringExt.hpp>
#include <NazaraUtils/Algorithm.hpp> #include <NazaraUtils/Algorithm.hpp>
#include <NazaraUtils/PathUtils.hpp>
#include <cstdio> #include <cstdio>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>

View File

@ -3,7 +3,7 @@
// For conditions of distribution and use, see copyright notice in Config.hpp // For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/VirtualDirectoryFilesystemResolver.hpp> #include <Nazara/Core/VirtualDirectoryFilesystemResolver.hpp>
#include <NazaraUtils/Algorithm.hpp> #include <NazaraUtils/PathUtils.hpp>
#include <Nazara/Core/Debug.hpp> #include <Nazara/Core/Debug.hpp>
namespace Nz namespace Nz

View File

@ -89,8 +89,8 @@ namespace Nz::PlatformImpl
info.dwThreadID = threadId; info.dwThreadID = threadId;
info.dwFlags = 0; info.dwFlags = 0;
#pragma warning(push) NAZARA_WARNING_PUSH()
#pragma warning(disable: 6320 6322) NAZARA_WARNING_MSVC_DISABLE(6320 6322)
__try __try
{ {
RaiseException(MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR), reinterpret_cast<ULONG_PTR*>(&info)); RaiseException(MS_VC_EXCEPTION, 0, sizeof(info) / sizeof(ULONG_PTR), reinterpret_cast<ULONG_PTR*>(&info));
@ -98,13 +98,14 @@ namespace Nz::PlatformImpl
__except (EXCEPTION_EXECUTE_HANDLER) __except (EXCEPTION_EXECUTE_HANDLER)
{ {
} }
#pragma warning(pop) NAZARA_WARNING_POP()
#else #else
NazaraWarning("ThreadName exception is only supported with MSVC"); NazaraWarning("ThreadName exception is only supported with MSVC");
#endif #endif
} }
#endif #endif
void SetCurrentThreadName(const char* threadName) void SetCurrentThreadName(const char* threadName)
{ {
SetThreadName(GetCurrentThreadHandle(), threadName); SetThreadName(GetCurrentThreadHandle(), threadName);

View File

@ -41,10 +41,8 @@ namespace Nz
bool Window::Create(VideoMode mode, const std::string& title, WindowStyleFlags style) bool Window::Create(VideoMode mode, const std::string& title, WindowStyleFlags style)
{ {
#ifdef NAZARA_COMPILER_MSVC NAZARA_WARNING_PUSH()
#pragma warning(push) NAZARA_WARNING_MSVC_DISABLE(4701) //< uninitialized variable maybe used (position)
#pragma warning(disable:4701) //< uninitialized variable maybe used (position)
#endif
// If the window is already open, we keep its position // If the window is already open, we keep its position
bool opened = IsOpen(); bool opened = IsOpen();
@ -84,9 +82,8 @@ namespace Nz
m_eventHandler.Dispatch({ { WindowEventType::Created } }); m_eventHandler.Dispatch({ { WindowEventType::Created } });
#ifdef NAZARA_COMPILER_MSVC NAZARA_WARNING_POP()
#pragma warning(pop)
#endif
return true; return true;
} }

View File

@ -6,6 +6,7 @@
#include <Nazara/Core/StringExt.hpp> #include <Nazara/Core/StringExt.hpp>
#include <Nazara/Utility/Config.hpp> #include <Nazara/Utility/Config.hpp>
#include <NazaraUtils/CallOnExit.hpp> #include <NazaraUtils/CallOnExit.hpp>
#include <NazaraUtils/PathUtils.hpp>
#include <tsl/ordered_map.h> #include <tsl/ordered_map.h>
#include <cctype> #include <cctype>
#include <memory> #include <memory>

View File

@ -263,7 +263,7 @@ end
add_repositories("nazara-engine-repo https://github.com/NazaraEngine/xmake-repo") add_repositories("nazara-engine-repo https://github.com/NazaraEngine/xmake-repo")
add_requires("entt 3.12.2", "fmt", "frozen", "nazarautils >=2023.12.28") add_requires("entt 3.12.2", "fmt", "frozen", "nazarautils >=2024.01.02")
-- Module dependencies -- Module dependencies
if has_config("audio") then if has_config("audio") then