mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Updates for fmtlib 7
Update submodules & tracking branches
This commit is contained in:
3
hecl/.gitmodules
vendored
3
hecl/.gitmodules
vendored
@@ -1,12 +1,15 @@
|
|||||||
[submodule "extern/libSquish"]
|
[submodule "extern/libSquish"]
|
||||||
path = extern/libSquish
|
path = extern/libSquish
|
||||||
url = ../libSquish.git
|
url = ../libSquish.git
|
||||||
|
branch = master
|
||||||
[submodule "extern/athena"]
|
[submodule "extern/athena"]
|
||||||
path = extern/athena
|
path = extern/athena
|
||||||
url = ../../libAthena/athena.git
|
url = ../../libAthena/athena.git
|
||||||
|
branch = master
|
||||||
[submodule "extern/boo"]
|
[submodule "extern/boo"]
|
||||||
path = extern/boo
|
path = extern/boo
|
||||||
url = ../boo.git
|
url = ../boo.git
|
||||||
|
branch = master
|
||||||
[submodule "extern/libjpeg-turbo"]
|
[submodule "extern/libjpeg-turbo"]
|
||||||
path = extern/libjpeg-turbo
|
path = extern/libjpeg-turbo
|
||||||
url = ../libjpeg-turbo.git
|
url = ../libjpeg-turbo.git
|
||||||
|
|||||||
2
hecl/extern/athena
vendored
2
hecl/extern/athena
vendored
Submodule hecl/extern/athena updated: c776c4a31d...fc3e9a51d2
2
hecl/extern/boo
vendored
2
hecl/extern/boo
vendored
Submodule hecl/extern/boo updated: 771dbaf1aa...bb6274e638
@@ -96,7 +96,7 @@ public:
|
|||||||
void report(Level level, const S& format, Args&&... args) {
|
void report(Level level, const S& format, Args&&... args) {
|
||||||
vreport(level, fmt::to_string_view<Char>(format),
|
vreport(level, fmt::to_string_view<Char>(format),
|
||||||
fmt::basic_format_args<fmt::buffer_context<Char>>(
|
fmt::basic_format_args<fmt::buffer_context<Char>>(
|
||||||
fmt::internal::make_args_checked<Args...>(format, args...)));
|
fmt::make_args_checked<Args...>(format, args...)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void init(boo::IWindow* ctx);
|
void init(boo::IWindow* ctx);
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ void Console::handleSpecialKeyUp(boo::ESpecialKey /*sp*/, boo::EModifierKey /*mo
|
|||||||
|
|
||||||
void Console::LogVisorAdapter::report(const char* modName, logvisor::Level severity,
|
void Console::LogVisorAdapter::report(const char* modName, logvisor::Level severity,
|
||||||
fmt::string_view format, fmt::format_args args) {
|
fmt::string_view format, fmt::format_args args) {
|
||||||
auto tmp = fmt::internal::vformat(format, args);
|
auto tmp = fmt::vformat(format, args);
|
||||||
std::vector<std::string> lines = athena::utility::split(tmp, '\n');
|
std::vector<std::string> lines = athena::utility::split(tmp, '\n');
|
||||||
for (const std::string& line : lines) {
|
for (const std::string& line : lines) {
|
||||||
auto v = fmt::format(FMT_STRING("[{}] {}"), modName, line);
|
auto v = fmt::format(FMT_STRING("[{}] {}"), modName, line);
|
||||||
@@ -395,7 +395,7 @@ void Console::LogVisorAdapter::report(const char* modName, logvisor::Level sever
|
|||||||
|
|
||||||
void Console::LogVisorAdapter::report(const char* modName, logvisor::Level severity,
|
void Console::LogVisorAdapter::report(const char* modName, logvisor::Level severity,
|
||||||
fmt::wstring_view format, fmt::wformat_args args) {
|
fmt::wstring_view format, fmt::wformat_args args) {
|
||||||
auto tmp = fmt::internal::vformat(format, args);
|
auto tmp = fmt::vformat(format, args);
|
||||||
std::vector<std::string> lines = athena::utility::split(athena::utility::wideToUtf8(tmp), '\n');
|
std::vector<std::string> lines = athena::utility::split(athena::utility::wideToUtf8(tmp), '\n');
|
||||||
for (const std::string& line : lines) {
|
for (const std::string& line : lines) {
|
||||||
auto v = fmt::format(FMT_STRING("[{}] {}"), modName, line);
|
auto v = fmt::format(FMT_STRING("[{}] {}"), modName, line);
|
||||||
@@ -405,14 +405,14 @@ void Console::LogVisorAdapter::report(const char* modName, logvisor::Level sever
|
|||||||
|
|
||||||
void Console::LogVisorAdapter::reportSource(const char* modName, logvisor::Level severity, const char* file,
|
void Console::LogVisorAdapter::reportSource(const char* modName, logvisor::Level severity, const char* file,
|
||||||
unsigned linenum, fmt::string_view format, fmt::format_args args) {
|
unsigned linenum, fmt::string_view format, fmt::format_args args) {
|
||||||
auto tmp = fmt::internal::vformat(format, args);
|
auto tmp = fmt::vformat(format, args);
|
||||||
auto v = fmt::format(FMT_STRING("[{}] {} {}:{}"), modName, tmp, file, linenum);
|
auto v = fmt::format(FMT_STRING("[{}] {} {}:{}"), modName, tmp, file, linenum);
|
||||||
m_con->m_log.emplace_back(std::move(v), Console::Level(severity));
|
m_con->m_log.emplace_back(std::move(v), Console::Level(severity));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Console::LogVisorAdapter::reportSource(const char* modName, logvisor::Level severity, const char* file,
|
void Console::LogVisorAdapter::reportSource(const char* modName, logvisor::Level severity, const char* file,
|
||||||
unsigned linenum, fmt::wstring_view format, fmt::wformat_args args) {
|
unsigned linenum, fmt::wstring_view format, fmt::wformat_args args) {
|
||||||
auto tmp = fmt::internal::vformat(format, args);
|
auto tmp = fmt::vformat(format, args);
|
||||||
std::vector<std::string> lines = athena::utility::split(athena::utility::wideToUtf8(tmp), '\n');
|
std::vector<std::string> lines = athena::utility::split(athena::utility::wideToUtf8(tmp), '\n');
|
||||||
for (const std::string& line : lines) {
|
for (const std::string& line : lines) {
|
||||||
auto v = fmt::format(FMT_STRING("[{}] {} {}:{}"), modName, line, file, linenum);
|
auto v = fmt::format(FMT_STRING("[{}] {} {}:{}"), modName, line, file, linenum);
|
||||||
|
|||||||
Reference in New Issue
Block a user