Skip to content

Commit db05170

Browse files
chore(deps): bump third-party/lizardbyte-common from 06cd442 to 011ad2b (#241)
* chore(deps): bump third-party/lizardbyte-common Bumps [third-party/lizardbyte-common](https://github.com/LizardByte/lizardbyte-common) from `06cd442` to `011ad2b`. - [Release notes](https://github.com/LizardByte/lizardbyte-common/releases) - [Commits](LizardByte/lizardbyte-common@06cd442...011ad2b) --- updated-dependencies: - dependency-name: third-party/lizardbyte-common dependency-version: 011ad2bb139083dcf4ec21f9c09f07470891a668 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): add lizardbyte-common C tooling dependency Configure the project to consume `lizardbyte-common[c]` from the local `third-party/lizardbyte-common` path via `tool.uv.sources`, then regenerate `uv.lock` to capture the resolved transitive packages. The C++ changes in `host_records.cpp` are formatter-driven line wrapping with no behavior change. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
1 parent dea81e5 commit db05170

5 files changed

Lines changed: 261 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ build/
4242
cmake-*/
4343
.local/
4444
docs/doxyconfig*
45+
*.egg-info/
4546

4647
# test output
4748
test-output/

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ authors = [
1212
{name = "LizardByte", email = "lizardbyte@users.noreply.github.com"}
1313
]
1414

15-
dependencies = []
15+
dependencies = [
16+
"lizardbyte-common[c]",
17+
]
1618

1719
[project.urls]
1820
Homepage = "https://app.lizardbyte.dev"
1921
Repository = "https://github.com/LizardByte/Moonlight-XboxOG"
2022
Issues = "https://github.com/LizardByte/Moonlight-XboxOG/issues"
23+
24+
[tool.uv.sources]
25+
lizardbyte-common = { path = "third-party/lizardbyte-common" }

src/app/host_records.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,7 @@ namespace {
202202
uint64_t resolvedHttpPort = 0;
203203
uint64_t httpsPort = 0;
204204
uint64_t appListContentHash = 0;
205-
if (!try_parse_unsigned_integer(fields[0], std::numeric_limits<uint32_t>::max(), &runningGameId) ||
206-
!try_parse_unsigned_integer(fields[1], std::numeric_limits<uint16_t>::max(), &resolvedHttpPort) ||
207-
!try_parse_unsigned_integer(fields[2], std::numeric_limits<uint16_t>::max(), &httpsPort) ||
208-
!try_parse_unsigned_integer(fields[3], std::numeric_limits<uint64_t>::max(), &appListContentHash)) {
205+
if (!try_parse_unsigned_integer(fields[0], std::numeric_limits<uint32_t>::max(), &runningGameId) || !try_parse_unsigned_integer(fields[1], std::numeric_limits<uint16_t>::max(), &resolvedHttpPort) || !try_parse_unsigned_integer(fields[2], std::numeric_limits<uint16_t>::max(), &httpsPort) || !try_parse_unsigned_integer(fields[3], std::numeric_limits<uint64_t>::max(), &appListContentHash)) {
209206
return false;
210207
}
211208

@@ -238,8 +235,7 @@ namespace {
238235
bool hidden = false;
239236
bool favorite = false;
240237
bool boxArtCached = false;
241-
if (!percent_decode(fields[0], &name) || !try_parse_unsigned_integer(fields[1], static_cast<uint64_t>(std::numeric_limits<int>::max()), &id) || !try_parse_serialized_boolean(fields[2], &hdrSupported) ||
242-
!try_parse_serialized_boolean(fields[3], &hidden) || !try_parse_serialized_boolean(fields[4], &favorite) || !percent_decode(fields[5], &boxArtCacheKey) || !try_parse_serialized_boolean(fields[6], &boxArtCached)) {
238+
if (!percent_decode(fields[0], &name) || !try_parse_unsigned_integer(fields[1], static_cast<uint64_t>(std::numeric_limits<int>::max()), &id) || !try_parse_serialized_boolean(fields[2], &hdrSupported) || !try_parse_serialized_boolean(fields[3], &hidden) || !try_parse_serialized_boolean(fields[4], &favorite) || !percent_decode(fields[5], &boxArtCacheKey) || !try_parse_serialized_boolean(fields[6], &boxArtCached)) {
243239
return false;
244240
}
245241

0 commit comments

Comments
 (0)