Compare commits
47
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59a765c877 | ||
|
|
97d6a19199 | ||
|
|
254f32b262 | ||
|
|
c846cb1ed2 | ||
|
|
20a81ed004 | ||
|
|
a6b8301a73 | ||
|
|
6fcc19d198 | ||
|
|
cd614c2361 | ||
|
|
4831e8847d | ||
|
|
94af0f5f55 | ||
|
|
2ee3306d6a | ||
|
|
9cacea294c | ||
|
|
2893ab857d | ||
|
|
94457a566a | ||
|
|
740b255461 | ||
|
|
cc773294e3 | ||
|
|
514c44b0a1 | ||
|
|
75da37bf6c | ||
|
|
5e4108f1c1 | ||
|
|
62a626e35e | ||
|
|
e06d0d0943 | ||
|
|
b632502da5 | ||
|
|
25a532bc15 | ||
|
|
7f849180f5 | ||
|
|
70adbafdc9 | ||
|
|
731873e16c | ||
|
|
317cd6bb91 | ||
|
|
665dc3620c | ||
|
|
3702cc05b8 | ||
|
|
eeb624875e | ||
|
|
2fccafd423 | ||
|
|
a49cc3dea8 | ||
|
|
cd8abacd7b | ||
|
|
6a49861b50 | ||
|
|
061039b645 | ||
|
|
f963d336ab | ||
|
|
f5dcc4b70f | ||
|
|
bf0a1bc184 | ||
|
|
ce89cea248 | ||
|
|
cdc4a8f3d6 | ||
|
|
48417c5f22 | ||
|
|
5bb7310093 | ||
|
|
1de1b19201 | ||
|
|
ae740acbb5 | ||
|
|
55a6bb3c69 | ||
|
|
f58f9c7e0b | ||
|
|
0b134102d2 |
@@ -279,7 +279,6 @@ jobs:
|
||||
VERSION_CODE=$(( $VERSION_CODE + 1 ))
|
||||
fi
|
||||
|
||||
CSS=images/wivrn-release.css
|
||||
APPNAME=WiVRn
|
||||
else
|
||||
VERSION_CODE=1
|
||||
@@ -287,15 +286,20 @@ jobs:
|
||||
if [ ${{ github.ref_type }} = 'tag' ]
|
||||
then
|
||||
SUFFIX=".github"
|
||||
CSS=images/wivrn-release.css
|
||||
APPNAME="WiVRn"
|
||||
else
|
||||
SUFFIX=".github.testing"
|
||||
CSS=images/wivrn-nightly.css
|
||||
APPNAME="WiVRn Testing"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ${{ github.ref_type }} = 'tag' ]
|
||||
then
|
||||
CSS=images/wivrn-release.css
|
||||
else
|
||||
CSS=images/wivrn-nightly.css
|
||||
fi
|
||||
|
||||
echo Setting version $VERSION and version code $VERSION_CODE in manifest
|
||||
echo Using stylesheet $CSS and name $APPNAME
|
||||
|
||||
|
||||
+1
-1
@@ -239,7 +239,7 @@ FetchContent_Declare(simdjson EXCLUDE_FROM_ALL SYSTEM URL https://github.co
|
||||
FetchContent_Declare(fastgltf EXCLUDE_FROM_ALL SYSTEM URL https://github.com/spnda/fastgltf/archive/refs/tags/v0.9.0.tar.gz
|
||||
URL_HASH SHA256=0bb564e127b14c22f062db50f89381dd2e0a20dbaf4987ca138a4ae8728712f9)
|
||||
FetchContent_Declare(glm EXCLUDE_FROM_ALL SYSTEM URL https://github.com/g-truc/glm/releases/download/1.0.2/glm-1.0.2.zip
|
||||
URL_HASH SHA256=203b64abc82e4d8697cc5aeedc93117fc1ee52d36e7cdcfc0854fa2c607edaae)
|
||||
URL_HASH SHA256=77fff075c5ab0caf076fade41558c5458d9a242aba2b2076bb72008bdb51a35e)
|
||||
FetchContent_Declare(openxr_loader EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.1.54.tar.gz
|
||||
URL_HASH SHA256=2055688081066e37238be996534f349420ac52ed34f8514836704232121ee7f3)
|
||||
FetchContent_Declare(spdlog EXCLUDE_FROM_ALL SYSTEM URL https://github.com/gabime/spdlog/archive/refs/tags/v1.16.0.tar.gz
|
||||
|
||||
@@ -916,7 +916,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
int32_t max_height = 0;
|
||||
for (size_t i = 0; i < view_count; ++i)
|
||||
{
|
||||
extents[i] = defoveator->defoveated_size(foveation[i]);
|
||||
extents[i] = stream_defoveator::defoveated_size(foveation[i]);
|
||||
max_width = std::max(max_width, extents[i].width);
|
||||
max_height = std::max(max_height, extents[i].height);
|
||||
}
|
||||
|
||||
@@ -443,7 +443,7 @@ static uint16_t count_pixels(const std::vector<uint16_t> & param)
|
||||
return res;
|
||||
}
|
||||
|
||||
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
|
||||
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view)
|
||||
{
|
||||
return {
|
||||
count_pixels(view.x),
|
||||
|
||||
@@ -87,5 +87,5 @@ public:
|
||||
const std::array<input, 2> & inputs,
|
||||
int destination);
|
||||
|
||||
XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &) const;
|
||||
static XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &);
|
||||
};
|
||||
|
||||
@@ -207,7 +207,8 @@ static std::optional<std::array<from_headset::hand_tracking::pose, XR_HAND_JOINT
|
||||
for (int i = 0; i < XR_HAND_JOINT_COUNT_EXT; i++)
|
||||
{
|
||||
poses[i] = {
|
||||
.pose = (*joints)[i].first.pose,
|
||||
.position = (*joints)[i].first.pose.position,
|
||||
.orientation = pack((*joints)[i].first.pose.orientation),
|
||||
.linear_velocity = (*joints)[i].second.linearVelocity,
|
||||
.angular_velocity = (*joints)[i].second.angularVelocity,
|
||||
.radius = uint16_t((*joints)[i].first.radius * 10'000),
|
||||
|
||||
+38
-26
@@ -75,11 +75,11 @@ std::string read_vr_manifest(const std::filesystem::path & root)
|
||||
return read_file(root / "config/steamapps.vrmanifest");
|
||||
}
|
||||
|
||||
steam_app_info read_steam_app_info(const std::filesystem::path & root)
|
||||
std::unordered_map<uint32_t, wivrn::steam_icon> safe_read_steam_icons(const std::filesystem::path & root)
|
||||
{
|
||||
try
|
||||
{
|
||||
return steam_app_info{root / "appcache/appinfo.vdf"};
|
||||
return read_steam_icons(root / "appcache/appinfo.vdf");
|
||||
}
|
||||
catch (...)
|
||||
{}
|
||||
@@ -87,14 +87,15 @@ steam_app_info read_steam_app_info(const std::filesystem::path & root)
|
||||
return {};
|
||||
}
|
||||
|
||||
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
|
||||
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const std::unordered_map<uint32_t, wivrn::steam_icon> & info)
|
||||
{
|
||||
const auto & app_info = info.get(app_id);
|
||||
auto icon = info.find(app_id);
|
||||
if (icon == info.end())
|
||||
return std::nullopt;
|
||||
|
||||
try
|
||||
{
|
||||
std::string icon{std::get<std::string_view>(app_info.at("common.clienticon"))};
|
||||
auto icon_path = root / "steam/games" / (icon + ".ico");
|
||||
auto icon_path = root / "steam/games" / (icon->second.clienticon + ".ico");
|
||||
|
||||
if (std::filesystem::exists(icon_path))
|
||||
return icon_path;
|
||||
@@ -105,10 +106,7 @@ std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path
|
||||
|
||||
try
|
||||
{
|
||||
std::string icon{std::get<std::string_view>(app_info.at("common.linuxclienticon"))};
|
||||
|
||||
auto icon_path = root / "steam/games" / (icon + ".zip");
|
||||
|
||||
auto icon_path = root / "steam/games" / (icon->second.linuxclienticon + ".zip");
|
||||
if (std::filesystem::exists(icon_path))
|
||||
return icon_path;
|
||||
}
|
||||
@@ -126,7 +124,7 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
return;
|
||||
|
||||
auto manifest = read_vr_manifest(*root);
|
||||
auto info = read_steam_app_info(*root);
|
||||
auto info = safe_read_steam_icons(*root);
|
||||
|
||||
if (manifest.empty())
|
||||
return;
|
||||
@@ -138,6 +136,11 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
{
|
||||
application app;
|
||||
|
||||
if (i["launch_type"] == "url")
|
||||
app.exec = command + " " + (std::string)i["url"];
|
||||
else
|
||||
continue;
|
||||
|
||||
std::string app_key = i["app_key"];
|
||||
for (auto [locale, items]: i["strings"].items())
|
||||
{
|
||||
@@ -154,21 +157,6 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
app.name[""] = it->second;
|
||||
}
|
||||
|
||||
if (i["launch_type"] == "url")
|
||||
{
|
||||
app.exec = command + " " + (std::string)i["url"];
|
||||
}
|
||||
else if (i["launch_type"] == "binary")
|
||||
{
|
||||
const char prefix[] = "steam.app.";
|
||||
if (app_key.starts_with(prefix))
|
||||
{
|
||||
// ¯\_(ツ)_/¯
|
||||
uint64_t appkey = stoll(app_key.substr(strlen(prefix)));
|
||||
app.exec = command + " steam://rungameid/" + std::to_string((appkey << 32) + 0x2000000);
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
const char prefix[] = "steam.app.";
|
||||
@@ -190,6 +178,30 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
std::cerr << "Failed to parse Steam VR manifest: " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
for (auto const & entry: std::filesystem::directory_iterator{*root / "userdata"})
|
||||
{
|
||||
auto shortcuts_vdf = entry.path() / "config/shortcuts.vdf";
|
||||
if (std::filesystem::exists(shortcuts_vdf))
|
||||
{
|
||||
try
|
||||
{
|
||||
for (auto && item: read_steam_shortcuts(shortcuts_vdf))
|
||||
{
|
||||
res[std::to_string(item.appid)] = {
|
||||
.name = {{"", std::move(item.name)}},
|
||||
// ¯\_(ツ)_/¯
|
||||
.exec = command + " steam://rungameid/" + std::to_string((uint64_t(item.appid) << 32) + 0x2000000),
|
||||
.icon_path = std::move(item.icon),
|
||||
};
|
||||
}
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
std::cerr << "Failed to parse Steam shortcuts file " << shortcuts_vdf << ": " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string unescape(std::string_view in)
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
struct packed_quaternion
|
||||
{
|
||||
uint32_t value;
|
||||
|
||||
static packed_quaternion from_quaternion(const XrQuaternionf & q)
|
||||
{
|
||||
assert(std::abs(q.w * q.w + q.x * q.x + q.y * q.y + q.z * q.z - 1) < 0.01);
|
||||
|
||||
float abs_w = std::abs(q.w);
|
||||
float abs_x = std::abs(q.x);
|
||||
float abs_y = std::abs(q.y);
|
||||
float abs_z = std::abs(q.z);
|
||||
|
||||
const float scale_factor = 511 * std::sqrt(2);
|
||||
|
||||
if (abs_x > std::max({abs_y, abs_z, abs_w}))
|
||||
{
|
||||
uint32_t q1 = q.y * std::copysign(scale_factor, q.x) + 512.5;
|
||||
uint32_t q2 = q.z * std::copysign(scale_factor, q.x) + 512.5;
|
||||
uint32_t q3 = q.w * std::copysign(scale_factor, q.x) + 512.5;
|
||||
|
||||
return {(0 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
else if (abs_y > std::max({abs_x, abs_z, abs_w}))
|
||||
{
|
||||
uint32_t q1 = q.x * std::copysign(scale_factor, q.y) + 512.5;
|
||||
uint32_t q2 = q.z * std::copysign(scale_factor, q.y) + 512.5;
|
||||
uint32_t q3 = q.w * std::copysign(scale_factor, q.y) + 512.5;
|
||||
|
||||
return {(1 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
else if (abs_z > std::max({abs_x, abs_y, abs_w}))
|
||||
{
|
||||
uint32_t q1 = q.x * std::copysign(scale_factor, q.z) + 512.5;
|
||||
uint32_t q2 = q.y * std::copysign(scale_factor, q.z) + 512.5;
|
||||
uint32_t q3 = q.w * std::copysign(scale_factor, q.z) + 512.5;
|
||||
|
||||
return {(2 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t q1 = q.x * std::copysign(scale_factor, q.w) + 512.5;
|
||||
uint32_t q2 = q.y * std::copysign(scale_factor, q.w) + 512.5;
|
||||
uint32_t q3 = q.z * std::copysign(scale_factor, q.w) + 512.5;
|
||||
|
||||
return {(3 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
}
|
||||
|
||||
operator XrQuaternionf() const
|
||||
{
|
||||
const float scale_factor = 1. / (511 * std::sqrt(2));
|
||||
|
||||
float q1 = (int((value >> 20) & 0x3ff) - 512) * scale_factor;
|
||||
float q2 = (int((value >> 10) & 0x3ff) - 512) * scale_factor;
|
||||
float q3 = (int((value >> 0) & 0x3ff) - 512) * scale_factor;
|
||||
float q0 = std::sqrt(1 - q1 * q1 - q2 * q2 - q3 * q3);
|
||||
|
||||
switch (value >> 30)
|
||||
{
|
||||
case 0:
|
||||
return {q0, q1, q2, q3};
|
||||
case 1:
|
||||
return {q1, q0, q2, q3};
|
||||
case 2:
|
||||
return {q1, q2, q0, q3};
|
||||
case 3:
|
||||
return {q1, q2, q3, q0};
|
||||
}
|
||||
|
||||
__builtin_unreachable();
|
||||
}
|
||||
};
|
||||
|
||||
inline packed_quaternion pack(const XrQuaternionf & q)
|
||||
{
|
||||
return packed_quaternion::from_quaternion(q);
|
||||
}
|
||||
+190
-102
@@ -18,169 +18,257 @@
|
||||
|
||||
#include "steam_app_info.h"
|
||||
#include <bit>
|
||||
#include <cctype>
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <span>
|
||||
#include <string_view>
|
||||
#include <iostream>
|
||||
|
||||
namespace
|
||||
{
|
||||
template <typename T>
|
||||
T read(std::span<char> & buffer);
|
||||
|
||||
template <typename T>
|
||||
requires std::is_integral_v<T>
|
||||
T read(std::span<char> & buffer)
|
||||
class binary_reader
|
||||
{
|
||||
if (sizeof(T) > buffer.size())
|
||||
throw std::runtime_error{"File truncated"};
|
||||
std::ifstream in;
|
||||
|
||||
T value;
|
||||
memcpy(&value, buffer.data(), sizeof(T));
|
||||
buffer = buffer.subspan(sizeof(T));
|
||||
public:
|
||||
binary_reader(std::ifstream && in) : in{std::move(in)} {}
|
||||
|
||||
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
|
||||
void discard(size_t bytes)
|
||||
{
|
||||
in.seekg(bytes, std::ios_base::cur);
|
||||
}
|
||||
|
||||
if constexpr (std::endian::native == std::endian::big)
|
||||
return std::byteswap(value);
|
||||
else
|
||||
return value;
|
||||
}
|
||||
template <typename T>
|
||||
T read();
|
||||
|
||||
template <typename T>
|
||||
requires std::is_integral_v<T>
|
||||
T read()
|
||||
{
|
||||
T res;
|
||||
in.read((char *)&res, sizeof(T));
|
||||
if (not in)
|
||||
throw std::runtime_error{"File truncated"};
|
||||
|
||||
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
|
||||
|
||||
if constexpr (std::endian::native == std::endian::big)
|
||||
return std::byteswap(res);
|
||||
else
|
||||
return res;
|
||||
}
|
||||
|
||||
std::vector<std::string> string_table();
|
||||
|
||||
auto tellg()
|
||||
{
|
||||
return in.tellg();
|
||||
}
|
||||
void seekg(size_t pos)
|
||||
{
|
||||
in.seekg(pos);
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
std::string_view read<std::string_view>(std::span<char> & buffer)
|
||||
std::string binary_reader::read()
|
||||
{
|
||||
size_t size = strnlen((char *)buffer.data(), buffer.size());
|
||||
if (size == buffer.size())
|
||||
std::string res;
|
||||
std::getline(in, res, '\0');
|
||||
if (not in)
|
||||
throw std::runtime_error{"File truncated"};
|
||||
|
||||
char * str = buffer.data();
|
||||
buffer = buffer.subspan(size + 1);
|
||||
return {str, size};
|
||||
return res;
|
||||
}
|
||||
|
||||
std::span<char> read(std::span<char> & buffer, size_t size)
|
||||
std::vector<std::string> binary_reader::string_table()
|
||||
{
|
||||
if (size > buffer.size())
|
||||
throw std::runtime_error{"File truncated"};
|
||||
std::vector<std::string> res;
|
||||
size_t string_offset = read<uint64_t>();
|
||||
auto pos = in.tellg();
|
||||
|
||||
std::span<char> value{buffer.data(), size};
|
||||
buffer = buffer.subspan(size);
|
||||
return value;
|
||||
in.seekg(string_offset);
|
||||
auto count = read<uint32_t>();
|
||||
res.reserve(count);
|
||||
for (size_t i = 0; i < count; ++i)
|
||||
res.emplace_back(read<std::string>());
|
||||
in.seekg(pos);
|
||||
return res;
|
||||
}
|
||||
|
||||
std::vector<std::string_view> read_string_table(std::span<char> buffer)
|
||||
template <typename T>
|
||||
void read_dict(binary_reader & in, T & visitor, const std::vector<std::string> * string_table = nullptr)
|
||||
{
|
||||
std::vector<std::string_view> string_table;
|
||||
|
||||
uint32_t count = read<uint32_t>(buffer);
|
||||
string_table.reserve(count);
|
||||
|
||||
for (size_t i = 0; i < count; i++)
|
||||
string_table.emplace_back(read<std::string_view>(buffer));
|
||||
|
||||
return string_table;
|
||||
}
|
||||
|
||||
void read_vdf(wivrn::steam_app_info::info & info, const std::string & prefix, std::span<char> & bindata, const std::vector<std::string_view> & string_table)
|
||||
{
|
||||
int type = read<uint8_t>(bindata);
|
||||
|
||||
while (type != 8)
|
||||
while (true)
|
||||
{
|
||||
std::string name{string_table.at(read<uint32_t>(bindata))};
|
||||
for (char & c: name)
|
||||
c = std::tolower(c);
|
||||
auto type = in.read<uint8_t>();
|
||||
if (type == 8)
|
||||
{
|
||||
visitor.end_dict();
|
||||
return;
|
||||
}
|
||||
|
||||
// https://github.com/ValveResourceFormat/ValveKeyValue/blob/master/ValveKeyValue/ValveKeyValue/KeyValues1/KV1BinaryNodeType.cs
|
||||
// Key
|
||||
const std::string & key = string_table ? string_table->at(in.read<uint32_t>()) : in.read<std::string>();
|
||||
|
||||
// Value
|
||||
switch (type)
|
||||
{
|
||||
case 0: // Dictionary
|
||||
read_vdf(info, prefix + name + ".", bindata, string_table);
|
||||
visitor.begin_dict(key);
|
||||
read_dict(in, visitor, string_table);
|
||||
break;
|
||||
|
||||
case 1: // UTF-8 string
|
||||
info.emplace(prefix + name, read<std::string_view>(bindata));
|
||||
visitor.on_string(key, in.read<std::string>());
|
||||
break;
|
||||
|
||||
case 2: // uint32_t
|
||||
info.emplace(prefix + name, read<uint32_t>(bindata));
|
||||
visitor.on_uint32_t(key, in.read<uint32_t>());
|
||||
break;
|
||||
|
||||
// case 3: // float
|
||||
// break;
|
||||
|
||||
default:
|
||||
throw std::runtime_error{"Unknown object type " + std::to_string(type)};
|
||||
}
|
||||
|
||||
type = read<uint8_t>(bindata);
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
wivrn::steam_app_info::steam_app_info(std::filesystem::path path)
|
||||
std::unordered_map<uint32_t, wivrn::steam_icon> wivrn::read_steam_icons(std::filesystem::path path)
|
||||
{
|
||||
std::vector<std::string_view> string_table;
|
||||
binary_reader in{std::ifstream{path}};
|
||||
|
||||
{
|
||||
std::ifstream f{path};
|
||||
data = std::vector<char>{std::istreambuf_iterator{f}, {}};
|
||||
}
|
||||
std::span<char> buffer = data;
|
||||
|
||||
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#file-header
|
||||
uint32_t magic = read<uint32_t>(buffer);
|
||||
uint32_t magic = in.read<uint32_t>();
|
||||
if ((magic & 0xff'ff'ff'00) != 0x07'56'44'00)
|
||||
throw std::runtime_error{"Wrong magic number"};
|
||||
|
||||
auto universe = in.read<uint32_t>();
|
||||
|
||||
int version = magic & 0xff;
|
||||
|
||||
if (version < 41)
|
||||
throw std::runtime_error{"Unsupported version"};
|
||||
|
||||
int universe = read<uint32_t>(buffer);
|
||||
std::vector<std::string> string_table;
|
||||
std::vector<std::string> * string_table_ptr = nullptr;
|
||||
if (version >= 41)
|
||||
{
|
||||
size_t string_offset = read<uint64_t>(buffer);
|
||||
string_table = read_string_table(std::span<char>{data}.subspan(string_offset));
|
||||
string_table = in.string_table();
|
||||
string_table_ptr = &string_table;
|
||||
}
|
||||
else
|
||||
throw std::runtime_error{"Unsupported version"};
|
||||
|
||||
std::unordered_map<uint32_t, wivrn::steam_icon> res;
|
||||
|
||||
struct V
|
||||
{
|
||||
wivrn::steam_icon current{};
|
||||
|
||||
void begin_dict(const std::string & key)
|
||||
{
|
||||
}
|
||||
void end_dict()
|
||||
{
|
||||
}
|
||||
void on_string(const std::string & key, std::string && val)
|
||||
{
|
||||
if (strcasecmp(key.c_str(), "clienticon") == 0)
|
||||
current.clienticon = std::move(val);
|
||||
else if (strcasecmp(key.c_str(), "linuxclienticon") == 0)
|
||||
current.linuxclienticon = std::move(val);
|
||||
}
|
||||
void on_uint32_t(const std::string & key, uint32_t val)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
while (true)
|
||||
{
|
||||
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#app-entry-repeated
|
||||
|
||||
auto app_id = read<uint32_t>(buffer);
|
||||
auto app_id = in.read<uint32_t>();
|
||||
if (app_id == 0)
|
||||
break;
|
||||
|
||||
auto size_data = read<uint32_t>(buffer);
|
||||
char * current_offset = buffer.data();
|
||||
|
||||
read<uint32_t>(buffer); // info_state
|
||||
read<uint32_t>(buffer); // last_updated
|
||||
read<uint64_t>(buffer); // pics_token
|
||||
read(buffer, 20); // SHA1 of the app info
|
||||
read<uint32_t>(buffer); // change number
|
||||
// if (version < 38)
|
||||
// read<uint8_t>(buffer); // section type
|
||||
read(buffer, 20); // SHA1 of the bin data
|
||||
auto bindata = read(buffer, size_data - (buffer.data() - current_offset));
|
||||
|
||||
size_t size_data = in.read<uint32_t>();
|
||||
size_t pos = in.tellg();
|
||||
in.discard(
|
||||
4 // info_state
|
||||
+ 4 // last_updated
|
||||
+ 8 // pics_token
|
||||
+ 20 // SHA1 of the app info
|
||||
+ 4 // change number
|
||||
+ 20 // SHA1 of the bin data
|
||||
+ 4 // checksum
|
||||
+ 1 // type
|
||||
);
|
||||
try
|
||||
{
|
||||
bindata = bindata.subspan(4 + 1); // Skip the checksum + type (must be 0)
|
||||
|
||||
info app_info;
|
||||
read_vdf(app_info, "", bindata, string_table);
|
||||
|
||||
app_data.emplace(app_id, app_info);
|
||||
V v;
|
||||
read_dict(in, v, string_table_ptr);
|
||||
if (not(v.current.clienticon.empty() and v.current.linuxclienticon.empty()))
|
||||
res.emplace(app_id, std::move(v.current));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
// Ignore errors
|
||||
}
|
||||
in.seekg(pos + size_data);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
std::vector<wivrn::steam_shortcut> wivrn::read_steam_shortcuts(std::filesystem::path path)
|
||||
{
|
||||
binary_reader in{std::ifstream{path}};
|
||||
auto type = in.read<uint8_t>();
|
||||
auto name = in.read<std::string>();
|
||||
|
||||
if (type != 0 or name != "shortcuts")
|
||||
throw std::runtime_error{"Invalid type for shortcuts file"};
|
||||
|
||||
std::vector<wivrn::steam_shortcut> res;
|
||||
struct V
|
||||
{
|
||||
std::vector<wivrn::steam_shortcut> & items;
|
||||
|
||||
int depth = 0;
|
||||
wivrn::steam_shortcut current{};
|
||||
bool VR = false;
|
||||
|
||||
void begin_dict(const std::string & key)
|
||||
{
|
||||
++depth;
|
||||
if (depth == 1)
|
||||
{
|
||||
current = decltype(current){};
|
||||
VR = false;
|
||||
}
|
||||
}
|
||||
void end_dict()
|
||||
{
|
||||
--depth;
|
||||
if (depth == 0)
|
||||
{
|
||||
if (VR)
|
||||
items.push_back(std::move(current));
|
||||
}
|
||||
}
|
||||
void on_string(const std::string & key, std::string && val)
|
||||
{
|
||||
if (depth == 1)
|
||||
{
|
||||
if (strcasecmp(key.c_str(), "AppName") == 0)
|
||||
current.name = std::move(val);
|
||||
else if (strcasecmp(key.c_str(), "icon") == 0 and not val.empty())
|
||||
current.icon = std::move(val);
|
||||
}
|
||||
}
|
||||
void on_uint32_t(const std::string & key, uint32_t val)
|
||||
{
|
||||
if (depth == 1)
|
||||
{
|
||||
if (strcasecmp(key.c_str(), "appid") == 0)
|
||||
current.appid = val;
|
||||
else if (strcasecmp(key.c_str(), "OpenVR") == 0)
|
||||
VR = val;
|
||||
}
|
||||
}
|
||||
} v{res};
|
||||
|
||||
read_dict(in, v);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -19,33 +19,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <optional>
|
||||
#include <unordered_map>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
class steam_app_info
|
||||
|
||||
struct steam_icon
|
||||
{
|
||||
public:
|
||||
using info = std::unordered_map<std::string, std::variant<uint32_t, std::string_view>>;
|
||||
|
||||
private:
|
||||
std::vector<char> data;
|
||||
|
||||
std::unordered_map<int, info> app_data;
|
||||
|
||||
public:
|
||||
steam_app_info(std::filesystem::path path);
|
||||
steam_app_info() = default;
|
||||
steam_app_info(const steam_app_info &) = delete;
|
||||
steam_app_info(steam_app_info &&) = default;
|
||||
steam_app_info & operator=(const steam_app_info &) = delete;
|
||||
steam_app_info & operator=(steam_app_info &&) = default;
|
||||
|
||||
const auto & get(int appid) const
|
||||
{
|
||||
return app_data.at(appid);
|
||||
}
|
||||
std::string clienticon;
|
||||
std::string linuxclienticon;
|
||||
};
|
||||
|
||||
struct steam_shortcut
|
||||
{
|
||||
uint32_t appid;
|
||||
std::string name;
|
||||
std::optional<std::filesystem::path> icon;
|
||||
};
|
||||
|
||||
std::unordered_map<uint32_t, steam_icon> read_steam_icons(std::filesystem::path path);
|
||||
std::vector<steam_shortcut> read_steam_shortcuts(std::filesystem::path path);
|
||||
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
#include "packed_quaternion.h"
|
||||
#include "smp.h"
|
||||
#include "wivrn_serialization_types.h"
|
||||
|
||||
@@ -372,7 +373,8 @@ struct hand_tracking
|
||||
};
|
||||
struct pose
|
||||
{
|
||||
XrPosef pose;
|
||||
XrVector3f position;
|
||||
packed_quaternion orientation;
|
||||
XrVector3f linear_velocity;
|
||||
XrVector3f angular_velocity;
|
||||
// In order to avoid packet fragmentation
|
||||
|
||||
+15
-15
@@ -308,29 +308,29 @@ wivrn::deserialization_packet wivrn::UDP::receive_raw()
|
||||
|
||||
static const size_t message_size = 2048;
|
||||
static const size_t num_messages = 20;
|
||||
if ((not buffer) or buffer.use_count() > 1)
|
||||
{
|
||||
#if defined(__cpp_lib_smart_ptr_for_overwrite) && __cpp_lib_smart_ptr_for_overwrite >= 202002L
|
||||
buffer = std::make_shared_for_overwrite<uint8_t[]>(message_size * num_messages);
|
||||
buffer = std::make_shared_for_overwrite<uint8_t[]>(message_size * num_messages);
|
||||
#else
|
||||
buffer.reset(new uint8_t[message_size * num_messages]);
|
||||
buffer.reset(new uint8_t[message_size * num_messages]);
|
||||
#endif
|
||||
std::vector<iovec> iovecs;
|
||||
std::vector<mmsghdr> mmsgs;
|
||||
iovecs.reserve(num_messages);
|
||||
mmsgs.reserve(num_messages);
|
||||
}
|
||||
std::array<iovec, num_messages> iovecs;
|
||||
std::array<mmsghdr, num_messages> mmsgs;
|
||||
for (size_t i = 0; i < num_messages; ++i)
|
||||
{
|
||||
iovecs.push_back({
|
||||
iovecs[i] = {
|
||||
.iov_base = buffer.get() + message_size * i,
|
||||
.iov_len = message_size,
|
||||
});
|
||||
};
|
||||
|
||||
mmsgs.push_back(
|
||||
{
|
||||
.msg_hdr = {
|
||||
.msg_iov = &iovecs.back(),
|
||||
.msg_iovlen = 1,
|
||||
},
|
||||
});
|
||||
mmsgs[i] = {
|
||||
.msg_hdr = {
|
||||
.msg_iov = &iovecs[i],
|
||||
.msg_iovlen = 1,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
int received = recvmmsg(fd, mmsgs.data(), num_messages, MSG_DONTWAIT, nullptr);
|
||||
|
||||
+3
-6
@@ -20,12 +20,6 @@ int main(int argc, char * argv[])
|
||||
QApplication app(argc, argv);
|
||||
KLocalizedString::setApplicationDomain("wivrn-dashboard");
|
||||
app.setOrganizationName(QStringLiteral("wivrn"));
|
||||
app.setOrganizationDomain(QStringLiteral("wivrn.github.io"));
|
||||
app.setApplicationName(QStringLiteral("wivrn-dashboard"));
|
||||
app.setDesktopFileName(QStringLiteral("io.github.wivrn.wivrn"));
|
||||
app.setApplicationVersion(QString(wivrn::git_version));
|
||||
|
||||
app.setApplicationDisplayName(i18n("WiVRn dashboard"));
|
||||
|
||||
KAboutData aboutData(
|
||||
QStringLiteral("wivrn-dashboard"),
|
||||
@@ -35,6 +29,9 @@ int main(int argc, char * argv[])
|
||||
KAboutLicense::GPL_V3,
|
||||
i18n("(c) 2022-2026 WiVRn development team"));
|
||||
|
||||
aboutData.setDesktopFileName(QStringLiteral("io.github.wivrn.wivrn"));
|
||||
aboutData.setOrganizationDomain("wivrn.github.io");
|
||||
|
||||
aboutData.setHomepage("https://github.com/WiVRn/WiVRn");
|
||||
aboutData.setBugAddress("https://github.com/WiVRn/WiVRn/issues");
|
||||
aboutData.setProgramLogo(QIcon(":/qml/wivrn.svg"));
|
||||
|
||||
@@ -0,0 +1,509 @@
|
||||
# Debugging WiVRn
|
||||
|
||||
This guide covers debugging techniques for WiVRn, including log collection, crash analysis, performance profiling, and common troubleshooting scenarios.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Prerequisites](#prerequisites)
|
||||
- [Collecting Logs](#collecting-logs)
|
||||
- [HMD Client Logs](#hmd-client-logs)
|
||||
- [Server Logs](#server-logs)
|
||||
- [Starting Components for Debugging](#starting-components-for-debugging)
|
||||
- [HMD Client](#hmd-client)
|
||||
- [Server](#server)
|
||||
- [XR Applications](#xr-applications)
|
||||
- [Crash Debugging](#crash-debugging)
|
||||
- [Server Crashes](#server-crashes)
|
||||
- [HMD Client Crashes](#hmd-client-crashes)
|
||||
- [Performance Debugging](#performance-debugging)
|
||||
- [Timing Analysis](#timing-analysis)
|
||||
- [Perfetto Profiling](#perfetto-profiling)
|
||||
- [USB Tunneling](#usb-tunneling)
|
||||
- [Game Debugging](#game-debugging)
|
||||
- [Environment Variables Reference](#environment-variables-reference)
|
||||
- [Configuration Files](#configuration-files)
|
||||
- [External Resources](#external-resources)
|
||||
- [Remote Native Debugging (Advanced)](#remote-native-debugging-advanced)
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### ADB Setup
|
||||
|
||||
The Android Debug Bridge ([ADB](https://developer.android.com/tools/adb)) is required for debugging the HMD client. Connect your headset to your PC via a USB data cable and authorize the connection when prompted in the HMD.
|
||||
|
||||
### Clean Installation
|
||||
|
||||
When debugging, ensure the HMD client matches the server version. Perform a clean reinstall:
|
||||
|
||||
```bash
|
||||
# Find and uninstall existing installation
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb uninstall ${WIVRN_PKG}
|
||||
|
||||
# Install the debug APK
|
||||
adb install /path/to/wivrn-standard-debug.apk
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Collecting Logs
|
||||
|
||||
### HMD Client Logs
|
||||
|
||||
The primary method to collect logs from the HMD is through [ADB logcat](https://developer.android.com/tools/logcat).
|
||||
|
||||
Watch for crashes (FATAL priority):
|
||||
|
||||
```bash
|
||||
adb logcat '*:F'
|
||||
```
|
||||
|
||||
Record ERROR and above:
|
||||
|
||||
```bash
|
||||
adb logcat '*:E' | tee -a errors-$(date "+%Y-%m-%d-%H").log
|
||||
```
|
||||
|
||||
WiVRn-only logs (verbose):
|
||||
|
||||
```bash
|
||||
adb logcat '*:S' WiVRn:V
|
||||
```
|
||||
|
||||
Watch WiVRn client logs:
|
||||
|
||||
```bash
|
||||
adb logcat | grep WiVRn
|
||||
```
|
||||
|
||||
Watch Android system logs related to WiVRn:
|
||||
|
||||
```bash
|
||||
adb logcat | grep wivrn
|
||||
```
|
||||
|
||||
### Server Logs
|
||||
|
||||
Start the server with debug logging enabled:
|
||||
|
||||
```bash
|
||||
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug wivrn-server
|
||||
```
|
||||
|
||||
To also dump video frames for analysis:
|
||||
|
||||
```bash
|
||||
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug WIVRN_DUMP_VIDEO=/tmp/video-dump wivrn-server
|
||||
```
|
||||
|
||||
The video dump can be played back with `mpv` or other media players to verify what video was being sent to the HMD.
|
||||
|
||||
There will be multiple files in the directory, one for each video stream per codec. For example, `/tmp/video-dump-0.h264`.
|
||||
|
||||
---
|
||||
|
||||
## Starting Components for Debugging
|
||||
|
||||
### HMD Client
|
||||
|
||||
The package name varies by build variant:
|
||||
- `org.meumeu.wivrn` - for app store builds
|
||||
- `org.meumeu.wivrn.github` - for GitHub release builds
|
||||
- `org.meumeu.wivrn.local` - for locally built APK
|
||||
- `org.meumeu.wivrn.github.testing` - for CI runs
|
||||
- `org.meumeu.wivrn.github.nightly` - for APK repo
|
||||
|
||||
Find your installed package with:
|
||||
|
||||
```bash
|
||||
adb shell pm list packages | grep wivrn
|
||||
```
|
||||
|
||||
Start via ADB:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb shell am start ${WIVRN_PKG}/org.meumeu.wivrn.MainActivity
|
||||
```
|
||||
|
||||
Connect to a specific server:
|
||||
|
||||
Replace `ADDRESS=localhost` with the address of the server you want to connect to.
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
ADDRESS=localhost
|
||||
adb shell am start -a android.intent.action.VIEW -d "wivrn://${ADDRESS}" ${WIVRN_PKG}
|
||||
```
|
||||
|
||||
Stop the client:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb shell am force-stop ${WIVRN_PKG}
|
||||
```
|
||||
|
||||
### Server
|
||||
|
||||
Start the server with debug logging:
|
||||
|
||||
```bash
|
||||
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug wivrn-server
|
||||
```
|
||||
|
||||
The server will publish itself on the network via mDNS/Zeroconf for discovery by the HMD client.
|
||||
|
||||
### XR Applications
|
||||
|
||||
Basic OpenXR application:
|
||||
|
||||
```bash
|
||||
xrgears
|
||||
```
|
||||
|
||||
To run Steam games via OpenVR, make sure to add the Steam launch options presented by the server output or in the dashboard. This is required to configure the OpenVR runtime correctly.
|
||||
|
||||
Some games have options to control window behavior. Try adding `-windowed` or `-window -w 1280 -h 1024` to the game launch options to allow moving/resizing the local render window. Each game may have different options, check the game's documentation.
|
||||
|
||||
> Note: Games linked to OpenVR require [OpenComposite](https://gitlab.com/znixian/OpenOVR) or [xrizer](https://github.com/Supreeeme/xrizer) to translate calls to OpenXR.
|
||||
|
||||
---
|
||||
|
||||
## Crash Debugging
|
||||
|
||||
### Server Crashes
|
||||
|
||||
#### Systemd
|
||||
|
||||
Core dumps are managed by [systemd-coredump](https://www.freedesktop.org/software/systemd/man/latest/coredumpctl.html).
|
||||
|
||||
View the most recent crash:
|
||||
|
||||
```bash
|
||||
coredumpctl info
|
||||
```
|
||||
|
||||
Start a debugger on the most recent crash:
|
||||
|
||||
```bash
|
||||
coredumpctl -1 debug
|
||||
```
|
||||
|
||||
Inside GDB/LLDB:
|
||||
|
||||
```
|
||||
# Select frame 2
|
||||
f 2
|
||||
|
||||
# View local variables
|
||||
info locals
|
||||
|
||||
# Print backtrace
|
||||
bt
|
||||
```
|
||||
|
||||
#### Non-Systemd Systems
|
||||
|
||||
On systems without systemd-coredump, core dumps are handled by the kernel directly.
|
||||
|
||||
Check where core dumps are written:
|
||||
|
||||
```bash
|
||||
cat /proc/sys/kernel/core_pattern
|
||||
```
|
||||
|
||||
To set a simple core pattern:
|
||||
|
||||
```bash
|
||||
sudo sysctl -w kernel.core_pattern=/tmp/core.%e.%p.%t
|
||||
```
|
||||
|
||||
This writes cores to `/tmp/` with the format `core.<executable>.<pid>.<timestamp>`.
|
||||
|
||||
Analyze a core dump with GDB:
|
||||
|
||||
```bash
|
||||
gdb /usr/bin/wivrn-server /tmp/core.wivrn-server.12345.1706234567
|
||||
```
|
||||
|
||||
Inside GDB:
|
||||
|
||||
```
|
||||
# Print backtrace
|
||||
bt
|
||||
|
||||
# View all threads
|
||||
info threads
|
||||
|
||||
# Switch to thread 2
|
||||
thread 2
|
||||
|
||||
# Print backtrace for all threads
|
||||
thread apply all bt
|
||||
```
|
||||
|
||||
### HMD Client Crashes
|
||||
|
||||
Copy the traceback from the HMD logs using logcat:
|
||||
|
||||
```bash
|
||||
adb logcat '*:F' | grep -A 50 wivrn
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Performance Debugging
|
||||
|
||||
### Timing Analysis
|
||||
|
||||
WiVRn can record detailed timing information for analysis.
|
||||
|
||||
Capture timing data:
|
||||
|
||||
```bash
|
||||
WIVRN_DUMP_TIMINGS=/tmp/wivrn-timings.csv wivrn-server
|
||||
```
|
||||
|
||||
### Perfetto Profiling
|
||||
|
||||
[Perfetto](https://perfetto.dev/) provides detailed system-wide profiling.
|
||||
|
||||
#### HMD Profiling
|
||||
|
||||
Enable persistent tracing on Android:
|
||||
|
||||
```bash
|
||||
adb shell setprop persist.traced.enable 1
|
||||
```
|
||||
|
||||
Open the [Perfetto UI](https://ui.perfetto.dev/), connect to your device, and configure tracing as needed.
|
||||
|
||||
See the [Android tracing quickstart](https://perfetto.dev/docs/quickstart/android-tracing) for detailed instructions.
|
||||
|
||||
#### Server Profiling
|
||||
|
||||
Ensure WiVRn is built with `XRT_FEATURE_TRACING=ON` to enable [Monado tracing with Perfetto](https://monado.pages.freedesktop.org/monado/tracing-perfetto.html).
|
||||
|
||||
Start with tracing enabled:
|
||||
|
||||
```bash
|
||||
XRT_TRACING=true wivrn-server
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## USB Tunneling
|
||||
|
||||
For debugging network issues or testing with a wired connection, you can tunnel WiVRn over USB.
|
||||
|
||||
Set up the tunnel and connect:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb reverse tcp:9757 tcp:9757
|
||||
adb shell am start -a android.intent.action.VIEW -d "wivrn+tcp://localhost:9757" ${WIVRN_PKG}
|
||||
```
|
||||
|
||||
You are also able to make this connection through the dashboard.
|
||||
|
||||
---
|
||||
|
||||
## Game Debugging
|
||||
|
||||
### Proton/Wine Games
|
||||
|
||||
Enable additional logging for Windows compatibility layers:
|
||||
|
||||
```
|
||||
PROTON_LOG=1 WINEDEBUG=vrclient,openxr,steam %command%
|
||||
```
|
||||
|
||||
### OpenComposite
|
||||
|
||||
For games using OpenVR, and you are using [OpenComposite](https://gitlab.com/znixian/OpenOVR) to translate calls to OpenXR.
|
||||
|
||||
The OpenComposite log can be found at `$HOME/.local/state/OpenComposite/logs/opencomposite.log`.
|
||||
|
||||
### XRizer
|
||||
|
||||
To debug [xrizer](https://github.com/Supreeeme/xrizer), you can set the `RUST_LOG` environment variable to control the log level.
|
||||
|
||||
| Variable | Description | Default |
|
||||
|------------|-----------------------------------------------------------------------------|---------|
|
||||
| `RUST_LOG` | Configures the logging level for Rust applications. Accepts a comma-separated list of directives in the format `module::path=level`, where `level` can be `error`, `warn`, `info`, `debug`, or `trace`. For example, `RUST_LOG=info,my_crate=debug` sets the global level to `info` and the `my_crate` module to `debug`. | `warn` |
|
||||
|
||||
In xrizer, `RUST_LOG` follows the standard [`env_logger` semantics](https://docs.rs/env_logger/latest/env_logger/#enabling-logging) described above. In addition, xrizer defines the following useful nonstandard logging targets:
|
||||
|
||||
| Logging Target | Description |
|
||||
|-----------------|-------------|
|
||||
| `openvr_calls` | Logs the name of each OpenVR function as they are called |
|
||||
| `tracked_property` | Logs the name and device index of each requested tracked device property |
|
||||
|
||||
The log is located at `$XDG_STATE_HOME/xrizer/xrizer.txt`, or `$HOME/.local/state/xrizer/xrizer.txt` if `$XDG_STATE_HOME` is not set.
|
||||
|
||||
---
|
||||
|
||||
## Environment Variables Reference
|
||||
|
||||
### Compositor Settings
|
||||
|
||||
| Variable | Description | Default |
|
||||
|----------|-------------|---------|
|
||||
| `XRT_LOG` | Log level (`trace`, `debug`, `info`, `warn`, `error`) | `warn` |
|
||||
| `XRT_COMPOSITOR_LOG` | Compositor log level (`trace`, `debug`, `info`, `warn`, `error`) | `info` |
|
||||
| `OXR_VIEWPORT_SCALE_PERCENTAGE` | Per-application viewport scale (set on application, not server) | `100` |
|
||||
|
||||
### Debugging
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `WIVRN_DUMP_VIDEO` | Path to dump video frames (e.g., `/tmp/video-dump`) |
|
||||
| `WIVRN_DUMP_TIMINGS` | Path to dump timing CSV (e.g., `/tmp/wivrn-timings.csv`) |
|
||||
| `WIVRN_LOGLEVEL` | Log level for the native client |
|
||||
| `WIVRN_AUTOCONNECT` | Auto-connect to the first discovered server |
|
||||
| `XRT_TRACING` | Enable Perfetto tracing (`true`/`false`) |
|
||||
|
||||
### Vulkan
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `VK_INSTANCE_LAYERS` | Vulkan validation layers (e.g., `VK_LAYER_KHRONOS_validation`) |
|
||||
|
||||
### OpenXR
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `XR_RUNTIME_JSON` | Path to OpenXR runtime configuration |
|
||||
|
||||
See also the [Monado compositor documentation](https://monado.freedesktop.org/getting-started.html#compositor) for additional options.
|
||||
|
||||
---
|
||||
|
||||
## Configuration Files
|
||||
|
||||
### OpenXR Runtime Configuration
|
||||
|
||||
Active runtime symlink:
|
||||
|
||||
```bash
|
||||
ls -la $HOME/.config/openxr/1/active_runtime.json
|
||||
```
|
||||
|
||||
Should point to `/usr/share/openxr/1/openxr_wivrn.json` or similar.
|
||||
|
||||
Check runtime configuration:
|
||||
|
||||
```bash
|
||||
cat /usr/share/openxr/1/openxr_wivrn.json
|
||||
```
|
||||
|
||||
Example output:
|
||||
|
||||
```json
|
||||
{
|
||||
"file_format_version": "1.0.0",
|
||||
"runtime": {
|
||||
"name": "Monado",
|
||||
"library_path": "../../../lib64/wivrn/libopenxr_wivrn.so",
|
||||
"MND_libmonado_path": "../../../lib64/wivrn/libmonado_wivrn.so"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Verify library dependencies:
|
||||
|
||||
```bash
|
||||
pushd /usr/share/openxr/1/
|
||||
ldd ../../../lib64/wivrn/libopenxr_wivrn.so
|
||||
popd
|
||||
```
|
||||
|
||||
### WiVRn Server Configuration
|
||||
|
||||
See [docs/configuration.md](configuration.md).
|
||||
|
||||
---
|
||||
|
||||
## External Resources
|
||||
|
||||
### Tools and Documentation
|
||||
|
||||
- [ADB Documentation](https://developer.android.com/tools/adb) - Android Debug Bridge
|
||||
- [ADB Logcat](https://developer.android.com/tools/logcat) - Log filtering and analysis
|
||||
- [coredumpctl](https://www.freedesktop.org/software/systemd/man/latest/coredumpctl.html) - Core dump management
|
||||
- [Perfetto](https://perfetto.dev/docs/) - System profiling and tracing
|
||||
- [Perfetto UI](https://ui.perfetto.dev/) - Web-based trace viewer
|
||||
|
||||
### Monado/OpenXR
|
||||
|
||||
- [Monado Getting Started](https://monado.freedesktop.org/getting-started.html) - Compositor configuration
|
||||
- [Monado Tracing with Perfetto](https://monado.pages.freedesktop.org/monado/tracing-perfetto.html) - Server-side tracing
|
||||
- [OpenXR](https://www.khronos.org/openxr/) - Khronos OpenXR standard
|
||||
- [xrgears](https://github.com/ila-embsys/monado_demo_xrgears) - OpenXR test application
|
||||
|
||||
### Gaming
|
||||
|
||||
- [OpenComposite](https://gitlab.com/znixian/OpenOVR) - OpenVR to OpenXR translation
|
||||
- [xrizer](https://github.com/Supreeeme/xrizer) - OpenVR to OpenXR translation layer (Rust)
|
||||
|
||||
### Rust
|
||||
|
||||
- [env_logger](https://docs.rs/env_logger/latest/env_logger/#enabling-logging) - Rust logging configuration via RUST_LOG
|
||||
|
||||
### Android Debugging
|
||||
|
||||
- [Android NDK Debugging](https://developer.android.com/ndk/guides/ndk-gdb) - Native debugging with ndk-gdb
|
||||
- [Android Tracing Quickstart](https://perfetto.dev/docs/quickstart/android-tracing) - Perfetto on Android
|
||||
|
||||
---
|
||||
|
||||
## Remote Native Debugging (Advanced)
|
||||
|
||||
This section covers attaching a native debugger to the HMD client remotely. This requires the Android NDK and familiarity with LLDB/GDB.
|
||||
|
||||
Start the client with debugging enabled:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb shell am start -D ${WIVRN_PKG}/org.meumeu.wivrn.MainActivity
|
||||
```
|
||||
|
||||
Set up LLDB debugging:
|
||||
|
||||
1. Push the LLDB server to the device:
|
||||
|
||||
```bash
|
||||
adb shell "mkdir -p /data/local/tmp/tools"
|
||||
adb push "$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/*/lib/linux/aarch64/lldb-server" /data/local/tmp/tools/
|
||||
```
|
||||
|
||||
2. Start the LLDB server on the device:
|
||||
|
||||
```bash
|
||||
adb shell /data/local/tmp/tools/lldb-server platform --server --listen '*:5039'
|
||||
```
|
||||
|
||||
3. Forward the port:
|
||||
|
||||
```bash
|
||||
adb forward tcp:5039 tcp:5039
|
||||
```
|
||||
|
||||
4. Connect from your host:
|
||||
|
||||
```bash
|
||||
lldb
|
||||
(lldb) platform select remote-android
|
||||
(lldb) platform connect connect://localhost:5039
|
||||
```
|
||||
|
||||
Resume the app (required for `-D` flag):
|
||||
|
||||
```bash
|
||||
adb forward tcp:12345 jdwp:$(adb shell pidof ${WIVRN_PKG})
|
||||
jdb -attach localhost:12345
|
||||
```
|
||||
|
||||
See the [Android NDK debugging guide](https://developer.android.com/ndk/guides/ndk-gdb) for more details.
|
||||
Generated
+9
-9
@@ -5,11 +5,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1756770412,
|
||||
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
|
||||
"lastModified": 1768135262,
|
||||
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "4524271976b625a4a605beefd893f270620fd751",
|
||||
"rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1758690382,
|
||||
"narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=",
|
||||
"lastModified": 1767892417,
|
||||
"narHash": "sha256-dhhvQY67aboBk8b0/u0XB6vwHdgbROZT3fJAjyNh5Ww=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e643668fd71b949c53f8626614b21ff71a07379d",
|
||||
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -36,11 +36,11 @@
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1754788789,
|
||||
"narHash": "sha256-x2rJ+Ovzq0sCMpgfgGaaqgBSwY+LST+WbZ6TytnT9Rk=",
|
||||
"lastModified": 1765674936,
|
||||
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "a73b9c743612e4244d865a2fdee11865283c04e6",
|
||||
"rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -52,13 +52,13 @@
|
||||
monado = pkgs.applyPatches {
|
||||
inherit (oldAttrs.monado) patches postPatch;
|
||||
# Force a refetch when the monado rev changes.
|
||||
src = pkgs.invalidateFetcherByDrvHash pkgs.fetchFromGitLab {
|
||||
src = pkgs.testers.invalidateFetcherByDrvHash pkgs.fetchFromGitLab {
|
||||
inherit (oldAttrs.monado.src) owner repo;
|
||||
domain = "gitlab.freedesktop.org";
|
||||
# Keep in sync with CMakeLists.txt monado rev
|
||||
rev = builtins.readFile ./monado-rev;
|
||||
rev = lib.strings.trim (builtins.readFile ./monado-rev);
|
||||
# Nix will output the correct hash when it doesn't match
|
||||
hash = "sha256-nlfrx6NRYV9eMs+Rb9JBh+mwucL6v+bB3jBrPsSxh+Q=";
|
||||
hash = "sha256-zU8TLRzd4pb9KzVT/xana6rArcSu31wlCD54p7PJ9UY=";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -72,11 +72,19 @@ modules:
|
||||
sources:
|
||||
- type: git
|
||||
url: https://github.com/crosstool-ng/crosstool-ng.git
|
||||
tag: 70c2b00ad79a0a21a48e5a0eedc9f91c374af21d
|
||||
tag: 620b909cd0713f68084378b63cf61b5232757b90
|
||||
- type: shell
|
||||
commands:
|
||||
# Make the build lighter:
|
||||
# don't generate debug symbols at all
|
||||
- sed -i 's/-O2 -g/-O2/' scripts/crosstool-NG.sh
|
||||
- sed -i 's/-g -O2/-O2/' scripts/build/cc/gcc.sh
|
||||
# Delete extracted sources when no longer needed
|
||||
- sed -i '/# Cleanup/a rm -r "$(readlink "${kernel_path}")"' scripts/build/kernel/linux.sh
|
||||
# Delete tarballs once extracted
|
||||
- sed -i '2228i CT_DoExecLog FILE rm "$(readlink -f "${file}")"' scripts/functions
|
||||
# Delete big test files
|
||||
- sed -i '/CT_ExtractPatch GCC/a CT_Pushd "${CT_SRC_DIR}/gcc/gcc/testsuite/";CT_DoExecLog ALL rm -rf $(ls -1 | grep -v selftests);CT_Popd' scripts/build/cc/gcc.sh
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
@@ -221,7 +229,7 @@ modules:
|
||||
sources:
|
||||
- type: git
|
||||
url: https://gitlab.com/libeigen/eigen.git
|
||||
tag: 3.4.0
|
||||
tag: 5.0.1
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
@@ -248,23 +256,6 @@ modules:
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
- name: libnotify
|
||||
buildsystem: meson
|
||||
config-opts:
|
||||
- -Dtests=false
|
||||
- -Dintrospection=disabled
|
||||
- -Dman=false
|
||||
- -Dgtk_doc=false
|
||||
- -Ddocbook_docs=disabled
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.7.tar.xz
|
||||
sha256: 4be15202ec4184fce1ac15997ece5530d2be32fe9573875aeb10e3b573858748
|
||||
x-checker-data:
|
||||
type: gnome
|
||||
name: libnotify
|
||||
stable-only: true
|
||||
|
||||
- name: qcoro
|
||||
buildsystem: cmake-ninja
|
||||
config-opts:
|
||||
|
||||
+118
-48
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 11:28+0100\n"
|
||||
"POT-Creation-Date: 2026-01-07 09:11+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:20+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
@@ -69,10 +69,39 @@ msgstr "El comando 'adb install' falló: código de salida %1"
|
||||
msgid "Installation successful"
|
||||
msgstr "Instalación completada con éxito"
|
||||
|
||||
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
|
||||
#: dashboard/main.cpp:26
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "Panel de control de WiVRn"
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:28
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "Servidor WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:30
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 Equipo de desarrollo de WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:40
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:41
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "Motor de OpenXR"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Volver"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
@@ -90,8 +119,8 @@ msgstr "Comprobando la última versión..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "No hay ningún APK disponible para esta versión"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
|
||||
#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
|
||||
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
@@ -114,13 +143,6 @@ msgstr ""
|
||||
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentación</a> "
|
||||
"para compilar tu propio cliente."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Volver"
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
@@ -141,7 +163,7 @@ msgstr "Reinstalar WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Instalar WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Visores"
|
||||
@@ -238,28 +260,33 @@ msgstr "Emparejar un nuevo visor"
|
||||
msgid "Headset statistics"
|
||||
msgstr "Estadísticas del visor"
|
||||
|
||||
#: dashboard/qml/Main.qml:120
|
||||
#: dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "Panel de control de WiVRn"
|
||||
|
||||
#: dashboard/qml/Main.qml:124
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "El servicio Avahi no está instalado"
|
||||
|
||||
#: dashboard/qml/Main.qml:128
|
||||
#: dashboard/qml/Main.qml:132
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "El servicio Avahi no está iniciado"
|
||||
|
||||
#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
|
||||
#: dashboard/qml/Main.qml:205
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Arreglarlo"
|
||||
|
||||
#: dashboard/qml/Main.qml:143
|
||||
#: dashboard/qml/Main.qml:147
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "El firewall podría no permitir el puerto 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:157
|
||||
#: dashboard/qml/Main.qml:161
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
@@ -267,12 +294,12 @@ msgstr ""
|
||||
"Las GPU NVIDIA requieren al menos la versión 565.77 del controlador, la "
|
||||
"versión actual es %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:163
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Más información"
|
||||
|
||||
#: dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -281,7 +308,7 @@ msgstr ""
|
||||
"Usa el controlador Mesa (radv) para las GPU AMD\n"
|
||||
"La codificación por hardware con vaapi no funciona con AMDVLK y AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -291,97 +318,131 @@ msgstr ""
|
||||
"en VR.\n"
|
||||
"Instala xrizer o OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:187
|
||||
#: dashboard/qml/Main.qml:191
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr ""
|
||||
"Steam está instalado mediante snap. Los Snaps no son compatibles con WiVRn."
|
||||
|
||||
#: dashboard/qml/Main.qml:195
|
||||
#: dashboard/qml/Main.qml:199
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr ""
|
||||
"Steam está instalado con flatpak, pero no tiene los suficientes permisos."
|
||||
|
||||
#: dashboard/qml/Main.qml:210
|
||||
#: dashboard/qml/Main.qml:214
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "Reinicia el servidor para que los cambios surtan efecto"
|
||||
|
||||
#: dashboard/qml/Main.qml:216
|
||||
#: dashboard/qml/Main.qml:220
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Reiniciar ahora"
|
||||
|
||||
#: dashboard/qml/Main.qml:241
|
||||
#: dashboard/qml/Main.qml:245
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "El servidor no pudo iniciar"
|
||||
|
||||
#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
|
||||
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Abrir registros del servidor"
|
||||
|
||||
#: dashboard/qml/Main.qml:276
|
||||
#: dashboard/qml/Main.qml:277
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "Estado del servidor"
|
||||
|
||||
#: dashboard/qml/Main.qml:283
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "En ejecución"
|
||||
|
||||
#: dashboard/qml/Main.qml:291
|
||||
#: dashboard/qml/Main.qml:296
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Emparejando"
|
||||
|
||||
#: dashboard/qml/Main.qml:304
|
||||
#: dashboard/qml/Main.qml:316
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "PIN: %1"
|
||||
msgid "Headset status"
|
||||
msgstr "Estado del visor"
|
||||
|
||||
#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
|
||||
#: dashboard/qml/Main.qml:323
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Conectar por USB"
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "Visor"
|
||||
|
||||
#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
|
||||
#: dashboard/qml/Main.qml:326
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "No hay ningún visor conectado o tu visor no está en modo desarrollador"
|
||||
msgid "Not connected"
|
||||
msgstr "No conectado"
|
||||
|
||||
#: dashboard/qml/Main.qml:331
|
||||
#: dashboard/qml/Main.qml:330
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:340
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "Conectar (cableado)"
|
||||
|
||||
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "No hay ningún visor conectado o tu visor no está en modo desarrollador"
|
||||
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Información de Steam"
|
||||
|
||||
#: dashboard/qml/Main.qml:370
|
||||
#: dashboard/qml/Main.qml:394
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Asistente"
|
||||
|
||||
#: dashboard/qml/Main.qml:377
|
||||
#: dashboard/qml/Main.qml:400
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Instalar aplicación"
|
||||
|
||||
#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:425
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Solucionar problemas"
|
||||
|
||||
#: dashboard/qml/Main.qml:437
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "Versión %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
@@ -832,6 +893,11 @@ msgstr ""
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "Para conectarte por USB, haz clic en \"Conectar por USB\"."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Conectar por USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
@@ -880,16 +946,20 @@ msgstr "Finalizar"
|
||||
msgid "Finished"
|
||||
msgstr "Terminado"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#: dashboard/wivrn_server.cpp:538
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#: dashboard/wivrn_server.cpp:539
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "PIN: %1"
|
||||
#~ msgstr "PIN: %1"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "automatically started application"
|
||||
#~ msgid "Application"
|
||||
|
||||
+128
-99
@@ -5,7 +5,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 17:16+0100\n"
|
||||
"POT-Creation-Date: 2025-12-29 15:56+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:23+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
@@ -70,11 +70,11 @@ msgstr "No se puede conectar a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Esperando conexión"
|
||||
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
msgid "Passthrough"
|
||||
msgstr "Exterior"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
msgid "Default environment"
|
||||
msgstr "Entorno por defecto"
|
||||
|
||||
@@ -98,9 +98,9 @@ msgstr "Deshabilitado"
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
|
||||
#: client/scenes/lobby_gui_customize.cpp:840
|
||||
#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
msgid "Close"
|
||||
msgstr "Cerrar"
|
||||
|
||||
@@ -137,7 +137,7 @@ msgstr "Puerto"
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
@@ -183,17 +183,17 @@ msgstr "Idioma"
|
||||
msgid "System language"
|
||||
msgstr "Idioma del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frecuencia de actualización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automática"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -202,121 +202,137 @@ msgstr ""
|
||||
"aplicación.\n"
|
||||
"Puede causar parpadeos cuando ocurre un cambio."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Tasa mínima de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:631
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
msgid "Foveation level"
|
||||
msgstr "Nivel de fóvea"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:654
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Render resolution"
|
||||
msgstr "Resolución de renderizado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:658
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - {}x{} por ojo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:669
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:679
|
||||
msgid "Stream resolution"
|
||||
msgstr "Resolución de la retransmisión"
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Codificación foveada"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Un mayor valor hará que la calidad de la imagen se centre a donde tú mires\n"
|
||||
"mejorando la latencia, eficiencia energética y calidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Un mayor valor hará que la calidad de la imagen se centre en el centro\n"
|
||||
"mejorando la latencia, eficiencia energética y calidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
msgid "10-bit"
|
||||
msgstr "10-bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Bitrate"
|
||||
msgstr "Bitrate"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
msgid "High power mode"
|
||||
msgstr "Modo de alto rendimiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Incrementa el uso de energía para permitir una mayor resolución y frecuencia "
|
||||
"de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activar micrófono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:789
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Entrada de audio sin procesar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:795
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr ""
|
||||
"Forzar la deshabilitación de filtros de audio, asi como la cancelación de "
|
||||
"ruido"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activar seguimiento de manos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
|
||||
#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui_customize.cpp:636
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Esta función no es compatible con tu visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activar seguimiento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activar seguimiento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:840
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Habilitar seguimiento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:854
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -327,11 +343,11 @@ msgstr ""
|
||||
"si no el seguimiento corporal será medido por la posición de los controles y "
|
||||
"el visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:864
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Habilitar seguimiento de cintura para abajo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:870
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -342,11 +358,11 @@ msgstr ""
|
||||
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
|
||||
"movimiento de Quest"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:873
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Habilitar seguimiento de cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:879
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -354,11 +370,11 @@ msgstr ""
|
||||
"Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n"
|
||||
"Puede ser necesario si está usando otro metodo para seguir la cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:895
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar ventana mientras se juega"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -366,15 +382,25 @@ msgstr ""
|
||||
"Permite que la ventana de configuración se muestre mientras se juega.\n"
|
||||
"Si se habilita, la ventana se activará al presionar ambos joysticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Extender valores de configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr ""
|
||||
"Permitir valores de configuración inseguros, usar bajo propia "
|
||||
"responsabilidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-procesamiento de OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
msgid "Supersampling"
|
||||
msgstr "Sobremuestreo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -383,11 +409,11 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
|
||||
msgid "Sharpening"
|
||||
msgstr "Nitidez"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -396,129 +422,129 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
|
||||
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
msgid "CPU time"
|
||||
msgstr "Tiempo de CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1141
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tiempo de CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
msgid "GPU time"
|
||||
msgstr "Tiempo de GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tiempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1219
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "¿Habilitar micrófono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1224
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "¿Habilitar seguimiento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1229
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "¿Habilitar seguimiento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "¿Habilitar seguimiento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1242
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenido a WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1270
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
msgid "Yes"
|
||||
msgstr "Sí"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1277
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
msgid "Licenses"
|
||||
msgstr "Licencias"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1572
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Micrófono activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1573
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Micrófono desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1582
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Seguimiento de manos activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1583
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Seguimiento de manos desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1592
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Seguimiento ocular activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1593
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Seguimiento ocular desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1603
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Seguimiento facial activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1604
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Seguimiento facial desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Seguimiento corporal está habilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Seguimiento corporal está deshabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Add server"
|
||||
msgstr "Agregar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1921
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
msgid "Settings"
|
||||
msgstr "Configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1927
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-procesamiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1930
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
msgid "Customize"
|
||||
msgstr "Personalización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1934
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
msgid "Debug"
|
||||
msgstr "Depuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Exit"
|
||||
msgstr "Salir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1962
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -526,51 +552,51 @@ msgstr ""
|
||||
"Pulsa el botón de agarre o pon tu palma hacia arriba\n"
|
||||
"para mover la ventana principal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Pulsa el botón de agarre para mover la ventana principal"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:208
|
||||
#: client/scenes/lobby_gui_customize.cpp:213
|
||||
msgid "Locally loaded environment"
|
||||
msgstr "Entorno local cargado"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:221
|
||||
#: client/scenes/lobby_gui_customize.cpp:226
|
||||
#, c++-format
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "Entorno local ({}) cargado"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:296
|
||||
#: client/scenes/lobby_gui_customize.cpp:300
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "No se ha podido cargar el entorno local: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:329
|
||||
#: client/scenes/lobby_gui_customize.cpp:333
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "No se ha podido cargar la lista del entorno: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:459
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Autor: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#: client/scenes/lobby_gui_customize.cpp:467
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Tamaño: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:543
|
||||
#: client/scenes/lobby_gui_customize.cpp:547
|
||||
msgid "Delete this model"
|
||||
msgstr "Borrar este modelo"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:579
|
||||
#: client/scenes/lobby_gui_customize.cpp:785
|
||||
#: client/scenes/lobby_gui_customize.cpp:583
|
||||
#: client/scenes/lobby_gui_customize.cpp:789
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Error HTTP {} mientras se descargaba {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:587
|
||||
#: client/scenes/lobby_gui_customize.cpp:793
|
||||
#: client/scenes/lobby_gui_customize.cpp:591
|
||||
#: client/scenes/lobby_gui_customize.cpp:797
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -579,29 +605,29 @@ msgstr ""
|
||||
"Error de Curl mientras se descargaba {}\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:648
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Seguro que quiere borrar {}?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#: client/scenes/lobby_gui_customize.cpp:656
|
||||
msgid "Delete"
|
||||
msgstr "Borrar"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:733
|
||||
#: client/scenes/lobby_gui_customize.cpp:737
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "No se puede cargar el entorno: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:741
|
||||
#: client/scenes/lobby_gui_customize.cpp:745
|
||||
msgid "Loading environment"
|
||||
msgstr "Cargando entorno"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:820
|
||||
#: client/scenes/lobby_gui_customize.cpp:824
|
||||
msgid "Download more environments"
|
||||
msgstr "Descargar más entornos"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:828
|
||||
#: client/scenes/lobby_gui_customize.cpp:832
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Abrir modelo glTF local"
|
||||
|
||||
@@ -778,6 +804,9 @@ msgstr "No se puede verificar el PIN"
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "El emparejamiento está deshabilitado en el servidor"
|
||||
|
||||
#~ msgid "Stream resolution"
|
||||
#~ msgstr "Resolución de la retransmisión"
|
||||
|
||||
#~ msgid "Resolution scale"
|
||||
#~ msgstr "Escala de resolución"
|
||||
|
||||
|
||||
+120
-50
@@ -2,14 +2,14 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the WiVRn-dashboard package.
|
||||
# Jayden Ha <jayden@jaydenha.uk>, 2025.
|
||||
# BERADQ <adqber123@outlook.com>, 2025.
|
||||
# BERADQ <adqber123@outlook.com>, 2025-2026.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 18:28+0800\n"
|
||||
"PO-Revision-Date: 2025-12-14 20:11+0800\n"
|
||||
"POT-Creation-Date: 2026-01-07 16:11+0800\n"
|
||||
"PO-Revision-Date: 2026-01-10 13:46+0800\n"
|
||||
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
|
||||
"Language-Team: Chinese (China)\n"
|
||||
"Language: zh_CN\n"
|
||||
@@ -69,10 +69,39 @@ msgstr "'adb install' 执行失败: 终止代码 %1"
|
||||
msgid "Installation successful"
|
||||
msgstr "安装成功"
|
||||
|
||||
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
|
||||
#: dashboard/main.cpp:26
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "WiVRn 控制面板"
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:28
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "WiVRn 服务端"
|
||||
|
||||
#: dashboard/main.cpp:30
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 WiVRn 开发团队"
|
||||
|
||||
#: dashboard/main.cpp:40
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:41
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "OpenXR 运行时"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "返回"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
@@ -90,8 +119,8 @@ msgstr "正在检查最新版本..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "此版本无预编译 APK"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
|
||||
#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
|
||||
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
@@ -112,13 +141,6 @@ msgstr ""
|
||||
"请按照 <a href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/"
|
||||
"building.md#client-headset\">文档</a>中的说明构建您自己的客户端。"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "返回"
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
@@ -139,7 +161,7 @@ msgstr "重新安装 WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "安装 WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "头显"
|
||||
@@ -230,39 +252,44 @@ msgstr "配对新的头显"
|
||||
msgid "Headset statistics"
|
||||
msgstr "头显统计信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:120
|
||||
#: dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "WiVRn 控制面板"
|
||||
|
||||
#: dashboard/qml/Main.qml:124
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Avahi 守护进程未安装"
|
||||
|
||||
#: dashboard/qml/Main.qml:128
|
||||
#: dashboard/qml/Main.qml:132
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Avahi 守护进程未启用"
|
||||
|
||||
#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
|
||||
#: dashboard/qml/Main.qml:205
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "修复"
|
||||
|
||||
#: dashboard/qml/Main.qml:143
|
||||
#: dashboard/qml/Main.qml:147
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "防火墙可能禁止了端口 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:157
|
||||
#: dashboard/qml/Main.qml:161
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
msgstr "NVIDIA 显卡至少需要驱动程序版本 565.77,目前版本为 %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:163
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "更多信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -271,7 +298,7 @@ msgstr ""
|
||||
"AMD 显卡请使用 Mesa (radv) 驱动程序\n"
|
||||
"使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -280,95 +307,129 @@ msgstr ""
|
||||
"系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n"
|
||||
"请安装 xrizer 或 OpenComposite"
|
||||
|
||||
#: dashboard/qml/Main.qml:187
|
||||
#: dashboard/qml/Main.qml:191
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr "Steam 是以 snap 方式安装的。Snap 与 WiVRn 不兼容。"
|
||||
|
||||
#: dashboard/qml/Main.qml:195
|
||||
#: dashboard/qml/Main.qml:199
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr "Steam 是以 flatpak 方式安装的,但权限不足。"
|
||||
|
||||
#: dashboard/qml/Main.qml:210
|
||||
#: dashboard/qml/Main.qml:214
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "重新启动服务器以使配置更改生效。"
|
||||
|
||||
#: dashboard/qml/Main.qml:216
|
||||
#: dashboard/qml/Main.qml:220
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "立即重新启动"
|
||||
|
||||
#: dashboard/qml/Main.qml:241
|
||||
#: dashboard/qml/Main.qml:245
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "服务器启动失败"
|
||||
|
||||
#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
|
||||
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "开启服务器日志"
|
||||
|
||||
#: dashboard/qml/Main.qml:276
|
||||
#: dashboard/qml/Main.qml:277
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "服务器状态"
|
||||
|
||||
#: dashboard/qml/Main.qml:283
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "运行"
|
||||
|
||||
#: dashboard/qml/Main.qml:291
|
||||
#: dashboard/qml/Main.qml:296
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "配对"
|
||||
|
||||
#: dashboard/qml/Main.qml:304
|
||||
#: dashboard/qml/Main.qml:316
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "身份识别码: %1"
|
||||
msgid "Headset status"
|
||||
msgstr "头显状态"
|
||||
|
||||
#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
|
||||
#: dashboard/qml/Main.qml:323
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "通过 USB 连接"
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "头显"
|
||||
|
||||
#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
|
||||
#: dashboard/qml/Main.qml:326
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "没有检测到头显,或您的头显未启用开发者模式"
|
||||
msgid "Not connected"
|
||||
msgstr "未连接"
|
||||
|
||||
#: dashboard/qml/Main.qml:331
|
||||
#: dashboard/qml/Main.qml:330
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "断开连接"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:340
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "链接 (有线)"
|
||||
|
||||
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "没有检测到头显,或您的头显未启用开发者模式"
|
||||
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Steam 信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:370
|
||||
#: dashboard/qml/Main.qml:394
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "向导"
|
||||
|
||||
#: dashboard/qml/Main.qml:377
|
||||
#: dashboard/qml/Main.qml:400
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "安装应用程序"
|
||||
|
||||
#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "设置"
|
||||
|
||||
#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:425
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "关于"
|
||||
|
||||
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "疑难解答"
|
||||
|
||||
#: dashboard/qml/Main.qml:437
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "版本 %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
@@ -799,6 +860,11 @@ msgstr ""
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "要通过 USB 连接,请点击 \"通过 USB 连接\"。"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "通过 USB 连接"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
@@ -845,16 +911,20 @@ msgstr "完成"
|
||||
msgid "Finished"
|
||||
msgstr "已完成"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#: dashboard/wivrn_server.cpp:538
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#: dashboard/wivrn_server.cpp:539
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "PIN: %1"
|
||||
#~ msgstr "身份识别码: %1"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "automatically started application"
|
||||
#~ msgid "Application"
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
86a0ea4d3e396d4d03274252c400ddb62d1049b0
|
||||
93d5848d2f5f835fe29291dc7e0f094f3e02de78
|
||||
|
||||
@@ -137,10 +137,6 @@ struct pipewire_device : public audio_device
|
||||
// Declare target latency to help PipeWire optimize buffering
|
||||
PW_KEY_NODE_LATENCY,
|
||||
latency_str.c_str(),
|
||||
// Force constant quantum size to prevent dynamic buffer size changes
|
||||
// Variable buffer sizes cause crackling in effect processors (EasyEffects)
|
||||
PW_KEY_NODE_FORCE_QUANTUM,
|
||||
latency_str.c_str(),
|
||||
NULL),
|
||||
&speaker_events,
|
||||
this));
|
||||
@@ -154,6 +150,19 @@ struct pipewire_device : public audio_device
|
||||
.channels = desc.speaker->num_channels,
|
||||
};
|
||||
|
||||
switch (audio_info.channels)
|
||||
{
|
||||
case 1:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_MONO;
|
||||
break;
|
||||
case 2:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_FL;
|
||||
audio_info.position[1] = SPA_AUDIO_CHANNEL_FR;
|
||||
break;
|
||||
default:
|
||||
U_LOG_W("No known audio mapping for %d channels speaker", audio_info.channels);
|
||||
}
|
||||
|
||||
const spa_pod * params[1];
|
||||
params[0] = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &audio_info);
|
||||
|
||||
@@ -210,9 +219,6 @@ struct pipewire_device : public audio_device
|
||||
// Declare target latency to help PipeWire optimize buffering
|
||||
PW_KEY_NODE_LATENCY,
|
||||
latency_str.c_str(),
|
||||
// Force constant quantum size to prevent dynamic buffer size changes
|
||||
PW_KEY_NODE_FORCE_QUANTUM,
|
||||
latency_str.c_str(),
|
||||
NULL),
|
||||
&mic_events,
|
||||
this));
|
||||
@@ -225,6 +231,19 @@ struct pipewire_device : public audio_device
|
||||
.channels = desc.microphone->num_channels,
|
||||
};
|
||||
|
||||
switch (audio_info.channels)
|
||||
{
|
||||
case 1:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_MONO;
|
||||
break;
|
||||
case 2:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_FL;
|
||||
audio_info.position[1] = SPA_AUDIO_CHANNEL_FR;
|
||||
break;
|
||||
default:
|
||||
U_LOG_W("No known audio mapping for %d channels microphone", audio_info.channels);
|
||||
}
|
||||
|
||||
const spa_pod * params[1];
|
||||
params[0] = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &audio_info);
|
||||
|
||||
@@ -380,7 +399,7 @@ void pipewire_device::process_mic_data(wivrn::audio_data && sample)
|
||||
mic_buffer_size_bytes += size;
|
||||
}
|
||||
|
||||
std::shared_ptr<audio_device> create_pipewire_handle(
|
||||
std::unique_ptr<audio_device> create_pipewire_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
@@ -390,7 +409,7 @@ std::shared_ptr<audio_device> create_pipewire_handle(
|
||||
{
|
||||
try
|
||||
{
|
||||
return std::make_shared<pipewire_device>(
|
||||
return std::make_unique<pipewire_device>(
|
||||
source_name, source_description, sink_name, sink_description, info, session);
|
||||
}
|
||||
catch (std::exception & e)
|
||||
@@ -399,4 +418,4 @@ std::shared_ptr<audio_device> create_pipewire_handle(
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
} // namespace wivrn
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
std::shared_ptr<audio_device> create_pipewire_handle(
|
||||
std::unique_ptr<audio_device> create_pipewire_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
@@ -445,7 +445,7 @@ struct pulse_device : public audio_device
|
||||
}
|
||||
};
|
||||
|
||||
std::shared_ptr<audio_device> create_pulse_handle(
|
||||
std::unique_ptr<audio_device> create_pulse_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
@@ -455,7 +455,7 @@ std::shared_ptr<audio_device> create_pulse_handle(
|
||||
{
|
||||
try
|
||||
{
|
||||
return std::make_shared<pulse_device>(
|
||||
return std::make_unique<pulse_device>(
|
||||
source_name, source_description, sink_name, sink_description, info, session);
|
||||
}
|
||||
catch (std::exception & e)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
std::shared_ptr<audio_device> create_pulse_handle(
|
||||
std::unique_ptr<audio_device> create_pulse_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "audio_pipewire.h"
|
||||
#endif
|
||||
|
||||
std::shared_ptr<wivrn::audio_device> wivrn::audio_device::create(
|
||||
std::unique_ptr<wivrn::audio_device> wivrn::audio_device::create(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
@@ -37,7 +37,7 @@ struct audio_device
|
||||
|
||||
virtual void process_mic_data(wivrn::audio_data &&) = 0;
|
||||
|
||||
static std::shared_ptr<audio_device> create(
|
||||
static std::unique_ptr<audio_device> create(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ Description=OpenXR streaming server
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server --systemd
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server
|
||||
CapabilityBoundingSet=CAP_SYS_NICE
|
||||
AmbientCapabilities=CAP_SYS_NICE
|
||||
LockPersonality=true
|
||||
|
||||
@@ -80,7 +80,10 @@ static xrt_space_relation to_relation(const from_headset::hand_tracking::pose &
|
||||
{
|
||||
return {
|
||||
.relation_flags = cast_flags(pose.flags),
|
||||
.pose = xrt_cast(pose.pose),
|
||||
.pose = xrt_cast(XrPosef{
|
||||
.orientation = pose.orientation,
|
||||
.position = pose.position,
|
||||
}),
|
||||
.linear_velocity = xrt_cast(pose.linear_velocity),
|
||||
.angular_velocity = xrt_cast(pose.angular_velocity),
|
||||
};
|
||||
|
||||
@@ -34,7 +34,30 @@ xrt_space_relation pose_list::interpolate(const xrt_space_relation & a, const xr
|
||||
{
|
||||
xrt_space_relation result;
|
||||
xrt_space_relation_flags flags = xrt_space_relation_flags(a.relation_flags & b.relation_flags);
|
||||
m_space_relation_interpolate(const_cast<xrt_space_relation *>(&a), const_cast<xrt_space_relation *>(&b), t, flags, &result);
|
||||
|
||||
if (math_quat_dot(&a.pose.orientation, &b.pose.orientation) > 0)
|
||||
{
|
||||
m_space_relation_interpolate(const_cast<xrt_space_relation *>(&a), const_cast<xrt_space_relation *>(&b), t, flags, &result);
|
||||
}
|
||||
else
|
||||
{
|
||||
xrt_space_relation b2{
|
||||
.relation_flags = b.relation_flags,
|
||||
.pose = {
|
||||
.orientation = {
|
||||
.x = -b.pose.orientation.x,
|
||||
.y = -b.pose.orientation.y,
|
||||
.z = -b.pose.orientation.z,
|
||||
.w = -b.pose.orientation.w,
|
||||
},
|
||||
.position = b.pose.position,
|
||||
},
|
||||
.linear_velocity = b.linear_velocity,
|
||||
.angular_velocity = b.angular_velocity,
|
||||
};
|
||||
|
||||
m_space_relation_interpolate(const_cast<xrt_space_relation *>(&a), &b2, t, flags, &result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ class wivrn_session : public xrt_system_devices
|
||||
std::mutex csv_mutex;
|
||||
std::ofstream feedback_csv;
|
||||
|
||||
std::shared_ptr<audio_device> audio_handle;
|
||||
std::unique_ptr<audio_device> audio_handle;
|
||||
|
||||
// run-time editable settings
|
||||
thread_safe<from_headset::settings_changed> settings;
|
||||
|
||||
@@ -328,7 +328,7 @@ std::array<encoder_settings, 3> get_encoder_settings(wivrn_vk_bundle & bundle, c
|
||||
if (std::ranges::contains(res, video_codec::h264, &encoder_settings::codec) or
|
||||
std::ranges::contains(res, video_codec::raw, &encoder_settings::codec))
|
||||
bit_depth = 8;
|
||||
else
|
||||
else if (not bit_depth)
|
||||
bit_depth = 10;
|
||||
|
||||
auto check_format = [&](vk::Format format) {
|
||||
@@ -350,7 +350,36 @@ std::array<encoder_settings, 3> get_encoder_settings(wivrn_vk_bundle & bundle, c
|
||||
}
|
||||
};
|
||||
|
||||
if (bit_depth == 10 and not check_format(vk::Format::eR10X6UnormPack16))
|
||||
auto check_vaapi = [&](int bit_depth) {
|
||||
for (const auto & encoder: res)
|
||||
{
|
||||
if (encoder.encoder_name == encoder_vaapi)
|
||||
{
|
||||
try
|
||||
{
|
||||
video_encoder_va{
|
||||
bundle,
|
||||
encoder_settings{
|
||||
.width = 800,
|
||||
.height = 800,
|
||||
.codec = encoder.codec,
|
||||
.fps = 60,
|
||||
.bitrate = 50'000'000,
|
||||
.bit_depth = bit_depth,
|
||||
},
|
||||
0};
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
U_LOG_I("vaapi not supported for %s %d bits", std::string(magic_enum::enum_name(encoder.codec)).c_str(), bit_depth);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
if (bit_depth == 10 and not(check_format(vk::Format::eR10X6UnormPack16) and check_vaapi(*bit_depth)))
|
||||
{
|
||||
U_LOG_W("GPU does not have sufficient support for 10-bit images, reverting to 8");
|
||||
bit_depth = 8;
|
||||
|
||||
+3
-7
@@ -182,7 +182,6 @@ int control_pipe_fds[2];
|
||||
|
||||
GMainLoop * main_loop;
|
||||
const AvahiPoll * poll_api;
|
||||
bool use_systemd;
|
||||
|
||||
guint server_watch;
|
||||
guint server_kill_watch;
|
||||
@@ -514,7 +513,7 @@ gboolean control_received(gint fd, GIOCondition condition, gpointer user_data)
|
||||
[&](const wivrn::from_headset::start_app & request) {
|
||||
const auto & apps = list_applications();
|
||||
if (auto it = apps.find(request.app_id); it != apps.end())
|
||||
children->start_application(it->second.exec);
|
||||
children->start_application(it->second.exec, it->second.path);
|
||||
},
|
||||
[&](const from_monado::headset_connected &) {
|
||||
stop_publishing();
|
||||
@@ -775,11 +774,11 @@ void on_headset_info_packet(const wivrn::from_headset::headset_info_packet & inf
|
||||
void on_name_acquired(GDBusConnection * connection, const gchar * name, gpointer user_data)
|
||||
{
|
||||
#if WIVRN_USE_SYSTEMD
|
||||
if (use_systemd)
|
||||
try
|
||||
{
|
||||
children = std::make_unique<systemd_units_manager>(connection, update_fsm);
|
||||
}
|
||||
else
|
||||
catch (...)
|
||||
#endif
|
||||
{
|
||||
children = std::make_unique<forked_children>(update_fsm);
|
||||
@@ -977,9 +976,6 @@ int main(int argc, char * argv[])
|
||||
auto no_fork = app.add_flag("--no-fork")->description("disable fork to serve connection")->group("Debug");
|
||||
auto no_publish = app.add_flag("--no-publish-service")->description("disable publishing the service through avahi");
|
||||
auto no_encrypt = app.add_flag("--no-encrypt")->description("disable encryption")->group("Debug");
|
||||
#if WIVRN_USE_SYSTEMD
|
||||
app.add_flag("--systemd", use_systemd, "use systemd to launch user-configured application");
|
||||
#endif
|
||||
|
||||
CLI11_PARSE(app, argc, argv);
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "utils/flatpak.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <filesystem>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
@@ -95,15 +96,15 @@ static std::vector<std::string> unescape_string(const std::string & app_string)
|
||||
return app;
|
||||
}
|
||||
|
||||
void children_manager::start_application(const std::string & exec)
|
||||
void children_manager::start_application(const std::string & exec, const std::optional<std::string> & path)
|
||||
{
|
||||
start_application(unescape_string(exec));
|
||||
start_application(unescape_string(exec), path);
|
||||
}
|
||||
|
||||
forked_children::forked_children(std::function<void()> state_changed_cb) :
|
||||
state_changed_cb(state_changed_cb) {}
|
||||
|
||||
void forked_children::start_application(const std::vector<std::string> & args)
|
||||
void forked_children::start_application(const std::vector<std::string> & args, const std::optional<std::string> & path)
|
||||
{
|
||||
if (args.empty())
|
||||
return;
|
||||
@@ -151,6 +152,19 @@ void forked_children::start_application(const std::vector<std::string> & args)
|
||||
{
|
||||
tmp.push_back("flatpak-spawn");
|
||||
tmp.push_back("--host");
|
||||
if (path)
|
||||
tmp.push_back("--directory=" + *path);
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
std::filesystem::current_path(*path);
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
std::cerr << "Failed to set path to " << *path << ": " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
tmp.insert(tmp.end(), args.begin(), args.end());
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <functional>
|
||||
#include <glib.h>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <sys/types.h>
|
||||
#include <unordered_map>
|
||||
@@ -32,8 +33,8 @@ class children_manager
|
||||
public:
|
||||
virtual ~children_manager();
|
||||
|
||||
virtual void start_application(const std::vector<std::string> &) = 0;
|
||||
void start_application(const std::string &);
|
||||
virtual void start_application(const std::vector<std::string> &, const std::optional<std::string> & path = {}) = 0;
|
||||
void start_application(const std::string &, const std::optional<std::string> & path = {});
|
||||
|
||||
virtual bool running() const = 0;
|
||||
|
||||
@@ -55,7 +56,7 @@ public:
|
||||
forked_children(std::function<void()> state_changed_cb);
|
||||
virtual ~forked_children();
|
||||
|
||||
void start_application(const std::vector<std::string> &) override;
|
||||
void start_application(const std::vector<std::string> &, const std::optional<std::string> & path) override;
|
||||
|
||||
// true if any unit started by this object is still running
|
||||
bool running() const override;
|
||||
|
||||
@@ -196,11 +196,16 @@ struct variant_builder
|
||||
|
||||
}; // namespace
|
||||
|
||||
void systemd_units_manager::start_application(const std::vector<std::string> & args)
|
||||
void systemd_units_manager::start_application(const std::vector<std::string> & args, const std::optional<std::string> & path)
|
||||
{
|
||||
if (args.empty())
|
||||
return;
|
||||
|
||||
std::cerr << "Launching";
|
||||
for (const auto & i: args)
|
||||
std::cerr << " " << std::quoted(i);
|
||||
std::cerr << std::endl;
|
||||
|
||||
std::string service_name = std::format("wivrn-application-{}.service", std::chrono::steady_clock::now().time_since_epoch().count());
|
||||
|
||||
variant_builder b(G_VARIANT_TYPE("a(sv)"));
|
||||
@@ -224,6 +229,12 @@ void systemd_units_manager::start_application(const std::vector<std::string> & a
|
||||
&exec_start,
|
||||
1));
|
||||
|
||||
if (path)
|
||||
g_variant_builder_add(&b,
|
||||
"(sv)",
|
||||
"WorkingDirectory",
|
||||
g_variant_new("s", path->c_str()));
|
||||
|
||||
if (auto path = std::getenv("PATH"))
|
||||
{
|
||||
variant_builder pathv(G_VARIANT_TYPE("as"));
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
systemd_units_manager(GDBusConnection * connection, std::function<void()> state_changed_cb);
|
||||
|
||||
// create and start the transient unit
|
||||
void start_application(const std::vector<std::string> &) override;
|
||||
void start_application(const std::vector<std::string> &, const std::optional<std::string> & path) override;
|
||||
|
||||
// true if any unit started by this object is still running
|
||||
bool running() const override;
|
||||
|
||||
@@ -52,7 +52,10 @@ def main():
|
||||
|
||||
if args.nightly:
|
||||
version = subprocess.check_output(["git", "describe", "--tags", "--always"]).decode().strip()
|
||||
version = version[1:] # remove the initial "v"
|
||||
if version[0] == 'v':
|
||||
version = version[1:] # remove the initial "v"
|
||||
else:
|
||||
version = '0-' + version
|
||||
write_entry(
|
||||
out=args.out,
|
||||
version=version,
|
||||
|
||||
@@ -35,6 +35,10 @@
|
||||
#include "wivrn_packets.h"
|
||||
|
||||
#if WIRESHARK_VERSION_MAJOR > 4 || (WIRESHARK_VERSION_MAJOR == 4 && WIRESHARK_VERSION_MINOR >= 4)
|
||||
static inline uint32_t get_uint32(tvbuff_t * tvb, const int offset, const unsigned encoding)
|
||||
{
|
||||
return tvb_get_uint32(tvb, offset, encoding);
|
||||
}
|
||||
static inline uint16_t get_uint16(tvbuff_t * tvb, const int offset, const unsigned encoding)
|
||||
{
|
||||
return tvb_get_uint16(tvb, offset, encoding);
|
||||
@@ -45,6 +49,10 @@ static inline uint16_t get_uint8(tvbuff_t * tvb, const int offset)
|
||||
return tvb_get_uint8(tvb, offset);
|
||||
}
|
||||
#else
|
||||
static inline uint32_t get_uint32(tvbuff_t * tvb, const int offset, const unsigned encoding)
|
||||
{
|
||||
return tvb_get_guint32(tvb, offset, encoding);
|
||||
}
|
||||
static inline uint16_t get_uint16(tvbuff_t * tvb, const int offset, const unsigned encoding)
|
||||
{
|
||||
return tvb_get_guint16(tvb, offset, encoding);
|
||||
@@ -439,6 +447,11 @@ struct tree_traits<abbrev, std::vector<T>>
|
||||
|
||||
size_t count = get_uint16(tvb, start, ENC_LITTLE_ENDIAN);
|
||||
start += sizeof(uint16_t);
|
||||
if (count & 0x8000)
|
||||
{
|
||||
count = (count & 0x7fff) | (get_uint16(tvb, start, ENC_LITTLE_ENDIAN) << 15);
|
||||
start += sizeof(uint16_t);
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < count; i++)
|
||||
{
|
||||
@@ -452,6 +465,13 @@ struct tree_traits<abbrev, std::vector<T>>
|
||||
start += sizeof(uint16_t);
|
||||
size_t size = sizeof(uint16_t);
|
||||
|
||||
if (count & 0x8000)
|
||||
{
|
||||
count = (count & 0x7fff) | (get_uint16(tvb, start, ENC_LITTLE_ENDIAN) << 15);
|
||||
start += sizeof(uint16_t);
|
||||
size += sizeof(uint16_t);
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < count; i++)
|
||||
{
|
||||
size += tree_traits<details::join(abbrev, details::type_name<T>()), T>::size(tvb, start);
|
||||
@@ -794,19 +814,38 @@ int dissect_wivrn(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree _U_, vo
|
||||
/* Clear out stuff in the info column */
|
||||
col_clear(pinfo->cinfo, COL_INFO);
|
||||
|
||||
proto_item * ti = proto_tree_add_item(tree, proto, tvb, 0, -1, ENC_NA);
|
||||
proto_tree * subtree = proto_item_add_subtree(ti, subtree_handles.at(""));
|
||||
int start = 0;
|
||||
int offset = 0;
|
||||
|
||||
if (tcp)
|
||||
start += sizeof(uint16_t);
|
||||
while (true)
|
||||
{
|
||||
proto_item * ti = proto_tree_add_item(tree, proto, tvb, 0, -1, ENC_NA);
|
||||
proto_tree * subtree = proto_item_add_subtree(ti, subtree_handles.at(""));
|
||||
|
||||
if (pinfo->destport == wivrn::default_port)
|
||||
tree_traits<"wivrn.from_headset", from_headset::packets>::dissect(subtree, tvb, start);
|
||||
else
|
||||
tree_traits<"wivrn.to_headset", to_headset::packets>::dissect(subtree, tvb, start);
|
||||
int remaining = tvb_reported_length_remaining(tvb, offset);
|
||||
|
||||
return tvb_captured_length(tvb);
|
||||
if (tcp)
|
||||
{
|
||||
if (remaining < sizeof(uint32_t))
|
||||
return remaining - sizeof(uint32_t);
|
||||
remaining -= sizeof(uint32_t);
|
||||
|
||||
uint32_t size = get_uint32(tvb, offset, ENC_LITTLE_ENDIAN);
|
||||
if (remaining < size)
|
||||
return remaining - size;
|
||||
offset += sizeof(uint32_t);
|
||||
}
|
||||
|
||||
if (pinfo->destport == wivrn::default_port)
|
||||
tree_traits<"wivrn.from_headset", from_headset::packets>::dissect(subtree, tvb, offset);
|
||||
else
|
||||
tree_traits<"wivrn.to_headset", to_headset::packets>::dissect(subtree, tvb, offset);
|
||||
|
||||
if (not tcp)
|
||||
return offset;
|
||||
|
||||
if (tvb_reported_length(tvb) <= offset)
|
||||
return offset;
|
||||
}
|
||||
}
|
||||
|
||||
int dissect_wivrn_udp(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree _U_, void * data _U_)
|
||||
|
||||
Reference in New Issue
Block a user