Fix achievement sound not playing in certain conditions. (#373)

* Fix achievement sound not playing in cutscenes.

* Prevent achievement overlay from showing if sounds cannot be played.
This commit is contained in:
Skyth (Asilkan)
2025-02-11 23:50:24 +03:00
committed by GitHub
parent 99d6cebf92
commit dd294a30d4
5 changed files with 73 additions and 30 deletions
+2 -2
View File
@@ -10,12 +10,12 @@ namespace xdbf
{
inline std::string& FixInvalidSequences(std::string& str)
{
static std::vector<std::string> invalidSequences =
static std::array<std::string_view, 1> invalidSequences =
{
"\xE2\x80\x99"
};
static std::vector<std::string> replaceSequences =
static std::array<std::string_view, 1> replaceSequences =
{
"'"
};