Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spdlog from package managers #4088

Merged
merged 20 commits into from
Apr 30, 2024
Merged

Conversation

briaguya-ai
Copy link
Contributor

@briaguya-ai briaguya-ai commented Apr 30, 2024

@briaguya-ai briaguya-ai changed the title Spdlog pkg spdlog from package managers Apr 30, 2024
@briaguya-ai briaguya-ai added the do not merge Not ready or not valid changes label Apr 30, 2024
@@ -417,6 +416,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
"_UNICODE"
STORMLIB_NO_AUTO_LINK
"_CRT_SECURE_NO_WARNINGS;"
NOMINMAX
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use std::min and std::max which doesn't work if we include windef.h (which is included by windows.h)

this ensures we can continue to use them regardless of where we include windows.h from

i have no idea why the way we were including SPDLOG was making this not a problem for us before, probably just luck of the include order

@@ -179,7 +179,7 @@ CrowdControl::EffectResult CrowdControl::TranslateGiEnum(GameInteractionEffectQu

CrowdControl::Effect* CrowdControl::ParseMessage(nlohmann::json dataReceived) {
if (!dataReceived.contains("id") || !dataReceived.contains("type")) {
SPDLOG_ERROR("[CrowdControl] Invalid payload received:\n{}", dataReceived);
SPDLOG_ERROR("[CrowdControl] Invalid payload received:\n{}", dataReceived.dump());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no idea how this wasn't a problem before, but we use .dump() in the other places we SPDLOG out json in this file and it fixed the error i was seeing

@@ -324,7 +324,7 @@ OTRGlobals::OTRGlobals() {
auto overlay = context->GetInstance()->GetWindow()->GetGui()->GetGameOverlay();
overlay->LoadFont("Press Start 2P", "fonts/PressStart2P-Regular.ttf", 12.0f);
overlay->LoadFont("Fipps", "fonts/Fipps-Regular.otf", 32.0f);
overlay->SetCurrentFont(CVarGetString(CVAR_GAME_OVERLAY_FONT, "Press Start 2P"));
overlay->SetCurrentFont(CVarGetString("gOverlayFont", "Press Start 2P"));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kenix3/libultraship#527 moved this from a #define in code (my temporary solution) to a cmake cache define on the LUS side. this just gets things building until malk PRs the soh side of that change

@briaguya-ai briaguya-ai removed the do not merge Not ready or not valid changes label Apr 30, 2024
@briaguya-ai briaguya-ai marked this pull request as ready for review April 30, 2024 22:30
@briaguya-ai briaguya-ai merged commit c70e6d2 into HarbourMasters:develop Apr 30, 2024
6 checks passed
@briaguya-ai briaguya-ai deleted the spdlog-pkg branch January 3, 2025 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants