-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
94 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"inheritEnvironments": [ | ||
"msvc_x64" | ||
], | ||
"name": "x64-Debug", | ||
"includePath": [ | ||
"${env.INCLUDE}", | ||
"${workspaceRoot}\\**" | ||
], | ||
"defines": [ | ||
"WIN32", | ||
"_DEBUG", | ||
"UNICODE", | ||
"_UNICODE" | ||
], | ||
"intelliSenseMode": "windows-msvc-x64", | ||
"cppStandard": "c++20" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
|
||
class ModuleManager : public FeatureManager<Module> { | ||
public: | ||
|
||
~ModuleManager() = default; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,30 @@ | ||
#pragma once | ||
#include <string_view> | ||
#include <format> | ||
|
||
namespace Logger { | ||
enum class Level { | ||
Info, | ||
Warn, | ||
Fatal | ||
}; | ||
|
||
extern void setup(); | ||
extern void log(std::string_view fmt, ...); | ||
|
||
extern void logInternal(Level level, std::string str); | ||
|
||
template<typename... Args> | ||
extern inline void info(std::string_view fmt, Args&&... args) { | ||
logInternal(Level::Info, std::format(fmt, std::forward<Args>(args)...)); | ||
} | ||
|
||
template<typename... Args> | ||
extern inline void warn(std::string_view fmt, Args&&... args) { | ||
logInternal(Level::Warn, std::format(fmt, std::forward<Args>(args)...)); | ||
} | ||
|
||
template<typename... Args> | ||
extern inline void fatal(std::string_view fmt, Args&&... args) { | ||
logInternal(Level::Fatal, std::format(fmt, std::forward<Args>(args)...)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#pragma once | ||
#include <string> | ||
#include <filesystem> | ||
|
||
namespace util { | ||
extern std::wstring getRoamingPath(); | ||
extern std::wstring getLatitePath(); | ||
extern std::filesystem::path getRoamingPath(); | ||
extern std::filesystem::path getLatitePath(); | ||
extern std::wstring strToWstr(std::string const& s); | ||
extern std::string wstrToStr(std::wstring const& ws); | ||
} |