start: init start-hyprland and safe mode (#12484)
This commit is contained in:
parent
ec6756f961
commit
016eb7a23d
22 changed files with 550 additions and 28 deletions
9
start/src/helpers/Logger.hpp
Normal file
9
start/src/helpers/Logger.hpp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <hyprutils/cli/Logger.hpp>
|
||||
|
||||
#include "Memory.hpp"
|
||||
|
||||
// we do this to add a from start-hyprland to the logs
|
||||
inline UP<Hyprutils::CLI::CLogger> g_loggerMain = makeUnique<Hyprutils::CLI::CLogger>();
|
||||
inline UP<Hyprutils::CLI::CLoggerConnection> g_logger;
|
||||
15
start/src/helpers/Memory.hpp
Normal file
15
start/src/helpers/Memory.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <hyprutils/memory/WeakPtr.hpp>
|
||||
#include <hyprutils/memory/Atomic.hpp>
|
||||
|
||||
using namespace Hyprutils::Memory;
|
||||
|
||||
template <typename T>
|
||||
using SP = Hyprutils::Memory::CSharedPointer<T>;
|
||||
template <typename T>
|
||||
using WP = Hyprutils::Memory::CWeakPointer<T>;
|
||||
template <typename T>
|
||||
using UP = Hyprutils::Memory::CUniquePointer<T>;
|
||||
template <typename T>
|
||||
using ASP = Hyprutils::Memory::CAtomicSharedPointer<T>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue