muttleyxd / arma3-unix-launcher

Launcher for Linux and Mac ArmA 3
MIT License
210 stars 44 forks source link

Fix for string type errors #254

Closed Uncle-Sagbag closed 1 year ago

Uncle-Sagbag commented 1 year ago

Fix for #193 and #234

Occasionally, the AUR packages for arma 3 unix launcher fail to launch due to new updates to Arch libs. The latest error returned when running the launcher is

arma3-unix-launcher: symbol lookup error: arma3-unix-launcher: undefined symbol: _ZN6spdlog7details7log_msgC1ENS_10source_locEN3fmt2v817basic_string_viewIcEENS_5level10level_enumES6_

This can be fixed by installing the launcher from source. However, more issues crop up related to incorrect string types. This PR fixes the issue with building the launcher on Arch.

According to the advice of @muttleyxd, adding #include <string> to the tops of steam_integration_impl.hpp and steam_integration_stub.cpp would prevent errors during build. I can confirm in my testing that fixes the build and, consequently, the launcher.

In this PR is to merge the changes to the master repository. I would appreciate a review.