Compare commits

..

No commits in common. "main" and "V2.10.9" have entirely different histories.

215 changed files with 6427 additions and 39427 deletions

3
.fvmrc
View File

@ -1,3 +0,0 @@
{
"flutter": "stable"
}

View File

@ -14,7 +14,7 @@ jobs:
uses: microsoft/setup-msbuild@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
uses: subosito/flutter-action@v2.12.0
with:
channel: 'stable'
cache: true
@ -37,9 +37,9 @@ jobs:
cache-all-crates: true
- name: Set up LLVM
uses: KyleMayes/install-llvm-action@v2
uses: KyleMayes/install-llvm-action@v1
with:
version: "18"
version: "17.0.2"
- name: Flutter pub get
run: flutter pub get
@ -61,7 +61,7 @@ jobs:
flutter pub global activate intl_utils
flutter pub global run intl_utils:generate
- name: Flutter build Windows
run: flutter build windows -v
run: flutter build windows
- name: Archive build
uses: actions/upload-artifact@v4

5
.gitignore vendored
View File

@ -42,9 +42,8 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/pubspec.lock
/rust/target/
/rust/Cargo.lock
/lib/generated/l10n_temp.json
/lib/generated/l10n_temp_fix.json
# FVM Version Cache
.fvm/

View File

@ -1,11 +1,11 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
# This file should be version controlled.
version:
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
channel: "stable"
revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
channel: stable
project_type: app
@ -13,26 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: android
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: ios
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: linux
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: macos
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
- platform: web
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
- platform: windows
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
create_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
base_revision: 4d9e56e694b656610ab87fcf2efbcd226e0ed8cf
# User provided section

65
.vscode/launch.json vendored
View File

@ -1,65 +0,0 @@
{
// 使 IntelliSense
//
// 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "StarCitizenToolBox",
"request": "launch",
"type": "dart",
},
{
"name": "StarCitizenToolBox (MSE mode)",
"request": "launch",
"type": "dart",
"args": [
"--dart-define=MSE=true"
]
},
{
"name": "StarCitizenToolBox (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "StarCitizenToolBox (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "rust_builder",
"cwd": "rust_builder",
"request": "launch",
"type": "dart"
},
{
"name": "rust_builder (profile mode)",
"cwd": "rust_builder",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "rust_builder (release mode)",
"cwd": "rust_builder",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "sct_dev_tools",
"cwd": "packages\\sct_dev_tools",
"request": "launch",
"type": "dart"
},
{
"name": "build_tool",
"cwd": "rust_builder\\cargokit\\build_tool",
"request": "launch",
"type": "dart"
}
]
}

View File

@ -1,10 +1,8 @@
# SC汉化盒子 / SCToolBox
[简体中文](https://github.com/StarCitizenToolBox/app/blob/main/README.md) / [繁體中文](https://github.com/StarCitizenToolBox/app/blob/main/README_zh-TW.md) / [English](https://github.com/StarCitizenToolBox/app/blob/main/README_en.md)
# SC 汉化盒子
该工具为 星际公民玩家 提供 一键诊断,官网及工具网站汉化,游戏汉化,游戏性能优化 等功能,致力于带来更愉快的游戏体验。
该工具为 星际公民玩家 提供 一键诊断,官网及工具网站汉化,游戏汉化,游戏性能优化 等功能,给您带来更愉快的游戏体验。
[![Windows Nightly Build](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml/badge.svg)](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml) [![Translate](http://translate.42kit.com/widget/sctoolbox/CoreApp/svg-badge.svg)](http://translate.42kit.com/engage/sctoolbox/)
[![Windows Nightly Build](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml/badge.svg)](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml)
[![](https://get.microsoft.com/images/zh-cn%20dark.svg)](https://apps.microsoft.com/detail/9NF3SWFWNKL1?launch=true)
@ -17,14 +15,14 @@
- 其他常用工具:包括 p4k分流下载清理着色器重装EAC等多种功能在内的工具箱。
### 📸 屏幕截图
![image.png](https://s2.loli.net/2024/05/06/kX2nxsCp3y71lo4.png)
![image.png](https://s2.loli.net/2024/05/06/LIxt6D3WjJeXh5r.png)
![image.png](https://s2.loli.net/2024/05/06/FDXgTIP9HaL5QiW.png)
![image.png](https://s2.loli.net/2024/05/06/q6tSos41xCEAIju.png)
![image.png](https://s2.loli.net/2024/05/06/JScI2sXTFea3tKY.png)
![image.png](https://s2.loli.net/2024/05/06/kMXZrAunSV48YhK.png)
![image.png](https://s2.loli.net/2024/05/06/CAvKrsXmtpRh8Iw.png)
![image.png](https://s2.loli.net/2024/05/06/ZnYy7XpM69rboWP.png)
### ❤️ 鸣谢
![1.png](https://s2.loli.net/2023/12/06/S7qc2MmnjBeVkPE.png)
![2.png](https://s2.loli.net/2023/12/06/XuwBoWN7EhqL2Ie.png)
![3.png](https://s2.loli.net/2023/12/06/uogbQMVe5Ufs6XG.png)
![4.png](https://s2.loli.net/2023/12/06/y9sJqkUb1IOWj6m.png)
![5.png](https://s2.loli.net/2023/12/06/yf9z4NrhEOiR5FP.png)
![6.png](https://s2.loli.net/2023/12/06/AakZFw97cySI3UQ.png)
特别感谢 [Visual Studio Code](https://code.visualstudio.com/) 提供免费的开发工具。
### ❤️ 鸣谢
![jetbrains.svg](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)
特别感谢 [JetBrains](https://www.jetbrains.com/?from=SCToolbox) 为开源项目提供免费的 IDE 授权。

View File

@ -1,31 +0,0 @@
# SCToolBox
[简体中文](https://github.com/StarCitizenToolBox/app/blob/main/README.md) / [繁體中文](https://github.com/StarCitizenToolBox/app/blob/main/README_zh-TW.md) / [English](https://github.com/StarCitizenToolBox/app/blob/main/README_en.md)
This tool provides Star Citizen players with one-click diagnosis, official website and tool website localization, game localization, game performance optimization and other functions, and is committed to bringing a more enjoyable gaming experience.
[![Windows Nightly Build](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml/badge.svg)](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml)
[![](https://get.microsoft.com/images/en-us%20dark.svg)](https://apps.microsoft.com/detail/9NF3SWFWNKL1?launch=true)
### ✨ Feature
- Localization management: install the localization of the community and switch languages with one click
- One-click diagnosis: log files from hundreds of guinea pig users, which can handle common problems of Star Citizen
- Website Chineseization: Provide manual translation for the Star Citizen official website and Star Citizen tool website (thanks to the Star Citizen Chinese Encyclopedia project), and also provide [Browser Extension (Github)] (https://github.com/xkeyC/StarCitizenBoxBrowserEx).
- Performance optimization: Add more detailed performance parameter control to the Star Citizen game, which can be used to optimize performance and obtain better image quality.
- Server status indicator: The server status indicator function is added a few hours earlier than the official website launcher, and the indication is more detailed.
- Other commonly used tools: a toolbox including p4k offload downloads, cleaning shaders, reinstalling EAC and other functions.
### 📸 Screenshot
![image.png](https://s2.loli.net/2024/05/06/iHmsGd7htjE9uzy.png)
![image.png](https://s2.loli.net/2024/05/06/yCD9hXMEz8gK6Gk.png)
![image.png](https://s2.loli.net/2024/05/06/DVvyCFJBpjXWbd4.png)
![image.png](https://s2.loli.net/2024/05/06/Ig6lVB3HW4fzQaY.png)
![image.png](https://s2.loli.net/2024/05/06/Wnzfe6TNZPE4LyA.png)
![image.png](https://s2.loli.net/2024/05/06/dINhbev63tYWlnq.png)
![image.png](https://s2.loli.net/2024/05/06/BODvxVHN4RoAhpU.png)
![image.png](https://s2.loli.net/2024/05/06/psXOKoCElFfaJMV.png)
![image.png](https://s2.loli.net/2024/05/06/PCWgYFlnD156rxK.png)
### ❤️ Thanks
Special thanks to [Visual Studio Code](https://code.visualstudio.com/) for providing free development tools.

View File

@ -1,31 +1,26 @@
# SC 工具箱 / SCToolBox
# SC 漢化盒子
[简体中文](https://github.com/StarCitizenToolBox/app/blob/main/README.md) / [繁體中文](https://github.com/StarCitizenToolBox/app/blob/main/README_zh-TW.md) / [English](https://github.com/StarCitizenToolBox/app/blob/main/README_en.md)
這個工具能為星際公民玩家提供疑難排解、官方網站及工具網站的中文翻譯、遊戲文本在地化翻譯、效能最佳化/畫面改善等功能,讓您獲得更愉快的遊戲體驗。
[![Windows Nightly Build](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml/badge.svg)](https://github.com/StarCitizenToolBox/app/actions/workflows/windows_nightly.yml) [![Translate](http://translate.42kit.com/widget/sctoolbox/CoreApp/svg-badge.svg)](http://translate.42kit.com/engage/sctoolbox/)
[![](https://get.microsoft.com/images/zh-tw%20dark.svg)](https://apps.microsoft.com/detail/9NF3SWFWNKL1?launch=true)
此工具為 星際公民玩家 提供 疑難排解,官網及工具網站中文化,遊戲翻譯,遊戲效能最佳化 等功能,帶給您更愉快的遊戲體驗。
[![](https://get.microsoft.com/images/zh-cn%20dark.svg)](https://apps.microsoft.com/detail/9NF3SWFWNKL1?launch=true)
### ✨ 功能
- 社群在地化翻譯管理:一鍵即可快速完成社群翻譯安裝與切換遊戲語言
- 疑難排解:來自上百名小白鼠使用者的日誌文件,可處理常見的星際公民遊戲問題
- 網站中文翻譯:為星際公民官方網站及工具網站提供人工精翻 (感謝星際公民中文百科計畫),亦提供[瀏覽器擴充套件 (Github)](https://github.com/xkeyC/StarCitizenBoxBrowserEx )。
- 效能最佳化/畫面改善:為星際公民遊戲增加更細緻的效能參數調整,能夠用於改善遊戲效能,也可以用於獲得更好的畫質。
- 伺服器狀態指示器:比官啟動器早了幾個小時增加了伺服器狀態指示功能,且指示的更為細緻。
- 其他常用工具:包括 p4k 分流下載,著色器快取清理,重新安裝 EAC 反外掛軟體等多種功能在內的工具箱。
- 本地化管理:一鍵安裝社群翻譯,切換語言
- 疑難排解:來自上百名小白鼠使用者的日誌文件,可處理星際公民常見問題
- 網站中文化:為星際公民官網,星際公民工具網站提供人工精翻 (感謝星際公民中文百科計畫),亦提供[瀏覽器擴充套件 (Github)](https://github.com/xkeyC/StarCitizenBoxBrowserEx )。
- 效能最佳化:為星際公民遊戲增加更細緻的效能參數控制,可用於最佳化效能,也可用於獲得更好的畫質。
- 伺服器狀態指示器:比官啟動器早了幾個小時增加了伺服器狀態指示功能,且指示的更為細緻。
- 其他常用工具:包括 p4k分流下載清除著色器快取重新安裝EAC等多種功能在內的工具箱。
### 📸 螢幕截圖
![image.png](https://s2.loli.net/2024/05/06/FrMxJuh9AozfVc7.png)
![image.png](https://s2.loli.net/2024/05/06/8GLnb2Ma7ojeZIl.png)
![image.png](https://s2.loli.net/2024/05/06/IsCUlx7FH9SfAtY.png)
![image.png](https://s2.loli.net/2024/05/06/8ksgbSKQEFWdj15.png)
![image.png](https://s2.loli.net/2024/05/06/IAZeq97BzKV6tax.png)
![image.png](https://s2.loli.net/2024/05/06/K9hPgzCB5SbomyQ.png)
![image.png](https://s2.loli.net/2024/05/06/TlckzswguMUCjZe.png)
![1.png](https://s2.loli.net/2023/12/06/S7qc2MmnjBeVkPE.png)
![2.png](https://s2.loli.net/2023/12/06/XuwBoWN7EhqL2Ie.png)
![3.png](https://s2.loli.net/2023/12/06/uogbQMVe5Ufs6XG.png)
![4.png](https://s2.loli.net/2023/12/06/y9sJqkUb1IOWj6m.png)
![5.png](https://s2.loli.net/2023/12/06/yf9z4NrhEOiR5FP.png)
![6.png](https://s2.loli.net/2023/12/06/AakZFw97cySI3UQ.png)
### ❤️ 鳴謝
![jetbrains.svg](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)
特別感謝 [Visual Studio Code](https://code.visualstudio.com/) 提供的免費開發工具
特別感謝 [JetBrains](https://www.jetbrains.com/?from=SCToolbox) 為開源專案提供免費的 IDE 授權

View File

@ -29,10 +29,6 @@ linter:
analyzer:
plugins:
- custom_lint
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
errors:
invalid_annotation_target: ignore
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

322
assets/performance.json Normal file
View File

@ -0,0 +1,322 @@
[
{
"key": "r_ssdo",
"name": "屏幕光线后处理",
"info": "调整光线后处理等级",
"type": "int",
"max": 2,
"min": 0,
"value": 1,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "r_AntialiasingMode",
"name": "抗锯齿",
"info": "0 关闭1 SMAA2 时间过滤+SMAA3 时间滤波和投影矩阵抖动的 SMAA",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_gameeffects",
"name": "特效等级",
"info": "游戏特效等级",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_texture",
"name": "纹理等级",
"info": "模型纹理细节",
"type": "int",
"max": 3,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_volumetriceffects",
"name": "体积效果",
"info": "体积云、体积光照等",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_water",
"name": "水体效果",
"info": "各种水的等级",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_objectdetail",
"name": "对象细节",
"info": "模型对象细节影响LOD等..",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_particles",
"name": "粒子细节",
"info": "",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_physics",
"name": "物理细节",
"info": "物理效果范围",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_shading",
"name": "着色器细节",
"info": "着色器相关",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_shadows",
"name": "阴影细节",
"info": "阴影效果",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "sys_spec_postprocessing",
"name": "后处理细节",
"info": "后处理着色器,动态模糊效果 等",
"type": "int",
"max": 4,
"min": 1,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_Renderer",
"name": "渲染器质量",
"info": "cryengine 渲染器质量",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderDecal",
"name": "贴花质量",
"info": "LOGO、标志等",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderPostProcess",
"name": "着色器质量",
"info": "",
"type": "int",
"max": 3,
"min": 0,
"value": 3,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderFX",
"name": "FX 质量",
"info": "",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderGeneral",
"name": "常规质量",
"info": "整体模型质量",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderGlass",
"name": "玻璃质量",
"info": "窗、镜子等",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderHDR",
"name": "HDR质量",
"info": "HDR色差亮度层级 处理 等",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderParticle",
"name": "粒子质量",
"info": "粒子效果质量",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderTerrain",
"name": "地面质量",
"info": "",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderShadow",
"name": "阴影质量",
"info": "",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "q_ShaderSky",
"name": "天空质量",
"info": "",
"type": "int",
"max": 3,
"min": 0,
"value": 2,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "e_ParticlesObjectCollisions",
"name": "粒子碰撞",
"info": "1 仅静态粒子 2 包括动态粒子",
"type": "int",
"max": 2,
"min": 1,
"value": 1,
"group": "图形(修改后建议清理着色器)"
},
{
"key": "r_displayinfo",
"name": "屏幕信息(展示帧率)",
"info": "在屏幕右上角展示帧率,服务器信息等",
"type": "int",
"max": 4,
"min": 0,
"value": 1,
"group": "设置"
},
{
"key": "sys_maxFps",
"name": "最大帧率",
"info": "调整游戏最高帧率0为不限制",
"type": "int",
"max": 300,
"min": 0,
"value": 0,
"group": "设置"
},
{
"key": "r_DisplaySessionInfo",
"name": "显示会话信息",
"info": "开启后在屏幕上显示一个二维码,用于反馈时让 CIG 快速定位相关信息",
"type": "bool",
"max": 1,
"min": 0,
"value": 0,
"group": "设置"
},
{
"key": "r_VSync",
"name": "垂直同步",
"info": "开启以防止撕裂,关闭以提高帧率",
"type": "bool",
"max": 1,
"min": 0,
"value": 0,
"group": "设置"
},
{
"key": "r_MotionBlur",
"name": "动态模糊",
"info": "开启以提高运动感,关闭提升观感",
"type": "bool",
"max": 1,
"min": 0,
"value": 0,
"group": "设置"
},
{
"key": "cl_fov",
"name": "FOV",
"info": "设置视角FOV",
"type": "int",
"max": 160,
"min": 25,
"value": 90,
"group": "设置"
},
{
"key": "ui_disableScreenFade",
"name": "UI 淡入淡出动画",
"info": "",
"type": "bool",
"max": 1,
"min": 0,
"value": 1,
"group": "设置"
},
{
"key": "customize",
"name": "自定义参数",
"info": "",
"type": "customize",
"max": 1,
"min": 0,
"value": 1,
"group": "自定义"
}
]

View File

@ -1,53 +0,0 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"/>
<meta name="renderer" content="webkit"/>
<link rel="stylesheet" href="style/mdui2.css">
<link href="style/google_icons.css" rel="stylesheet">
<script src="js/mdui2.global.js"></script>
<script src="js/main.js"></script>
<title>SCToolBox Community Input Method Web</title>
<style>
</style>
</head>
<body>
<div class="mdui-theme-light" style="position: relative;overflow: hidden">
<mdui-top-app-bar
scroll-behavior="shrink"
scroll-threshold="30"
scroll-target=".scroll-behavior-shrink">
<mdui-top-app-bar-title>SC汉化盒子社区输入法</mdui-top-app-bar-title>
<div style="flex-grow: 1"></div>
<mdui-button-icon icon="help" onclick="onShowHelp()"></mdui-button-icon>
</mdui-top-app-bar>
<div class="scroll-behavior-shrink" style="overflow: auto;">
<mdui-text-field id="input_message" style="padding-top: 6pt;padding-bottom: 6pt" rows="6" variant="outlined"
label="输入消息..."></mdui-text-field>
<div style="text-align: end">
<mdui-checkbox id="auto_copy" checked>自动复制</mdui-checkbox>
</div>
<mdui-button id="send_button" icon="send" onclick="onSendMessage()" full-width>发送</mdui-button>
</div>
<mdui-snackbar id="snackbar_message" auto-close-delay="1000">Text</mdui-snackbar>
</div>
<script>
init();
</script>
</body>
</html>

View File

@ -1,56 +0,0 @@
async function init() {
try {
let response = await fetch("/api");
let responseJson = await response.json();
if (responseJson.status === "ok") {
showMessage("服务连接成功!");
} else {
showMessage("服务连接失败!" + responseJson);
}
} catch (e) {
showMessage("服务连接失败!" + e);
}
}
async function onSendMessage() {
let send_button = document.getElementById("send_button");
let input = document.getElementById("input_message");
let isAutoCopy = document.getElementById("auto_copy").checked;
let messageJson = {
"text": input.value,
"autoCopy": isAutoCopy,
"autoInput": false
};
send_button.loading = true;
try {
let response = await fetch("/api/send", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(messageJson)
});
let responseJson = await response.json();
console.log(responseJson);
showMessage(responseJson.message);
if (response.ok) {
input.value = "";
}
} catch (e) {
showMessage("发送失败!" + e);
}
send_button.loading = false;
}
function showMessage(message) {
let snack = document.getElementById("snackbar_message");
snack.open = false;
snack.innerText = message;
snack.open = true;
}
function onShowHelp() {
alert("在浏览器中输入文本,将发送给汉化盒子转码。" +
"\n\n自动复制勾选后自动复制转码结果到剪贴板。");
}

File diff suppressed because one or more lines are too long

View File

@ -1,23 +0,0 @@
/* fallback */
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}

File diff suppressed because one or more lines are too long

View File

@ -51,7 +51,7 @@ function WebLocalizationUpdateReplaceWords(w, b) {
let replaceWords = w.sort(function (a, b) {
return b.word.length - a.word.length;
});
replaceWords.forEach(({ word, replacement }) => {
replaceWords.forEach(({word, replacement}) => {
SCLocalizationReplaceLocalesMap[word] = replacement;
});
if (window.location.hostname.startsWith("issue-council.robertsspaceindustries.com")) {
@ -197,6 +197,8 @@ function GetSCLocalizationTranslateString(txtSrc) {
return txtSrc
}
InitWebLocalization();
function ReportUnTranslate(k, v) {
if (enable_webview_localization_capture) {
@ -207,7 +209,7 @@ function ReportUnTranslate(k, v) {
const jsRegex = /(?:^|[^<])<script[^>]*>[\s\S]*?<\/script>(?:[^>]|$)/i;
if (k.trim() !== "" && !cnPattern.test(k) && !htmlPattern.test(k) && !cssRegex.test(k) && !jsRegex.test(k)
&& enPattern.test(k) && !k.startsWith("http://") && !k.startsWith("https://")) {
window.chrome.webview.postMessage({ action: 'webview_localization_capture', key: k, value: v });
window.chrome.webview.postMessage({action: 'webview_localization_capture', key: k, value: v});
}
}
}
@ -219,28 +221,46 @@ InitWebLocalization();
async function getRSILauncherToken(channelId) {
if (!window.location.href.includes("robertsspaceindustries.com")) return;
let loginBodyElement = $(".c-form.c-signIn");
loginBodyElement.show();
// wait login
window.chrome.webview.postMessage({ action: 'webview_rsi_login_show_window' });
if (window.location.href.startsWith("https://robertsspaceindustries.com/connect")) {
$(function () {
$('#email').on('input', function () {
let inputEmail = $('#email').val()
sessionStorage.setItem('inputEmail', inputEmail);
});
$('#password').on('input', function () {
let inputPassword = $('#password').val()
sessionStorage.setItem('inputPassword', inputPassword);
});
});
}
// check login
let r = await fetch("api/launcher/v3/account/check", {
method: 'POST', headers: {
'x-rsi-token': $.cookie('Rsi-Token'),
},
});
if (r.status !== 200) {
// wait login
window.chrome.webview.postMessage({action: 'webview_rsi_login_show_window'});
return;
}
SCTShowToast("登录游戏中...");
// get claims
let claimsR = await fetch("https://robertsspaceindustries.com/api/launcher/v3/games/claims", {
let claimsR = await fetch("api/launcher/v3/games/claims", {
method: 'POST', headers: {
'x-rsi-token': $.cookie('Rsi-Token'),
},
});
if (claimsR.status !== 200) return;
loginBodyElement.hide();
SCTShowToast("登录游戏中...");
let claimsData = (await claimsR.json())["data"];
let tokenFormData = new FormData();
tokenFormData.append('claims', claimsData);
tokenFormData.append('gameId', 'SC');
let tokenR = await fetch("https://robertsspaceindustries.com/api/launcher/v3/games/token", {
let tokenR = await fetch("api/launcher/v3/games/token", {
method: 'POST', headers: {
'x-rsi-token': $.cookie('Rsi-Token'),
},
@ -257,7 +277,7 @@ async function getRSILauncherToken(channelId) {
releaseFormData.append("claims", claimsData);
releaseFormData.append("gameId", "SC");
releaseFormData.append("platformId", "prod");
let releaseR = await fetch("https://robertsspaceindustries.com/api/launcher/v3/games/release", {
let releaseR = await fetch("api/launcher/v3/games/release", {
method: 'POST', headers: {
'x-rsi-token': $.cookie('Rsi-Token'),
},
@ -266,20 +286,11 @@ async function getRSILauncherToken(channelId) {
if (releaseR.status !== 200) return;
let releaseDataJson = (await releaseR.json())['data'];
console.log(releaseDataJson);
// get game library
let libraryR = await fetch("https://robertsspaceindustries.com/api/launcher/v3/games/library", {
method: 'POST', headers: {
'x-rsi-token': $.cookie('Rsi-Token'),
},
body: releaseFormData
});
let libraryData = (await libraryR.json())["data"]
// get user avatar
let avatarUrl = $(".orion-c-avatar__image").attr("src");
let $avatarElement = $(".c-account-sidebar__profile-metas-avatar");
let avatarUrl = $avatarElement.css("background-image");
//post message
// post message
window.chrome.webview.postMessage({
action: 'webview_rsi_login_success', data: {
'webToken': $.cookie('Rsi-Token'),
@ -287,7 +298,25 @@ async function getRSILauncherToken(channelId) {
'authToken': TokenData,
'releaseInfo': releaseDataJson,
"avatar": avatarUrl,
'libraryData': libraryData,
"inputEmail": sessionStorage.getItem("inputEmail"),
"inputPassword": sessionStorage.getItem("inputPassword")
}
});
}
function RSIAutoLogin(email, pwd) {
if (!window.location.href.includes("robertsspaceindustries.com")) return;
$(function () {
if (email !== "") {
$('#email').val(email)
}
if (pwd !== "") {
$('#password').val(pwd)
}
sessionStorage.setItem('inputPassword', '');
if (email !== "" && pwd !== "") {
$("#remember").prop("checked", true);
$('.c-form__submit-button-label').click();
}
});
}
@ -305,4 +334,5 @@ function SCTShowToast(message) {
document.body.removeChild(m)
}, d * 1000);
}, 3500);
}

View File

@ -7,10 +7,7 @@ import 'package:starcitizen_doctor/common/utils/log.dart';
class AnalyticsApi {
static touch(String key) async {
if (kDebugMode || kProfileMode) {
dPrint("AnalyticsApi.touch === $key skip");
return;
}
if (kDebugMode || kProfileMode) return;
dPrint("AnalyticsApi.touch === $key start");
try {
final r = await RSHttp.postData(

View File

@ -1,13 +1,11 @@
import 'dart:convert';
import 'package:hive_ce/hive.dart';
import 'package:starcitizen_doctor/common/conf/url_conf.dart';
import 'package:starcitizen_doctor/common/io/rs_http.dart';
import 'package:starcitizen_doctor/data/app_placard_data.dart';
import 'package:starcitizen_doctor/data/app_torrent_data.dart';
import 'package:starcitizen_doctor/data/app_version_data.dart';
import 'package:starcitizen_doctor/data/countdown_festival_item_data.dart';
import 'package:starcitizen_doctor/data/input_method_api_data.dart';
import 'package:starcitizen_doctor/data/sc_localization_data.dart';
class Api {
@ -53,15 +51,6 @@ class Api {
return l;
}
static Future<InputMethodApiData> getCommunityInputMethodIndexData() async {
final data = await getCommunityInputMethodData("index.json");
return InputMethodApiData.fromJson(json.decode(data));
}
static Future<String> getCommunityInputMethodData(String file) async {
return getRepoData("input_method", file);
}
static Future<List<AppTorrentData>> getAppTorrentDataList() async {
final data = await getRepoData("sc_doctor", "torrent.json");
final dataJson = json.decode(data);
@ -93,32 +82,7 @@ class Api {
}
static Future<String> getRepoData(String dir, String name) async {
final r = await RSHttp.getText("${URLConf.apiRepoPath}/$dir/$name",
withCustomDns: await isUseInternalDNS());
final r = await RSHttp.getText("${URLConf.apiRepoPath}/$dir/$name");
return r;
}
static Future<String?> doGoogleTranslate(String input) async {
final out = await RSHttp.getText(
"${URLConf.googleTranslateApiUrl}/translate_a/single?client=gtx&dt=t&sl=auto&tl=en&q=${Uri.encodeComponent(input)}");
// [[["Hello","你好",null,null,10]],null,"zh-CN",null,null,null,1,[],[["zh-CN"],null,[1],["zh-CN"]]]
final list = json.decode(out);
if (list is List && list.isNotEmpty) {
final data = list.first;
if (data is List && data.isNotEmpty) {
final text = data.first;
if (text is List && text.isNotEmpty) {
return text.first;
}
}
}
return null;
}
static Future<bool> isUseInternalDNS() async {
final userBox = await Hive.openBox("app_conf");
final isUseInternalDNS =
userBox.get("isUseInternalDNS", defaultValue: false);
return isUseInternalDNS;
}
}

View File

@ -12,9 +12,11 @@ class RSSApi {
}
static Future<List<RssItem>> getRssText() async {
final r1 = await RSHttp.getText(URLConf.rssTextUrl1);
final r1f = RssFeed.parse(r1);
final r2 = await RSHttp.getText(URLConf.rssTextUrl2);
final r2f = RssFeed.parse(r2);
final items = r2f.items;
final items = r1f.items..addAll(r2f.items);
items.sort((a, b) {
final aDate = HttpDate.parse(a.pubDate ?? "").millisecondsSinceEpoch;
final bDate = HttpDate.parse(b.pubDate ?? "").millisecondsSinceEpoch;

View File

@ -1,14 +0,0 @@
import 'dart:convert';
import 'package:starcitizen_doctor/common/conf/url_conf.dart';
import 'package:starcitizen_doctor/common/io/rs_http.dart';
import 'package:starcitizen_doctor/data/nav_api_data.dart';
class UDBNavApi {
static Future<NavApiData> getNavItems({int pageNo = 1}) async {
final r = await RSHttp.getText(URLConf.nav42KitUrl);
if (r.isEmpty) throw "Network Error";
final result = NavApiData.fromJson(jsonDecode(r));
return result;
}
}

View File

@ -3,16 +3,14 @@ import 'dart:io';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_acrylic/flutter_acrylic.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:go_router/go_router.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:hive_ce/hive.dart';
import 'package:hive/hive.dart';
import 'package:path_provider/path_provider.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:starcitizen_doctor/common/conf/conf.dart';
import 'package:starcitizen_doctor/common/conf/const_conf.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
import 'package:starcitizen_doctor/ui/guide/guide_ui.dart';
import 'package:starcitizen_doctor/ui/home/performance/performance_ui.dart';
import 'package:starcitizen_doctor/ui/splash_ui.dart';
import 'package:device_info_plus/device_info_plus.dart';
@ -22,19 +20,15 @@ import 'package:window_manager/window_manager.dart';
import 'api/analytics.dart';
import 'api/api.dart';
import 'common/conf/url_conf.dart';
import 'common/helper/system_helper.dart';
import 'common/io/rs_http.dart';
import 'common/rust/frb_generated.dart';
import 'common/rust/api/win32_api.dart' as win32;
import 'data/app_version_data.dart';
import 'generated/no_l10n_strings.dart';
import 'ui/home/downloader/home_downloader_ui.dart';
import 'ui/home/game_doctor/game_doctor_ui.dart';
import 'ui/home/localization/advanced_localization_ui.dart';
import 'ui/index_ui.dart';
import 'ui/settings/upgrade_dialog.dart';
import 'ui/tools/unp4kc/unp4kc_ui.dart';
part 'app.g.dart';
@ -49,45 +43,39 @@ class AppGlobalState with _$AppGlobalState {
AppVersionData? networkVersionData,
@Default(ThemeConf()) ThemeConf themeConf,
Locale? appLocale,
Box? appConfBox,
}) = _AppGlobalState;
}
@riverpod
GoRouter router(Ref ref) {
GoRouter router(RouterRef ref) {
return GoRouter(
routes: [
GoRoute(
path: '/',
pageBuilder: (context, state) => myPageBuilder(context, state, const SplashUI()),
pageBuilder: (context, state) =>
myPageBuilder(context, state, const SplashUI()),
),
GoRoute(
path: '/index',
pageBuilder: (context, state) => myPageBuilder(context, state, const IndexUI()),
pageBuilder: (context, state) =>
myPageBuilder(context, state, const IndexUI()),
routes: [
GoRoute(
path: "downloader",
pageBuilder: (context, state) => myPageBuilder(context, state, const HomeDownloaderUI())),
pageBuilder: (context, state) =>
myPageBuilder(context, state, const HomeDownloaderUI())),
GoRoute(
path: 'game_doctor',
pageBuilder: (context, state) => myPageBuilder(context, state, const HomeGameDoctorUI()),
pageBuilder: (context, state) =>
myPageBuilder(context, state, const HomeGameDoctorUI()),
),
GoRoute(
path: 'performance',
pageBuilder: (context, state) => myPageBuilder(context, state, const HomePerformanceUI()),
pageBuilder: (context, state) =>
myPageBuilder(context, state, const HomePerformanceUI()),
),
GoRoute(
path: 'advanced_localization',
pageBuilder: (context, state) => myPageBuilder(context, state, const AdvancedLocalizationUI()))
],
),
GoRoute(path: '/tools', builder: (_, __) => const SizedBox(), routes: [
GoRoute(
path: 'unp4kc',
pageBuilder: (context, state) => myPageBuilder(context, state, const UnP4kcUI()),
),
]),
GoRoute(path: '/guide', pageBuilder: (context, state) => myPageBuilder(context, state, const GuideUI()))
],
);
}
@ -99,8 +87,6 @@ class AppGlobalModel extends _$AppGlobalModel {
const Locale("zh", "CN"): NoL10n.langZHS,
const Locale("zh", "TW"): NoL10n.langZHT,
const Locale("en"): NoL10n.langEn,
const Locale("ja"): NoL10n.langJa,
const Locale("ru"): NoL10n.langRU,
};
@override
@ -113,7 +99,26 @@ class AppGlobalModel extends _$AppGlobalModel {
Future<void> initApp() async {
if (_initialized) return;
// init Data
final applicationSupportDir = await _initAppDir();
final userProfileDir = Platform.environment["USERPROFILE"];
final applicationSupportDir =
(await getApplicationSupportDirectory()).absolute.path;
String? applicationBinaryModuleDir;
final logFile = File(
"$applicationSupportDir\\logs\\${DateTime.now().millisecondsSinceEpoch}.log");
await logFile.create(recursive: true);
setDPrintFile(logFile);
if (ConstConf.isMSE && userProfileDir != null) {
applicationBinaryModuleDir =
"$userProfileDir\\AppData\\Local\\Temp\\SCToolbox\\modules";
} else {
applicationBinaryModuleDir = "$applicationSupportDir\\modules";
}
dPrint("applicationSupportDir == $applicationSupportDir");
dPrint("applicationBinaryModuleDir == $applicationBinaryModuleDir");
state = state.copyWith(
applicationSupportDir: applicationSupportDir,
applicationBinaryModuleDir: applicationBinaryModuleDir,
);
// init Rust bridge
await RustLib.init();
@ -124,7 +129,6 @@ class AppGlobalModel extends _$AppGlobalModel {
try {
Hive.init("$applicationSupportDir/db");
final box = await Hive.openBox("app_conf");
state = state.copyWith(appConfBox: box);
if (box.get("install_id", defaultValue: "") == "") {
await box.put("install_id", const Uuid().v4());
AnalyticsApi.touch("firstLaunch");
@ -142,19 +146,15 @@ class AppGlobalModel extends _$AppGlobalModel {
}
state = state.copyWith(deviceUUID: deviceUUID, appLocale: locale);
} catch (e) {
await win32.setForegroundWindow(windowName: "SCToolBox");
dPrint("exit: db is locking ...");
exit(0);
exit(1);
}
// init powershell
if (Platform.isWindows) {
try {
await SystemHelper.initPowershellPath();
dPrint("---- Powershell init -----");
} catch (e) {
dPrint("powershell init failed : $e");
}
try {
await SystemHelper.initPowershellPath();
dPrint("---- Powershell init -----");
}catch (e){
dPrint("powershell init failed : $e");
}
// get windows info
@ -167,18 +167,18 @@ class AppGlobalModel extends _$AppGlobalModel {
}
// init windows
windowManager.waitUntilReadyToShow().then((_) async {
await windowManager.setTitle("SCToolBox");
await windowManager.setSize(const Size(1280, 810));
await windowManager.setMinimumSize(const Size(1280, 810));
await windowManager.setSkipTaskbar(false);
await windowManager.show();
if (Platform.isWindows) {
await Window.initialize();
await Window.hideWindowControls();
if (windowsDeviceInfo?.productName.contains("Windows 11") ?? false) {
await Window.setEffect(
effect: WindowEffect.acrylic,
);
}
await Window.initialize();
await Window.hideWindowControls();
if (windowsDeviceInfo?.productName.contains("Windows 11") ?? false) {
await Window.setEffect(
effect: WindowEffect.acrylic,
);
}
});
@ -191,8 +191,6 @@ class AppGlobalModel extends _$AppGlobalModel {
return "${state.applicationSupportDir}/._upgrade";
}
bool isInOnlineMode() => state.networkVersionData != null;
// ignore: avoid_build_context_in_providers
Future<bool> checkUpdate(BuildContext context) async {
if (!ConstConf.isMSE) {
@ -206,18 +204,15 @@ class AppGlobalModel extends _$AppGlobalModel {
try {
final networkVersionData = await Api.getAppVersion();
dPrint("networkVersionData == ${networkVersionData.toJson()}");
AppConf.setNetworkChannels(networkVersionData.gameChannels);
checkActivityThemeColor(networkVersionData);
if (ConstConf.isMSE) {
dPrint("lastVersion=${networkVersionData.mSELastVersion} ${networkVersionData.mSELastVersionCode}");
dPrint(
"lastVersion=${networkVersionData.mSELastVersion} ${networkVersionData.mSELastVersionCode}");
} else {
dPrint("lastVersion=${networkVersionData.lastVersion} ${networkVersionData.lastVersionCode}");
dPrint(
"lastVersion=${networkVersionData.lastVersion} ${networkVersionData.lastVersionCode}");
}
state = state.copyWith(networkVersionData: networkVersionData);
if (networkVersionData.nav42KitUrl != null) {
URLConf.nav42KitUrl = networkVersionData.nav42KitUrl!;
}
} catch (e) {
checkUpdateError = e;
dPrint("_checkUpdate Error:$e");
@ -227,18 +222,22 @@ class AppGlobalModel extends _$AppGlobalModel {
if (state.networkVersionData == null) {
if (!context.mounted) return false;
await showToast(
context, S.current.app_common_network_error(ConstConf.appVersionDate, checkUpdateError.toString()));
context,
S.current.app_common_network_error(
ConstConf.appVersionDate, checkUpdateError.toString()));
return false;
}
if (!Platform.isWindows) return false;
final lastVersion =
ConstConf.isMSE ? state.networkVersionData?.mSELastVersionCode : state.networkVersionData?.lastVersionCode;
final lastVersion = ConstConf.isMSE
? state.networkVersionData?.mSELastVersionCode
: state.networkVersionData?.lastVersionCode;
if ((lastVersion ?? 0) > ConstConf.appVersionCode) {
// need update
if (!context.mounted) return false;
final r =
await showDialog(dismissWithEsc: false, context: context, builder: (context) => const UpgradeDialogUI());
final r = await showDialog(
dismissWithEsc: false,
context: context,
builder: (context) => const UpgradeDialogUI());
if (r != true) {
if (!context.mounted) return false;
@ -265,8 +264,8 @@ class AppGlobalModel extends _$AppGlobalModel {
dPrint("now == $now start == $startTime end == $endTime");
if (now < startTime) {
_activityThemeColorTimer =
Timer(Duration(milliseconds: startTime - now), () => checkActivityThemeColor(networkVersionData));
_activityThemeColorTimer = Timer(Duration(milliseconds: startTime - now),
() => checkActivityThemeColor(networkVersionData));
dPrint("start Timer ....");
} else if (now >= startTime && now <= endTime) {
dPrint("update Color ....");
@ -274,21 +273,22 @@ class AppGlobalModel extends _$AppGlobalModel {
final colorCfg = networkVersionData.activityColors;
state = state.copyWith(
themeConf: ThemeConf(
backgroundColor: HexColor(colorCfg?.background ?? "#132431").withValues(alpha: .75),
menuColor: HexColor(colorCfg?.menu ?? "#132431").withValues(alpha: .95),
backgroundColor:
HexColor(colorCfg?.background ?? "#132431").withOpacity(.75),
menuColor: HexColor(colorCfg?.menu ?? "#132431").withOpacity(.95),
micaColor: HexColor(colorCfg?.mica ?? "#0A3142"),
),
);
// wait for end
_activityThemeColorTimer =
Timer(Duration(milliseconds: endTime - now), () => checkActivityThemeColor(networkVersionData));
_activityThemeColorTimer = Timer(Duration(milliseconds: endTime - now),
() => checkActivityThemeColor(networkVersionData));
} else {
dPrint("reset Color ....");
state = state.copyWith(
themeConf: ThemeConf(
backgroundColor: HexColor("#132431").withValues(alpha: .75),
menuColor: HexColor("#132431").withValues(alpha: .95),
backgroundColor: HexColor("#132431").withOpacity(.75),
menuColor: HexColor("#132431").withOpacity(.95),
micaColor: HexColor("#0A3142"),
),
);
@ -303,48 +303,13 @@ class AppGlobalModel extends _$AppGlobalModel {
await appConfBox.put("app_locale", null);
return;
}
final localeCode =
value.countryCode != null ? "${value.languageCode}_${value.countryCode ?? ""}" : value.languageCode;
dPrint("changeLocale == $value localeCode=== $localeCode");
final localeCode = value.countryCode != null
? "${value.languageCode}_${value.countryCode ?? ""}"
: value.languageCode;
await appConfBox.put("app_locale", localeCode);
state = state.copyWith(appLocale: value);
}
}
Future<String> _initAppDir() async {
if (Platform.isWindows) {
final userProfileDir = Platform.environment["USERPROFILE"];
final applicationSupportDir = (await getApplicationSupportDirectory()).absolute.path;
String? applicationBinaryModuleDir;
try {
await initDPrintFile(applicationSupportDir);
} catch (e) {
dPrint("initDPrintFile Error: $e");
}
if (ConstConf.isMSE && userProfileDir != null) {
applicationBinaryModuleDir = "$userProfileDir\\AppData\\Local\\Temp\\SCToolbox\\modules";
} else {
applicationBinaryModuleDir = "$applicationSupportDir\\modules";
}
dPrint("applicationSupportDir == $applicationSupportDir");
dPrint("applicationBinaryModuleDir == $applicationBinaryModuleDir");
state = state.copyWith(
applicationSupportDir: applicationSupportDir,
applicationBinaryModuleDir: applicationBinaryModuleDir,
);
return applicationSupportDir;
} else {
final applicationSupportDir = (await getApplicationSupportDirectory()).absolute.path;
final applicationBinaryModuleDir = "$applicationSupportDir/modules";
dPrint("applicationSupportDir == $applicationSupportDir");
dPrint("applicationBinaryModuleDir == $applicationBinaryModuleDir");
state = state.copyWith(
applicationSupportDir: applicationSupportDir,
applicationBinaryModuleDir: applicationBinaryModuleDir,
);
return applicationSupportDir;
}
}
}
@freezed

View File

@ -22,11 +22,8 @@ mixin _$AppGlobalState {
AppVersionData? get networkVersionData => throw _privateConstructorUsedError;
ThemeConf get themeConf => throw _privateConstructorUsedError;
Locale? get appLocale => throw _privateConstructorUsedError;
Box<dynamic>? get appConfBox => throw _privateConstructorUsedError;
/// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
$AppGlobalStateCopyWith<AppGlobalState> get copyWith =>
throw _privateConstructorUsedError;
}
@ -43,8 +40,7 @@ abstract class $AppGlobalStateCopyWith<$Res> {
String? applicationBinaryModuleDir,
AppVersionData? networkVersionData,
ThemeConf themeConf,
Locale? appLocale,
Box<dynamic>? appConfBox});
Locale? appLocale});
$ThemeConfCopyWith<$Res> get themeConf;
}
@ -59,8 +55,6 @@ class _$AppGlobalStateCopyWithImpl<$Res, $Val extends AppGlobalState>
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -70,7 +64,6 @@ class _$AppGlobalStateCopyWithImpl<$Res, $Val extends AppGlobalState>
Object? networkVersionData = freezed,
Object? themeConf = null,
Object? appLocale = freezed,
Object? appConfBox = freezed,
}) {
return _then(_value.copyWith(
deviceUUID: freezed == deviceUUID
@ -97,15 +90,9 @@ class _$AppGlobalStateCopyWithImpl<$Res, $Val extends AppGlobalState>
? _value.appLocale
: appLocale // ignore: cast_nullable_to_non_nullable
as Locale?,
appConfBox: freezed == appConfBox
? _value.appConfBox
: appConfBox // ignore: cast_nullable_to_non_nullable
as Box<dynamic>?,
) as $Val);
}
/// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ThemeConfCopyWith<$Res> get themeConf {
@ -129,8 +116,7 @@ abstract class _$$AppGlobalStateImplCopyWith<$Res>
String? applicationBinaryModuleDir,
AppVersionData? networkVersionData,
ThemeConf themeConf,
Locale? appLocale,
Box<dynamic>? appConfBox});
Locale? appLocale});
@override
$ThemeConfCopyWith<$Res> get themeConf;
@ -144,8 +130,6 @@ class __$$AppGlobalStateImplCopyWithImpl<$Res>
_$AppGlobalStateImpl _value, $Res Function(_$AppGlobalStateImpl) _then)
: super(_value, _then);
/// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -155,7 +139,6 @@ class __$$AppGlobalStateImplCopyWithImpl<$Res>
Object? networkVersionData = freezed,
Object? themeConf = null,
Object? appLocale = freezed,
Object? appConfBox = freezed,
}) {
return _then(_$AppGlobalStateImpl(
deviceUUID: freezed == deviceUUID
@ -182,10 +165,6 @@ class __$$AppGlobalStateImplCopyWithImpl<$Res>
? _value.appLocale
: appLocale // ignore: cast_nullable_to_non_nullable
as Locale?,
appConfBox: freezed == appConfBox
? _value.appConfBox
: appConfBox // ignore: cast_nullable_to_non_nullable
as Box<dynamic>?,
));
}
}
@ -199,8 +178,7 @@ class _$AppGlobalStateImpl implements _AppGlobalState {
this.applicationBinaryModuleDir,
this.networkVersionData,
this.themeConf = const ThemeConf(),
this.appLocale,
this.appConfBox});
this.appLocale});
@override
final String? deviceUUID;
@ -215,12 +193,10 @@ class _$AppGlobalStateImpl implements _AppGlobalState {
final ThemeConf themeConf;
@override
final Locale? appLocale;
@override
final Box<dynamic>? appConfBox;
@override
String toString() {
return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale, appConfBox: $appConfBox)';
return 'AppGlobalState(deviceUUID: $deviceUUID, applicationSupportDir: $applicationSupportDir, applicationBinaryModuleDir: $applicationBinaryModuleDir, networkVersionData: $networkVersionData, themeConf: $themeConf, appLocale: $appLocale)';
}
@override
@ -241,9 +217,7 @@ class _$AppGlobalStateImpl implements _AppGlobalState {
(identical(other.themeConf, themeConf) ||
other.themeConf == themeConf) &&
(identical(other.appLocale, appLocale) ||
other.appLocale == appLocale) &&
(identical(other.appConfBox, appConfBox) ||
other.appConfBox == appConfBox));
other.appLocale == appLocale));
}
@override
@ -254,12 +228,9 @@ class _$AppGlobalStateImpl implements _AppGlobalState {
applicationBinaryModuleDir,
networkVersionData,
themeConf,
appLocale,
appConfBox);
appLocale);
/// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$AppGlobalStateImplCopyWith<_$AppGlobalStateImpl> get copyWith =>
@ -274,8 +245,7 @@ abstract class _AppGlobalState implements AppGlobalState {
final String? applicationBinaryModuleDir,
final AppVersionData? networkVersionData,
final ThemeConf themeConf,
final Locale? appLocale,
final Box<dynamic>? appConfBox}) = _$AppGlobalStateImpl;
final Locale? appLocale}) = _$AppGlobalStateImpl;
@override
String? get deviceUUID;
@ -290,12 +260,7 @@ abstract class _AppGlobalState implements AppGlobalState {
@override
Locale? get appLocale;
@override
Box<dynamic>? get appConfBox;
/// Create a copy of AppGlobalState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
_$$AppGlobalStateImplCopyWith<_$AppGlobalStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}
@ -306,9 +271,7 @@ mixin _$ThemeConf {
Color get menuColor => throw _privateConstructorUsedError;
Color get micaColor => throw _privateConstructorUsedError;
/// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
$ThemeConfCopyWith<ThemeConf> get copyWith =>
throw _privateConstructorUsedError;
}
@ -331,8 +294,6 @@ class _$ThemeConfCopyWithImpl<$Res, $Val extends ThemeConf>
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -376,8 +337,6 @@ class __$$ThemeConfImplCopyWithImpl<$Res>
_$ThemeConfImpl _value, $Res Function(_$ThemeConfImpl) _then)
: super(_value, _then);
/// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -442,9 +401,7 @@ class _$ThemeConfImpl implements _ThemeConf {
int get hashCode =>
Object.hash(runtimeType, backgroundColor, menuColor, micaColor);
/// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$ThemeConfImplCopyWith<_$ThemeConfImpl> get copyWith =>
@ -463,11 +420,8 @@ abstract class _ThemeConf implements ThemeConf {
Color get menuColor;
@override
Color get micaColor;
/// Create a copy of ThemeConf
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
_$$ThemeConfImplCopyWith<_$ThemeConfImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@ -6,7 +6,7 @@ part of 'app.dart';
// RiverpodGenerator
// **************************************************************************
String _$routerHash() => r'cdf659da46a6dfbab2368a85be2f803f54823142';
String _$routerHash() => r'e7b1e3a9fd74b4f00e3d71017615d7fb82bd649d';
/// See also [router].
@ProviderFor(router)
@ -19,10 +19,8 @@ final routerProvider = AutoDisposeProvider<GoRouter>.internal(
allTransitiveDependencies: null,
);
@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
typedef RouterRef = AutoDisposeProviderRef<GoRouter>;
String _$appGlobalModelHash() => r'4e372bc744903960e4e7b146dbb394ded15e2c18';
String _$appGlobalModelHash() => r'9c114910aed546bfd469c8bbfa50cdd4a5be5028';
/// See also [AppGlobalModel].
@ProviderFor(AppGlobalModel)
@ -39,4 +37,4 @@ final appGlobalModelProvider =
typedef _$AppGlobalModel = AutoDisposeNotifier<AppGlobalState>;
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member

View File

@ -1,14 +1,12 @@
import 'dart:io';
import 'package:archive/archive.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
class BinaryModuleConf {
static const _modules = {
"aria2c": "0",
"unp4kc": "1",
};
static Future extractModule(List<String> modules, String workingDir) async {
@ -18,8 +16,7 @@ class BinaryModuleConf {
final version = m.value;
final dir = "$workingDir\\$name";
final versionFile = File("$dir\\version");
if (kReleaseMode &&
await versionFile.exists() &&
if (await versionFile.exists() &&
(await versionFile.readAsString()).trim() == version) {
dPrint(
"BinaryModuleConf.extractModule skip $name version == $version");

View File

@ -1,26 +0,0 @@
class ConstConf {
static const String appVersion = "2.14.1";
static const int appVersionCode = 65;
static const String appVersionDate = "2025-05-08";
static const _gameChannels = [
"LIVE",
"4.0_PREVIEW",
"PTU",
"EPTU",
"TECH-PREVIEW",
"HOTFIX",
];
static const isMSE = String.fromEnvironment("MSE", defaultValue: "false") == "true";
static const dohAddress = "https://223.6.6.6/resolve";
static const inputMethodServerPort = 59399;
}
class AppConf {
static List<String>? _networkGameChannels;
static setNetworkChannels(List<String>? channels) {
_networkGameChannels = channels;
}
static List<String> get gameChannels => _networkGameChannels ?? ConstConf._gameChannels;
}

View File

@ -0,0 +1,8 @@
class ConstConf {
static const String appVersion = "2.10.9 Beta";
static const int appVersionCode = 44;
static const String appVersionDate = "2024-03-26";
static const gameChannels = ["LIVE", "PTU", "EPTU"];
static const isMSE =
String.fromEnvironment("MSE", defaultValue: "false") == "true";
}

View File

@ -1,13 +1,11 @@
import 'package:starcitizen_doctor/api/api.dart';
import 'package:starcitizen_doctor/common/io/doh_client.dart';
import 'package:starcitizen_doctor/common/io/rs_http.dart';
import 'package:starcitizen_doctor/common/rust/http_package.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
class URLConf {
/// HOME API
static String gitApiHome = "https://git.scbox.xkeyc.cn";
static String rssApiHome = "https://rss.scbox.xkeyc.cn";
static String gitApiHome = "https://git.sctoolbox.sccsgo.com";
static String rssApiHome = "https://rss.sctoolbox.sccsgo.com";
static const String analyticsApiHome = "https://scbox.org";
static bool isUrlCheckPass = false;
@ -18,9 +16,6 @@ class URLConf {
static String get gitlabLocalizationUrl =>
"$gitApiHome/SCToolBox/LocalizationData";
static String get gitApiRSILauncherEnhanceUrl =>
"$gitApiHome/SCToolBox/RSILauncherEnhance";
static String get apiRepoPath => "$gitApiHome/SCToolBox/api/raw/branch/main";
static String get gitlabApiPath => "$gitApiHome/api/v1/";
@ -31,28 +26,27 @@ class URLConf {
static String get rssVideoUrl =>
"$rssApiHome/bilibili/user/channel/27976358/290653";
static String get rssTextUrl1 => "$rssApiHome/bilibili/user/article/40102960";
static String get rssTextUrl2 =>
"$rssApiHome/baidu/tieba/user/%E7%81%AC%E7%81%ACG%E7%81%AC%E7%81%AC&";
static const String googleTranslateApiUrl =
"https://translate-g-proxy.xkeyc.com";
static const feedbackUrl = "https://support.citizenwiki.cn/all";
static const feedbackFAQUrl = "https://support.citizenwiki.cn/t/sc-toolbox";
static String nav42KitUrl = "https://payload.citizenwiki.cn/api/community-navs?sort=is_sponsored&depth=2&page=1&limit=1000";
static const feedbackUrl = "https://txc.qq.com/products/614843";
static String get devReleaseUrl => "$gitApiHome/SCToolBox/Release/releases";
static Future<bool> checkHost() async {
// 使 DNS
final gitApiList = _genFinalList(await dnsLookupTxt("git.dns.scbox.org"));
final gitApiList =
_genFinalList(await RSHttp.dnsLookupTxt("git.dns.scbox.org"));
dPrint("DNS gitApiList ==== $gitApiList");
final fasterGit = await getFasterUrl(gitApiList);
dPrint("gitApiList.Faster ==== $fasterGit");
if (fasterGit != null) {
gitApiHome = fasterGit;
}
final rssApiList = _genFinalList(await dnsLookupTxt("rss.dns.scbox.org"));
final rssApiList =
_genFinalList(await RSHttp.dnsLookupTxt("rss.dns.scbox.org"));
final fasterRss = await getFasterUrl(rssApiList);
dPrint("DNS rssApiList ==== $rssApiList");
dPrint("rssApiList.Faster ==== $fasterRss");
@ -63,15 +57,6 @@ class URLConf {
return isUrlCheckPass;
}
static Future<List<String>> dnsLookupTxt(String host) async {
if (await Api.isUseInternalDNS()) {
dPrint("[URLConf] use internal DNS LookupTxt $host");
return RSHttp.dnsLookupTxt(host);
}
dPrint("[URLConf] use DOH LookupTxt $host");
return (await DohClient.resolveTXT(host)) ?? [];
}
static Future<String?> getFasterUrl(List<String> urls) async {
String firstUrl = "";
int callLen = 0;

View File

@ -1,13 +1,11 @@
import 'dart:convert';
import 'dart:io';
import 'package:hive_ce/hive.dart';
import 'package:starcitizen_doctor/common/conf/conf.dart';
import 'package:hive/hive.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
class SCLoggerHelper {
static Future<String?> getLogFilePath() async {
if (!Platform.isWindows) return null;
Map<String, String> envVars = Platform.environment;
final appDataPath = envVars["appdata"];
if (appDataPath == null) {
@ -31,16 +29,19 @@ class SCLoggerHelper {
}
static Future<List?> getLauncherLogList() async {
if (!Platform.isWindows) return [];
try {
final jsonLogPath = await getLogFilePath();
if (jsonLogPath == null) throw "no file path";
var jsonString = utf8.decode(await File(jsonLogPath).readAsBytes());
return jsonString.split("\n");
} catch (e) {
dPrint(e);
return [];
final jsonLogPath = await getLogFilePath();
if (jsonLogPath == null) return null;
var jsonString = utf8.decode(await File(jsonLogPath).readAsBytes());
if (jsonString.endsWith("\n")) {
jsonString = jsonString.substring(0, jsonString.length - 3);
}
if (jsonString.endsWith(" ")) {
jsonString = jsonString.substring(0, jsonString.length - 3);
}
if (jsonString.endsWith(",")) {
jsonString = jsonString.substring(0, jsonString.length - 3);
}
return json.decode("[$jsonString]");
}
static Future<List<String>> getGameInstallPath(List listData,
@ -49,8 +50,6 @@ class SCLoggerHelper {
List<String> scInstallPaths = [];
checkAndAddPath(String path, bool checkExists) async {
// \\ \
path = path.replaceAll(RegExp(r'\\+'), "\\");
if (path.isNotEmpty && !scInstallPaths.contains(path)) {
if (!checkExists) {
dPrint("find installPath == $path");
@ -73,29 +72,20 @@ class SCLoggerHelper {
try {
for (var v in withVersion) {
String pattern =
r'([a-zA-Z]:\\\\[^\\\\]*\\\\[^\\\\]*\\\\StarCitizen\\\\' + v + r')';
RegExp regExp = RegExp(pattern, caseSensitive: false);
for (var i = listData.length - 1; i > 0; i--) {
final line = listData[i];
final matches = regExp.allMatches(line);
for (var match in matches) {
await checkAndAddPath(match.group(0)!, checkExists);
}
}
}
if (scInstallPaths.isNotEmpty) {
//
for (var fileName in List.from(scInstallPaths)) {
for (var v in withVersion) {
if (fileName.toString().endsWith(v)) {
for (var nv in withVersion) {
final nextName =
"${fileName.toString().replaceAll("\\$v", "")}\\$nv";
await checkAndAddPath(nextName, true);
}
final m = listData[i];
final info = m["[browser][info] "];
if (info is String) {
String installPath = "";
if (info.contains("Installing Star Citizen $v")) {
installPath = "${info.split(" at ")[1]}\\$v";
}
if (info.contains("Launching Star Citizen $v from")) {
installPath = info
.replaceAll("Launching Star Citizen $v from (", "")
.replaceAll(")", "");
}
await checkAndAddPath(installPath, checkExists);
}
}
}
@ -104,16 +94,22 @@ class SCLoggerHelper {
if (scInstallPaths.isEmpty) rethrow;
}
return scInstallPaths;
}
static String getGameChannelID(String installPath) {
for (var value in AppConf.gameChannels) {
if (installPath.endsWith("\\$value")) {
return value;
if (scInstallPaths.isNotEmpty) {
//
for (var v in withVersion) {
for (var fileName in List.from(scInstallPaths)) {
if (fileName.toString().endsWith(v)) {
for (var nv in withVersion) {
final nextName =
"${fileName.toString().replaceAll("\\$v", "")}\\$nv";
await checkAndAddPath(nextName, true);
}
}
}
}
}
return "UNKNOWN";
return scInstallPaths;
}
static Future<List<String>?> getGameRunningLogs(String gameDir) async {
@ -175,11 +171,6 @@ class SCLoggerHelper {
return MapEntry(S.current.doctor_game_error_low_gpu_memory,
S.current.doctor_game_error_low_gpu_memory_info);
}
if (line.contains(
"try disabling with r_vulkanDisableLayers = 1 in your user.cfg")) {
return MapEntry(S.current.doctor_game_error_gpu_vulkan_crash,
S.current.doctor_game_error_gpu_vulkan_crash_info);
}
/// Unknown
if (line.contains("network.replicatedEntityHandle")) {

View File

@ -1,6 +1,6 @@
import 'dart:io';
import 'package:hive_ce/hive.dart';
import 'package:hive/hive.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
class SystemHelper {
@ -8,8 +8,8 @@ class SystemHelper {
static initPowershellPath() async {
try {
var result = await Process.run(powershellPath, ["echo", "pong"]);
if (!result.stdout.toString().startsWith("pong") &&
var result = await Process.run(powershellPath, ["echo", "ping"]);
if (!result.stdout.toString().startsWith("ping") &&
powershellPath == "powershell.exe") {
throw "powershell check failed";
}
@ -82,14 +82,11 @@ class SystemHelper {
}
/// RSI
static Future<String> getRSILauncherPath({bool skipEXE = false}) async {
static Future<String> getRSILauncherPath() async {
final confBox = await Hive.openBox("app_conf");
final path = confBox.get("custom_launcher_path");
if (path != null && path != "") {
if (await File(path).exists()) {
if (skipEXE) {
return "${path.toString().replaceAll("\\RSI Launcher.exe", "")}\\";
}
return path;
}
}
@ -105,9 +102,6 @@ class SystemHelper {
]);
if (r.stdout.toString().contains("RSI Launcher.exe")) {
final start = r.stdout.toString().split("RSI Launcher.exe");
if (skipEXE) {
return start[0];
}
return "${start[0]}RSI Launcher.exe";
}
}
@ -261,20 +255,15 @@ foreach ($adapter in $adapterMemory) {
.toUpperCase();
}
static Future openDir(path, {bool isFile = false}) async {
static Future openDir(path) async {
dPrint("SystemHelper.openDir path === $path");
if (Platform.isWindows) {
await Process.run(SystemHelper.powershellPath,
["explorer.exe", isFile ? "/select,$path" : "\"/select,\"$path\"\""]);
}
await Process.run(
SystemHelper.powershellPath, ["explorer.exe", "/select,\"\"$path\"\""]);
}
static String getHostsFilePath() {
if (Platform.isWindows) {
final envVars = Platform.environment;
final systemRoot = envVars["SYSTEMROOT"];
return "$systemRoot\\System32\\drivers\\etc\\hosts";
}
return "/etc/hosts";
final envVars = Platform.environment;
final systemRoot = envVars["SYSTEMROOT"];
return "$systemRoot\\System32\\drivers\\etc\\hosts";
}
}

View File

@ -1,46 +0,0 @@
import 'dart:convert';
import 'package:starcitizen_doctor/common/conf/conf.dart';
import 'package:starcitizen_doctor/common/io/rs_http.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
import 'package:starcitizen_doctor/data/doh_client_response_data.dart';
class DohClient {
static Future<DohClientResponseData?> resolve(
String domain, String type) async {
try {
final r = await RSHttp.getText(
"${ConstConf.dohAddress}?name=$domain&type=$type");
final data = DohClientResponseData.fromJson(json.decode(r));
return data;
} catch (e) {
dPrint("DohClient.resolve error: $e");
return null;
}
}
static Future<List<String>?> resolveIP(String domain, String type) async {
final data = await resolve(domain, type);
if (data == null) return [];
return data.answer?.map((e) => _removeDataPadding(e.data)).toList();
}
static Future<List<String>?> resolveTXT(String domain) async {
final data = await resolve(domain, "TXT");
if (data == null) return [];
return data.answer?.map((e) => _removeDataPadding(e.data)).toList();
}
static String _removeDataPadding(String? data) {
// data demo: {"data":"\"https://git.scbox.xkeyc.cn,https://gitapi.scbox.org\""}
if (data == null) return "";
data = data.trim();
if (data.startsWith("\"")) {
data = data.substring(1);
}
if (data.endsWith("\"")) {
data = data.substring(0, data.length - 1);
}
return data;
}
}

View File

@ -1,7 +1,7 @@
import 'dart:convert';
import 'dart:typed_data';
import 'package:starcitizen_doctor/common/conf/conf.dart';
import 'package:starcitizen_doctor/common/conf/const_conf.dart';
import 'package:starcitizen_doctor/common/rust/api/http_api.dart' as rust_http;
import 'package:starcitizen_doctor/common/rust/api/http_api.dart';
import 'package:starcitizen_doctor/common/rust/http_package.dart';
@ -14,73 +14,49 @@ class RSHttp {
});
}
static Future<RustHttpResponse> get(
String url, {
Map<String, String>? headers,
String? withIpAddress,
bool? withCustomDns,
}) async {
static Future<RustHttpResponse> get(String url,
{Map<String, String>? headers, String? withIpAddress}) async {
final r = await rust_http.fetch(
method: MyMethod.gets,
url: url,
headers: headers,
withIpAddress: withIpAddress,
withCustomDns: withCustomDns,
);
method: MyMethod.gets,
url: url,
headers: headers,
withIpAddress: withIpAddress);
return r;
}
static Future<String> getText(
String url, {
Map<String, String>? headers,
String? withIpAddress,
bool? withCustomDns,
}) async {
final r = await get(url,
headers: headers,
withIpAddress: withIpAddress,
withCustomDns: withCustomDns);
static Future<String> getText(String url,
{Map<String, String>? headers, String? withIpAddress}) async {
final r = await get(url, headers: headers, withIpAddress: withIpAddress);
if (r.data == null) return "";
final str = utf8.decode(r.data!);
return str;
}
static Future<RustHttpResponse> postData(
String url, {
Map<String, String>? headers,
String? contentType,
Uint8List? data,
String? withIpAddress,
bool? withCustomDns,
}) async {
static Future<RustHttpResponse> postData(String url,
{Map<String, String>? headers,
String? contentType,
Uint8List? data,
String? withIpAddress}) async {
if (contentType != null) {
headers ??= {};
headers["Content-Type"] = contentType;
}
final r = await rust_http.fetch(
method: MyMethod.post,
url: url,
headers: headers,
inputData: data,
withIpAddress: withIpAddress,
withCustomDns: withCustomDns,
);
method: MyMethod.post,
url: url,
headers: headers,
inputData: data,
withIpAddress: withIpAddress);
return r;
}
static Future<RustHttpResponse> head(
String url, {
Map<String, String>? headers,
String? withIpAddress,
bool? withCustomDns,
}) async {
static Future<RustHttpResponse> head(String url,
{Map<String, String>? headers, String? withIpAddress}) async {
final r = await rust_http.fetch(
method: MyMethod.head,
url: url,
headers: headers,
withIpAddress: withIpAddress,
withCustomDns: withCustomDns,
);
method: MyMethod.head,
url: url,
headers: headers,
withIpAddress: withIpAddress);
return r;
}

View File

@ -1,41 +0,0 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<RsiLauncherAsarData> getRsiLauncherAsarData(
{required String asarPath}) =>
RustLib.instance.api
.crateApiAsarApiGetRsiLauncherAsarData(asarPath: asarPath);
class RsiLauncherAsarData {
final String asarPath;
final String mainJsPath;
final Uint8List mainJsContent;
const RsiLauncherAsarData({
required this.asarPath,
required this.mainJsPath,
required this.mainJsContent,
});
Future<void> writeMainJs({required List<int> content}) =>
RustLib.instance.api.crateApiAsarApiRsiLauncherAsarDataWriteMainJs(
that: this, content: content);
@override
int get hashCode =>
asarPath.hashCode ^ mainJsPath.hashCode ^ mainJsContent.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is RsiLauncherAsarData &&
runtimeType == other.runtimeType &&
asarPath == other.asarPath &&
mainJsPath == other.mainJsPath &&
mainJsContent == other.mainJsContent;
}

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.9.0.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -7,10 +7,9 @@ import '../frb_generated.dart';
import '../http_package.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
// These functions are ignored because they are not marked as `pub`: `_my_method_to_hyper_method`
Future<void> setDefaultHeader({required Map<String, String> headers}) =>
RustLib.instance.api.crateApiHttpApiSetDefaultHeader(headers: headers);
Future<void> setDefaultHeader(
{required Map<String, String> headers, dynamic hint}) =>
RustLib.instance.api.setDefaultHeader(headers: headers, hint: hint);
Future<RustHttpResponse> fetch(
{required MyMethod method,
@ -18,20 +17,20 @@ Future<RustHttpResponse> fetch(
Map<String, String>? headers,
Uint8List? inputData,
String? withIpAddress,
bool? withCustomDns}) =>
RustLib.instance.api.crateApiHttpApiFetch(
dynamic hint}) =>
RustLib.instance.api.fetch(
method: method,
url: url,
headers: headers,
inputData: inputData,
withIpAddress: withIpAddress,
withCustomDns: withCustomDns);
hint: hint);
Future<List<String>> dnsLookupTxt({required String host}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupTxt(host: host);
Future<List<String>> dnsLookupTxt({required String host, dynamic hint}) =>
RustLib.instance.api.dnsLookupTxt(host: host, hint: hint);
Future<List<String>> dnsLookupIps({required String host}) =>
RustLib.instance.api.crateApiHttpApiDnsLookupIps(host: host);
Future<List<String>> dnsLookupIps({required String host, dynamic hint}) =>
RustLib.instance.api.dnsLookupIps(host: host, hint: hint);
enum MyMethod {
options,
@ -43,5 +42,4 @@ enum MyMethod {
trace,
connect,
patch,
;
}

View File

@ -0,0 +1,18 @@
// This file is automatically generated, so please do not edit it.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Stream<String> startProcess(
{required String executable,
required List<String> arguments,
required String workingDirectory,
dynamic hint}) =>
RustLib.instance.api.startProcess(
executable: executable,
arguments: arguments,
workingDirectory: workingDirectory,
hint: hint);

View File

@ -1,54 +0,0 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
// These functions are ignored because they are not marked as `pub`: `_process_output`
// These types are ignored because they are neither used by any `pub` functions nor (for structs and enums) marked `#[frb(unignore)]`: `RsProcess`
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `clone`
Stream<RsProcessStreamData> start(
{required String executable,
required List<String> arguments,
required String workingDirectory}) =>
RustLib.instance.api.crateApiRsProcessStart(
executable: executable,
arguments: arguments,
workingDirectory: workingDirectory);
Future<void> write({required int rsPid, required String data}) =>
RustLib.instance.api.crateApiRsProcessWrite(rsPid: rsPid, data: data);
class RsProcessStreamData {
final RsProcessStreamDataType dataType;
final String data;
final int rsPid;
const RsProcessStreamData({
required this.dataType,
required this.data,
required this.rsPid,
});
@override
int get hashCode => dataType.hashCode ^ data.hashCode ^ rsPid.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is RsProcessStreamData &&
runtimeType == other.runtimeType &&
dataType == other.dataType &&
data == other.data &&
rsPid == other.rsPid;
}
enum RsProcessStreamDataType {
output,
error,
exit,
;
}

View File

@ -1,16 +0,0 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.9.0.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
import '../frb_generated.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
Future<void> sendNotify(
{String? summary, String? body, String? appName, String? appId}) =>
RustLib.instance.api.crateApiWin32ApiSendNotify(
summary: summary, body: body, appName: appName, appId: appId);
Future<bool> setForegroundWindow({required String windowName}) =>
RustLib.instance.api
.crateApiWin32ApiSetForegroundWindow(windowName: windowName);

View File

@ -1,17 +1,13 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.9.0.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
import 'api/asar_api.dart';
import 'api/http_api.dart';
import 'api/rs_process.dart';
import 'api/win32_api.dart';
import 'api/process_api.dart';
import 'dart:async';
import 'dart:convert';
import 'frb_generated.dart';
import 'frb_generated.io.dart'
if (dart.library.js_interop) 'frb_generated.web.dart';
import 'frb_generated.io.dart' if (dart.library.html) 'frb_generated.web.dart';
import 'http_package.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
@ -35,16 +31,6 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
);
}
/// Initialize flutter_rust_bridge in mock mode.
/// No libraries for FFI are loaded.
static void initMock({
required RustLibApi api,
}) {
instance.initMockImpl(
api: api,
);
}
/// Dispose flutter_rust_bridge
///
/// The call to this function is optional, since flutter_rust_bridge (and everything else)
@ -67,10 +53,7 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
kDefaultExternalLibraryLoaderConfig;
@override
String get codegenVersion => '2.9.0';
@override
int get rustContentHash => 1832496273;
String get codegenVersion => '2.0.0-dev.28';
static const kDefaultExternalLibraryLoaderConfig =
ExternalLibraryLoaderConfig(
@ -81,40 +64,26 @@ class RustLib extends BaseEntrypoint<RustLibApi, RustLibApiImpl, RustLibWire> {
}
abstract class RustLibApi extends BaseApi {
Future<List<String>> crateApiHttpApiDnsLookupIps({required String host});
Future<List<String>> dnsLookupIps({required String host, dynamic hint});
Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host});
Future<List<String>> dnsLookupTxt({required String host, dynamic hint});
Future<RustHttpResponse> crateApiHttpApiFetch(
Future<RustHttpResponse> fetch(
{required MyMethod method,
required String url,
Map<String, String>? headers,
Uint8List? inputData,
String? withIpAddress,
bool? withCustomDns});
dynamic hint});
Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData(
{required String asarPath});
Future<void> setDefaultHeader(
{required Map<String, String> headers, dynamic hint});
Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs(
{required RsiLauncherAsarData that, required List<int> content});
Future<void> crateApiWin32ApiSendNotify(
{String? summary, String? body, String? appName, String? appId});
Future<void> crateApiHttpApiSetDefaultHeader(
{required Map<String, String> headers});
Future<bool> crateApiWin32ApiSetForegroundWindow(
{required String windowName});
Stream<RsProcessStreamData> crateApiRsProcessStart(
Stream<String> startProcess(
{required String executable,
required List<String> arguments,
required String workingDirectory});
Future<void> crateApiRsProcessWrite(
{required int rsPid, required String data});
required String workingDirectory,
dynamic hint});
}
class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
@ -126,280 +95,135 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
});
@override
Future<List<String>> crateApiHttpApiDnsLookupIps({required String host}) {
Future<List<String>> dnsLookupIps({required String host, dynamic hint}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(host);
return wire.wire__crate__api__http_api__dns_lookup_ips(port_, arg0);
return wire.wire_dns_lookup_ips(port_, arg0);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_list_String,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiHttpApiDnsLookupIpsConstMeta,
constMeta: kDnsLookupIpsConstMeta,
argValues: [host],
apiImpl: this,
hint: hint,
));
}
TaskConstMeta get kCrateApiHttpApiDnsLookupIpsConstMeta =>
const TaskConstMeta(
TaskConstMeta get kDnsLookupIpsConstMeta => const TaskConstMeta(
debugName: "dns_lookup_ips",
argNames: ["host"],
);
@override
Future<List<String>> crateApiHttpApiDnsLookupTxt({required String host}) {
Future<List<String>> dnsLookupTxt({required String host, dynamic hint}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(host);
return wire.wire__crate__api__http_api__dns_lookup_txt(port_, arg0);
return wire.wire_dns_lookup_txt(port_, arg0);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_list_String,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiHttpApiDnsLookupTxtConstMeta,
constMeta: kDnsLookupTxtConstMeta,
argValues: [host],
apiImpl: this,
hint: hint,
));
}
TaskConstMeta get kCrateApiHttpApiDnsLookupTxtConstMeta =>
const TaskConstMeta(
TaskConstMeta get kDnsLookupTxtConstMeta => const TaskConstMeta(
debugName: "dns_lookup_txt",
argNames: ["host"],
);
@override
Future<RustHttpResponse> crateApiHttpApiFetch(
Future<RustHttpResponse> fetch(
{required MyMethod method,
required String url,
Map<String, String>? headers,
Uint8List? inputData,
String? withIpAddress,
bool? withCustomDns}) {
dynamic hint}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_my_method(method);
var arg1 = cst_encode_String(url);
var arg2 = cst_encode_opt_Map_String_String_None(headers);
var arg2 = cst_encode_opt_Map_String_String(headers);
var arg3 = cst_encode_opt_list_prim_u_8_strict(inputData);
var arg4 = cst_encode_opt_String(withIpAddress);
var arg5 = cst_encode_opt_box_autoadd_bool(withCustomDns);
return wire.wire__crate__api__http_api__fetch(
port_, arg0, arg1, arg2, arg3, arg4, arg5);
return wire.wire_fetch(port_, arg0, arg1, arg2, arg3, arg4);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_rust_http_response,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiHttpApiFetchConstMeta,
argValues: [
method,
url,
headers,
inputData,
withIpAddress,
withCustomDns
],
constMeta: kFetchConstMeta,
argValues: [method, url, headers, inputData, withIpAddress],
apiImpl: this,
hint: hint,
));
}
TaskConstMeta get kCrateApiHttpApiFetchConstMeta => const TaskConstMeta(
TaskConstMeta get kFetchConstMeta => const TaskConstMeta(
debugName: "fetch",
argNames: [
"method",
"url",
"headers",
"inputData",
"withIpAddress",
"withCustomDns"
],
argNames: ["method", "url", "headers", "inputData", "withIpAddress"],
);
@override
Future<RsiLauncherAsarData> crateApiAsarApiGetRsiLauncherAsarData(
{required String asarPath}) {
Future<void> setDefaultHeader(
{required Map<String, String> headers, dynamic hint}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(asarPath);
return wire.wire__crate__api__asar_api__get_rsi_launcher_asar_data(
port_, arg0);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_rsi_launcher_asar_data,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta,
argValues: [asarPath],
apiImpl: this,
));
}
TaskConstMeta get kCrateApiAsarApiGetRsiLauncherAsarDataConstMeta =>
const TaskConstMeta(
debugName: "get_rsi_launcher_asar_data",
argNames: ["asarPath"],
);
@override
Future<void> crateApiAsarApiRsiLauncherAsarDataWriteMainJs(
{required RsiLauncherAsarData that, required List<int> content}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_box_autoadd_rsi_launcher_asar_data(that);
var arg1 = cst_encode_list_prim_u_8_loose(content);
return wire
.wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
port_, arg0, arg1);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta,
argValues: [that, content],
apiImpl: this,
));
}
TaskConstMeta get kCrateApiAsarApiRsiLauncherAsarDataWriteMainJsConstMeta =>
const TaskConstMeta(
debugName: "rsi_launcher_asar_data_write_main_js",
argNames: ["that", "content"],
);
@override
Future<void> crateApiWin32ApiSendNotify(
{String? summary, String? body, String? appName, String? appId}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_opt_String(summary);
var arg1 = cst_encode_opt_String(body);
var arg2 = cst_encode_opt_String(appName);
var arg3 = cst_encode_opt_String(appId);
return wire.wire__crate__api__win32_api__send_notify(
port_, arg0, arg1, arg2, arg3);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiWin32ApiSendNotifyConstMeta,
argValues: [summary, body, appName, appId],
apiImpl: this,
));
}
TaskConstMeta get kCrateApiWin32ApiSendNotifyConstMeta => const TaskConstMeta(
debugName: "send_notify",
argNames: ["summary", "body", "appName", "appId"],
);
@override
Future<void> crateApiHttpApiSetDefaultHeader(
{required Map<String, String> headers}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_Map_String_String_None(headers);
return wire.wire__crate__api__http_api__set_default_header(port_, arg0);
var arg0 = cst_encode_Map_String_String(headers);
return wire.wire_set_default_header(port_, arg0);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: null,
),
constMeta: kCrateApiHttpApiSetDefaultHeaderConstMeta,
constMeta: kSetDefaultHeaderConstMeta,
argValues: [headers],
apiImpl: this,
hint: hint,
));
}
TaskConstMeta get kCrateApiHttpApiSetDefaultHeaderConstMeta =>
const TaskConstMeta(
TaskConstMeta get kSetDefaultHeaderConstMeta => const TaskConstMeta(
debugName: "set_default_header",
argNames: ["headers"],
);
@override
Future<bool> crateApiWin32ApiSetForegroundWindow(
{required String windowName}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_String(windowName);
return wire.wire__crate__api__win32_api__set_foreground_window(
port_, arg0);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_bool,
decodeErrorData: dco_decode_AnyhowException,
),
constMeta: kCrateApiWin32ApiSetForegroundWindowConstMeta,
argValues: [windowName],
apiImpl: this,
));
}
TaskConstMeta get kCrateApiWin32ApiSetForegroundWindowConstMeta =>
const TaskConstMeta(
debugName: "set_foreground_window",
argNames: ["windowName"],
);
@override
Stream<RsProcessStreamData> crateApiRsProcessStart(
Stream<String> startProcess(
{required String executable,
required List<String> arguments,
required String workingDirectory}) {
final streamSink = RustStreamSink<RsProcessStreamData>();
unawaited(handler.executeNormal(NormalTask(
required String workingDirectory,
dynamic hint}) {
return handler.executeStream(StreamTask(
callFfi: (port_) {
var arg0 = cst_encode_String(executable);
var arg1 = cst_encode_list_String(arguments);
var arg2 = cst_encode_String(workingDirectory);
var arg3 = cst_encode_StreamSink_rs_process_stream_data_Dco(streamSink);
return wire.wire__crate__api__rs_process__start(
port_, arg0, arg1, arg2, arg3);
return wire.wire_start_process(port_, arg0, arg1, arg2);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeSuccessData: dco_decode_String,
decodeErrorData: null,
),
constMeta: kCrateApiRsProcessStartConstMeta,
argValues: [executable, arguments, workingDirectory, streamSink],
apiImpl: this,
)));
return streamSink.stream;
}
TaskConstMeta get kCrateApiRsProcessStartConstMeta => const TaskConstMeta(
debugName: "start",
argNames: ["executable", "arguments", "workingDirectory", "streamSink"],
);
@override
Future<void> crateApiRsProcessWrite(
{required int rsPid, required String data}) {
return handler.executeNormal(NormalTask(
callFfi: (port_) {
var arg0 = cst_encode_u_32(rsPid);
var arg1 = cst_encode_String(data);
return wire.wire__crate__api__rs_process__write(port_, arg0, arg1);
},
codec: DcoCodec(
decodeSuccessData: dco_decode_unit,
decodeErrorData: null,
),
constMeta: kCrateApiRsProcessWriteConstMeta,
argValues: [rsPid, data],
constMeta: kStartProcessConstMeta,
argValues: [executable, arguments, workingDirectory],
apiImpl: this,
hint: hint,
));
}
TaskConstMeta get kCrateApiRsProcessWriteConstMeta => const TaskConstMeta(
debugName: "write",
argNames: ["rsPid", "data"],
TaskConstMeta get kStartProcessConstMeta => const TaskConstMeta(
debugName: "start_process",
argNames: ["executable", "arguments", "workingDirectory"],
);
@protected
@ -409,19 +233,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
Map<String, String> dco_decode_Map_String_String_None(dynamic raw) {
Map<String, String> dco_decode_Map_String_String(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return Map.fromEntries(dco_decode_list_record_string_string(raw)
.map((e) => MapEntry(e.$1, e.$2)));
}
@protected
RustStreamSink<RsProcessStreamData>
dco_decode_StreamSink_rs_process_stream_data_Dco(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
throw UnimplementedError();
}
@protected
String dco_decode_String(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
@ -429,26 +246,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
bool dco_decode_bool(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return raw as bool;
}
@protected
bool dco_decode_box_autoadd_bool(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return raw as bool;
}
@protected
RsiLauncherAsarData dco_decode_box_autoadd_rsi_launcher_asar_data(
dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return dco_decode_rsi_launcher_asar_data(raw);
}
@protected
BigInt dco_decode_box_autoadd_u_64(dynamic raw) {
int dco_decode_box_autoadd_u_64(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return dco_decode_u_64(raw);
}
@ -465,12 +263,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
return (raw as List<dynamic>).map(dco_decode_String).toList();
}
@protected
List<int> dco_decode_list_prim_u_8_loose(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return raw as List<int>;
}
@protected
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
@ -496,9 +288,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
Map<String, String>? dco_decode_opt_Map_String_String_None(dynamic raw) {
Map<String, String>? dco_decode_opt_Map_String_String(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return raw == null ? null : dco_decode_Map_String_String_None(raw);
return raw == null ? null : dco_decode_Map_String_String(raw);
}
@protected
@ -508,13 +300,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
bool? dco_decode_opt_box_autoadd_bool(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return raw == null ? null : dco_decode_box_autoadd_bool(raw);
}
@protected
BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw) {
int? dco_decode_opt_box_autoadd_u_64(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return raw == null ? null : dco_decode_box_autoadd_u_64(raw);
}
@ -538,38 +324,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
);
}
@protected
RsProcessStreamData dco_decode_rs_process_stream_data(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 3)
throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
return RsProcessStreamData(
dataType: dco_decode_rs_process_stream_data_type(arr[0]),
data: dco_decode_String(arr[1]),
rsPid: dco_decode_u_32(arr[2]),
);
}
@protected
RsProcessStreamDataType dco_decode_rs_process_stream_data_type(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return RsProcessStreamDataType.values[raw as int];
}
@protected
RsiLauncherAsarData dco_decode_rsi_launcher_asar_data(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 3)
throw Exception('unexpected arr length: expect 3 but see ${arr.length}');
return RsiLauncherAsarData(
asarPath: dco_decode_String(arr[0]),
mainJsPath: dco_decode_String(arr[1]),
mainJsContent: dco_decode_list_prim_u_8_strict(arr[2]),
);
}
@protected
RustHttpResponse dco_decode_rust_http_response(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
@ -578,7 +332,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
throw Exception('unexpected arr length: expect 7 but see ${arr.length}');
return RustHttpResponse(
statusCode: dco_decode_u_16(arr[0]),
headers: dco_decode_Map_String_String_None(arr[1]),
headers: dco_decode_Map_String_String(arr[1]),
url: dco_decode_String(arr[2]),
contentLength: dco_decode_opt_box_autoadd_u_64(arr[3]),
version: dco_decode_my_http_version(arr[4]),
@ -594,15 +348,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
int dco_decode_u_32(dynamic raw) {
int dco_decode_u_64(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return raw as int;
}
@protected
BigInt dco_decode_u_64(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
return dcoDecodeU64(raw);
return dcoDecodeI64OrU64(raw);
}
@protected
@ -625,21 +373,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
Map<String, String> sse_decode_Map_String_String_None(
Map<String, String> sse_decode_Map_String_String(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
var inner = sse_decode_list_record_string_string(deserializer);
return Map.fromEntries(inner.map((e) => MapEntry(e.$1, e.$2)));
}
@protected
RustStreamSink<RsProcessStreamData>
sse_decode_StreamSink_rs_process_stream_data_Dco(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
throw UnimplementedError('Unreachable ()');
}
@protected
String sse_decode_String(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
@ -648,26 +388,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
bool sse_decode_bool(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return deserializer.buffer.getUint8() != 0;
}
@protected
bool sse_decode_box_autoadd_bool(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return (sse_decode_bool(deserializer));
}
@protected
RsiLauncherAsarData sse_decode_box_autoadd_rsi_launcher_asar_data(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return (sse_decode_rsi_launcher_asar_data(deserializer));
}
@protected
BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer) {
int sse_decode_box_autoadd_u_64(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return (sse_decode_u_64(deserializer));
}
@ -690,13 +411,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
return ans_;
}
@protected
List<int> sse_decode_list_prim_u_8_loose(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
var len_ = sse_decode_i_32(deserializer);
return deserializer.buffer.getUint8List(len_);
}
@protected
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
@ -732,12 +446,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
Map<String, String>? sse_decode_opt_Map_String_String_None(
Map<String, String>? sse_decode_opt_Map_String_String(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
if (sse_decode_bool(deserializer)) {
return (sse_decode_Map_String_String_None(deserializer));
return (sse_decode_Map_String_String(deserializer));
} else {
return null;
}
@ -755,18 +469,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
bool? sse_decode_opt_box_autoadd_bool(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
if (sse_decode_bool(deserializer)) {
return (sse_decode_box_autoadd_bool(deserializer));
} else {
return null;
}
}
@protected
BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) {
int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
if (sse_decode_bool(deserializer)) {
@ -796,43 +499,11 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
return (var_field0, var_field1);
}
@protected
RsProcessStreamData sse_decode_rs_process_stream_data(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
var var_dataType = sse_decode_rs_process_stream_data_type(deserializer);
var var_data = sse_decode_String(deserializer);
var var_rsPid = sse_decode_u_32(deserializer);
return RsProcessStreamData(
dataType: var_dataType, data: var_data, rsPid: var_rsPid);
}
@protected
RsProcessStreamDataType sse_decode_rs_process_stream_data_type(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
var inner = sse_decode_i_32(deserializer);
return RsProcessStreamDataType.values[inner];
}
@protected
RsiLauncherAsarData sse_decode_rsi_launcher_asar_data(
SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
var var_asarPath = sse_decode_String(deserializer);
var var_mainJsPath = sse_decode_String(deserializer);
var var_mainJsContent = sse_decode_list_prim_u_8_strict(deserializer);
return RsiLauncherAsarData(
asarPath: var_asarPath,
mainJsPath: var_mainJsPath,
mainJsContent: var_mainJsContent);
}
@protected
RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
var var_statusCode = sse_decode_u_16(deserializer);
var var_headers = sse_decode_Map_String_String_None(deserializer);
var var_headers = sse_decode_Map_String_String(deserializer);
var var_url = sse_decode_String(deserializer);
var var_contentLength = sse_decode_opt_box_autoadd_u_64(deserializer);
var var_version = sse_decode_my_http_version(deserializer);
@ -855,15 +526,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
int sse_decode_u_32(SseDeserializer deserializer) {
int sse_decode_u_64(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return deserializer.buffer.getUint32();
}
@protected
BigInt sse_decode_u_64(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return deserializer.buffer.getBigUint64();
return deserializer.buffer.getUint64();
}
@protected
@ -878,9 +543,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
bool cst_encode_bool(bool raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return raw;
bool sse_decode_bool(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
return deserializer.buffer.getUint8() != 0;
}
@protected
@ -901,24 +566,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
return cst_encode_i_32(raw.index);
}
@protected
int cst_encode_rs_process_stream_data_type(RsProcessStreamDataType raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return cst_encode_i_32(raw.index);
}
@protected
int cst_encode_u_16(int raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return raw;
}
@protected
int cst_encode_u_32(int raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return raw;
}
@protected
int cst_encode_u_8(int raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
@ -935,30 +588,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
void sse_encode_AnyhowException(
AnyhowException self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_String(self.message, serializer);
throw UnimplementedError('Unreachable ((');
}
@protected
void sse_encode_Map_String_String_None(
void sse_encode_Map_String_String(
Map<String, String> self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_list_record_string_string(
self.entries.map((e) => (e.key, e.value)).toList(), serializer);
}
@protected
void sse_encode_StreamSink_rs_process_stream_data_Dco(
RustStreamSink<RsProcessStreamData> self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_String(
self.setupAndSerialize(
codec: DcoCodec(
decodeSuccessData: dco_decode_rs_process_stream_data,
decodeErrorData: dco_decode_AnyhowException,
)),
serializer);
}
@protected
void sse_encode_String(String self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
@ -966,26 +606,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
void sse_encode_bool(bool self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
serializer.buffer.putUint8(self ? 1 : 0);
}
@protected
void sse_encode_box_autoadd_bool(bool self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_bool(self, serializer);
}
@protected
void sse_encode_box_autoadd_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_rsi_launcher_asar_data(self, serializer);
}
@protected
void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer) {
void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_u_64(self, serializer);
}
@ -1005,15 +626,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
}
@protected
void sse_encode_list_prim_u_8_loose(
List<int> self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_i_32(self.length, serializer);
serializer.buffer
.putUint8List(self is Uint8List ? self : Uint8List.fromList(self));
}
@protected
void sse_encode_list_prim_u_8_strict(
Uint8List self, SseSerializer serializer) {
@ -1046,13 +658,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
void sse_encode_opt_Map_String_String_None(
void sse_encode_opt_Map_String_String(
Map<String, String>? self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_bool(self != null, serializer);
if (self != null) {
sse_encode_Map_String_String_None(self, serializer);
sse_encode_Map_String_String(self, serializer);
}
}
@ -1067,17 +679,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
void sse_encode_opt_box_autoadd_bool(bool? self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_bool(self != null, serializer);
if (self != null) {
sse_encode_box_autoadd_bool(self, serializer);
}
}
@protected
void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer) {
void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_bool(self != null, serializer);
@ -1105,37 +707,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
sse_encode_String(self.$2, serializer);
}
@protected
void sse_encode_rs_process_stream_data(
RsProcessStreamData self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_rs_process_stream_data_type(self.dataType, serializer);
sse_encode_String(self.data, serializer);
sse_encode_u_32(self.rsPid, serializer);
}
@protected
void sse_encode_rs_process_stream_data_type(
RsProcessStreamDataType self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_i_32(self.index, serializer);
}
@protected
void sse_encode_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_String(self.asarPath, serializer);
sse_encode_String(self.mainJsPath, serializer);
sse_encode_list_prim_u_8_strict(self.mainJsContent, serializer);
}
@protected
void sse_encode_rust_http_response(
RustHttpResponse self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
sse_encode_u_16(self.statusCode, serializer);
sse_encode_Map_String_String_None(self.headers, serializer);
sse_encode_Map_String_String(self.headers, serializer);
sse_encode_String(self.url, serializer);
sse_encode_opt_box_autoadd_u_64(self.contentLength, serializer);
sse_encode_my_http_version(self.version, serializer);
@ -1150,15 +727,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
}
@protected
void sse_encode_u_32(int self, SseSerializer serializer) {
void sse_encode_u_64(int self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
serializer.buffer.putUint32(self);
}
@protected
void sse_encode_u_64(BigInt self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
serializer.buffer.putBigUint64(self);
serializer.buffer.putUint64(self);
}
@protected
@ -1171,4 +742,10 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi {
void sse_encode_unit(void self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
}
@protected
void sse_encode_bool(bool self, SseSerializer serializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
serializer.buffer.putUint8(self ? 1 : 0);
}
}

View File

@ -1,12 +1,10 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.9.0.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28.
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
import 'api/asar_api.dart';
import 'api/http_api.dart';
import 'api/rs_process.dart';
import 'api/win32_api.dart';
import 'api/process_api.dart';
import 'dart:async';
import 'dart:convert';
import 'dart:ffi' as ffi;
@ -26,27 +24,13 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
AnyhowException dco_decode_AnyhowException(dynamic raw);
@protected
Map<String, String> dco_decode_Map_String_String_None(dynamic raw);
@protected
RustStreamSink<RsProcessStreamData>
dco_decode_StreamSink_rs_process_stream_data_Dco(dynamic raw);
Map<String, String> dco_decode_Map_String_String(dynamic raw);
@protected
String dco_decode_String(dynamic raw);
@protected
bool dco_decode_bool(dynamic raw);
@protected
bool dco_decode_box_autoadd_bool(dynamic raw);
@protected
RsiLauncherAsarData dco_decode_box_autoadd_rsi_launcher_asar_data(
dynamic raw);
@protected
BigInt dco_decode_box_autoadd_u_64(dynamic raw);
int dco_decode_box_autoadd_u_64(dynamic raw);
@protected
int dco_decode_i_32(dynamic raw);
@ -54,9 +38,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
List<String> dco_decode_list_String(dynamic raw);
@protected
List<int> dco_decode_list_prim_u_8_loose(dynamic raw);
@protected
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);
@ -70,16 +51,13 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
MyMethod dco_decode_my_method(dynamic raw);
@protected
Map<String, String>? dco_decode_opt_Map_String_String_None(dynamic raw);
Map<String, String>? dco_decode_opt_Map_String_String(dynamic raw);
@protected
String? dco_decode_opt_String(dynamic raw);
@protected
bool? dco_decode_opt_box_autoadd_bool(dynamic raw);
@protected
BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw);
int? dco_decode_opt_box_autoadd_u_64(dynamic raw);
@protected
Uint8List? dco_decode_opt_list_prim_u_8_strict(dynamic raw);
@ -87,15 +65,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
(String, String) dco_decode_record_string_string(dynamic raw);
@protected
RsProcessStreamData dco_decode_rs_process_stream_data(dynamic raw);
@protected
RsProcessStreamDataType dco_decode_rs_process_stream_data_type(dynamic raw);
@protected
RsiLauncherAsarData dco_decode_rsi_launcher_asar_data(dynamic raw);
@protected
RustHttpResponse dco_decode_rust_http_response(dynamic raw);
@ -103,10 +72,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
int dco_decode_u_16(dynamic raw);
@protected
int dco_decode_u_32(dynamic raw);
@protected
BigInt dco_decode_u_64(dynamic raw);
int dco_decode_u_64(dynamic raw);
@protected
int dco_decode_u_8(dynamic raw);
@ -118,29 +84,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
@protected
Map<String, String> sse_decode_Map_String_String_None(
Map<String, String> sse_decode_Map_String_String(
SseDeserializer deserializer);
@protected
RustStreamSink<RsProcessStreamData>
sse_decode_StreamSink_rs_process_stream_data_Dco(
SseDeserializer deserializer);
@protected
String sse_decode_String(SseDeserializer deserializer);
@protected
bool sse_decode_bool(SseDeserializer deserializer);
@protected
bool sse_decode_box_autoadd_bool(SseDeserializer deserializer);
@protected
RsiLauncherAsarData sse_decode_box_autoadd_rsi_launcher_asar_data(
SseDeserializer deserializer);
@protected
BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer);
int sse_decode_box_autoadd_u_64(SseDeserializer deserializer);
@protected
int sse_decode_i_32(SseDeserializer deserializer);
@ -148,9 +99,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
List<String> sse_decode_list_String(SseDeserializer deserializer);
@protected
List<int> sse_decode_list_prim_u_8_loose(SseDeserializer deserializer);
@protected
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);
@ -165,17 +113,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
MyMethod sse_decode_my_method(SseDeserializer deserializer);
@protected
Map<String, String>? sse_decode_opt_Map_String_String_None(
Map<String, String>? sse_decode_opt_Map_String_String(
SseDeserializer deserializer);
@protected
String? sse_decode_opt_String(SseDeserializer deserializer);
@protected
bool? sse_decode_opt_box_autoadd_bool(SseDeserializer deserializer);
@protected
BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer);
int? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer);
@protected
Uint8List? sse_decode_opt_list_prim_u_8_strict(SseDeserializer deserializer);
@ -184,18 +129,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
(String, String) sse_decode_record_string_string(
SseDeserializer deserializer);
@protected
RsProcessStreamData sse_decode_rs_process_stream_data(
SseDeserializer deserializer);
@protected
RsProcessStreamDataType sse_decode_rs_process_stream_data_type(
SseDeserializer deserializer);
@protected
RsiLauncherAsarData sse_decode_rsi_launcher_asar_data(
SseDeserializer deserializer);
@protected
RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer);
@ -203,10 +136,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
int sse_decode_u_16(SseDeserializer deserializer);
@protected
int sse_decode_u_32(SseDeserializer deserializer);
@protected
BigInt sse_decode_u_64(SseDeserializer deserializer);
int sse_decode_u_64(SseDeserializer deserializer);
@protected
int sse_decode_u_8(SseDeserializer deserializer);
@ -214,6 +144,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
void sse_decode_unit(SseDeserializer deserializer);
@protected
bool sse_decode_bool(SseDeserializer deserializer);
@protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_AnyhowException(
AnyhowException raw) {
@ -222,25 +155,13 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
}
@protected
ffi.Pointer<wire_cst_list_record_string_string>
cst_encode_Map_String_String_None(Map<String, String> raw) {
ffi.Pointer<wire_cst_list_record_string_string> cst_encode_Map_String_String(
Map<String, String> raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return cst_encode_list_record_string_string(
raw.entries.map((e) => (e.key, e.value)).toList());
}
@protected
ffi.Pointer<wire_cst_list_prim_u_8_strict>
cst_encode_StreamSink_rs_process_stream_data_Dco(
RustStreamSink<RsProcessStreamData> raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return cst_encode_String(raw.setupAndSerialize(
codec: DcoCodec(
decodeSuccessData: dco_decode_rs_process_stream_data,
decodeErrorData: dco_decode_AnyhowException,
)));
}
@protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_String(String raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
@ -248,22 +169,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
}
@protected
ffi.Pointer<ffi.Bool> cst_encode_box_autoadd_bool(bool raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return wire.cst_new_box_autoadd_bool(cst_encode_bool(raw));
}
@protected
ffi.Pointer<wire_cst_rsi_launcher_asar_data>
cst_encode_box_autoadd_rsi_launcher_asar_data(RsiLauncherAsarData raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
final ptr = wire.cst_new_box_autoadd_rsi_launcher_asar_data();
cst_api_fill_to_wire_rsi_launcher_asar_data(raw, ptr.ref);
return ptr;
}
@protected
ffi.Pointer<ffi.Uint64> cst_encode_box_autoadd_u_64(BigInt raw) {
ffi.Pointer<ffi.Uint64> cst_encode_box_autoadd_u_64(int raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw));
}
@ -278,15 +184,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
return ans;
}
@protected
ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_encode_list_prim_u_8_loose(
List<int> raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
final ans = wire.cst_new_list_prim_u_8_loose(raw.length);
ans.ref.ptr.asTypedList(raw.length).setAll(0, raw);
return ans;
}
@protected
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_list_prim_u_8_strict(
Uint8List raw) {
@ -309,9 +206,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
ffi.Pointer<wire_cst_list_record_string_string>
cst_encode_opt_Map_String_String_None(Map<String, String>? raw) {
cst_encode_opt_Map_String_String(Map<String, String>? raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return raw == null ? ffi.nullptr : cst_encode_Map_String_String_None(raw);
return raw == null ? ffi.nullptr : cst_encode_Map_String_String(raw);
}
@protected
@ -322,13 +219,7 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
}
@protected
ffi.Pointer<ffi.Bool> cst_encode_opt_box_autoadd_bool(bool? raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return raw == null ? ffi.nullptr : cst_encode_box_autoadd_bool(raw);
}
@protected
ffi.Pointer<ffi.Uint64> cst_encode_opt_box_autoadd_u_64(BigInt? raw) {
ffi.Pointer<ffi.Uint64> cst_encode_opt_box_autoadd_u_64(int? raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw);
}
@ -341,16 +232,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
}
@protected
int cst_encode_u_64(BigInt raw) {
int cst_encode_u_64(int raw) {
// Codec=Cst (C-struct based), see doc to use other codecs
return raw.toSigned(64).toInt();
}
@protected
void cst_api_fill_to_wire_box_autoadd_rsi_launcher_asar_data(
RsiLauncherAsarData apiObj,
ffi.Pointer<wire_cst_rsi_launcher_asar_data> wireObj) {
cst_api_fill_to_wire_rsi_launcher_asar_data(apiObj, wireObj.ref);
return raw.toInt();
}
@protected
@ -360,28 +244,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
wireObj.field1 = cst_encode_String(apiObj.$2);
}
@protected
void cst_api_fill_to_wire_rs_process_stream_data(
RsProcessStreamData apiObj, wire_cst_rs_process_stream_data wireObj) {
wireObj.data_type = cst_encode_rs_process_stream_data_type(apiObj.dataType);
wireObj.data = cst_encode_String(apiObj.data);
wireObj.rs_pid = cst_encode_u_32(apiObj.rsPid);
}
@protected
void cst_api_fill_to_wire_rsi_launcher_asar_data(
RsiLauncherAsarData apiObj, wire_cst_rsi_launcher_asar_data wireObj) {
wireObj.asar_path = cst_encode_String(apiObj.asarPath);
wireObj.main_js_path = cst_encode_String(apiObj.mainJsPath);
wireObj.main_js_content =
cst_encode_list_prim_u_8_strict(apiObj.mainJsContent);
}
@protected
void cst_api_fill_to_wire_rust_http_response(
RustHttpResponse apiObj, wire_cst_rust_http_response wireObj) {
wireObj.status_code = cst_encode_u_16(apiObj.statusCode);
wireObj.headers = cst_encode_Map_String_String_None(apiObj.headers);
wireObj.headers = cst_encode_Map_String_String(apiObj.headers);
wireObj.url = cst_encode_String(apiObj.url);
wireObj.content_length =
cst_encode_opt_box_autoadd_u_64(apiObj.contentLength);
@ -390,9 +257,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
wireObj.data = cst_encode_opt_list_prim_u_8_strict(apiObj.data);
}
@protected
bool cst_encode_bool(bool raw);
@protected
int cst_encode_i_32(int raw);
@ -402,15 +266,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
int cst_encode_my_method(MyMethod raw);
@protected
int cst_encode_rs_process_stream_data_type(RsProcessStreamDataType raw);
@protected
int cst_encode_u_16(int raw);
@protected
int cst_encode_u_32(int raw);
@protected
int cst_encode_u_8(int raw);
@ -422,28 +280,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
AnyhowException self, SseSerializer serializer);
@protected
void sse_encode_Map_String_String_None(
void sse_encode_Map_String_String(
Map<String, String> self, SseSerializer serializer);
@protected
void sse_encode_StreamSink_rs_process_stream_data_Dco(
RustStreamSink<RsProcessStreamData> self, SseSerializer serializer);
@protected
void sse_encode_String(String self, SseSerializer serializer);
@protected
void sse_encode_bool(bool self, SseSerializer serializer);
@protected
void sse_encode_box_autoadd_bool(bool self, SseSerializer serializer);
@protected
void sse_encode_box_autoadd_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer);
@protected
void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer);
void sse_encode_box_autoadd_u_64(int self, SseSerializer serializer);
@protected
void sse_encode_i_32(int self, SseSerializer serializer);
@ -451,9 +295,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
@protected
void sse_encode_list_String(List<String> self, SseSerializer serializer);
@protected
void sse_encode_list_prim_u_8_loose(List<int> self, SseSerializer serializer);
@protected
void sse_encode_list_prim_u_8_strict(
Uint8List self, SseSerializer serializer);
@ -469,17 +310,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
@protected
void sse_encode_opt_Map_String_String_None(
void sse_encode_opt_Map_String_String(
Map<String, String>? self, SseSerializer serializer);
@protected
void sse_encode_opt_String(String? self, SseSerializer serializer);
@protected
void sse_encode_opt_box_autoadd_bool(bool? self, SseSerializer serializer);
@protected
void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer);
void sse_encode_opt_box_autoadd_u_64(int? self, SseSerializer serializer);
@protected
void sse_encode_opt_list_prim_u_8_strict(
@ -489,18 +327,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
void sse_encode_record_string_string(
(String, String) self, SseSerializer serializer);
@protected
void sse_encode_rs_process_stream_data(
RsProcessStreamData self, SseSerializer serializer);
@protected
void sse_encode_rs_process_stream_data_type(
RsProcessStreamDataType self, SseSerializer serializer);
@protected
void sse_encode_rsi_launcher_asar_data(
RsiLauncherAsarData self, SseSerializer serializer);
@protected
void sse_encode_rust_http_response(
RustHttpResponse self, SseSerializer serializer);
@ -509,16 +335,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
void sse_encode_u_16(int self, SseSerializer serializer);
@protected
void sse_encode_u_32(int self, SseSerializer serializer);
@protected
void sse_encode_u_64(BigInt self, SseSerializer serializer);
void sse_encode_u_64(int self, SseSerializer serializer);
@protected
void sse_encode_u_8(int self, SseSerializer serializer);
@protected
void sse_encode_unit(void self, SseSerializer serializer);
@protected
void sse_encode_bool(bool self, SseSerializer serializer);
}
// Section: wire_class
@ -562,65 +388,61 @@ class RustLibWire implements BaseWire {
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
.asFunction<void Function(DartPostCObjectFnType)>();
void wire__crate__api__http_api__dns_lookup_ips(
void wire_dns_lookup_ips(
int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> host,
) {
return _wire__crate__api__http_api__dns_lookup_ips(
return _wire_dns_lookup_ips(
port_,
host,
);
}
late final _wire__crate__api__http_api__dns_lookup_ipsPtr = _lookup<
late final _wire_dns_lookup_ipsPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_ips');
late final _wire__crate__api__http_api__dns_lookup_ips =
_wire__crate__api__http_api__dns_lookup_ipsPtr.asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
'frbgen_starcitizen_doctor_wire_dns_lookup_ips');
late final _wire_dns_lookup_ips = _wire_dns_lookup_ipsPtr.asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
void wire__crate__api__http_api__dns_lookup_txt(
void wire_dns_lookup_txt(
int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> host,
) {
return _wire__crate__api__http_api__dns_lookup_txt(
return _wire_dns_lookup_txt(
port_,
host,
);
}
late final _wire__crate__api__http_api__dns_lookup_txtPtr = _lookup<
late final _wire_dns_lookup_txtPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_txt');
late final _wire__crate__api__http_api__dns_lookup_txt =
_wire__crate__api__http_api__dns_lookup_txtPtr.asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
'frbgen_starcitizen_doctor_wire_dns_lookup_txt');
late final _wire_dns_lookup_txt = _wire_dns_lookup_txtPtr.asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
void wire__crate__api__http_api__fetch(
void wire_fetch(
int port_,
int method,
ffi.Pointer<wire_cst_list_prim_u_8_strict> url,
ffi.Pointer<wire_cst_list_record_string_string> headers,
ffi.Pointer<wire_cst_list_prim_u_8_strict> input_data,
ffi.Pointer<wire_cst_list_prim_u_8_strict> with_ip_address,
ffi.Pointer<ffi.Bool> with_custom_dns,
) {
return _wire__crate__api__http_api__fetch(
return _wire_fetch(
port_,
method,
url,
headers,
input_data,
with_ip_address,
with_custom_dns,
);
}
late final _wire__crate__api__http_api__fetchPtr = _lookup<
late final _wire_fetchPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64,
@ -628,220 +450,63 @@ class RustLibWire implements BaseWire {
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_record_string_string>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<ffi.Bool>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__fetch');
late final _wire__crate__api__http_api__fetch =
_wire__crate__api__http_api__fetchPtr.asFunction<
void Function(
int,
int,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_record_string_string>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<ffi.Bool>)>();
void wire__crate__api__asar_api__get_rsi_launcher_asar_data(
int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> asar_path,
) {
return _wire__crate__api__asar_api__get_rsi_launcher_asar_data(
port_,
asar_path,
);
}
late final _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data');
late final _wire__crate__api__asar_api__get_rsi_launcher_asar_data =
_wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr.asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
void wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
int port_,
ffi.Pointer<wire_cst_rsi_launcher_asar_data> that,
ffi.Pointer<wire_cst_list_prim_u_8_loose> content,
) {
return _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
port_,
that,
content,
);
}
late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr =
_lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64,
ffi.Pointer<wire_cst_rsi_launcher_asar_data>,
ffi.Pointer<wire_cst_list_prim_u_8_loose>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js');
late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js =
_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr
.asFunction<
void Function(int, ffi.Pointer<wire_cst_rsi_launcher_asar_data>,
ffi.Pointer<wire_cst_list_prim_u_8_loose>)>();
void wire__crate__api__win32_api__send_notify(
int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> summary,
ffi.Pointer<wire_cst_list_prim_u_8_strict> body,
ffi.Pointer<wire_cst_list_prim_u_8_strict> app_name,
ffi.Pointer<wire_cst_list_prim_u_8_strict> app_id,
) {
return _wire__crate__api__win32_api__send_notify(
port_,
summary,
body,
app_name,
app_id,
);
}
late final _wire__crate__api__win32_api__send_notifyPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify');
late final _wire__crate__api__win32_api__send_notify =
_wire__crate__api__win32_api__send_notifyPtr.asFunction<
void Function(
int,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
'frbgen_starcitizen_doctor_wire_fetch');
late final _wire_fetch = _wire_fetchPtr.asFunction<
void Function(
int,
int,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_record_string_string>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
void wire__crate__api__http_api__set_default_header(
void wire_set_default_header(
int port_,
ffi.Pointer<wire_cst_list_record_string_string> headers,
) {
return _wire__crate__api__http_api__set_default_header(
return _wire_set_default_header(
port_,
headers,
);
}
late final _wire__crate__api__http_api__set_default_headerPtr = _lookup<
late final _wire_set_default_headerPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_record_string_string>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__http_api__set_default_header');
late final _wire__crate__api__http_api__set_default_header =
_wire__crate__api__http_api__set_default_headerPtr.asFunction<
void Function(
int, ffi.Pointer<wire_cst_list_record_string_string>)>();
'frbgen_starcitizen_doctor_wire_set_default_header');
late final _wire_set_default_header = _wire_set_default_headerPtr.asFunction<
void Function(int, ffi.Pointer<wire_cst_list_record_string_string>)>();
void wire__crate__api__win32_api__set_foreground_window(
int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> window_name,
) {
return _wire__crate__api__win32_api__set_foreground_window(
port_,
window_name,
);
}
late final _wire__crate__api__win32_api__set_foreground_windowPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window');
late final _wire__crate__api__win32_api__set_foreground_window =
_wire__crate__api__win32_api__set_foreground_windowPtr.asFunction<
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
void wire__crate__api__rs_process__start(
void wire_start_process(
int port_,
ffi.Pointer<wire_cst_list_prim_u_8_strict> executable,
ffi.Pointer<wire_cst_list_String> arguments,
ffi.Pointer<wire_cst_list_prim_u_8_strict> working_directory,
ffi.Pointer<wire_cst_list_prim_u_8_strict> stream_sink,
) {
return _wire__crate__api__rs_process__start(
return _wire_start_process(
port_,
executable,
arguments,
working_directory,
stream_sink,
);
}
late final _wire__crate__api__rs_process__startPtr = _lookup<
late final _wire_start_processPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Int64,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_String>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__rs_process__start');
late final _wire__crate__api__rs_process__start =
_wire__crate__api__rs_process__startPtr.asFunction<
void Function(
int,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_String>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
void wire__crate__api__rs_process__write(
int port_,
int rs_pid,
ffi.Pointer<wire_cst_list_prim_u_8_strict> data,
) {
return _wire__crate__api__rs_process__write(
port_,
rs_pid,
data,
);
}
late final _wire__crate__api__rs_process__writePtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(ffi.Int64, ffi.Uint32,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
'frbgen_starcitizen_doctor_wire__crate__api__rs_process__write');
late final _wire__crate__api__rs_process__write =
_wire__crate__api__rs_process__writePtr.asFunction<
void Function(
int, int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
ffi.Pointer<ffi.Bool> cst_new_box_autoadd_bool(
bool value,
) {
return _cst_new_box_autoadd_bool(
value,
);
}
late final _cst_new_box_autoadd_boolPtr =
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Bool> Function(ffi.Bool)>>(
'frbgen_starcitizen_doctor_cst_new_box_autoadd_bool');
late final _cst_new_box_autoadd_bool = _cst_new_box_autoadd_boolPtr
.asFunction<ffi.Pointer<ffi.Bool> Function(bool)>();
ffi.Pointer<wire_cst_rsi_launcher_asar_data>
cst_new_box_autoadd_rsi_launcher_asar_data() {
return _cst_new_box_autoadd_rsi_launcher_asar_data();
}
late final _cst_new_box_autoadd_rsi_launcher_asar_dataPtr = _lookup<
ffi.NativeFunction<
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()>>(
'frbgen_starcitizen_doctor_cst_new_box_autoadd_rsi_launcher_asar_data');
late final _cst_new_box_autoadd_rsi_launcher_asar_data =
_cst_new_box_autoadd_rsi_launcher_asar_dataPtr.asFunction<
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()>();
'frbgen_starcitizen_doctor_wire_start_process');
late final _wire_start_process = _wire_start_processPtr.asFunction<
void Function(
int,
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
ffi.Pointer<wire_cst_list_String>,
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
ffi.Pointer<ffi.Uint64> cst_new_box_autoadd_u_64(
int value,
@ -872,21 +537,6 @@ class RustLibWire implements BaseWire {
late final _cst_new_list_String = _cst_new_list_StringPtr
.asFunction<ffi.Pointer<wire_cst_list_String> Function(int)>();
ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_new_list_prim_u_8_loose(
int len,
) {
return _cst_new_list_prim_u_8_loose(
len,
);
}
late final _cst_new_list_prim_u_8_loosePtr = _lookup<
ffi.NativeFunction<
ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(ffi.Int32)>>(
'frbgen_starcitizen_doctor_cst_new_list_prim_u_8_loose');
late final _cst_new_list_prim_u_8_loose = _cst_new_list_prim_u_8_loosePtr
.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(int)>();
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_new_list_prim_u_8_strict(
int len,
) {
@ -931,14 +581,14 @@ class RustLibWire implements BaseWire {
_dummy_method_to_enforce_bundlingPtr.asFunction<int Function()>();
}
typedef DartPort = ffi.Int64;
typedef DartDartPort = int;
typedef DartPostCObjectFnType
= ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(
DartPort port_id, ffi.Pointer<ffi.Void> message);
typedef DartDartPostCObjectFnTypeFunction = bool Function(
DartDartPort port_id, ffi.Pointer<ffi.Void> message);
typedef DartPostCObjectFnType
= ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
typedef DartPort = ffi.Int64;
typedef DartDartPort = int;
final class wire_cst_list_prim_u_8_strict extends ffi.Struct {
external ffi.Pointer<ffi.Uint8> ptr;
@ -960,21 +610,6 @@ final class wire_cst_list_record_string_string extends ffi.Struct {
external int len;
}
final class wire_cst_rsi_launcher_asar_data extends ffi.Struct {
external ffi.Pointer<wire_cst_list_prim_u_8_strict> asar_path;
external ffi.Pointer<wire_cst_list_prim_u_8_strict> main_js_path;
external ffi.Pointer<wire_cst_list_prim_u_8_strict> main_js_content;
}
final class wire_cst_list_prim_u_8_loose extends ffi.Struct {
external ffi.Pointer<ffi.Uint8> ptr;
@ffi.Int32()
external int len;
}
final class wire_cst_list_String extends ffi.Struct {
external ffi.Pointer<ffi.Pointer<wire_cst_list_prim_u_8_strict>> ptr;
@ -982,16 +617,6 @@ final class wire_cst_list_String extends ffi.Struct {
external int len;
}
final class wire_cst_rs_process_stream_data extends ffi.Struct {
@ffi.Int32()
external int data_type;
external ffi.Pointer<wire_cst_list_prim_u_8_strict> data;
@ffi.Uint32()
external int rs_pid;
}
final class wire_cst_rust_http_response extends ffi.Struct {
@ffi.Uint16()
external int status_code;

View File

@ -1,5 +1,5 @@
// This file is automatically generated, so please do not edit it.
// @generated by `flutter_rust_bridge`@ 2.9.0.
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.28.
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
@ -13,14 +13,13 @@ enum MyHttpVersion {
http2,
http3,
httpUnknown,
;
}
class RustHttpResponse {
final int statusCode;
final Map<String, String> headers;
final String url;
final BigInt? contentLength;
final int? contentLength;
final MyHttpVersion version;
final String remoteAddr;
final Uint8List? data;

View File

@ -7,14 +7,16 @@ import 'dart:ui' as ui;
import 'package:flutter/services.dart';
import 'package:starcitizen_doctor/generated/l10n.dart';
Future showToast(BuildContext context, String msg, {BoxConstraints? constraints, String? title}) async {
Future showToast(BuildContext context, String msg,
{BoxConstraints? constraints, String? title}) async {
return showBaseDialog(context,
title: title ?? S.current.app_common_tip,
content: Text(msg),
actions: [
FilledButton(
child: Padding(
padding: const EdgeInsets.only(top: 2, bottom: 2, left: 8, right: 8),
padding:
const EdgeInsets.only(top: 2, bottom: 2, left: 8, right: 8),
child: Text(S.current.app_common_tip_i_know),
),
onPressed: () => Navigator.pop(context),
@ -23,8 +25,11 @@ Future showToast(BuildContext context, String msg, {BoxConstraints? constraints,
constraints: constraints);
}
Future<bool> showConfirmDialogs(BuildContext context, String title, Widget content,
{String confirm = "", String cancel = "", BoxConstraints? constraints}) async {
Future<bool> showConfirmDialogs(
BuildContext context, String title, Widget content,
{String confirm = "",
String cancel = "",
BoxConstraints? constraints}) async {
if (confirm.isEmpty) confirm = S.current.app_common_tip_confirm;
if (cancel.isEmpty) cancel = S.current.app_common_tip_cancel;
@ -35,7 +40,8 @@ Future<bool> showConfirmDialogs(BuildContext context, String title, Widget conte
if (confirm.isNotEmpty)
FilledButton(
child: Padding(
padding: const EdgeInsets.only(top: 2, bottom: 2, left: 8, right: 8),
padding:
const EdgeInsets.only(top: 2, bottom: 2, left: 8, right: 8),
child: Text(confirm),
),
onPressed: () => Navigator.pop(context, true),
@ -43,7 +49,8 @@ Future<bool> showConfirmDialogs(BuildContext context, String title, Widget conte
if (cancel.isNotEmpty)
Button(
child: Padding(
padding: const EdgeInsets.only(top: 2, bottom: 2, left: 8, right: 8),
padding:
const EdgeInsets.only(top: 2, bottom: 2, left: 8, right: 8),
child: Text(cancel),
),
onPressed: () => Navigator.pop(context, false),
@ -55,15 +62,13 @@ Future<bool> showConfirmDialogs(BuildContext context, String title, Widget conte
Future<String?> showInputDialogs(BuildContext context,
{required String title,
required String content,
BoxConstraints? constraints,
String? initialValue,
List<TextInputFormatter>? inputFormatters}) async {
required String content,
BoxConstraints? constraints,
String? initialValue,
List<TextInputFormatter>? inputFormatters}) async {
String? userInput;
constraints ??= BoxConstraints(maxWidth: MediaQuery
.of(context)
.size
.width * .38);
constraints ??=
BoxConstraints(maxWidth: MediaQuery.of(context).size.width * .38);
final ok = await showConfirmDialogs(
context,
title,
@ -74,7 +79,7 @@ Future<String?> showInputDialogs(BuildContext context,
if (content.isNotEmpty)
Text(
content,
style: TextStyle(color: Colors.white.withValues(alpha: .6)),
style: TextStyle(color: Colors.white.withOpacity(.6)),
),
const SizedBox(height: 8),
TextFormBox(
@ -92,20 +97,22 @@ Future<String?> showInputDialogs(BuildContext context,
}
Future showBaseDialog(BuildContext context,
{required String title, required Widget content, List<Widget>? actions, BoxConstraints? constraints}) async {
{required String title,
required Widget content,
List<Widget>? actions,
BoxConstraints? constraints}) async {
return await showDialog(
context: context,
builder: (context) =>
ContentDialog(
title: Text(title),
content: content,
constraints: constraints ??
const BoxConstraints(
maxWidth: 512,
maxHeight: 756.0,
),
actions: actions,
),
builder: (context) => ContentDialog(
title: Text(title),
content: content,
constraints: constraints ??
const BoxConstraints(
maxWidth: 512,
maxHeight: 756.0,
),
actions: actions,
),
);
}
@ -113,8 +120,10 @@ bool stringIsNotEmpty(String? s) {
return s != null && (s.isNotEmpty);
}
Future<Uint8List?> widgetToPngImage(GlobalKey repaintBoundaryKey, {double pixelRatio = 3.0}) async {
RenderRepaintBoundary? boundary = repaintBoundaryKey.currentContext?.findRenderObject() as RenderRepaintBoundary?;
Future<Uint8List?> widgetToPngImage(GlobalKey repaintBoundaryKey,
{double pixelRatio = 3.0}) async {
RenderRepaintBoundary? boundary = repaintBoundaryKey.currentContext
?.findRenderObject() as RenderRepaintBoundary?;
if (boundary == null) return null;
ui.Image image = await boundary.toImage(pixelRatio: pixelRatio);
@ -124,25 +133,5 @@ Future<Uint8List?> widgetToPngImage(GlobalKey repaintBoundaryKey, {double pixelR
return pngBytes;
}
double roundDoubleTo(double value, double precision) => (value * precision).round() / precision;
int getMinNumber(List<int> list) {
if (list.isEmpty) return 0;
list.sort((a, b) => a.compareTo(b));
return list.first;
}
String colorToHexCode(Color color, {ignoreTransparency = false}) {
final colorValue = color.toARGB32();
final colorAlpha = ((0xff000000 & colorValue) >> 24);
final r = ((0x00ff0000 & colorValue) >> 16).toRadixString(16).padLeft(2, '0');
final g = ((0x0000ff00 & colorValue) >> 8).toRadixString(16).padLeft(2, '0');
final b = ((0x000000ff & colorValue) >> 0).toRadixString(16).padLeft(2, '0');
final a = colorAlpha.toRadixString(16).padLeft(2, '0');
if (ignoreTransparency || colorAlpha == 255) {
return '#$r$g$b';
} else {
return '#$a$r$g$b';
}
}
double roundDoubleTo(double value, double precision) =>
(value * precision).round() / precision;

View File

@ -1,101 +0,0 @@
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:path/path.dart' as path;
import 'package:path_provider/path_provider.dart';
import 'dart:convert';
import 'package:crypto/crypto.dart';
import 'package:starcitizen_doctor/common/io/rs_http.dart';
class FileCacheUtils {
//
static final Map<String, Future<File>> _downloadingTasks = {};
//
static Directory? _cacheDir;
///
static Future<Directory> _getCacheDirectory() async {
if (_cacheDir != null) return _cacheDir!;
final tempDir = await getTemporaryDirectory();
_cacheDir = Directory(path.join(tempDir.path, 'ScToolbox_File_Cache'));
if (!await _cacheDir!.exists()) {
await _cacheDir!.create(recursive: true);
}
return _cacheDir!;
}
/// URL获取文件
static Future<File> getFile(String url) async {
//
if (_downloadingTasks.containsKey(url)) {
return _downloadingTasks[url]!;
}
final fileTask = _downloadFile(url);
_downloadingTasks[url] = fileTask;
try {
final file = await fileTask;
return file;
} finally {
//
_downloadingTasks.remove(url);
}
}
///
static Future<File> _downloadFile(String url) async {
// (使URL的MD5哈希作为文件名)
final filename = md5.convert(utf8.encode(url)).toString();
final cacheDir = await _getCacheDirectory();
final file = File(path.join(cacheDir.path, filename));
//
if (await file.exists()) {
return file;
}
//
final response = await RSHttp.get(url);
if (response.statusCode == 200) {
await file.writeAsBytes(response.data ?? []);
return file;
} else {
throw Exception('Failed to download file: ${response.statusCode}');
}
}
/// URL的缓存
static Future<bool> clearCache(String url) async {
try {
final filename = md5.convert(utf8.encode(url)).toString();
final cacheDir = await _getCacheDirectory();
final file = File(path.join(cacheDir.path, filename));
if (await file.exists()) {
await file.delete();
return true;
}
return false;
} catch (e) {
return false;
}
}
///
static Future<void> clearAllCache() async {
try {
final cacheDir = await _getCacheDirectory();
if (await cacheDir.exists()) {
await cacheDir.delete(recursive: true);
await cacheDir.create();
}
} catch (e) {
debugPrint('clear All Cache Error: $e');
}
}
}

View File

@ -11,7 +11,6 @@ File? _logFile;
void dPrint(src) async {
if (kDebugMode) {
print(src);
return;
}
await _logLock.synchronized(() async {
try {
@ -20,22 +19,8 @@ void dPrint(src) async {
});
}
Future<void> initDPrintFile(String applicationSupportDir) async {
final now = DateTime.now();
final logFile =
File("$applicationSupportDir/logs/${now.millisecondsSinceEpoch}.log");
await logFile.create(recursive: true);
_logFile = logFile;
final logsDir = Directory("$applicationSupportDir/logs");
await for (final files in logsDir.list()) {
if (files is File) {
final stat = await files.stat();
if (stat.type == FileSystemEntityType.file &&
now.difference(await files.lastModified()).inDays > 7) {
await files.delete();
}
}
}
void setDPrintFile(File file) {
_logFile = file;
}
File? getDPrintFile() {

View File

@ -1,116 +0,0 @@
import 'dart:convert';
import 'package:desktop_multi_window/desktop_multi_window.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hexcolor/hexcolor.dart';
import 'package:starcitizen_doctor/app.dart';
import 'package:starcitizen_doctor/common/helper/log_helper.dart';
import 'package:starcitizen_doctor/generated/l10n.dart';
import 'package:starcitizen_doctor/ui/tools/log_analyze_ui/log_analyze_ui.dart';
import 'base_utils.dart';
part 'multi_window_manager.freezed.dart';
part 'multi_window_manager.g.dart';
@freezed
class MultiWindowAppState with _$MultiWindowAppState {
const factory MultiWindowAppState({
required String backgroundColor,
required String menuColor,
required String micaColor,
required List<String> gameInstallPaths,
String? languageCode,
String? countryCode,
}) = _MultiWindowAppState;
factory MultiWindowAppState.fromJson(Map<String, dynamic> json) => _$MultiWindowAppStateFromJson(json);
}
class MultiWindowManager {
static Future<void> launchSubWindow(String type, String title, AppGlobalState appGlobalState) async {
final gameInstallPaths = await SCLoggerHelper.getGameInstallPath(await SCLoggerHelper.getLauncherLogList() ?? []);
final window = await DesktopMultiWindow.createWindow(jsonEncode({
'window_type': type,
'app_state': _appStateToWindowState(
appGlobalState,
gameInstallPaths: gameInstallPaths,
).toJson(),
}));
window.setFrame(const Rect.fromLTWH(0, 0, 900, 1200));
window.setTitle(title);
await window.center();
await window.show();
// sendAppStateBroadcast(appGlobalState);
}
static sendAppStateBroadcast(AppGlobalState appGlobalState) {
DesktopMultiWindow.invokeMethod(
0,
'app_state_broadcast',
_appStateToWindowState(appGlobalState).toJson(),
);
}
static MultiWindowAppState _appStateToWindowState(AppGlobalState appGlobalState, {List<String>? gameInstallPaths}) {
return MultiWindowAppState(
backgroundColor: colorToHexCode(appGlobalState.themeConf.backgroundColor),
menuColor: colorToHexCode(appGlobalState.themeConf.menuColor),
micaColor: colorToHexCode(appGlobalState.themeConf.micaColor),
languageCode: appGlobalState.appLocale?.languageCode,
countryCode: appGlobalState.appLocale?.countryCode,
gameInstallPaths: gameInstallPaths ?? [],
);
}
static void runSubWindowApp(List<String> args) {
final argument = args[2].isEmpty ? const {} : jsonDecode(args[2]) as Map<String, dynamic>;
final windowAppState = MultiWindowAppState.fromJson(argument['app_state'] ?? {});
Widget? windowWidget;
switch (argument["window_type"]) {
case "log_analyze":
windowWidget = ToolsLogAnalyzeDialogUI(appState: windowAppState);
break;
default:
throw Exception('Unknown window type');
}
return runApp(ProviderScope(
child: FluentApp(
title: "StarCitizenToolBox",
restorationScopeId: "StarCitizenToolBox",
themeMode: ThemeMode.dark,
localizationsDelegates: const [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
FluentLocalizations.delegate,
S.delegate,
],
supportedLocales: S.delegate.supportedLocales,
home: windowWidget,
theme: FluentThemeData(
brightness: Brightness.dark,
fontFamily: "SourceHanSansCN-Regular",
navigationPaneTheme: NavigationPaneThemeData(
backgroundColor: HexColor(windowAppState.backgroundColor),
),
menuColor: HexColor(windowAppState.menuColor),
micaBackgroundColor: HexColor(windowAppState.micaColor),
buttonTheme: ButtonThemeData(
defaultButtonStyle: ButtonStyle(
shape: WidgetStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4),
side: BorderSide(color: Colors.white.withValues(alpha: .01)))),
))),
locale: windowAppState.languageCode != null
? Locale(windowAppState.languageCode!, windowAppState.countryCode)
: null,
debugShowCheckedModeBanner: false,
),
));
}
}

View File

@ -1,290 +0,0 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'multi_window_manager.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
MultiWindowAppState _$MultiWindowAppStateFromJson(Map<String, dynamic> json) {
return _MultiWindowAppState.fromJson(json);
}
/// @nodoc
mixin _$MultiWindowAppState {
String get backgroundColor => throw _privateConstructorUsedError;
String get menuColor => throw _privateConstructorUsedError;
String get micaColor => throw _privateConstructorUsedError;
List<String> get gameInstallPaths => throw _privateConstructorUsedError;
String? get languageCode => throw _privateConstructorUsedError;
String? get countryCode => throw _privateConstructorUsedError;
/// Serializes this MultiWindowAppState to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$MultiWindowAppStateCopyWith<MultiWindowAppState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $MultiWindowAppStateCopyWith<$Res> {
factory $MultiWindowAppStateCopyWith(
MultiWindowAppState value, $Res Function(MultiWindowAppState) then) =
_$MultiWindowAppStateCopyWithImpl<$Res, MultiWindowAppState>;
@useResult
$Res call(
{String backgroundColor,
String menuColor,
String micaColor,
List<String> gameInstallPaths,
String? languageCode,
String? countryCode});
}
/// @nodoc
class _$MultiWindowAppStateCopyWithImpl<$Res, $Val extends MultiWindowAppState>
implements $MultiWindowAppStateCopyWith<$Res> {
_$MultiWindowAppStateCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? backgroundColor = null,
Object? menuColor = null,
Object? micaColor = null,
Object? gameInstallPaths = null,
Object? languageCode = freezed,
Object? countryCode = freezed,
}) {
return _then(_value.copyWith(
backgroundColor: null == backgroundColor
? _value.backgroundColor
: backgroundColor // ignore: cast_nullable_to_non_nullable
as String,
menuColor: null == menuColor
? _value.menuColor
: menuColor // ignore: cast_nullable_to_non_nullable
as String,
micaColor: null == micaColor
? _value.micaColor
: micaColor // ignore: cast_nullable_to_non_nullable
as String,
gameInstallPaths: null == gameInstallPaths
? _value.gameInstallPaths
: gameInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
languageCode: freezed == languageCode
? _value.languageCode
: languageCode // ignore: cast_nullable_to_non_nullable
as String?,
countryCode: freezed == countryCode
? _value.countryCode
: countryCode // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
}
/// @nodoc
abstract class _$$MultiWindowAppStateImplCopyWith<$Res>
implements $MultiWindowAppStateCopyWith<$Res> {
factory _$$MultiWindowAppStateImplCopyWith(_$MultiWindowAppStateImpl value,
$Res Function(_$MultiWindowAppStateImpl) then) =
__$$MultiWindowAppStateImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{String backgroundColor,
String menuColor,
String micaColor,
List<String> gameInstallPaths,
String? languageCode,
String? countryCode});
}
/// @nodoc
class __$$MultiWindowAppStateImplCopyWithImpl<$Res>
extends _$MultiWindowAppStateCopyWithImpl<$Res, _$MultiWindowAppStateImpl>
implements _$$MultiWindowAppStateImplCopyWith<$Res> {
__$$MultiWindowAppStateImplCopyWithImpl(_$MultiWindowAppStateImpl _value,
$Res Function(_$MultiWindowAppStateImpl) _then)
: super(_value, _then);
/// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? backgroundColor = null,
Object? menuColor = null,
Object? micaColor = null,
Object? gameInstallPaths = null,
Object? languageCode = freezed,
Object? countryCode = freezed,
}) {
return _then(_$MultiWindowAppStateImpl(
backgroundColor: null == backgroundColor
? _value.backgroundColor
: backgroundColor // ignore: cast_nullable_to_non_nullable
as String,
menuColor: null == menuColor
? _value.menuColor
: menuColor // ignore: cast_nullable_to_non_nullable
as String,
micaColor: null == micaColor
? _value.micaColor
: micaColor // ignore: cast_nullable_to_non_nullable
as String,
gameInstallPaths: null == gameInstallPaths
? _value._gameInstallPaths
: gameInstallPaths // ignore: cast_nullable_to_non_nullable
as List<String>,
languageCode: freezed == languageCode
? _value.languageCode
: languageCode // ignore: cast_nullable_to_non_nullable
as String?,
countryCode: freezed == countryCode
? _value.countryCode
: countryCode // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$MultiWindowAppStateImpl implements _MultiWindowAppState {
const _$MultiWindowAppStateImpl(
{required this.backgroundColor,
required this.menuColor,
required this.micaColor,
required final List<String> gameInstallPaths,
this.languageCode,
this.countryCode})
: _gameInstallPaths = gameInstallPaths;
factory _$MultiWindowAppStateImpl.fromJson(Map<String, dynamic> json) =>
_$$MultiWindowAppStateImplFromJson(json);
@override
final String backgroundColor;
@override
final String menuColor;
@override
final String micaColor;
final List<String> _gameInstallPaths;
@override
List<String> get gameInstallPaths {
if (_gameInstallPaths is EqualUnmodifiableListView)
return _gameInstallPaths;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_gameInstallPaths);
}
@override
final String? languageCode;
@override
final String? countryCode;
@override
String toString() {
return 'MultiWindowAppState(backgroundColor: $backgroundColor, menuColor: $menuColor, micaColor: $micaColor, gameInstallPaths: $gameInstallPaths, languageCode: $languageCode, countryCode: $countryCode)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$MultiWindowAppStateImpl &&
(identical(other.backgroundColor, backgroundColor) ||
other.backgroundColor == backgroundColor) &&
(identical(other.menuColor, menuColor) ||
other.menuColor == menuColor) &&
(identical(other.micaColor, micaColor) ||
other.micaColor == micaColor) &&
const DeepCollectionEquality()
.equals(other._gameInstallPaths, _gameInstallPaths) &&
(identical(other.languageCode, languageCode) ||
other.languageCode == languageCode) &&
(identical(other.countryCode, countryCode) ||
other.countryCode == countryCode));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
backgroundColor,
menuColor,
micaColor,
const DeepCollectionEquality().hash(_gameInstallPaths),
languageCode,
countryCode);
/// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$MultiWindowAppStateImplCopyWith<_$MultiWindowAppStateImpl> get copyWith =>
__$$MultiWindowAppStateImplCopyWithImpl<_$MultiWindowAppStateImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$MultiWindowAppStateImplToJson(
this,
);
}
}
abstract class _MultiWindowAppState implements MultiWindowAppState {
const factory _MultiWindowAppState(
{required final String backgroundColor,
required final String menuColor,
required final String micaColor,
required final List<String> gameInstallPaths,
final String? languageCode,
final String? countryCode}) = _$MultiWindowAppStateImpl;
factory _MultiWindowAppState.fromJson(Map<String, dynamic> json) =
_$MultiWindowAppStateImpl.fromJson;
@override
String get backgroundColor;
@override
String get menuColor;
@override
String get micaColor;
@override
List<String> get gameInstallPaths;
@override
String? get languageCode;
@override
String? get countryCode;
/// Create a copy of MultiWindowAppState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$MultiWindowAppStateImplCopyWith<_$MultiWindowAppStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@ -1,31 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'multi_window_manager.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$MultiWindowAppStateImpl _$$MultiWindowAppStateImplFromJson(
Map<String, dynamic> json) =>
_$MultiWindowAppStateImpl(
backgroundColor: json['backgroundColor'] as String,
menuColor: json['menuColor'] as String,
micaColor: json['micaColor'] as String,
gameInstallPaths: (json['gameInstallPaths'] as List<dynamic>)
.map((e) => e as String)
.toList(),
languageCode: json['languageCode'] as String?,
countryCode: json['countryCode'] as String?,
);
Map<String, dynamic> _$$MultiWindowAppStateImplToJson(
_$MultiWindowAppStateImpl instance) =>
<String, dynamic>{
'backgroundColor': instance.backgroundColor,
'menuColor': instance.menuColor,
'micaColor': instance.micaColor,
'gameInstallPaths': instance.gameInstallPaths,
'languageCode': instance.languageCode,
'countryCode': instance.countryCode,
};

View File

@ -1,5 +1,4 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:hive_ce/hive.dart';
import 'package:starcitizen_doctor/app.dart';
extension ProviderExtension on AutoDisposeNotifier {
@ -7,6 +6,4 @@ extension ProviderExtension on AutoDisposeNotifier {
ref.read(appGlobalModelProvider.notifier);
AppGlobalState get appGlobalState => ref.read(appGlobalModelProvider);
Box<dynamic>? get appConfBox => appGlobalState.appConfBox;
}

View File

@ -0,0 +1,77 @@
// Copyright (c) 2020, Dart | Windows. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Reads and writes credentials
import 'dart:convert';
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
import 'package:win32/win32.dart';
class Win32Credentials {
static void write(
{required String credentialName,
required String userName,
required String password}) {
final examplePassword = utf8.encode(password);
final blob = examplePassword.allocatePointer();
final credential = calloc<CREDENTIAL>()
..ref.Type = CRED_TYPE_GENERIC
..ref.TargetName = credentialName.toNativeUtf16()
..ref.Persist = CRED_PERSIST_LOCAL_MACHINE
..ref.UserName = userName.toNativeUtf16()
..ref.CredentialBlob = blob
..ref.CredentialBlobSize = examplePassword.length;
final result = CredWrite(credential, 0);
if (result != TRUE) {
final errorCode = GetLastError();
dPrint('Error ($result): $errorCode');
return;
}
dPrint('Success (blob size: ${credential.ref.CredentialBlobSize})');
free(blob);
free(credential);
}
static MapEntry<String, String>? read(String credentialName) {
dPrint('Reading $credentialName ...');
final credPointer = calloc<Pointer<CREDENTIAL>>();
final result = CredRead(
credentialName.toNativeUtf16(), CRED_TYPE_GENERIC, 0, credPointer);
if (result != TRUE) {
final errorCode = GetLastError();
var errorText = '$errorCode';
if (errorCode == ERROR_NOT_FOUND) {
errorText += ' Not found.';
}
dPrint('Error ($result): $errorText');
return null;
}
final cred = credPointer.value.ref;
final blob = cred.CredentialBlob.asTypedList(cred.CredentialBlobSize);
final password = utf8.decode(blob);
CredFree(credPointer.value);
free(credPointer);
return MapEntry(cred.UserName.toDartString(), password);
}
static void delete(String credentialName) {
dPrint('Deleting $credentialName');
final result =
CredDelete(credentialName.toNativeUtf16(), CRED_TYPE_GENERIC, 0);
if (result != TRUE) {
final errorCode = GetLastError();
dPrint('Error ($result): $errorCode');
return;
}
dPrint('Successfully deleted credential.');
}
}

View File

@ -1,62 +0,0 @@
class AppAdvancedLocalizationData {
AppAdvancedLocalizationData({
this.classKeys,
});
AppAdvancedLocalizationData.fromJson(dynamic json) {
if (json['class_keys'] != null) {
classKeys = [];
json['class_keys'].forEach((v) {
classKeys?.add(AppAdvancedLocalizationClassKeysData.fromJson(v));
});
}
}
List<AppAdvancedLocalizationClassKeysData>? classKeys;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (classKeys != null) {
map['class_keys'] = classKeys?.map((v) => v.toJson()).toList();
}
return map;
}
}
class AppAdvancedLocalizationClassKeysData {
AppAdvancedLocalizationClassKeysData({
this.id,
this.className,
this.keys,
});
AppAdvancedLocalizationClassKeysData.fromJson(dynamic json) {
id = json['id'];
className = json['class_name'];
keys = json['keys'] != null ? json['keys'].cast<String>() : [];
}
String? id;
String? className;
List<String>? keys;
Map<String, String> valuesMap = {};
AppAdvancedLocalizationClassKeysDataMode mode =
AppAdvancedLocalizationClassKeysDataMode.localization;
bool lockMod = false;
bool isWorking = false;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = id;
map['class_name'] = className;
map['keys'] = keys;
return map;
}
}
enum AppAdvancedLocalizationClassKeysDataMode {
unLocalization,
localization,
mixed,
mixedNewline,
}

View File

@ -1,33 +1,28 @@
/// name : "Data.p4k"
/// update_at : "2024-09-03 15:00"
/// url : "https://p4k.42kit.com/3.24.1-LIVE.9234446/Data.p4k.torrent"
/// info : "3.24.1-LIVE.9234446"
/// update_at : "2024-02-24 18:00"
/// url : "https://p4k.42kit.com/3.22.1-LIVE.9072370/Data.p4k.torrent"
class AppTorrentData {
AppTorrentData({
this.name,
this.updateAt,
this.url,
this.info,
});
this.name,
this.updateAt,
this.url,});
AppTorrentData.fromJson(dynamic json) {
name = json['name'];
updateAt = json['update_at'];
url = json['url'];
info = json['info'];
}
String? name;
String? updateAt;
String? url;
String? info;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['name'] = name;
map['update_at'] = updateAt;
map['url'] = url;
map['info'] = info;
return map;
}
}
}

View File

@ -1,60 +0,0 @@
/// name : "Data\\Textures\\planets\\surface\\ground\\architecture\\city\\city_suburbs_02_displ.dds.6"
/// size : 524288
/// compressedSize : 169812
/// isDirectory : false
/// isFile : true
/// isEncrypted : false
/// isUnicodeText : false
/// dateTime : "2019-12-16T15:11:18"
/// version : 45
class AppUnp4kP4kItemData {
AppUnp4kP4kItemData({
this.name,
this.size,
this.compressedSize,
this.isDirectory,
this.isFile,
this.isEncrypted,
this.isUnicodeText,
this.dateTime,
this.version,
});
AppUnp4kP4kItemData.fromJson(dynamic json) {
name = json['name'];
size = json['size'];
compressedSize = json['compressedSize'];
isDirectory = json['isDirectory'];
isFile = json['isFile'];
isEncrypted = json['isEncrypted'];
isUnicodeText = json['isUnicodeText'];
dateTime = json['dateTime'];
version = json['version'];
}
String? name;
num? size;
num? compressedSize;
bool? isDirectory;
bool? isFile;
bool? isEncrypted;
bool? isUnicodeText;
String? dateTime;
num? version;
List<AppUnp4kP4kItemData> children = [];
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['name'] = name;
map['size'] = size;
map['compressedSize'] = compressedSize;
map['isDirectory'] = isDirectory;
map['isFile'] = isFile;
map['isEncrypted'] = isEncrypted;
map['isUnicodeText'] = isUnicodeText;
map['dateTime'] = dateTime;
map['version'] = version;
return map;
}
}

View File

@ -17,9 +17,6 @@ class AppVersionData {
this.mSEMinVersionCode,
this.p4kDownloadUrl,
this.activityColors,
this.nav42KitUrl,
this.gameChannels,
this.webMirrors,
});
AppVersionData.fromJson(dynamic json) {
@ -30,10 +27,10 @@ class AppVersionData {
mSELastVersionCode = json['MSE_lastVersionCode'];
mSEMinVersionCode = json['MSE_minVersionCode'];
p4kDownloadUrl = json['p4kDownloadUrl'];
activityColors = json['activityColors'] != null ? ActivityColors.fromJson(json['activityColors']) : null;
gameChannels = List.from(json["game_channels"]).cast<String>();
activityColors = json['activityColors'] != null
? ActivityColors.fromJson(json['activityColors'])
: null;
webMirrors = json["web_mirrors"];
nav42KitUrl = json['nav_42kit_url'];
}
String? lastVersion;
@ -44,9 +41,7 @@ class AppVersionData {
num? mSEMinVersionCode;
String? p4kDownloadUrl;
ActivityColors? activityColors;
List<String>? gameChannels;
Map? webMirrors;
String? nav42KitUrl;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
@ -61,8 +56,6 @@ class AppVersionData {
map['activityColors'] = activityColors?.toJson();
}
map["web_mirrors"] = webMirrors;
map["game_channels"] = gameChannels;
map["nav_42kit_url"] = nav42KitUrl;
return map;
}
}

View File

@ -1,108 +0,0 @@
class DohClientResponseData {
DohClientResponseData({
this.status,
this.tc,
this.rd,
this.ra,
this.ad,
this.cd,
this.question,
this.answer,
});
DohClientResponseData.fromJson(dynamic json) {
status = json['Status'];
tc = json['TC'];
rd = json['RD'];
ra = json['RA'];
ad = json['AD'];
cd = json['CD'];
question = json['Question'] != null
? DohClientResponseQuestionData.fromJson(json['Question'])
: null;
if (json['Answer'] != null) {
answer = [];
json['Answer'].forEach((v) {
answer?.add(DohClientResponseAnswerData.fromJson(v));
});
}
}
num? status;
bool? tc;
bool? rd;
bool? ra;
bool? ad;
bool? cd;
DohClientResponseQuestionData? question;
List<DohClientResponseAnswerData>? answer;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['Status'] = status;
map['TC'] = tc;
map['RD'] = rd;
map['RA'] = ra;
map['AD'] = ad;
map['CD'] = cd;
if (question != null) {
map['Question'] = question?.toJson();
}
if (answer != null) {
map['Answer'] = answer?.map((v) => v.toJson()).toList();
}
return map;
}
}
class DohClientResponseAnswerData {
DohClientResponseAnswerData({
this.name,
this.ttl,
this.type,
this.data,
});
DohClientResponseAnswerData.fromJson(dynamic json) {
name = json['name'];
ttl = json['TTL'];
type = json['type'];
data = json['data'];
}
String? name;
num? ttl;
num? type;
String? data;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['name'] = name;
map['TTL'] = ttl;
map['type'] = type;
map['data'] = data;
return map;
}
}
class DohClientResponseQuestionData {
DohClientResponseQuestionData({
this.name,
this.type,
});
DohClientResponseQuestionData.fromJson(dynamic json) {
name = json['name'];
type = json['type'];
}
String? name;
num? type;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['name'] = name;
map['type'] = type;
return map;
}
}

View File

@ -1,52 +0,0 @@
class InputMethodApiData {
InputMethodApiData({
this.enable,
this.languages,
});
InputMethodApiData.fromJson(dynamic json) {
enable = json['enable'];
if (json['languages'] != null) {
languages = <String, InputMethodApiLanguageData>{};
json['languages'].forEach((String key, dynamic v) {
languages![key] = InputMethodApiLanguageData.fromJson(v);
});
}
}
bool? enable;
Map<String, InputMethodApiLanguageData>? languages;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['enable'] = enable;
if (languages != null) {
map['languages'] = languages!.map<String, dynamic>((key, value) {
return MapEntry(key, value.toJson());
});
}
return map;
}
}
class InputMethodApiLanguageData {
InputMethodApiLanguageData({
this.file,
this.version,
});
InputMethodApiLanguageData.fromJson(dynamic json) {
file = json['file'];
version = json['version'];
}
String? file;
String? version;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['file'] = file;
map['version'] = version;
return map;
}
}

View File

@ -1,246 +0,0 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'nav_api_data.freezed.dart';
part 'nav_api_data.g.dart';
@freezed
class NavApiDocsItemData with _$NavApiDocsItemData {
const factory NavApiDocsItemData({
@Default('') @JsonKey(name: 'id') String id,
@Default('') @JsonKey(name: 'name') String name,
@Default('') @JsonKey(name: 'slug') String slug,
@Default('') @JsonKey(name: 'abstract') String abstract_,
@Default('') @JsonKey(name: 'description') String description,
@Default(NavApiDocsItemImageData())
@JsonKey(name: 'image')
NavApiDocsItemImageData image,
@Default('') @JsonKey(name: 'link') String link,
@Default(false) @JsonKey(name: 'is_sponsored') bool isSponsored,
@Default(<NavApiDocsItemTagsItemData>[])
@JsonKey(name: 'tags')
List<NavApiDocsItemTagsItemData> tags,
@Default('') @JsonKey(name: 'updatedAt') String updatedAt,
@Default('') @JsonKey(name: 'createdAt') String createdAt,
}) = _NavApiDocsItemData;
const NavApiDocsItemData._();
factory NavApiDocsItemData.fromJson(Map<String, Object?> json) =>
_$NavApiDocsItemDataFromJson(json);
}
@freezed
class NavApiDocsItemImageData with _$NavApiDocsItemImageData {
const factory NavApiDocsItemImageData({
@Default('') @JsonKey(name: 'id') String id,
@Default(NavApiDocsItemImageCreatedByData())
@JsonKey(name: 'createdBy')
NavApiDocsItemImageCreatedByData createdBy,
@Default('') @JsonKey(name: 'title') String title,
@Default(false) @JsonKey(name: 'original') bool original,
@Default('') @JsonKey(name: 'credit') String credit,
@Default('') @JsonKey(name: 'source') String source,
@Default('') @JsonKey(name: 'license') String license,
@JsonKey(name: 'caption') dynamic caption,
@Default('') @JsonKey(name: 'updatedAt') String updatedAt,
@Default('') @JsonKey(name: 'createdAt') String createdAt,
@Default('') @JsonKey(name: 'url') String url,
@Default('') @JsonKey(name: 'filename') String filename,
@Default('') @JsonKey(name: 'mimeType') String mimeType,
@Default(0) @JsonKey(name: 'filesize') int filesize,
@Default(0) @JsonKey(name: 'width') int width,
@Default(0) @JsonKey(name: 'height') int height,
@Default(NavApiDocsItemImageSizesData())
@JsonKey(name: 'sizes')
NavApiDocsItemImageSizesData sizes,
}) = _NavApiDocsItemImageData;
const NavApiDocsItemImageData._();
factory NavApiDocsItemImageData.fromJson(Map<String, Object?> json) =>
_$NavApiDocsItemImageDataFromJson(json);
}
@freezed
class NavApiDocsItemImageCreatedByData with _$NavApiDocsItemImageCreatedByData {
const factory NavApiDocsItemImageCreatedByData({
@Default('') @JsonKey(name: 'id') String id,
@Default('') @JsonKey(name: 'sub') String sub,
@Default('') @JsonKey(name: 'external_provider') String externalProvider,
@Default('') @JsonKey(name: 'username') String username,
@Default('') @JsonKey(name: 'name') String name,
@Default(<String>[]) @JsonKey(name: 'roles') List<String> roles,
@Default('') @JsonKey(name: 'avatar_url') String avatarUrl,
@Default('') @JsonKey(name: 'updatedAt') String updatedAt,
@Default('') @JsonKey(name: 'createdAt') String createdAt,
@Default('') @JsonKey(name: 'email') String email,
@Default(0) @JsonKey(name: 'loginAttempts') int loginAttempts,
@Default('') @JsonKey(name: 'avatar') String avatar,
}) = _NavApiDocsItemImageCreatedByData;
const NavApiDocsItemImageCreatedByData._();
factory NavApiDocsItemImageCreatedByData.fromJson(
Map<String, Object?> json) =>
_$NavApiDocsItemImageCreatedByDataFromJson(json);
}
@freezed
class NavApiDocsItemImageSizesThumbnailData
with _$NavApiDocsItemImageSizesThumbnailData {
const factory NavApiDocsItemImageSizesThumbnailData({
@Default('') @JsonKey(name: 'url') String url,
@Default(0) @JsonKey(name: 'width') int width,
@Default(0) @JsonKey(name: 'height') int height,
@Default('') @JsonKey(name: 'mimeType') String mimeType,
@Default(0) @JsonKey(name: 'filesize') int filesize,
@Default('') @JsonKey(name: 'filename') String filename,
}) = _NavApiDocsItemImageSizesThumbnailData;
const NavApiDocsItemImageSizesThumbnailData._();
factory NavApiDocsItemImageSizesThumbnailData.fromJson(
Map<String, Object?> json) =>
_$NavApiDocsItemImageSizesThumbnailDataFromJson(json);
}
@freezed
class NavApiDocsItemImageSizesData with _$NavApiDocsItemImageSizesData {
const factory NavApiDocsItemImageSizesData({
@Default(NavApiDocsItemImageSizesThumbnailData())
@JsonKey(name: 'thumbnail')
NavApiDocsItemImageSizesThumbnailData thumbnail,
@Default(NavApiDocsItemImageSizesPreloadData())
@JsonKey(name: 'preload')
NavApiDocsItemImageSizesPreloadData preload,
@Default(NavApiDocsItemImageSizesCardData())
@JsonKey(name: 'card')
NavApiDocsItemImageSizesCardData card,
@Default(NavApiDocsItemImageSizesTabletData())
@JsonKey(name: 'tablet')
NavApiDocsItemImageSizesTabletData tablet,
@Default(NavApiDocsItemImageSizesAvatarData())
@JsonKey(name: 'avatar')
NavApiDocsItemImageSizesAvatarData avatar,
}) = _NavApiDocsItemImageSizesData;
const NavApiDocsItemImageSizesData._();
factory NavApiDocsItemImageSizesData.fromJson(Map<String, Object?> json) =>
_$NavApiDocsItemImageSizesDataFromJson(json);
}
@freezed
class NavApiDocsItemImageSizesPreloadData
with _$NavApiDocsItemImageSizesPreloadData {
const factory NavApiDocsItemImageSizesPreloadData({
@JsonKey(name: 'url') dynamic url,
@JsonKey(name: 'width') dynamic width,
@JsonKey(name: 'height') dynamic height,
@JsonKey(name: 'mimeType') dynamic mimeType,
@JsonKey(name: 'filesize') dynamic filesize,
@JsonKey(name: 'filename') dynamic filename,
}) = _NavApiDocsItemImageSizesPreloadData;
const NavApiDocsItemImageSizesPreloadData._();
factory NavApiDocsItemImageSizesPreloadData.fromJson(
Map<String, Object?> json) =>
_$NavApiDocsItemImageSizesPreloadDataFromJson(json);
}
@freezed
class NavApiDocsItemImageSizesCardData with _$NavApiDocsItemImageSizesCardData {
const factory NavApiDocsItemImageSizesCardData({
@Default('') @JsonKey(name: 'url') String url,
@Default(0) @JsonKey(name: 'width') int width,
@Default(0) @JsonKey(name: 'height') int height,
@Default('') @JsonKey(name: 'mimeType') String mimeType,
@Default(0) @JsonKey(name: 'filesize') int filesize,
@Default('') @JsonKey(name: 'filename') String filename,
}) = _NavApiDocsItemImageSizesCardData;
const NavApiDocsItemImageSizesCardData._();
factory NavApiDocsItemImageSizesCardData.fromJson(
Map<String, Object?> json) =>
_$NavApiDocsItemImageSizesCardDataFromJson(json);
}
@freezed
class NavApiDocsItemImageSizesTabletData
with _$NavApiDocsItemImageSizesTabletData {
const factory NavApiDocsItemImageSizesTabletData({
@Default('') @JsonKey(name: 'url') String url,
@Default(0) @JsonKey(name: 'width') int width,
@Default(0) @JsonKey(name: 'height') int height,
@Default('') @JsonKey(name: 'mimeType') String mimeType,
@Default(0) @JsonKey(name: 'filesize') int filesize,
@Default('') @JsonKey(name: 'filename') String filename,
}) = _NavApiDocsItemImageSizesTabletData;
const NavApiDocsItemImageSizesTabletData._();
factory NavApiDocsItemImageSizesTabletData.fromJson(
Map<String, Object?> json) =>
_$NavApiDocsItemImageSizesTabletDataFromJson(json);
}
@freezed
class NavApiDocsItemImageSizesAvatarData
with _$NavApiDocsItemImageSizesAvatarData {
const factory NavApiDocsItemImageSizesAvatarData({
@Default('') @JsonKey(name: 'url') String url,
@Default(0) @JsonKey(name: 'width') int width,
@Default(0) @JsonKey(name: 'height') int height,
@Default('') @JsonKey(name: 'mimeType') String mimeType,
@Default(0) @JsonKey(name: 'filesize') int filesize,
@Default('') @JsonKey(name: 'filename') String filename,
}) = _NavApiDocsItemImageSizesAvatarData;
const NavApiDocsItemImageSizesAvatarData._();
factory NavApiDocsItemImageSizesAvatarData.fromJson(
Map<String, Object?> json) =>
_$NavApiDocsItemImageSizesAvatarDataFromJson(json);
}
@freezed
class NavApiDocsItemTagsItemData with _$NavApiDocsItemTagsItemData {
const factory NavApiDocsItemTagsItemData({
@Default('') @JsonKey(name: 'id') String id,
@Default('') @JsonKey(name: 'name') String name,
@Default('') @JsonKey(name: 'slug') String slug,
@Default('') @JsonKey(name: 'updatedAt') String updatedAt,
@Default('') @JsonKey(name: 'createdAt') String createdAt,
}) = _NavApiDocsItemTagsItemData;
const NavApiDocsItemTagsItemData._();
factory NavApiDocsItemTagsItemData.fromJson(Map<String, Object?> json) =>
_$NavApiDocsItemTagsItemDataFromJson(json);
}
@freezed
class NavApiData with _$NavApiData {
const factory NavApiData({
@Default(<NavApiDocsItemData>[])
@JsonKey(name: 'docs')
List<NavApiDocsItemData> docs,
@Default(false) @JsonKey(name: 'hasNextPage') bool hasNextPage,
@Default(false) @JsonKey(name: 'hasPrevPage') bool hasPrevPage,
@Default(0) @JsonKey(name: 'limit') int limit,
@JsonKey(name: 'nextPage') dynamic nextPage,
@Default(0) @JsonKey(name: 'page') int page,
@Default(0) @JsonKey(name: 'pagingCounter') int pagingCounter,
@JsonKey(name: 'prevPage') dynamic prevPage,
@Default(0) @JsonKey(name: 'totalDocs') int totalDocs,
@Default(0) @JsonKey(name: 'totalPages') int totalPages,
}) = _NavApiData;
const NavApiData._();
factory NavApiData.fromJson(Map<String, Object?> json) =>
_$NavApiDataFromJson(json);
}

File diff suppressed because it is too large Load Diff

View File

@ -1,336 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'nav_api_data.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$NavApiDocsItemDataImpl _$$NavApiDocsItemDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemDataImpl(
id: json['id'] as String? ?? '',
name: json['name'] as String? ?? '',
slug: json['slug'] as String? ?? '',
abstract_: json['abstract'] as String? ?? '',
description: json['description'] as String? ?? '',
image: json['image'] == null
? const NavApiDocsItemImageData()
: NavApiDocsItemImageData.fromJson(
json['image'] as Map<String, dynamic>),
link: json['link'] as String? ?? '',
isSponsored: json['is_sponsored'] as bool? ?? false,
tags: (json['tags'] as List<dynamic>?)
?.map((e) => NavApiDocsItemTagsItemData.fromJson(
e as Map<String, dynamic>))
.toList() ??
const <NavApiDocsItemTagsItemData>[],
updatedAt: json['updatedAt'] as String? ?? '',
createdAt: json['createdAt'] as String? ?? '',
);
Map<String, dynamic> _$$NavApiDocsItemDataImplToJson(
_$NavApiDocsItemDataImpl instance) =>
<String, dynamic>{
'id': instance.id,
'name': instance.name,
'slug': instance.slug,
'abstract': instance.abstract_,
'description': instance.description,
'image': instance.image,
'link': instance.link,
'is_sponsored': instance.isSponsored,
'tags': instance.tags,
'updatedAt': instance.updatedAt,
'createdAt': instance.createdAt,
};
_$NavApiDocsItemImageDataImpl _$$NavApiDocsItemImageDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageDataImpl(
id: json['id'] as String? ?? '',
createdBy: json['createdBy'] == null
? const NavApiDocsItemImageCreatedByData()
: NavApiDocsItemImageCreatedByData.fromJson(
json['createdBy'] as Map<String, dynamic>),
title: json['title'] as String? ?? '',
original: json['original'] as bool? ?? false,
credit: json['credit'] as String? ?? '',
source: json['source'] as String? ?? '',
license: json['license'] as String? ?? '',
caption: json['caption'],
updatedAt: json['updatedAt'] as String? ?? '',
createdAt: json['createdAt'] as String? ?? '',
url: json['url'] as String? ?? '',
filename: json['filename'] as String? ?? '',
mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0,
width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0,
sizes: json['sizes'] == null
? const NavApiDocsItemImageSizesData()
: NavApiDocsItemImageSizesData.fromJson(
json['sizes'] as Map<String, dynamic>),
);
Map<String, dynamic> _$$NavApiDocsItemImageDataImplToJson(
_$NavApiDocsItemImageDataImpl instance) =>
<String, dynamic>{
'id': instance.id,
'createdBy': instance.createdBy,
'title': instance.title,
'original': instance.original,
'credit': instance.credit,
'source': instance.source,
'license': instance.license,
'caption': instance.caption,
'updatedAt': instance.updatedAt,
'createdAt': instance.createdAt,
'url': instance.url,
'filename': instance.filename,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'width': instance.width,
'height': instance.height,
'sizes': instance.sizes,
};
_$NavApiDocsItemImageCreatedByDataImpl
_$$NavApiDocsItemImageCreatedByDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageCreatedByDataImpl(
id: json['id'] as String? ?? '',
sub: json['sub'] as String? ?? '',
externalProvider: json['external_provider'] as String? ?? '',
username: json['username'] as String? ?? '',
name: json['name'] as String? ?? '',
roles: (json['roles'] as List<dynamic>?)
?.map((e) => e as String)
.toList() ??
const <String>[],
avatarUrl: json['avatar_url'] as String? ?? '',
updatedAt: json['updatedAt'] as String? ?? '',
createdAt: json['createdAt'] as String? ?? '',
email: json['email'] as String? ?? '',
loginAttempts: (json['loginAttempts'] as num?)?.toInt() ?? 0,
avatar: json['avatar'] as String? ?? '',
);
Map<String, dynamic> _$$NavApiDocsItemImageCreatedByDataImplToJson(
_$NavApiDocsItemImageCreatedByDataImpl instance) =>
<String, dynamic>{
'id': instance.id,
'sub': instance.sub,
'external_provider': instance.externalProvider,
'username': instance.username,
'name': instance.name,
'roles': instance.roles,
'avatar_url': instance.avatarUrl,
'updatedAt': instance.updatedAt,
'createdAt': instance.createdAt,
'email': instance.email,
'loginAttempts': instance.loginAttempts,
'avatar': instance.avatar,
};
_$NavApiDocsItemImageSizesThumbnailDataImpl
_$$NavApiDocsItemImageSizesThumbnailDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageSizesThumbnailDataImpl(
url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0,
mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '',
);
Map<String, dynamic> _$$NavApiDocsItemImageSizesThumbnailDataImplToJson(
_$NavApiDocsItemImageSizesThumbnailDataImpl instance) =>
<String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_$NavApiDocsItemImageSizesDataImpl _$$NavApiDocsItemImageSizesDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageSizesDataImpl(
thumbnail: json['thumbnail'] == null
? const NavApiDocsItemImageSizesThumbnailData()
: NavApiDocsItemImageSizesThumbnailData.fromJson(
json['thumbnail'] as Map<String, dynamic>),
preload: json['preload'] == null
? const NavApiDocsItemImageSizesPreloadData()
: NavApiDocsItemImageSizesPreloadData.fromJson(
json['preload'] as Map<String, dynamic>),
card: json['card'] == null
? const NavApiDocsItemImageSizesCardData()
: NavApiDocsItemImageSizesCardData.fromJson(
json['card'] as Map<String, dynamic>),
tablet: json['tablet'] == null
? const NavApiDocsItemImageSizesTabletData()
: NavApiDocsItemImageSizesTabletData.fromJson(
json['tablet'] as Map<String, dynamic>),
avatar: json['avatar'] == null
? const NavApiDocsItemImageSizesAvatarData()
: NavApiDocsItemImageSizesAvatarData.fromJson(
json['avatar'] as Map<String, dynamic>),
);
Map<String, dynamic> _$$NavApiDocsItemImageSizesDataImplToJson(
_$NavApiDocsItemImageSizesDataImpl instance) =>
<String, dynamic>{
'thumbnail': instance.thumbnail,
'preload': instance.preload,
'card': instance.card,
'tablet': instance.tablet,
'avatar': instance.avatar,
};
_$NavApiDocsItemImageSizesPreloadDataImpl
_$$NavApiDocsItemImageSizesPreloadDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageSizesPreloadDataImpl(
url: json['url'],
width: json['width'],
height: json['height'],
mimeType: json['mimeType'],
filesize: json['filesize'],
filename: json['filename'],
);
Map<String, dynamic> _$$NavApiDocsItemImageSizesPreloadDataImplToJson(
_$NavApiDocsItemImageSizesPreloadDataImpl instance) =>
<String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_$NavApiDocsItemImageSizesCardDataImpl
_$$NavApiDocsItemImageSizesCardDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageSizesCardDataImpl(
url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0,
mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '',
);
Map<String, dynamic> _$$NavApiDocsItemImageSizesCardDataImplToJson(
_$NavApiDocsItemImageSizesCardDataImpl instance) =>
<String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_$NavApiDocsItemImageSizesTabletDataImpl
_$$NavApiDocsItemImageSizesTabletDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageSizesTabletDataImpl(
url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0,
mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '',
);
Map<String, dynamic> _$$NavApiDocsItemImageSizesTabletDataImplToJson(
_$NavApiDocsItemImageSizesTabletDataImpl instance) =>
<String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_$NavApiDocsItemImageSizesAvatarDataImpl
_$$NavApiDocsItemImageSizesAvatarDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemImageSizesAvatarDataImpl(
url: json['url'] as String? ?? '',
width: (json['width'] as num?)?.toInt() ?? 0,
height: (json['height'] as num?)?.toInt() ?? 0,
mimeType: json['mimeType'] as String? ?? '',
filesize: (json['filesize'] as num?)?.toInt() ?? 0,
filename: json['filename'] as String? ?? '',
);
Map<String, dynamic> _$$NavApiDocsItemImageSizesAvatarDataImplToJson(
_$NavApiDocsItemImageSizesAvatarDataImpl instance) =>
<String, dynamic>{
'url': instance.url,
'width': instance.width,
'height': instance.height,
'mimeType': instance.mimeType,
'filesize': instance.filesize,
'filename': instance.filename,
};
_$NavApiDocsItemTagsItemDataImpl _$$NavApiDocsItemTagsItemDataImplFromJson(
Map<String, dynamic> json) =>
_$NavApiDocsItemTagsItemDataImpl(
id: json['id'] as String? ?? '',
name: json['name'] as String? ?? '',
slug: json['slug'] as String? ?? '',
updatedAt: json['updatedAt'] as String? ?? '',
createdAt: json['createdAt'] as String? ?? '',
);
Map<String, dynamic> _$$NavApiDocsItemTagsItemDataImplToJson(
_$NavApiDocsItemTagsItemDataImpl instance) =>
<String, dynamic>{
'id': instance.id,
'name': instance.name,
'slug': instance.slug,
'updatedAt': instance.updatedAt,
'createdAt': instance.createdAt,
};
_$NavApiDataImpl _$$NavApiDataImplFromJson(Map<String, dynamic> json) =>
_$NavApiDataImpl(
docs: (json['docs'] as List<dynamic>?)
?.map(
(e) => NavApiDocsItemData.fromJson(e as Map<String, dynamic>))
.toList() ??
const <NavApiDocsItemData>[],
hasNextPage: json['hasNextPage'] as bool? ?? false,
hasPrevPage: json['hasPrevPage'] as bool? ?? false,
limit: (json['limit'] as num?)?.toInt() ?? 0,
nextPage: json['nextPage'],
page: (json['page'] as num?)?.toInt() ?? 0,
pagingCounter: (json['pagingCounter'] as num?)?.toInt() ?? 0,
prevPage: json['prevPage'],
totalDocs: (json['totalDocs'] as num?)?.toInt() ?? 0,
totalPages: (json['totalPages'] as num?)?.toInt() ?? 0,
);
Map<String, dynamic> _$$NavApiDataImplToJson(_$NavApiDataImpl instance) =>
<String, dynamic>{
'docs': instance.docs,
'hasNextPage': instance.hasNextPage,
'hasPrevPage': instance.hasPrevPage,
'limit': instance.limit,
'nextPage': instance.nextPage,
'page': instance.page,
'pagingCounter': instance.pagingCounter,
'prevPage': instance.prevPage,
'totalDocs': instance.totalDocs,
'totalPages': instance.totalPages,
};

View File

@ -1,107 +0,0 @@
class RsiGameLibraryData {
RsiGameLibraryData({
this.games,
});
RsiGameLibraryData.fromJson(dynamic json) {
if (json['games'] != null) {
games = [];
json['games'].forEach((v) {
games?.add(RsiGameLibraryGamesData.fromJson(v));
});
}
}
List<RsiGameLibraryGamesData>? games;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (games != null) {
map['games'] = games?.map((v) => v.toJson()).toList();
}
return map;
}
}
class RsiGameLibraryGamesData {
RsiGameLibraryGamesData({
this.id,
this.name,
this.channels,
});
RsiGameLibraryGamesData.fromJson(dynamic json) {
id = json['id'];
name = json['name'];
if (json['channels'] != null) {
channels = [];
json['channels'].forEach((v) {
channels?.add(RsiGameLibraryChannelsData.fromJson(v));
});
}
}
String? id;
String? name;
List<RsiGameLibraryChannelsData>? channels;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = id;
map['name'] = name;
if (channels != null) {
map['channels'] = channels?.map((v) => v.toJson()).toList();
}
return map;
}
}
class RsiGameLibraryChannelsData {
RsiGameLibraryChannelsData({
this.id,
this.name,
this.version,
this.versionLabel,
this.servicesEndpoint,
this.network,
this.platformId,
this.nid,
this.weight,
});
RsiGameLibraryChannelsData.fromJson(dynamic json) {
id = json['id'];
name = json['name'];
version = json['version'];
versionLabel = json['versionLabel'];
servicesEndpoint = json['servicesEndpoint'];
network = json['network'];
platformId = json['platformId'];
nid = json['nid'];
weight = json['weight'];
}
String? id;
String? name;
num? version;
String? versionLabel;
String? servicesEndpoint;
dynamic network;
String? platformId;
String? nid;
dynamic weight;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = id;
map['name'] = name;
map['version'] = version;
map['versionLabel'] = versionLabel;
map['servicesEndpoint'] = servicesEndpoint;
map['network'] = network;
map['platformId'] = platformId;
map['nid'] = nid;
map['weight'] = weight;
return map;
}
}

View File

@ -18,7 +18,6 @@ import 'package:intl/src/intl_helpers.dart';
import 'messages_en.dart' as messages_en;
import 'messages_ja.dart' as messages_ja;
import 'messages_ru.dart' as messages_ru;
import 'messages_zh_CN.dart' as messages_zh_cn;
import 'messages_zh_TW.dart' as messages_zh_tw;
@ -26,7 +25,6 @@ typedef Future<dynamic> LibraryLoader();
Map<String, LibraryLoader> _deferredLibraries = {
'en': () => new SynchronousFuture(null),
'ja': () => new SynchronousFuture(null),
'ru': () => new SynchronousFuture(null),
'zh_CN': () => new SynchronousFuture(null),
'zh_TW': () => new SynchronousFuture(null),
};
@ -37,8 +35,6 @@ MessageLookupByLibrary? _findExact(String localeName) {
return messages_en.messages;
case 'ja':
return messages_ja.messages;
case 'ru':
return messages_ru.messages;
case 'zh_CN':
return messages_zh_cn.messages;
case 'zh_TW':
@ -51,10 +47,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
/// User programs should call this before using [localeName] for messages.
Future<bool> initializeMessages(String localeName) {
var availableLocale = Intl.verifiedLocale(
localeName,
(locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null,
);
localeName, (locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
if (availableLocale == null) {
return new SynchronousFuture(false);
}
@ -74,11 +68,8 @@ bool _messagesExistFor(String locale) {
}
MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
var actualLocale = Intl.verifiedLocale(
locale,
_messagesExistFor,
onFailure: (_) => null,
);
var actualLocale =
Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
if (actualLocale == null) return null;
return _findExact(actualLocale);
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,8 +2,4 @@ class NoL10n {
static const String langZHS = '简体中文';
static const String langZHT = '繁體中文';
static const String langEn = 'English';
static const String langJa = '日本語';
static const String langFR = 'Français';
static const String langRU = 'Русский';
static const String langCodeZhCn = 'zh_CN';
}

File diff suppressed because it is too large Load Diff

View File

@ -1,896 +1,9 @@
{
"@@locale": "ja",
"@@auto_translate_locale": "ja",
"@auto_translate_locale": "ja",
"app_language_name": "日本語",
"@app_language_name": {},
"app_language_code": "ja",
"app_index_version_info": "SCToolbox V{v0} {v1}",
"@app_index_version_info": {},
"app_shortcut_name": "SCToolboxDEV.lnk",
"@app_shortcut_name": {},
"about_check_update": "アップデートを確認",
"@about_check_update": {},
"about_app_description": "ローカライズだけではありません!\n\nSCToolboxは宇宙探検の強力なサポートツールです。私たちはゲーム内の一般的な問題を解決し、コミュニティローカライズ、パフォーマンス最適化、一般的なウェブサイトのローカライズなどの操作を容易にするためにプレイヤーを支援することに専念しています。",
"@about_app_description": {},
"about_online_feedback": "オンラインフィードバック",
"@about_online_feedback": {},
"about_action_qq_group": "QQグループ: 940696487",
"@about_action_qq_group": {},
"about_action_email": "メール: xkeyc@qq.com",
"@about_action_email": {},
"about_action_open_source": "オープンソース",
"@about_action_open_source": {},
"about_disclaimer": "これはStar Citizenの非公式ツールであり、Cloud Imperium企業グループに所属していません。ホストまたはユーザーによって作成されていないすべてのコンテンツは、それぞれの所有者の財産です。\nStar Citizen®、Roberts Space Industries®およびCloud Imperium®はCloud Imperium Rights LLCの登録商標です。",
"@about_disclaimer": {},
"about_analytics_launch": "起動",
"@about_analytics_launch": {},
"about_analytics_launch_game": "ゲームを起動",
"@about_analytics_launch_game": {},
"about_analytics_total_users": "累計ユーザー",
"@about_analytics_total_users": {},
"about_analytics_install_translation": "ローカリゼーション インストール",
"@about_analytics_install_translation": {},
"about_analytics_performance_optimization": "パフォーマンス最適化",
"@about_analytics_performance_optimization": {},
"about_analytics_p4k_redirection": "P4K迂回",
"@about_analytics_p4k_redirection": {},
"about_analytics_units_user": "名",
"@about_analytics_units_user": {},
"about_analytics_units_times": "回",
"@about_analytics_units_times": {},
"about_info_latest_version": "最新バージョンです!",
"@about_info_latest_version": {},
"home_holiday_countdown": "祝日カウントダウン",
"@home_holiday_countdown": {},
"home_holiday_countdown_disclaimer": "* 上記の祝日日付は手動で収集・管理されており、誤りがある可能性があります。フィードバックを歓迎します!",
"@home_holiday_countdown_disclaimer": {},
"home_action_one_click_launch": "ワンクリック起動",
"@home_action_one_click_launch": {},
"home_title_logging_in": "ログイン中...",
"@home_title_logging_in": {},
"home_login_title_welcome_back": "おかえりなさい!",
"@home_login_title_welcome_back": {},
"home_login_title_launching_game": "ゲームを起動しています...",
"@home_login_title_launching_game": {},
"home_action_login_rsi_account": "RSIアカウントにログイン",
"@home_action_login_rsi_account": {},
"home_login_info_game_version_outdated": "ゲームバージョンが古くなっています",
"@home_login_info_game_version_outdated": {},
"home_login_info_rsi_server_report": "RSIサーバーが報告するバージョン{v1} \n\nローカルバージョン{v2} \n\nRSI Launcherを使用してゲームを更新することをお勧めします",
"@home_login_info_rsi_server_report": {},
"home_login_info_action_ignore": "無視",
"@home_login_info_action_ignore": {},
"home_login_action_title_box_one_click_launch": "ツールボックスワンクリック起動",
"@home_login_action_title_box_one_click_launch": {},
"home_login_info_one_click_launch_description": "この機能はゲームをより便利に起動するのに役立ちます。\n\nアカウントセキュリティを確保するために、この機能はローカリゼーションブラウザを使用してログイン状態を保持し、パスワード情報を保存しません自動入力機能を有効にしていない限り。\n\nこの機能を使用してアカウントにログインする場合は、信頼できるソースからSCToolboxをダウンロードしていることを確認してください。",
"@home_login_info_one_click_launch_description": {},
"home_login_action_title_need_webview2_runtime": "WebView2 Runtimeのインストールが必要です",
"@home_login_action_title_need_webview2_runtime": {},
"action_close": "閉じる",
"@action_close": {},
"downloader_speed_limit_settings": "速度制限設定",
"@downloader_speed_limit_settings": {},
"downloader_action_pause_all": "すべて一時停止",
"@downloader_action_pause_all": {},
"downloader_action_resume_all": "すべて再開",
"@downloader_action_resume_all": {},
"downloader_action_cancel_all": "すべてキャンセル",
"@downloader_action_cancel_all": {},
"downloader_info_no_download_tasks": "ダウンロードタスクはありません",
"@downloader_info_no_download_tasks": {},
"downloader_info_total_size": "合計サイズ:{v1}",
"@downloader_info_total_size": {},
"downloader_info_verifying": "検証中...{v2}",
"@downloader_info_verifying": {},
"downloader_info_downloading": "ダウンロード中... ({v0}%)",
"@downloader_info_downloading": {},
"downloader_info_status": "ステータス:{v0}",
"@downloader_info_status": {},
"downloader_info_uploaded": "アップロード済み:{v0}",
"@downloader_info_uploaded": {},
"downloader_info_downloaded": "ダウンロード済み:{v0}",
"@downloader_info_downloaded": {},
"downloader_action_options": "オプション",
"@downloader_action_options": {},
"downloader_action_continue_download": "ダウンロードを続ける",
"@downloader_action_continue_download": {},
"downloader_action_pause_download": "ダウンロードを一時停止",
"@downloader_action_pause_download": {},
"downloader_action_cancel_download": "ダウンロードをキャンセル",
"@downloader_action_cancel_download": {},
"action_open_folder": "フォルダを開く",
"@action_open_folder": {},
"downloader_info_download_upload_speed": "ダウンロード: {v0}/s アップロード:{v1}/s",
"@downloader_info_download_upload_speed": {},
"downloader_info_downloading_status": "ダウンロード中...",
"@downloader_info_downloading_status": {},
"downloader_info_waiting": "待機中",
"@downloader_info_waiting": {},
"downloader_info_paused": "一時停止中",
"@downloader_info_paused": {},
"downloader_info_download_failed": "ダウンロード失敗",
"@downloader_info_download_failed": {},
"downloader_info_download_completed": "ダウンロード完了",
"@downloader_info_download_completed": {},
"downloader_info_deleted": "削除済み",
"@downloader_info_deleted": {},
"downloader_title_downloading": "ダウンロード中",
"@downloader_title_downloading": {},
"downloader_title_ended": "終了済み",
"@downloader_title_ended": {},
"downloader_action_confirm_cancel_all_tasks": "すべてのタスクをキャンセルしますか?",
"@downloader_action_confirm_cancel_all_tasks": {},
"downloader_info_manual_file_deletion_note": "ファイルが不要になった場合は、手動で削除する必要があるかもしれません。",
"@downloader_info_manual_file_deletion_note": {},
"downloader_action_confirm_cancel_download": "ダウンロードをキャンセルしますか?",
"@downloader_action_confirm_cancel_download": {},
"downloader_info_p2p_network_note": "SCToolboxはファイルダウンロードを高速化するためにP2Pネットワークを使用しています。通信量に制限がある場合は、アップロード帯域幅を1(byte)に設定できます。",
"@downloader_info_p2p_network_note": {},
"downloader_info_download_unit_input_prompt": "ダウンロード単位を入力してください。例1、100k、10m、0または空白で制限なし。",
"@downloader_info_download_unit_input_prompt": {},
"downloader_input_upload_speed_limit": "アップロード制限:",
"@downloader_input_upload_speed_limit": {},
"downloader_input_download_speed_limit": "ダウンロード制限:",
"@downloader_input_download_speed_limit": {},
"downloader_input_info_p2p_upload_note": "* P2Pアップロードはファイルのダウンロード中にのみ行われ、ダウンロードが完了するとP2P接続は閉じられます。シードに参加したい場合は、「アバウト」ページから私たちにご連絡ください。",
"@downloader_input_info_p2p_upload_note": {},
"doctor_title_one_click_diagnosis": "ワンクリック診断 -> {v0}",
"@doctor_title_one_click_diagnosis": {},
"doctor_action_rsi_launcher_log": "RSIランチャーログ",
"@doctor_action_rsi_launcher_log": {},
"doctor_action_game_run_log": "ゲーム実行ログ",
"@doctor_action_game_run_log": {},
"doctor_info_scan_complete_no_issues": "スキャン完了、問題は見つかりませんでした!",
"@doctor_info_scan_complete_no_issues": {},
"doctor_info_processing": "処理中...",
"@doctor_info_processing": {},
"doctor_info_game_rescue_service_note": "深宇宙治療センターQQグループ番号536454632によるゲーム異常救済サービスにアクセスしようとしています。これは主にゲームのインストール失敗や頻繁なクラッシュに対応するものです。ゲームプレイの問題に関しては、グループに参加しないでください。",
"@doctor_info_game_rescue_service_note": {},
"doctor_info_need_help": "助けが必要ですか?クリックしてグループに参加し、無料のサポートを受けましょう!",
"@doctor_info_need_help": {},
"doctor_info_tool_check_result_note": "注意:このツールの検出結果は参考用です。以下の操作が理解できない場合は、スクリーンショットを経験豊富なプレイヤーに提供してください!",
"@doctor_info_tool_check_result_note": {},
"doctor_info_result_unsupported_os": "サポートされていないオペレーティングシステムです。ゲームが実行できない可能性があります",
"@doctor_info_result_unsupported_os": {},
"doctor_info_result_upgrade_system": "システムをアップグレードしてください ({v0})",
"@doctor_info_result_upgrade_system": {},
"doctor_info_result_missing_live_folder": "インストールディレクトリにLIVEフォルダがありません。インストールが失敗する可能性があります",
"@doctor_info_result_missing_live_folder": {},
"doctor_info_result_create_live_folder": "クリックして修復すると、LIVEフォルダが作成されます。完了したらインストールを再試行してください。({v0})",
"@doctor_info_result_create_live_folder": {},
"doctor_info_result_incompatible_nvme_device": "新しいタイプのNVMEデバイスで、RSIランチャーとの互換性がありません。インストールが失敗する可能性があります",
"@doctor_info_result_incompatible_nvme_device": {},
"doctor_info_result_add_registry_value": "レジストリにForcedPhysicalSectorSizeInBytes値を追加して古いデバイスをエミュレートします。ハードディスクパーティション({v0})",
"@doctor_info_result_add_registry_value": {},
"doctor_info_result_missing_easyanticheat_files": "EasyAntiCheatファイルが見つかりません",
"@doctor_info_result_missing_easyanticheat_files": {},
"doctor_info_result_verify_files_with_rsi_launcher": "LIVEフォルダ内にEasyAntiCheatファイルが見つからないか、ファイルが不完全です。RSIランチャーを使用してファイルを検証してください",
"@doctor_info_result_verify_files_with_rsi_launcher": {},
"doctor_info_result_easyanticheat_not_installed": "EasyAntiCheatがインストールされていないか、正常に終了していません",
"@doctor_info_result_easyanticheat_not_installed": {},
"doctor_info_result_install_easyanticheat": "EasyAntiCheatがインストールされていません。クリックして修復するとワンクリックでインストールします。ゲームが正常に起動して終了するまで、この問題は常に表示されます。他の理由でゲームがクラッシュする場合は、この項目を無視できます",
"@doctor_info_result_install_easyanticheat": {},
"doctor_info_result_chinese_username": "中国語ユーザー名!",
"@doctor_info_result_chinese_username": {},
"doctor_info_result_chinese_username_error": "中国語のユーザー名はゲームの起動/インストールエラーを引き起こす可能性があります!修復ボタンをクリックして変更チュートリアルを表示してください!",
"@doctor_info_result_chinese_username_error": {},
"doctor_info_result_chinese_install_path": "中国語のインストールパス!",
"@doctor_info_result_chinese_install_path": {},
"doctor_info_result_chinese_install_path_error": "中国語のインストールパスです!これはゲームの起動/インストールエラーを引き起こす可能性があります!({v0}、RSIランチャーでインストールパスを変更してください。",
"@doctor_info_result_chinese_install_path_error": {},
"doctor_info_result_low_physical_memory": "物理メモリが不足しています",
"@doctor_info_result_low_physical_memory": {},
"doctor_info_result_memory_requirement": "このゲームを実行するには、少なくとも16GBの物理メモリRAMが必要です。現在のサイズ{v0}",
"@doctor_info_result_memory_requirement": {},
"doctor_info_result_fix_suggestion": "修正提案: {v0}",
"@doctor_info_result_fix_suggestion": {},
"doctor_info_result_no_solution": "現在解決策はありません。スクリーンショットを撮ってフィードバックしてください",
"@doctor_info_result_no_solution": {},
"doctor_info_action_fix": "修復",
"@doctor_info_action_fix": {},
"doctor_action_view_solution": "解決策を表示",
"@doctor_action_view_solution": {},
"doctor_tip_title_select_game_directory": "ホームページでゲームインストールディレクトリを選択してください。",
"@doctor_tip_title_select_game_directory": {},
"doctor_action_result_try_latest_windows": "ハードウェアが条件を満たしている場合は、最新のWindowsシステムをインストールしてみてください。",
"@doctor_action_result_try_latest_windows": {},
"doctor_action_result_create_folder_success": "フォルダの作成に成功しました。ゲームのダウンロードを続けてみてください!",
"@doctor_action_result_create_folder_success": {},
"doctor_action_result_create_folder_fail": "フォルダの作成に失敗しました。手動で作成してみてください。\nディレクトリ{v0} \nエラー{v1}",
"@doctor_action_result_create_folder_fail": {},
"doctor_action_result_fix_success": "修復に成功しました。再起動してからゲームのインストールを続けてみてくださいレジストリの変更が他のソフトウェアに互換性の問題を引き起こす場合は、ツールのNVMEレジストリクリーナーを使用してください。",
"@doctor_action_result_fix_success": {},
"doctor_action_result_fix_fail": "修復に失敗しました、{v0}",
"@doctor_action_result_fix_fail": {},
"doctor_action_result_game_start_success": "修復に成功しました。ゲームを起動してみてください。問題が解決しない場合は、ツールボックスの「EACを再インストール」を使用してください",
"@doctor_action_result_game_start_success": {},
"doctor_action_result_redirect_warning": "リダイレクトします。チュートリアルはインターネットから取得したものですので、注意して操作してください...",
"@doctor_action_result_redirect_warning": {},
"doctor_action_result_issue_not_supported": "この問題は現在自動処理をサポートしていません。スクリーンショットを撮って助けを求めてください",
"@doctor_action_result_issue_not_supported": {},
"doctor_action_analyzing": "分析中...",
"@doctor_action_analyzing": {},
"doctor_action_result_analysis_no_issue": "分析完了、問題は見つかりませんでした",
"@doctor_action_result_analysis_no_issue": {},
"doctor_action_result_analysis_issues_found": "分析完了、{v0}個の問題が見つかりました",
"@doctor_action_result_analysis_issues_found": {},
"doctor_action_result_toast_scan_no_issue": "スキャン完了、問題は見つかりませんでした。それでもインストールに失敗する場合は、ツールボックスの管理者モードでRSIランチャーを試してみてください。",
"@doctor_action_result_toast_scan_no_issue": {},
"doctor_action_tip_checking_game_log": "確認中Game.log",
"@doctor_action_tip_checking_game_log": {},
"doctor_action_info_game_abnormal_exit": "ゲームが異常終了しました:{v0}",
"@doctor_action_info_game_abnormal_exit": {},
"doctor_action_info_game_abnormal_exit_unknown": "ゲームが異常終了しました:不明なエラー",
"@doctor_action_info_game_abnormal_exit_unknown": {},
"doctor_action_info_info_feedback": "info:{v0}、右下の「グループに参加」をクリックしてフィードバックしてください。",
"@doctor_action_info_info_feedback": {},
"doctor_action_info_checking_eac": "確認中EAC",
"@doctor_action_info_checking_eac": {},
"doctor_action_info_checking_runtime": "確認中:実行環境",
"@doctor_action_info_checking_runtime": {},
"doctor_action_result_info_unsupported_os": "サポートされていないオペレーティングシステム:{v0}",
"@doctor_action_result_info_unsupported_os": {},
"doctor_action_info_checking_install_info": "確認中:インストール情報",
"@doctor_action_info_checking_install_info": {},
"doctor_action_view_details": "詳細を表示",
"@doctor_action_view_details": {},
"home_install_location": "インストール場所:",
"@home_install_location": {},
"home_not_installed_or_failed": "インストールされていないか、インストールに失敗しました",
"@home_not_installed_or_failed": {},
"home_action_star_citizen_website_localization": "SC 公式サイト",
"@home_action_star_citizen_website_localization": {},
"home_action_info_roberts_space_industries_origin": "Roberts Space Industries、すべての始まり",
"@home_action_info_roberts_space_industries_origin": {},
"home_action_uex_localization": "UEX ローカリゼーション",
"@home_action_uex_localization": {},
"home_action_info_mining_refining_trade_calculator": "採掘、精製、取引計算機、価格、船舶情報",
"@home_action_info_mining_refining_trade_calculator": {},
"home_action_dps_calculator_localization": "DPS計算機 ローカリゼーション",
"@home_action_dps_calculator_localization": {},
"home_action_info_ship_upgrade_damage_value_query": "オンライン船舶アップグレード、ダメージ値と装備購入場所の照会",
"@home_action_info_ship_upgrade_damage_value_query": {},
"home_action_external_browser_extension": "外部ブラウザ拡張機能:",
"@home_action_external_browser_extension": {},
"home_action_one_click_diagnosis": "ワンクリック診断",
"@home_action_one_click_diagnosis": {},
"home_action_info_one_click_diagnosis_star_citizen": "Star Citizenの一般的な問題をワンクリックで診断",
"@home_action_info_one_click_diagnosis_star_citizen": {},
"home_action_localization_management": "ローカリゼーション管理",
"@home_action_localization_management": {},
"home_action_info_quick_install_localization_resources": "ローカリゼーションリソースを簡単にインストール",
"@home_action_info_quick_install_localization_resources": {},
"home_action_performance_optimization": "パフォーマンス最適化",
"@home_action_performance_optimization": {},
"home_action_info_engine_config_optimization": "エンジン設定ファイルを調整し、ゲームのパフォーマンスを最適化",
"@home_action_info_engine_config_optimization": {},
"home_action_rsi_status_platform": "プラットフォーム",
"@home_action_rsi_status_platform": {},
"home_action_rsi_status_persistent_universe": "PU",
"@home_action_rsi_status_persistent_universe": {},
"home_action_rsi_status_electronic_access": "EA",
"@home_action_rsi_status_electronic_access": {},
"home_action_rsi_status_arena_commander": "AC",
"@home_action_rsi_status_arena_commander": {},
"home_action_rsi_status_rsi_server_status": "RSIサーバーステータス",
"@home_action_rsi_status_rsi_server_status": {},
"home_action_rsi_status_status": "ステータス:",
"@home_action_rsi_status_status": {},
"home_announcement_details": "お知らせ詳細",
"@home_announcement_details": {},
"home_action_info_valid_install_location_required": "この機能には有効なインストール場所が必要です\n\nゲームのダウンロードが完了していない場合は、ダウンロードが完了するまで待ってから、この機能を使用してください。\n\nゲームのダウンロードが完了しているが認識されていない場合は、ゲームを一度起動してからツールボックスを再度開くか、設定オプションでインストール場所を手動で設定してください。",
"@home_action_info_valid_install_location_required": {},
"home_action_info_scanning": "スキャン中 ...",
"@home_action_info_scanning": {},
"home_action_info_scan_complete_valid_directories_found": "スキャン完了、{v0}個の有効なインストールディレクトリが見つかりました",
"@home_action_info_scan_complete_valid_directories_found": {},
"home_action_info_log_file_parse_fail": "ログファイルの解析に失敗しました!",
"@home_action_info_log_file_parse_fail": {},
"home_action_title_star_citizen_website_localization": "SC 公式サイトローカリゼーション",
"@home_action_title_star_citizen_website_localization": {},
"home_action_info_web_localization_plugin_disclaimer": "このプラグイン機能は概要閲覧のみを目的としており、この機能に関連する問題について一切責任を負いません!アカウント操作を行う前に、ウェブサイトのオリジナルコンテンツを確認してください!\n\n\nこの機能を使用してアカウントにログインする場合は、信頼できるソースからSCToolboxをダウンロードしていることを確認してください。",
"@home_action_info_web_localization_plugin_disclaimer": {},
"home_action_info_initializing_resources": "ローカリゼーションリソースを初期化中...",
"@home_action_info_initializing_resources": {},
"home_action_info_initialization_failed": "ウェブローカリゼーションリソースの初期化に失敗しました!{v0}",
"@home_action_info_initialization_failed": {},
"home_title_app_name": "SCToolbox",
"@home_title_app_name": {},
"home_localization_new_version_available": "ローカリゼーションの新しいバージョンが利用可能です!",
"@home_localization_new_version_available": {},
"home_localization_new_version_installed": "{v0}にインストールしたローカリゼーションに新しいバージョンがあります!",
"@home_localization_new_version_installed": {},
"home_info_valid_installation_required": "この機能には有効なインストール場所が必要です",
"@home_info_valid_installation_required": {},
"home_info_one_click_launch_warning": "ワンクリック起動機能の注意",
"@home_info_one_click_launch_warning": {},
"home_info_account_security_warning": "アカウントセキュリティを確保するため、ワンクリック起動機能は開発版では無効化されています。この機能はMicrosoft Storeバージョンで提供される予定です。\n\nMicrosoft Storeバージョンは、Microsoftが信頼性の高い配布ダウンロードとデジタル署名を提供し、ソフトウェアが悪意を持って改ざんされるのを効果的に防ぎます。\n\nヒントゲームの起動にツールボックスを使用しなくても、ローカリゼーションを使用できます。",
"@home_info_account_security_warning": {},
"home_action_install_microsoft_store_version": "Microsoft Storeバージョンをインストール",
"@home_action_install_microsoft_store_version": {},
"home_action_cancel": "キャンセル",
"@home_action_cancel": {},
"home_action_info_abnormal_game_exit": "ゲームが正常に終了しませんでした\nexitCode={v0}\nstdout={v1}\nstderr={v2}\n\n診断情報{v3} \n{v4}",
"@home_action_info_abnormal_game_exit": {},
"home_action_info_unknown_error": "不明なエラー、ワンクリック診断を使用してグループに参加し、フィードバックしてください。",
"@home_action_info_unknown_error": {},
"home_action_info_check_web_link": "詳細情報を確認するには、ポップアップしたウェブリンクを確認してください。",
"@home_action_info_check_web_link": {},
"home_action_info_game_built_in": "ゲーム内蔵",
"@home_action_info_game_built_in": {},
"home_action_info_warning": "警告",
"@home_action_info_warning": {},
"localization_info_machine_translation_warning": "ゲーム内蔵テキストを使用しています。公式テキストは現在機械翻訳です3.21.0まで)。下記のコミュニティローカリゼーションをインストールすることをお勧めします。",
"@localization_info_machine_translation_warning": {},
"localization_info_translation": "ゲームローカリゼーション",
"@localization_info_translation": {},
"localization_info_enabled": "有効({v0}",
"@localization_info_enabled": {},
"localization_info_installed_version": "インストール済みバージョン:{v0}",
"@localization_info_installed_version": {},
"localization_action_translation_feedback": "ローカリゼーションフィードバック",
"@localization_action_translation_feedback": {},
"localization_action_uninstall_translation": "ローカリゼーションをアンインストール",
"@localization_action_uninstall_translation": {},
"localization_info_note": "備考:",
"@localization_info_note": {},
"localization_info_community_translation": "コミュニティローカリゼーション",
"@localization_info_community_translation": {},
"localization_info_no_translation_available": "この言語/バージョンには現在利用可能なローカリゼーションがありません。お待ちください!",
"@localization_info_no_translation_available": {},
"localization_action_install": "インストール",
"@localization_action_install": {},
"localization_info_version_number": "バージョン番号:{v0}",
"@localization_info_version_number": {},
"localization_info_channel": "チャネル:{v0}",
"@localization_info_channel": {},
"localization_info_update_time": "更新時間:{v0}",
"@localization_info_update_time": {},
"localization_info_installed": "インストール済み",
"@localization_info_installed": {},
"localization_info_unavailable": "利用不可",
"@localization_info_unavailable": {},
"localization_info_language": "言語: ",
"@localization_info_language": {},
"localization_info_remove_incompatible_translation_params": "互換性のないローカリゼーションパラメータを削除しますか",
"@localization_info_remove_incompatible_translation_params": {},
"localization_info_incompatible_translation_params_warning": "USER.cfgに互換性のないローカリゼーションパラメータが含まれています。これは以前のローカリゼーションファイルの残りである可能性があります。\n\nこれによりローカリゼーションが無効になったり文字化けしたりする可能性があります。確認をクリックすると、ワンクリックで削除されます他の設定には影響しません。",
"@localization_info_incompatible_translation_params_warning": {},
"localization_info_corrupted_file": "ファイルが破損しています。再ダウンロードしてください",
"@localization_info_corrupted_file": {},
"localization_info_installation_error": "インストールエラー!\n\n {v0}",
"@localization_info_installation_error": {},
"localization_info_custom_files": "カスタムファイル",
"@localization_info_custom_files": {},
"performance_info_graphic_optimization_hint": "グラフィック最適化のヒント",
"@performance_info_graphic_optimization_hint": {},
"performance_info_graphic_optimization_warning": "この機能はグラフィックカードのボトルネックの最適化に役立ちますが、CPUのボトルネックには逆効果になることがあります。グラフィックカードの性能が高い場合は、より良い画質を使用してグラフィックカードの利用率を高めることができます。",
"@performance_info_graphic_optimization_warning": {},
"performance_info_current_status": "現在の状態:{v0}",
"@performance_info_current_status": {},
"performance_info_applied": "適用済み",
"@performance_info_applied": {},
"performance_info_not_applied": "未適用",
"@performance_info_not_applied": {},
"performance_action_preset": "プリセット:",
"@performance_action_preset": {},
"performance_action_low": "低",
"@performance_action_low": {},
"performance_action_medium": "中",
"@performance_action_medium": {},
"performance_action_high": "高",
"@performance_action_high": {},
"performance_action_super": "超高",
"@performance_action_super": {},
"performance_action_info_preset_only_changes_graphics": "(プリセットはグラフィック設定のみを変更します)",
"@performance_action_info_preset_only_changes_graphics": {},
"performance_action_reset_to_default": " デフォルトに戻す ",
"@performance_action_reset_to_default": {},
"performance_action_apply": "適用",
"@performance_action_apply": {},
"performance_action_apply_and_clear_shaders": "適用してシェーダーをクリア(推奨)",
"@performance_action_apply_and_clear_shaders": {},
"performance_title_performance_optimization": "パフォーマンス最適化 -> {v0}",
"@performance_title_performance_optimization": {},
"performance_action_custom_parameters_input": "ツールボックスに収録されていないカスタムパラメーターをここに入力できます。設定例:\n\nr_displayinfo=0\nr_VSync=0",
"@performance_action_custom_parameters_input": {},
"performance_info_min_max_values": "{v0} 最小値: {v1} / 最大値: {v2}",
"@performance_info_min_max_values": {},
"performance_info_graphics": "グラフィック",
"@performance_info_graphics": {},
"performance_info_delete_config_file": "設定ファイルを削除中...",
"@performance_info_delete_config_file": {},
"performance_action_clear_shaders": "シェーダーをクリア",
"@performance_action_clear_shaders": {},
"performance_info_done": "完了...",
"@performance_info_done": {},
"performance_info_shader_clearing_warning": "シェーダーをクリアした後、最初にゲームに入るとカクつく可能性があります。ゲームの初期化が完了するまで辛抱強くお待ちください。",
"@performance_info_shader_clearing_warning": {},
"performance_info_generate_config_file": "設定ファイルを生成",
"@performance_info_generate_config_file": {},
"performance_info_write_out_config_file": "設定ファイルを書き出し",
"@performance_info_write_out_config_file": {},
"app_index_menu_home": "ホーム",
"@app_index_menu_home": {},
"app_index_menu_lobby": "ロビー",
"@app_index_menu_lobby": {},
"app_index_menu_tools": "ツール",
"@app_index_menu_tools": {},
"app_index_menu_settings": "設定",
"@app_index_menu_settings": {},
"app_index_menu_about": "アバウト",
"@app_index_menu_about": {},
"lobby_online_lobby_coming_soon": "オンラインロビー、乞うご期待!",
"@lobby_online_lobby_coming_soon": {},
"lobby_invitation_to_participate": "ぜひご参加ください ",
"@lobby_invitation_to_participate": {},
"lobby_survey": "アンケート調査。",
"@lobby_survey": {},
"setting_action_create_settings_shortcut": "設定ショートカットを作成",
"@setting_action_create_settings_shortcut": {},
"setting_action_create_desktop_shortcut": "デスクトップに「SCToolbox」ショートカットを作成",
"@setting_action_create_desktop_shortcut": {},
"setting_action_reset_auto_password_fill": "自動パスワード入力をリセット",
"@setting_action_reset_auto_password_fill": {},
"setting_action_ignore_efficiency_cores_on_launch": "ゲーム起動時に効率コアを無視Intel第12世代以降のプロセッサに適用",
"@setting_action_ignore_efficiency_cores_on_launch": {},
"setting_action_set_core_count": "設定されたコア数:{v0} この機能はホームページのツールボックスワンクリック起動またはツールのRSIランチャー管理者モードに適用されます。0の場合、この機能は有効になりません",
"@setting_action_set_core_count": {},
"setting_action_set_launcher_file": "ランチャーファイルを設定RSI Launcher.exe",
"@setting_action_set_launcher_file": {},
"setting_action_info_manual_launcher_location_setting": "ランチャーの場所を手動で設定します。インストール場所の自動スキャンができない場合のみ使用することをお勧めします",
"@setting_action_info_manual_launcher_location_setting": {},
"setting_action_set_game_file": "ゲームファイルを設定StarCitizen.exe",
"@setting_action_set_game_file": {},
"setting_action_info_manual_game_location_setting": "ゲームのインストール場所を手動で設定します。インストール場所の自動スキャンができない場合のみ使用することをお勧めします",
"@setting_action_info_manual_game_location_setting": {},
"setting_action_clear_translation_file_cache": "ローカリゼーションファイルキャッシュをクリア",
"@setting_action_clear_translation_file_cache": {},
"setting_action_info_cache_clearing_info": "キャッシュサイズ {v0}MB、ツールボックスがダウンロードしたローカリゼーションファイルキャッシュをクリアします。インストール済みのローカリゼーションには影響しません",
"@setting_action_info_cache_clearing_info": {},
"setting_action_tool_site_access_acceleration": "ツールサイトアクセス加速",
"@setting_action_tool_site_access_acceleration": {},
"setting_action_info_mirror_server_info": "ミラーサーバーを使用してDps、Uexなどのツールウェブサイトへのアクセスを高速化します。アクセスに異常がある場合は、この機能をオフにしてください。アカウントセキュリティを保護するために、どのような状況でもRSI公式サイトは加速されません。",
"@setting_action_info_mirror_server_info": {},
"setting_action_view_log": "ログを表示",
"@setting_action_view_log": {},
"setting_action_info_view_log_file": "SCToolboxのログファイルを表示して、ツールのバグを特定します",
"@setting_action_info_view_log_file": {},
"setting_action_info_confirm_reset_autofill": "自動入力をリセットしますか?",
"@setting_action_info_confirm_reset_autofill": {},
"setting_action_info_delete_local_account_warning": "これにより、ローカルアカウント記録が削除されるか、次回ゲームを起動するときに自動入力を選択する際に「いいえ」を選択して自動入力を無効にします。",
"@setting_action_info_delete_local_account_warning": {},
"setting_action_info_autofill_data_cleared": "自動入力データがクリアされました",
"@setting_action_info_autofill_data_cleared": {},
"setting_action_info_enter_cpu_core_to_ignore": "無視するCPUコア数を入力してください",
"@setting_action_info_enter_cpu_core_to_ignore": {},
"setting_action_info_cpu_core_tip": "ヒントあなたのデバイスに効率コアがいくつあるかを入力してください。大小コア設計でないデバイスは0のままにしてください\n\nこの機能はホームページのツールボックスワンクリック起動またはツールのRSIランチャー管理者モードに適用されます。0の場合、この機能は有効になりません。",
"@setting_action_info_cpu_core_tip": {},
"setting_action_info_select_rsi_launcher_location": "RSIランチャーの場所を選択してくださいRSI Launcher.exe",
"@setting_action_info_select_rsi_launcher_location": {},
"setting_action_info_setting_success": "設定成功、対応するページで更新をクリックすると新しいパスがスキャンされます",
"@setting_action_info_setting_success": {},
"setting_action_info_file_error": "ファイルエラー!",
"@setting_action_info_file_error": {},
"setting_action_info_select_game_install_location": "ゲームのインストール場所を選択してくださいStarCitizen.exe",
"@setting_action_info_select_game_install_location": {},
"setting_action_info_confirm_clear_cache": "ローカリゼーションキャッシュをクリアしますか?",
"@setting_action_info_confirm_clear_cache": {},
"setting_action_info_clear_cache_warning": "これはインストール済みのローカリゼーションには影響しません。",
"@setting_action_info_clear_cache_warning": {},
"setting_action_info_microsoft_version_limitation": "Microsoft版の機能制限により、次に開かれるウィンドウで手動で「SCToolbox」をデスクトップにドラッグしてショートカットを作成してください。",
"@setting_action_info_microsoft_version_limitation": {},
"setting_action_info_shortcut_created": "作成完了、デスクトップに戻って確認してください",
"@setting_action_info_shortcut_created": {},
"app_upgrade_title_new_version_found": "新しいバージョンが見つかりました -> {v0}",
"@app_upgrade_title_new_version_found": {},
"app_upgrade_info_getting_new_version_details": "新しいバージョンの詳細を取得中...",
"@app_upgrade_info_getting_new_version_details": {},
"app_upgrade_info_update_server_tip": "ヒント:現在、コスト管理に役立つ分散サーバーを使用して更新しています。ダウンロード速度が低下する可能性がありますが、ダウンロードに問題がある場合は、ここをクリックして手動インストールに切り替えてください。",
"@app_upgrade_info_update_server_tip": {},
"app_upgrade_info_installing": "インストール中: ",
"@app_upgrade_info_installing": {},
"app_upgrade_info_downloading": "ダウンロード中: {v0}% ",
"@app_upgrade_info_downloading": {},
"app_upgrade_action_update_now": "今すぐ更新",
"@app_upgrade_action_update_now": {},
"app_upgrade_action_next_time": "次回にする",
"@app_upgrade_action_next_time": {},
"app_upgrade_info_download_failed": "ダウンロードに失敗しました。手動インストールを試してください!",
"@app_upgrade_info_download_failed": {},
"app_upgrade_info_run_failed": "実行に失敗しました。手動インストールを試してください!",
"@app_upgrade_info_run_failed": {},
"app_splash_checking_availability": "利用可能性を確認中、少し時間がかかる場合があります...",
"@app_splash_checking_availability": {},
"app_splash_checking_for_updates": "更新を確認中...",
"@app_splash_checking_for_updates": {},
"app_splash_almost_done": "もうすぐ完了…",
"@app_splash_almost_done": {},
"tools_hosts_info_rsi_official_website": "RSI公式サイト",
"@tools_hosts_info_rsi_official_website": {},
"tools_hosts_info_rsi_customer_service": "RSIカスタマーサービスサイト",
"@tools_hosts_info_rsi_customer_service": {},
"tools_hosts_info_dns_query_and_test": "DNSを問い合わせてアクセス可能性をテスト中です。しばらくお待ちください...",
"@tools_hosts_info_dns_query_and_test": {},
"tools_hosts_info_writing_hosts": "Hostsファイルに書き込み中 ...",
"@tools_hosts_info_writing_hosts": {},
"tools_hosts_info_reading_config": "設定を読み込み中 ...",
"@tools_hosts_info_reading_config": {},
"tools_hosts_info_hosts_acceleration": "Hosts加速",
"@tools_hosts_info_hosts_acceleration": {},
"tools_hosts_info_open_hosts_file": "Hostsファイルを開く",
"@tools_hosts_info_open_hosts_file": {},
"tools_hosts_info_status": "ステータス",
"@tools_hosts_info_status": {},
"tools_hosts_info_site": "サイト",
"@tools_hosts_info_site": {},
"tools_hosts_info_enable": "有効にする",
"@tools_hosts_info_enable": {},
"tools_hosts_action_one_click_acceleration": "ワンクリック加速",
"@tools_hosts_action_one_click_acceleration": {},
"tools_info_scanning": "スキャン中...",
"@tools_info_scanning": {},
"tools_info_processing_failed": "処理に失敗しました!:{v0}",
"@tools_info_processing_failed": {},
"tools_info_game_install_location": "ゲームインストール場所: ",
"@tools_info_game_install_location": {},
"tools_info_rsi_launcher_location": "RSIランチャー場所",
"@tools_info_rsi_launcher_location": {},
"tools_action_view_system_info": "システム情報を表示",
"@tools_action_view_system_info": {},
"tools_action_info_view_critical_system_info": "診断に役立つ重要なシステム情報を表示 \n\n時間のかかる操作です、お待ちください。",
"@tools_action_info_view_critical_system_info": {},
"tools_action_p4k_download_repair": "P4K 分散ダウンロード / 修復",
"@tools_action_p4k_download_repair": {},
"tools_action_info_p4k_download_repair_tip": "Star Citizen中国語百科事典が提供する分散ダウンロードサービスを使用して、p4kのダウンロードや修復ができます。 \nバージョン情報{v0}",
"@tools_action_info_p4k_download_repair_tip": {},
"tools_action_hosts_acceleration_experimental": "Hosts加速実験的",
"@tools_action_hosts_acceleration_experimental": {},
"tools_action_info_hosts_acceleration_experimental_tip": "IP情報をHostsファイルに書き込み、一部の地域でのDNS汚染による公式サイトへのログイン問題などを解決します。\nこの機能は第一段階のテスト中です。問題が発生した場合はすぐにフィードバックしてください。",
"@tools_action_info_hosts_acceleration_experimental_tip": {},
"tools_action_reinstall_easyanticheat": "EasyAntiCheat アンチチートを再インストール",
"@tools_action_reinstall_easyanticheat": {},
"tools_action_info_reinstall_eac": "EACエラーが発生し、自動修復が効かない場合は、この機能を使用してEACを再インストールしてください。",
"@tools_action_info_reinstall_eac": {},
"tools_action_rsi_launcher_admin_mode": "RSI Launcher 管理者モード",
"@tools_action_rsi_launcher_admin_mode": {},
"tools_action_info_run_rsi_as_admin": "RSIランチャーを管理者権限で実行すると、一部の問題が解決する場合があります。\n\n効率コア無視パラメータを設定している場合は、ここでも適用されます。",
"@tools_action_info_run_rsi_as_admin": {},
"tools_action_info_init_failed": "初期化に失敗しました。スクリーンショットを撮って開発者に報告してください。{v0}",
"@tools_action_info_init_failed": {},
"tools_action_rsi_launcher_log_fix": "RSI Launcher ログ修復",
"@tools_action_rsi_launcher_log_fix": {},
"tools_action_info_rsi_launcher_log_issue": "特定の状況でRSIランチャーのログファイルが破損し、問題スキャンが完了できなくなることがあります。このツールを使用して破損したログファイルをクリーンアップしてください。\n\n現在のログファイルサイズ{v0} MB",
"@tools_action_info_rsi_launcher_log_issue": {},
"tools_action_remove_nvme_registry_patch": "nvmeレジストリパッチを削除",
"@tools_action_remove_nvme_registry_patch": {},
"tools_action_info_nvme_patch_issue": "nvmeパッチを使用して問題が発生した場合は、このツールを実行してください。ゲームのインストール/更新が使用できなくなる可能性があります。)\n\n現在のパッチ状態{v0}",
"@tools_action_info_nvme_patch_issue": {},
"tools_action_info_not_installed": "インストールされていません",
"@tools_action_info_not_installed": {},
"tools_action_info_removed_restart_effective": "削除されました、コンピュータを再起動すると有効になります!",
"@tools_action_info_removed_restart_effective": {},
"tools_action_write_nvme_registry_patch": "nvmeレジストリパッチを書き込む",
"@tools_action_write_nvme_registry_patch": {},
"tools_action_info_manual_nvme_patch": "NVMパッチを手動で書き込みます。この機能は、自分が何をしているかを理解している場合にのみ使用してください",
"@tools_action_info_manual_nvme_patch": {},
"tools_action_info_fix_success_restart": "修復が成功しました。コンピュータを再起動してからゲームのインストールを続けてみてくださいレジストリの変更が他のソフトウェアに互換性の問題を引き起こす場合は、ツールの「NVMEレジストリクリーナー」を使用してください。",
"@tools_action_info_fix_success_restart": {},
"tools_action_clear_shader_cache": "シェーダーキャッシュをクリア",
"@tools_action_clear_shader_cache": {},
"tools_action_info_shader_cache_issue": "ゲームの表示に異常が発生した場合や、バージョン更新後に、このツールを使用して古いシェーダーをクリアできます同時にVulkanをDX11に戻します \n\nキャッシュサイズ{v0} MB",
"@tools_action_info_shader_cache_issue": {},
"tools_action_close_photography_mode": "撮影モードを閉じる",
"@tools_action_close_photography_mode": {},
"tools_action_open_photography_mode": "撮影モードを開く",
"@tools_action_open_photography_mode": {},
"tools_action_info_restore_lens_shake": "レンズの揺れ効果を復元します。\n\n@拉邦那 Lapernum 提供のパラメータ情報。",
"@tools_action_info_restore_lens_shake": {},
"tools_action_info_one_key_close_lens_shake": "ゲーム内のレンズの揺れをワンクリックでオフにして、撮影操作を容易にします。\n\n @拉邦那 Lapernum 提供のパラメータ情報。",
"@tools_action_info_one_key_close_lens_shake": {},
"tools_action_info_log_file_parse_failed": "ログファイルの解析に失敗しました!\n「RSI Launcher ログ修復」ツールを使用してみてください!",
"@tools_action_info_log_file_parse_failed": {},
"tools_action_info_rsi_launcher_not_found": "RSIランチャーが見つかりません。再インストールするか、設定で手動で追加してください。",
"@tools_action_info_rsi_launcher_not_found": {},
"tools_action_info_star_citizen_not_found": "Star Citizenゲームのインストール場所が見つかりません。少なくとも1回ゲームを起動するか、設定で手動で追加してください。",
"@tools_action_info_star_citizen_not_found": {},
"tools_action_info_valid_game_directory_needed": "この機能には有効なゲームインストールディレクトリが必要です",
"@tools_action_info_valid_game_directory_needed": {},
"tools_action_info_eac_file_removed": "EACファイルが削除されました。次にRSIランチャーを開きます。SETTINGS -> VERIFYに移動してEACを再インストールしてください。",
"@tools_action_info_eac_file_removed": {},
"tools_action_info_error_occurred": "エラーが発生しました:{v0}",
"@tools_action_info_error_occurred": {},
"tools_action_info_system_info_content": "システム:{v0}\n\nプロセッサ{v1}\n\nメモリサイズ{v2}GB\n\nグラフィックカード情報\n{v3}\n\nハードドライブ情報\n{v4}\n\n",
"@tools_action_info_system_info_content": {},
"tools_action_info_rsi_launcher_directory_not_found": "RSIランチャーディレクトリが見つかりません。手動で操作してください。",
"@tools_action_info_rsi_launcher_directory_not_found": {},
"tools_action_info_log_file_not_exist": "ログファイルが存在しません。ゲームを一度起動またはインストールしてから、ランチャーを終了してください。問題が解決しない場合は、ランチャーを最新バージョンに更新してみてください!",
"@tools_action_info_log_file_not_exist": {},
"tools_action_info_cleanup_complete": "クリーンアップが完了しました。インストールまたはゲーム起動操作を完了してください。",
"@tools_action_info_cleanup_complete": {},
"tools_action_info_cleanup_failed": "クリーンアップに失敗しました。手動で削除してください。ファイルの場所:{v0}",
"tools_action_info_system_info_title": "システム情報",
"@tools_action_info_system_info_title": {},
"tools_action_info_rsi_launcher_running_warning": "RSIランチャーが実行中ですこの機能を使用する前にランチャーを閉じてください",
"@tools_action_info_rsi_launcher_running_warning": {},
"tools_action_info_p4k_file_description": "P4kはStar Citizenのコアゲームファイルで、100GB以上のサイズです。SCToolboxが提供するオフラインダウンロードは、p4kファイルのダウンロードが非常に遅いユーザーをサポートするため、または公式ランチャーで修復できないp4kファイルを修正するためのものです。\n\n次に保存先を選択するダイアログが表示されますStar Citizenフォルダでも他の場所でも選択可能。ダウンロード完了後、P4KファイルがLIVEフォルダ内にあることを確認し、Star Citizenランチャーで検証と更新を行ってください。",
"@tools_action_info_p4k_file_description": {},
"tools_action_info_p4k_download_in_progress": "p4kのダウンロードタスクが既に進行中です。ダウンロードマネージャーで確認してください",
"@tools_action_info_p4k_download_in_progress": {},
"tools_action_info_function_under_maintenance": "機能はメンテナンス中です。後でもう一度お試しください!",
"@tools_action_info_function_under_maintenance": {},
"tools_action_info_config_file_not_exist": "設定ファイルが存在しません。一度ゲームを実行してみてください",
"@tools_action_info_config_file_not_exist": {},
"webview_localization_name_member": "メンバー名",
"@webview_localization_name_member": {},
"webview_localization_total_invitations": "招待総数:",
"@webview_localization_total_invitations": {},
"webview_localization_unfinished_invitations": "未完了の招待",
"@webview_localization_unfinished_invitations": {},
"webview_localization_finished_invitations": "完了した招待",
"@webview_localization_finished_invitations": {},
"app_init_failed_with_reason": "初期化に失敗:{v0}",
"@app_init_failed_with_reason": {},
"settings_app_language": "言語",
"settings_app_language_auto": "自動",
"app_common_network_error": "ネットワーク接続に失敗しました! \nオフラインモードに入ります... \n\nネットワーク接続を確認するか、ソーシャルフォーラムで最新情報を入手してください。アプリ設定で組み込みDNSモードをオンにすることもお試しください。 \n現在のバージョンのビルド日{v0}\n QQグループ940696487 \nエラーメッセージ{v1}",
"app_common_upgrade_info_error": "アップデート情報の取得に失敗しました。後でもう一度お試しください。",
"doctor_game_error_low_memory": "利用可能メモリ不足",
"doctor_game_error_low_memory_info": "仮想メモリを増やしてみてください1080pでは、物理メモリ+仮想メモリが64GBを超える必要があります",
"doctor_game_error_generic_info": "ゲームが最も一般的なクラッシュ問題を引き起こしました。トラブルシューティングガイドを確認してください",
"doctor_game_error_gpu_crash": "グラフィックカードがクラッシュしました!トラブルシューティングガイドを確認してください",
"doctor_game_error_socket_error": "ソケットエラーが検出されました",
"doctor_game_error_socket_error_info": "X黑盒加速器を使用している場合は、加速モードを変更してみてください",
"doctor_game_error_permissions_error": "権限不足",
"doctor_game_error_permissions_error_info": "管理者権限でランチャーを実行するか、SCToolboxMicrosoft Store版を使用して起動してみてください。",
"doctor_game_error_game_process_error": "ゲームプロセスが使用中です",
"doctor_game_error_game_process_error_info": "ランチャーを再起動するか、PCを再起動してみてください",
"doctor_game_error_game_damaged_file": "ゲームプログラムファイルが破損しています",
"doctor_game_error_game_damaged_file_info": "Bin64フォルダを削除してランチャーで検証してみてください。",
"doctor_game_error_game_damaged_p4k_file": "P4Kファイルが破損しています",
"doctor_game_error_game_damaged_p4k_file_info": "Data.p4kファイルを削除してランチャーで検証するか、SCToolboxの配布を使用してみてください。",
"doctor_game_error_low_gpu_memory": "利用可能なグラフィックメモリ不足",
"doctor_game_error_low_gpu_memory_info": "バックグラウンドで他のグラフィック集中型のゲーム/アプリを実行しないようにするか、グラフィックカードをアップグレードしてください。",
"doctor_game_error_gpu_vulkan_crash": "GPU Vulkanクラッシュ",
"doctor_game_error_gpu_vulkan_crash_info": "Vulkanがクラッシュしましたこれはドライバーバージョンまたはゲームエンジンの問題かもしれません。GPUドライバーを更新するか、シェーダークリーニング機能を使用してDX11に戻すことをお試しください",
"app_common_error_info": "エラーが発生しました:{v0}",
"app_common_tip": "ヒント",
"app_common_tip_i_know": "理解しました",
"app_common_tip_confirm": "確認",
"app_common_tip_cancel": "キャンセル",
"settings_app_language_switch_info": "アプリの表示言語を切り替える",
"home_holiday_countdown_days": "{v0}日 ",
"home_holiday_countdown_in_progress": "進行中",
"app_common_loading_images": "画像を読み込み中...",
"app_splash_dialog_u_a_p_p": "ユーザー契約とプライバシーポリシー",
"app_splash_dialog_u_a_p_p_content": "SCToolboxをお選びいただきありがとうございます。私たちは安全で便利、信頼性の高い体験を提供することに努めています。アプリを使用する前に、以下をお読みいただき同意してください\n\n 1. このアプリケーションはGNU General Public License v3.0の下でのオープンソースソフトウェアです。ライセンスに従って自由に使用、変更、配布することができます。ソースコードは[Github.com/StarCitizenToolBox/app](https://github.com/StarCitizenToolBox/app)にあります。 \n2. このアプリケーション内のインターネットコンテンツローカリゼーションファイル、ツールウェブサイト、ニュース、ビデオなどを含むの著作権はその作者に帰属し、GPLの一部ではありません。対応するライセンス契約を遵守して使用してください。\n3. このアプリケーションの公式無料配布チャンネルは[Microsoft Store](https://apps.microsoft.com/detail/9NF3SWFWNKL1)と[Star Citizen ローカリゼーションチームの公式ウェブサイト](https://www.starcitizenzw.com/)です。他のサードパーティから入手した場合は、財産損失を避けるため慎重に判断してください。\n4. このアプリケーションはソフトウェア品質向上のため、使用中に匿名の統計データを当社サーバーに送信します。個人的なプライバシー情報は収集しません。 \n5. このアプリケーションはコミュニティサポートにより提供され、Cloud Imperium Gamesや他のサードパーティの商業会社とは直接関連していません。\n6. 私たちは限定的なコミュニティサポートを提供しています。必要な場合は、「概要」ページで連絡方法をご確認ください。",
"tools_unp4k_msg_init": "初期化中...",
"tools_unp4k_msg_reading": "P4Kファイルを読み込み中...",
"tools_unp4k_msg_reading2": "ファイルを処理中...",
"tools_unp4k_msg_reading3": "ファイルを処理中({v0}/{v1})...",
"tools_unp4k_msg_read_completed": "読み込み完了:{v0}ファイル、所要時間:{v1} ms",
"tools_unp4k_msg_open_file": "ファイルを開く:{v0}",
"tools_unp4k_msg_read_file": "ファイルを読み込み中:{v0}...",
"home_localization_advanced_title": "高度なローカリゼーション -> {v0}",
"home_localization_advanced_msg_version": "読み込まれたローカリゼーションバージョン:{v0}",
"home_localization_advanced_title_msg": "ローカリゼーションテキスト行数:{v0} P4Kテキスト行数{v1}",
"home_localization_advanced_action_install": "ローカリゼーションをインストール",
"home_localization_advanced_action_mod_change": "テキストを再生成中...",
"home_localization_advanced_action_mode": "モード",
"home_localization_advanced_title_preview": "プレビュー:{v0}",
"home_localization_advanced_json_text_location_other": "場所-その他",
"home_localization_advanced_json_text_location_used": "場所-よく使用",
"home_localization_advanced_json_text_things_other": "アイテム-その他",
"home_localization_advanced_json_text_things_used": "アイテム-よく使用",
"home_localization_advanced_json_text_vehicle_other": "ビークル-その他",
"home_localization_advanced_json_text_vehicle_used": "ビークル-よく使用",
"home_localization_advanced_json_text_mission_or_logs": "ミッション/ログ",
"home_localization_advanced_json_text_subtitle": "字幕",
"home_localization_advanced_json_text_ui_or_hud_or_menu": "UI/HUD/メニュー",
"home_localization_advanced_json_text_un_localization": "未ローカリゼーション",
"home_localization_advanced_json_text_others": "その他",
"home_localization_advanced_action_mod_change_localization": "ローカリゼーション",
"home_localization_advanced_action_mod_change_un_localization": "英語原文",
"home_localization_advanced_action_mod_change_mixed": "バイリンガル",
"home_localization_advanced_action_mod_change_mixed_newline": "バイリンガル(改行)",
"home_localization_advanced_msg_classifying": "分類中...",
"home_localization_advanced_msg_reading_p4k": "p4kファイルを読み込み中...",
"home_localization_advanced_msg_reading_server_localization_text": "ローカリゼーションテキストを取得中...",
"home_localization_advanced_msg_gen_localization_text": "ローカリゼーションファイルを生成中...",
"home_localization_advanced_msg_gen_localization_install": "ローカリゼーションファイルをインストール中...",
"home_localization_msg_version_advanced": " (高度なローカリゼーション)",
"home_localization_msg_no_note": "このバージョンには説明がありません",
"home_localization_action_rsi_launcher_localization": "RSIランチャーローカリゼーション",
"home_localization_action_rsi_launcher_no_game_path_msg": "現在ゲーム本体がインストールされていないか、ゲームインストールディレクトリが選択されていません。ランチャーローカリゼーション機能のみ使用できます。ゲームのインストールが完了しているか、SCToolbox設定でゲームインストールディレクトリを追加した後に再試行してください。",
"home_localization_action_advanced": "高度なローカリゼーション",
"home_localization_action_install_customize": "カスタムファイルをインストール",
"home_localization_title_localization_tools": "ローカリゼーションツール",
"performance_json_text_dof": "被写界深度効果",
"performance_json_text_dof_info": "モビグラスページなどの被写界深度効果を制御",
"performance_json_text_ssdo": "スクリーンスペース光後処理",
"performance_json_text_ssdo_info": "光の後処理レベルを調整",
"performance_json_text_title_graphics": "グラフィック(変更後はシェーダーをクリアすることをお勧めします)",
"performance_json_text_antialiasing": "アンチエイリアス",
"performance_json_text_antialiasing_info": "0 オフ、1 SMAA、2 テンポラルフィルタリング+SMAA、3 テンポラルフィルタリングとプロジェクションマトリックスジッタを使用したSMAA",
"performance_json_text_game_effects": "エフェクトレベル",
"performance_json_text_game_effects_info": "ゲームエフェクトレベル",
"performance_json_text_texture": "テクスチャレベル",
"performance_json_text_texture_info": "モデルテクスチャの詳細",
"performance_json_text_volumetric_effects": "ボリューメトリック効果",
"performance_json_text_volumetric_effects_info": "ボリューメトリッククラウド、ボリューメトリック照明など",
"performance_json_text_water": "水の効果",
"performance_json_text_water_info": "様々な水のレベル",
"performance_json_text_object_detail": "オブジェクト詳細",
"performance_json_text_object_detail_info": "モデルオブジェクトの詳細、LODに影響など...",
"performance_json_text_particles": "パーティクル詳細",
"performance_json_text_physics": "物理詳細",
"performance_json_text_physics_info": "物理効果範囲",
"performance_json_text_shading": "シェーディング詳細",
"performance_json_text_shading_info": "シェーダー関連",
"performance_json_text_shadows": "影の詳細",
"performance_json_text_shadows_info": "影の効果",
"performance_json_text_postprocessing": "後処理詳細",
"performance_json_text_postprocessing_info": "後処理シェーダー、モーションブラー効果など",
"performance_json_text_renderer": "レンダラー品質",
"performance_json_text_renderer_info": "cryengineレンダラー品質",
"performance_json_text_shader_decal": "デカール品質",
"performance_json_text_shader_decal_info": "(ロゴ、マークなど)",
"performance_json_text_shader_post_process": "シェーダー品質",
"performance_json_text_shader_fx": "FX品質",
"performance_json_text_shader_general": "一般的な品質",
"performance_json_text_shader_general_info": "全体的なモデル品質",
"performance_json_text_shader_glass": "ガラス品質",
"performance_json_text_shader_glass_info": "窓、鏡など",
"performance_json_text_shader_hdr": "HDR品質",
"performance_json_text_shader_hdr_info": "HDRカラーアベレーション、輝度レベル処理など",
"performance_json_text_shader_particle": "パーティクル品質",
"performance_json_text_shader_particle_info": "パーティクル効果の品質",
"performance_json_text_shader_terrain": "地形品質",
"performance_json_text_shader_shadow": "影品質",
"performance_json_text_shader_sky": "空品質",
"performance_json_text_particles_object_collisions": "パーティクル衝突",
"performance_json_text_particles_object_collisions_info": "1 静的パーティクルのみ 2 動的パーティクルを含む",
"performance_json_text_displayinfo": "画面情報(フレームレート表示)",
"performance_json_text_displayinfo_info": "画面右上にフレームレート、サーバー情報などを表示",
"performance_json_text_max_fps": "最大フレームレート",
"performance_json_text_max_fps_info": "ゲームの最大フレームレートを調整、0は制限なし",
"performance_json_text_display_session": "セッション情報を表示",
"performance_json_text_display_session_info": "有効にするとQRコードが画面に表示され、フィードバック時にCIGが関連情報をすばやく特定できるようになります",
"performance_json_text_vsync": "垂直同期",
"performance_json_text_vsync_info": "画面の裂けを防ぐためにオン、フレームレートを上げるためにオフ",
"performance_json_text_motion_blur": "モーションブラー",
"performance_json_text_motion_blur_info": "動きの感覚を高めるためにオン、視覚的体験を向上させるためにオフ",
"performance_json_text_fov": "視野角FOVを設定",
"performance_json_text_ui_animation": "UIフェードインアウトアニメーション",
"performance_json_text_custom_parameters": "カスタムパラメータ",
"performance_json_text_title_custom": "カスタム",
"tools_rsi_launcher_enhance_init_msg1": "ランチャー情報を読み込み中...",
"tools_rsi_launcher_enhance_init_msg2": "ネットワークから機能強化データを取得中...",
"tools_rsi_launcher_enhance_working_msg1": "パッチを生成中...",
"tools_rsi_launcher_enhance_working_msg2": "パッチをインストール中、これはコンピュータのパフォーマンスによって時間がかかります...",
"tools_rsi_launcher_enhance_title": "RSIランチャー機能強化",
"tools_rsi_launcher_enhance_msg_version": "ランチャー内部バージョン情報:{v0}",
"tools_rsi_launcher_enhance_msg_patch_status": "パッチ状態:{v0}",
"tools_rsi_launcher_enhance_msg_error": "機能強化データの取得に失敗しました。ネットワークの問題または現在のバージョンがサポートされていない可能性があります",
"tools_rsi_launcher_enhance_title_localization": "RSIランチャーローカリゼーション",
"tools_rsi_launcher_enhance_subtitle_localization": "RSIランチャーに多言語サポートを追加します。",
"tools_rsi_launcher_enhance_title_download_booster": "RSIランチャーダウンロード機能強化",
"tools_rsi_launcher_enhance_subtitle_download_booster": "ゲームのダウンロード時に、より多くのスレッドを使用してダウンロード速度を向上させることができます。有効にした後、ランチャー設定でスレッド数を変更してください。",
"tools_rsi_launcher_enhance_action_install": "機能強化パッチをインストール",
"tools_rsi_launcher_enhance_msg_uninstall": "* 機能強化パッチをアンインストールするには、RSIランチャーを上書きインストールしてください。",
"tools_rsi_launcher_enhance_msg_error_launcher_notfound": "RSIランチャーが見つかりません",
"tools_rsi_launcher_enhance_msg_error_get_launcher_info_error": "ランチャー情報の読み込みに失敗しました!",
"tools_rsi_launcher_enhance_msg_error_get_launcher_info_error_with_args": "ランチャー情報の読み込みに失敗:{v0}",
"tools_action_rsi_launcher_enhance_info": "ランチャーローカリゼーション、ダウンロードスレッド強化",
"tools_rsi_launcher_enhance_note_title": "RSIランチャー機能強化の使用上の注意",
"tools_rsi_launcher_enhance_note_msg": "RSIランチャー機能強化はコミュニティ機能で、お使いのコンピューターで「RSI Launcher」を解凍し、追加の機能強化を加えます。どの機能を使用するかはあなた次第です。\n\n現在、公式CIGは多言語操作のみを許可していますが、ランチャーダウンロード機能強化は私たちが有用だと考える追加機能です。cigユーザー契約https://robertsspaceindustries.com/eulaに違反すると、アカウント禁止などの深刻な結果を招く可能性があり、使用するかどうかはあなた自身の判断によります。私たちは発生する可能性のある結果ゲームの損傷、アカウント禁止などに対して責任を負いません。\n\nランチャーの変更内容については、https://github.com/StarCitizenToolBox/RSILauncherEnhanceでオープンソースとして公開しています。必要に応じて確認できます。\n\n何らかの理由でこの機能強化パッチをキャンセルする必要がある場合は、公式ランチャーを直接上書きインストールしてください。",
"tools_action_unp4k": "P4Kビューア",
"tools_action_unp4k_info": "Star Citizen p4kファイルを解凍",
"tools_unp4k_title": "P4Kビューア -> {v0}",
"tools_unp4k_view_file": "プレビューするファイルをクリック",
"tools_unp4k_msg_unknown_file_type": "不明なファイルタイプ\n{v0}",
"home_localization_select_customize_file_ini": "iniファイルを選択してください",
"home_localization_select_customize_file": "カスタムローカリゼーションファイルを選択してください",
"home_localization_action_select_customize_file": "iniファイルを選択するにはクリック",
"home_localization_ptu_advanced_localization_tip_title": "高度なローカリゼーションの使用をお勧めします",
"home_localization_ptu_advanced_localization_tip_title_info": "PTU/EPTUなどのテストチャンネルでは、現在のローカリゼーションテキストがゲームと同期していない可能性があります。高度なローカリゼーションを使用することで文字化けの発生を減らすことができます。",
"tools_rsi_launcher_enhance_action_fold": "追加機能を折りたたむ",
"tools_rsi_launcher_enhance_action_expand": "追加機能を展開",
"tools_unp4k_missing_runtime": "ランタイムがありません",
"tools_unp4k_missing_runtime_info": "この機能を使用するには.NET8ランタイムをインストールする必要があります。下のボタンをクリックしてダウンロードしてインストールし、インストールが成功したらこのページを再度開いて使用を続行してください。",
"tools_unp4k_missing_runtime_action_install": "ランタイムをインストール",
"settings_title_general": "一般",
"settings_item_dns": "組み込みDNSを使用",
"settings_item_dns_info": "有効にすると、一部の地域でのDNS汚染問題を解決する可能性があります",
"settings_title_game": "ゲーム",
"about_action_btn_faq": "よくある質問",
"guide_title_welcome": "ようこそ",
"guide_info_check_settings": "以下の設定が正しいことを確認してください。間違いがある場合は、右側のアイコンをクリックして修正してから続行してください",
"guide_info_game_download_note": "* ゲームをダウンロード中の場合は、ダウンロードが完了した後にゲームを一度起動し、更新ボタンをクリックしてください。ランチャー機能強化ローカリゼーションのみを使用する場合は、ランチャーパスが正しいことを確認して設定完了をクリックしてください",
"guide_action_get_help": "ヘルプを取得",
"guide_action_complete_setup": "設定を完了",
"guide_dialog_confirm_complete_setup": "設定を完了しますか?",
"guide_action_info_no_launcher_path_warning": "ランチャーのインストールパスを選択していません。設定を完了しますか?\n\nガイドページを閉じた後、設定ページで手動操作する必要があります。",
"guide_action_info_no_game_path_warning": "ゲームのインストールパスを選択していません。設定を完了しますか?\n\nガイドページを閉じた後、設定ページで手動操作する必要があります。",
"setting_toast_select_launcher_exe": "ランチャーのexeファイルを選択「RSI Launcher.exe」",
"setting_toast_select_game_file": "対応するゲームファイルを選択: Bin64/StarCitizen.exe",
"input_method_feature_maintenance": "機能はメンテナンス中です、後でもう一度お試しください",
"input_method_community_input_method_not_installed": "コミュニティ入力メソッドサポートがインストールされていません",
"input_method_install_community_input_method_prompt": "ローカリゼーション管理に行ってインストールしますか?\n\nすでにローカリゼーションをインストールしている場合は、アンインストールして再インストール時にコミュニティ入力メソッドサポートスイッチをオンにしてください。",
"input_method_usage_instructions": "使用方法",
"input_method_input_text_instructions": "上のテキストボックスにテキストを入力し、下のエンコードされたテキストをゲームのテキストボックスに貼り付けCtrl+Vて、チャットチャンネルでゲームがサポートしていない文字を送信できます。",
"input_method_input_placeholder": "テキストを入力してください...",
"input_method_encoded_text_placeholder": "ここにエンコードされたテキストが表示されます...",
"input_method_remote_input_service": "リモート入力サービス:",
"input_method_disclaimer": "*この機能は非公開チャンネルでのみ使用することをお勧めします。ユーザーがこの機能を公開チャンネルで使用することを選択した場合、それによって生じる結果(他のプレイヤーによるスパム報告など)はすべてユーザー自身の責任となります。\n*この機能が乱用された場合、機能を無効にする場合があります。",
"input_method_experimental_input_method": "コミュニティ入力メソッド(実験的)",
"input_method_auto_copy": "自動コピー",
"input_method_confirm_enable_remote_input": "リモート入力を有効にしますか?",
"input_method_enable_remote_input_instructions": "この機能を有効にすると、スマートフォンからリモートサービスアドレスにアクセスして、ウィンドウの切り替えなしにテキストをすばやく入力でき、ゲームの流れが中断されません。\n\nファイアウォールの通知が表示された場合は、ポップアップを展開し、すべてのネットワークタイプを手動でチェックして許可してください。そうしないと、この機能に正常にアクセスできない場合があります。",
"input_method_address_fetch_failed": "アドレスの取得に失敗しました。PCのIPを手動で確認してください",
"input_method_text_cannot_be_empty": "テキストを空にすることはできません!",
"input_method_send_success": "送信成功!",
"input_method_ip_address_not_found": "サービスにアクセスするための適切なIPアドレスが見つかりませんでした。次のアドレスをお試しください左右に切り替え",
"input_method_scan_qr_code": "モバイルデバイスで次のQRコードをスキャンするか、接続に手動でアクセスしてください",
"input_method_service_qr_code": "サービスQRコード",
"input_method_confirm_install_advanced_localization": "高度なローカリゼーションをインストールしますか?",
"input_method_install_community_input_method_support": "コミュニティ入力メソッドサポートをインストール",
"input_method_community_input_method_support_version": "コミュニティ入力メソッドサポート:{v0}",
"input_method_online_version_prompt": "この機能のオンラインスタンドアロン版も提供されています。アクセスするにはクリック >",
"input_method_support_updated": "コミュニティ入力メソッドサポートが更新されました",
"input_method_support_updated_to_version": "コミュニティ入力メソッドサポートが更新されました:{v0}",
"input_method_auto_translate": "バイリンガル翻訳:",
"input_method_auto_translate_dialog_title": "バイリンガル翻訳を有効にしますか?",
"input_method_auto_translate_dialog_title_content": "有効にすると、Google翻訳サービスを使用して入力内容に英語の副本を追加します。応答が遅延する可能性があります。機能に異常がある場合は無効にしてください。\n\nテキストはGoogleサーバーに転送されます。Googleのプライバシーポリシーを参照してください。",
"support_dev_thanks_message": "SCToolboxをご利用いただきありがとうございます。私は開発者のxkeyCです。\nSCToolboxはオープンソースにコミットし、プレイヤーに無料のサービスを提供することに努めています。無償のサービスは挑戦的な作業です。飲み物代を贈っていただければ大変感謝します。\n寄付された資金はサーバー費用、新機能の開発、そしてソフトウェアメンテナンスのモチベーション向上に使われます。",
"support_dev_referral_code_message": "まだゲームに登録していないか招待コードを入力していない場合は、私のコードを検討してくださいSTAR-3YXS-SWTC、ここまで読んでいただきありがとうございます",
"support_dev_title": "開発者をサポート",
"support_dev_github_star_message": "GitHubで私のプロジェクトにスターを付けることもできます",
"support_dev_github_star_button": "プロジェクトにスター",
"support_dev_in_game_currency_title": "ゲーム内通貨",
"support_dev_in_game_id": "ゲームID: xkeyC",
"support_dev_in_game_id_copied": "ゲームIDがコピーされました",
"support_dev_copy_button": "コピー",
"support_dev_in_game_currency_message": "ゲーム内でaUECを送信してサポートすることができます。これは限られた時間の中で私がより良いゲーム体験を得るのに役立ちます",
"support_dev_alipay": "Alipay",
"support_dev_wechat": "WeChat",
"support_dev_donation_disclaimer": "* 注意:寄付は無償の贈与であり、ソフトウェア体験において追加の特典を得ることはありません。",
"support_dev_back_button": "戻る",
"support_dev_scroll_hint": "下にスクロールしてさらに表示",
"log_analyzer_filter_all": "すべて",
"log_analyzer_filter_basic_info": "基本情報",
"log_analyzer_filter_account_related": "アカウント関連",
"log_analyzer_filter_fatal_collision": "致命的な衝突",
"log_analyzer_filter_vehicle_damaged": "ビークル損傷",
"log_analyzer_filter_character_death": "キャラクター死亡",
"log_analyzer_filter_statistics": "統計情報",
"log_analyzer_filter_game_crash": "ゲームクラッシュ",
"log_analyzer_filter_local_inventory": "ローカルインベントリ",
"log_analyzer_no_log_file": "logファイルが見つかりません",
"log_analyzer_one_click_diagnosis_header": "----- SCToolbox ワンクリック診断 -----",
"log_analyzer_details_info": "詳細情報:{v0}",
"log_analyzer_no_crash_detected": "ゲームクラッシュ情報は検出されませんでした",
"log_analyzer_game_crash": "ゲームクラッシュ ",
"log_analyzer_kill_summary": "キル概要",
"log_analyzer_kill_death_suicide_count": "キル数:{v0} デス数:{v1} 自殺回数:{v2} \n機体破壊ソフトデス{v3} 機体破壊(解体):{v4}",
"log_analyzer_play_time": "プレイ時間",
"log_analyzer_play_time_format": "{v0}時間{v1}分{v2}秒",
"log_analyzer_game_start": "ゲーム起動",
"log_analyzer_game_loading": "ゲーム読み込み",
"log_analyzer_mode_loading_time": "モード:{v0} 所要時間:{v1}秒",
"log_analyzer_game_close": "ゲーム終了",
"log_analyzer_collision_details": "エリア:{v0} プレイヤー操縦:{v1} 衝突エンティティ:{v2} \n衝突ビークル{v3} 衝突距離:{v4} ",
"log_analyzer_soft_death": "ソフト死亡",
"log_analyzer_disintegration": "崩壊",
"log_analyzer_vehicle_damage_details": "ビークルモデル:{v0} \nエリア{v1} \n損傷レベル{v2} {v3} 責任者:{v4}",
"log_analyzer_death_details": "被害者ID{v0} 死因:{v1} \n殺害者ID{v2} \nエリア{v3}",
"log_analyzer_player_login": "プレイヤー {v0} ログイン中...",
"log_analyzer_view_local_inventory": "ローカルインベントリを表示",
"log_analyzer_player_location": "プレイヤーID{v0} 位置:{v1}",
"log_analyzer_game_installation_path": "ゲームインストールパス",
"log_analyzer_select_game_path": "ゲームインストールパスを選択してください",
"log_analyzer_search_placeholder": "キーワードを入力して内容を検索",
"log_analyzer_title": "logアナライザ",
"log_analyzer_description": "プレイ記録を分析(ログイン、死亡、キルなどの情報)",
"log_analyzer_window_title": "SCToolbox: logアナライザ"
"@app_language_code": {},
"app_index_version_info": "SCToolBox V {v0} {v1}"
}

View File

@ -1,897 +0,0 @@
{
"@@locale": "ru",
"@@auto_translate_locale": "ru",
"app_language_name": "Русский",
"@app_language_name": {},
"app_language_code": "ru",
"app_index_version_info": "SCToolbox V{v0} {v1}",
"@app_index_version_info": {},
"app_shortcut_name": "SCToolboxDEV.lnk",
"@app_shortcut_name": {},
"about_check_update": "Проверить обновления",
"@about_check_update": {},
"about_app_description": "Не только локализация!\n\nSCToolbox — ваш надёжный помощник в исследовании вселенной. Мы стремимся решать распространённые проблемы игры и предоставлять удобные инструменты для локализации сообщества, оптимизации производительности, перевода популярных сайтов и многого другого.",
"@about_app_description": {},
"about_online_feedback": "Обратная связь онлайн",
"@about_online_feedback": {},
"about_action_qq_group": "QQ группа: 940696487",
"@about_action_qq_group": {},
"about_action_email": "Почта: xkeyc@qq.com",
"@about_action_email": {},
"about_action_open_source": "Открытый исходный код",
"@about_action_open_source": {},
"about_disclaimer": "Это неофициальный инструмент для Star Citizen, не связанный с группой компаний Cloud Imperium. Весь контент, не созданный хостом или пользователями этого приложения, является собственностью их соответствующих владельцев.\nStar Citizen®, Roberts Space Industries® и Cloud Imperium® являются зарегистрированными товарными знаками Cloud Imperium Rights LLC.",
"@about_disclaimer": {},
"about_analytics_launch": "Запуск",
"@about_analytics_launch": {},
"about_analytics_launch_game": "Запуск игры",
"@about_analytics_launch_game": {},
"about_analytics_total_users": "Всего пользователей",
"@about_analytics_total_users": {},
"about_analytics_install_translation": "Установка локализации",
"@about_analytics_install_translation": {},
"about_analytics_performance_optimization": "Оптимизация производительности",
"@about_analytics_performance_optimization": {},
"about_analytics_p4k_redirection": "P4K перенаправление",
"@about_analytics_p4k_redirection": {},
"about_analytics_units_user": "чел.",
"@about_analytics_units_user": {},
"about_analytics_units_times": "раз",
"@about_analytics_units_times": {},
"about_info_latest_version": "У вас уже установлена последняя версия!",
"@about_info_latest_version": {},
"home_holiday_countdown": "Обратный отсчет до праздников",
"@home_holiday_countdown": {},
"home_holiday_countdown_disclaimer": "* Даты праздников собираются и поддерживаются вручную и могут содержать ошибки. Обратная связь приветствуется!",
"@home_holiday_countdown_disclaimer": {},
"home_action_one_click_launch": "Запуск в один клик",
"@home_action_one_click_launch": {},
"home_title_logging_in": "Вход в систему...",
"@home_title_logging_in": {},
"home_login_title_welcome_back": "С возвращением!",
"@home_login_title_welcome_back": {},
"home_login_title_launching_game": "Запускаем игру...",
"@home_login_title_launching_game": {},
"home_action_login_rsi_account": "Войти в аккаунт RSI",
"@home_action_login_rsi_account": {},
"home_login_info_game_version_outdated": "Версия игры устарела",
"@home_login_info_game_version_outdated": {},
"home_login_info_rsi_server_report": "Сервер RSI сообщает версию: {v1}\n\nЛокальная версия: {v2}\n\nРекомендуется обновить игру через RSI Launcher!",
"@home_login_info_rsi_server_report": {},
"home_login_info_action_ignore": "Игнорировать",
"@home_login_info_action_ignore": {},
"home_login_action_title_box_one_click_launch": "Запуск в один клик",
"@home_login_action_title_box_one_click_launch": {},
"home_login_info_one_click_launch_description": "Эта функция помогает вам удобнее запускать игру.\n\nДля обеспечения безопасности аккаунта эта функция использует локализованный браузер для сохранения состояния входа, и не сохраняет информацию о вашем пароле (если вы не включили функцию автозаполнения).\n\nПри использовании этой функции для входа в аккаунт убедитесь, что вы скачали SCToolbox из надежного источника.",
"@home_login_info_one_click_launch_description": {},
"home_login_action_title_need_webview2_runtime": "Требуется установить WebView2 Runtime",
"@home_login_action_title_need_webview2_runtime": {},
"action_close": "Закрыть",
"@action_close": {},
"downloader_speed_limit_settings": "Настройки ограничения скорости",
"@downloader_speed_limit_settings": {},
"downloader_action_pause_all": "Приостановить все",
"@downloader_action_pause_all": {},
"downloader_action_resume_all": "Возобновить все",
"@downloader_action_resume_all": {},
"downloader_action_cancel_all": "Отменить все",
"@downloader_action_cancel_all": {},
"downloader_info_no_download_tasks": "Нет задач загрузки",
"@downloader_info_no_download_tasks": {},
"downloader_info_total_size": "Общий размер: {v1}",
"@downloader_info_total_size": {},
"downloader_info_verifying": "Проверка... ({v2})",
"@downloader_info_verifying": {},
"downloader_info_downloading": "Загрузка... ({v0}%)",
"@downloader_info_downloading": {},
"downloader_info_status": "Статус: {v0}",
"@downloader_info_status": {},
"downloader_info_uploaded": "Отдано: {v0}",
"@downloader_info_uploaded": {},
"downloader_info_downloaded": "Загружено: {v0}",
"@downloader_info_downloaded": {},
"downloader_action_options": "Опции",
"@downloader_action_options": {},
"downloader_action_continue_download": "Продолжить загрузку",
"@downloader_action_continue_download": {},
"downloader_action_pause_download": "Приостановить загрузку",
"@downloader_action_pause_download": {},
"downloader_action_cancel_download": "Отменить загрузку",
"@downloader_action_cancel_download": {},
"action_open_folder": "Открыть папку",
"@action_open_folder": {},
"downloader_info_download_upload_speed": "Загрузка: {v0}/с Отдача: {v1}/с",
"@downloader_info_download_upload_speed": {},
"downloader_info_downloading_status": "Загрузка...",
"@downloader_info_downloading_status": {},
"downloader_info_waiting": "Ожидание",
"@downloader_info_waiting": {},
"downloader_info_paused": "Приостановлено",
"@downloader_info_paused": {},
"downloader_info_download_failed": "Ошибка загрузки",
"@downloader_info_download_failed": {},
"downloader_info_download_completed": "Загрузка завершена",
"@downloader_info_download_completed": {},
"downloader_info_deleted": "Удалено",
"@downloader_info_deleted": {},
"downloader_title_downloading": "Загрузка",
"@downloader_title_downloading": {},
"downloader_title_ended": "Завершено",
"@downloader_title_ended": {},
"downloader_action_confirm_cancel_all_tasks": "Подтвердите отмену всех задач?",
"@downloader_action_confirm_cancel_all_tasks": {},
"downloader_info_manual_file_deletion_note": "Если файл больше не нужен, возможно, вам потребуется удалить загруженный файл вручную.",
"@downloader_info_manual_file_deletion_note": {},
"downloader_action_confirm_cancel_download": "Подтвердите отмену загрузки?",
"@downloader_action_confirm_cancel_download": {},
"downloader_info_p2p_network_note": "SCToolbox использует p2p сеть для ускорения загрузки файлов. Если у вас ограниченный трафик, вы можете установить ограничение скорости отдачи до 1 байта.",
"@downloader_info_p2p_network_note": {},
"downloader_info_download_unit_input_prompt": "Пожалуйста, введите единицу скорости загрузки, например: 1, 100k, 10m. Оставьте поле пустым или введите 0 для снятия ограничения.",
"@downloader_info_download_unit_input_prompt": {},
"downloader_input_upload_speed_limit": "Ограничение отдачи:",
"@downloader_input_upload_speed_limit": {},
"downloader_input_download_speed_limit": "Ограничение загрузки:",
"@downloader_input_download_speed_limit": {},
"downloader_input_info_p2p_upload_note": "* P2P отдача происходит только во время загрузки файла и отключается после завершения. Если вы хотите участвовать в раздаче, пожалуйста, свяжитесь с нами через страницу 'О программе'.",
"@downloader_input_info_p2p_upload_note": {},
"doctor_title_one_click_diagnosis": "Быстрая диагностика -> {v0}",
"@doctor_title_one_click_diagnosis": {},
"doctor_action_rsi_launcher_log": "Лог RSI Launcher",
"@doctor_action_rsi_launcher_log": {},
"doctor_action_game_run_log": "Лог запуска игры",
"@doctor_action_game_run_log": {},
"doctor_info_scan_complete_no_issues": "Сканирование завершено, проблем не обнаружено!",
"@doctor_info_scan_complete_no_issues": {},
"doctor_info_processing": "Обработка...",
"@doctor_info_processing": {},
"doctor_info_game_rescue_service_note": "Вы собираетесь перейти к сервису спасения игры, предоставляемому Центром глубокого космического лечения (QQ группа: 536454632), который в основном решает проблемы с неудачной установкой и частыми вылетами. Не присоединяйтесь к группе для вопросов по игровому процессу.",
"@doctor_info_game_rescue_service_note": {},
"doctor_info_need_help": "Нужна помощь? Нажмите, чтобы присоединиться к группе для бесплатной поддержки!",
"@doctor_info_need_help": {},
"doctor_info_tool_check_result_note": "Примечание: Результаты проверки этим инструментом предоставляются только для справки. Если вы не понимаете следующие операции, пожалуйста, предоставьте снимок экрана опытным игрокам!",
"@doctor_info_tool_check_result_note": {},
"doctor_info_result_unsupported_os": "Неподдерживаемая операционная система, игра может не запуститься",
"@doctor_info_result_unsupported_os": {},
"doctor_info_result_upgrade_system": "Пожалуйста, обновите вашу систему ({v0})",
"@doctor_info_result_upgrade_system": {},
"doctor_info_result_missing_live_folder": "В директории установки отсутствует папка LIVE, что может привести к сбою установки",
"@doctor_info_result_missing_live_folder": {},
"doctor_info_result_create_live_folder": "Нажмите исправить, чтобы создать папку LIVE, затем повторите попытку установки. ({v0})",
"@doctor_info_result_create_live_folder": {},
"doctor_info_result_incompatible_nvme_device": "Новое устройство NVME, временно несовместимое с RSI Launcher, может привести к сбою установки",
"@doctor_info_result_incompatible_nvme_device": {},
"doctor_info_result_add_registry_value": "Добавление значения ForcedPhysicalSectorSizeInBytes в реестр для эмуляции старого устройства. Раздел диска ({v0})",
"@doctor_info_result_add_registry_value": {},
"doctor_info_result_missing_easyanticheat_files": "Отсутствуют файлы EasyAntiCheat",
"@doctor_info_result_missing_easyanticheat_files": {},
"doctor_info_result_verify_files_with_rsi_launcher": "Файлы EasyAntiCheat не найдены в папке LIVE или файлы неполные. Пожалуйста, используйте RSI Launcher для проверки файлов",
"@doctor_info_result_verify_files_with_rsi_launcher": {},
"doctor_info_result_easyanticheat_not_installed": "EasyAntiCheat не установлен или некорректно завершен",
"@doctor_info_result_easyanticheat_not_installed": {},
"doctor_info_result_install_easyanticheat": "EasyAntiCheat не установлен, нажмите исправить для автоматической установки. (Эта проблема будет появляться до нормального запуска и завершения игры. Если игра вылетает по другим причинам, вы можете игнорировать этот пункт.)",
"@doctor_info_result_install_easyanticheat": {},
"doctor_info_result_chinese_username": "Имя пользователя на китайском!",
"@doctor_info_result_chinese_username": {},
"doctor_info_result_chinese_username_error": "Имя пользователя на китайском может вызвать ошибки запуска/установки игры! Нажмите кнопку исправить, чтобы увидеть руководство по изменению!",
"@doctor_info_result_chinese_username_error": {},
"doctor_info_result_chinese_install_path": "Путь установки на китайском!",
"@doctor_info_result_chinese_install_path": {},
"doctor_info_result_chinese_install_path_error": "Путь установки на китайском! Это может вызвать ошибки запуска/установки игры! ({v0}), пожалуйста, измените путь установки в RSI Launcher.",
"@doctor_info_result_chinese_install_path_error": {},
"doctor_info_result_low_physical_memory": "Недостаточно физической памяти",
"@doctor_info_result_low_physical_memory": {},
"doctor_info_result_memory_requirement": "Вам нужно как минимум 16 ГБ физической памяти (RAM) для запуска этой игры. (Текущий размер: {v0})",
"@doctor_info_result_memory_requirement": {},
"doctor_info_result_fix_suggestion": "Предложение по исправлению: {v0}",
"@doctor_info_result_fix_suggestion": {},
"doctor_info_result_no_solution": "Решение пока отсутствует, пожалуйста, сделайте снимок экрана и обратитесь за помощью",
"@doctor_info_result_no_solution": {},
"doctor_info_action_fix": "Исправить",
"@doctor_info_action_fix": {},
"doctor_action_view_solution": "Посмотреть решение",
"@doctor_action_view_solution": {},
"doctor_tip_title_select_game_directory": "Пожалуйста, выберите директорию установки игры на главной странице.",
"@doctor_tip_title_select_game_directory": {},
"doctor_action_result_try_latest_windows": "Если ваше оборудование соответствует требованиям, попробуйте установить последнюю версию Windows.",
"@doctor_action_result_try_latest_windows": {},
"doctor_action_result_create_folder_success": "Папка успешно создана, пожалуйста, попробуйте продолжить загрузку игры!",
"@doctor_action_result_create_folder_success": {},
"doctor_action_result_create_folder_fail": "Не удалось создать папку, попробуйте создать её вручную.\nПуть: {v0}\nОшибка: {v1}",
"@doctor_action_result_create_folder_fail": {},
"doctor_action_result_fix_success": "Исправление выполнено успешно, пожалуйста, попробуйте перезагрузить компьютер и продолжить установку игры! Если изменение реестра вызвало проблемы совместимости с другими программами, используйте очистку реестра NVME в разделе Инструменты.",
"@doctor_action_result_fix_success": {},
"doctor_action_result_fix_fail": "Исправление не удалось, {v0}",
"@doctor_action_result_fix_fail": {},
"doctor_action_result_game_start_success": "Исправлено успешно, попробуйте запустить игру. (Если проблема не устраняется, используйте 'Переустановить EAC' в наборе инструментов.)",
"@doctor_action_result_game_start_success": {},
"doctor_action_result_redirect_warning": "Сейчас произойдет перенаправление, руководство взято из Интернета, действуйте с осторожностью...",
"@doctor_action_result_redirect_warning": {},
"doctor_action_result_issue_not_supported": "Эта проблема в настоящее время не поддерживает автоматическое исправление, пожалуйста, предоставьте снимок экрана для получения помощи",
"@doctor_action_result_issue_not_supported": {},
"doctor_action_analyzing": "Анализ...",
"@doctor_action_analyzing": {},
"doctor_action_result_analysis_no_issue": "Анализ завершен, проблем не обнаружено",
"@doctor_action_result_analysis_no_issue": {},
"doctor_action_result_analysis_issues_found": "Анализ завершен, обнаружено {v0} проблем",
"@doctor_action_result_analysis_issues_found": {},
"doctor_action_result_toast_scan_no_issue": "Сканирование завершено, проблем не обнаружено. Если установка по-прежнему не удается, попробуйте использовать режим администратора для RSI Launcher в разделе инструментов.",
"@doctor_action_result_toast_scan_no_issue": {},
"doctor_action_tip_checking_game_log": "Проверка: Game.log",
"@doctor_action_tip_checking_game_log": {},
"doctor_action_info_game_abnormal_exit": "Аварийное завершение игры: {v0}",
"@doctor_action_info_game_abnormal_exit": {},
"doctor_action_info_game_abnormal_exit_unknown": "Аварийное завершение игры: неизвестная ошибка",
"@doctor_action_info_game_abnormal_exit_unknown": {},
"doctor_action_info_info_feedback": "инфо:{v0}, пожалуйста, нажмите в правом нижнем углу, чтобы присоединиться к группе для обратной связи.",
"@doctor_action_info_info_feedback": {},
"doctor_action_info_checking_eac": "Проверка: EAC",
"@doctor_action_info_checking_eac": {},
"doctor_action_info_checking_runtime": "Проверка: среды выполнения",
"@doctor_action_info_checking_runtime": {},
"doctor_action_result_info_unsupported_os": "Неподдерживаемая операционная система: {v0}",
"@doctor_action_result_info_unsupported_os": {},
"doctor_action_info_checking_install_info": "Проверка: информации об установке",
"@doctor_action_info_checking_install_info": {},
"doctor_action_view_details": "Подробнее",
"@doctor_action_view_details": {},
"home_install_location": "Место установки:",
"@home_install_location": {},
"home_not_installed_or_failed": "Не установлено или установка не удалась",
"@home_not_installed_or_failed": {},
"home_action_star_citizen_website_localization": "Локализация сайта Star Citizen",
"@home_action_star_citizen_website_localization": {},
"home_action_info_roberts_space_industries_origin": "Roberts Space Industries, начало всего",
"@home_action_info_roberts_space_industries_origin": {},
"home_action_uex_localization": "Локализация UEX",
"@home_action_uex_localization": {},
"home_action_info_mining_refining_trade_calculator": "Калькулятор добычи, очистки, торговли, цены, информация о кораблях",
"@home_action_info_mining_refining_trade_calculator": {},
"home_action_dps_calculator_localization": "Локализация DPS калькулятора",
"@home_action_dps_calculator_localization": {},
"home_action_info_ship_upgrade_damage_value_query": "Онлайн-модификация кораблей, запрос значений урона и мест покупки компонентов",
"@home_action_info_ship_upgrade_damage_value_query": {},
"home_action_external_browser_extension": "Расширение внешнего браузера:",
"@home_action_external_browser_extension": {},
"home_action_one_click_diagnosis": "Быстрая диагностика",
"@home_action_one_click_diagnosis": {},
"home_action_info_one_click_diagnosis_star_citizen": "Быстрая диагностика распространенных проблем Star Citizen",
"@home_action_info_one_click_diagnosis_star_citizen": {},
"home_action_localization_management": "Управление локализацией",
"@home_action_localization_management": {},
"home_action_info_quick_install_localization_resources": "Быстрая установка ресурсов локализации",
"@home_action_info_quick_install_localization_resources": {},
"home_action_performance_optimization": "Оптимизация производительности",
"@home_action_performance_optimization": {},
"home_action_info_engine_config_optimization": "Настройка конфигурационных файлов движка для оптимизации производительности",
"@home_action_info_engine_config_optimization": {},
"home_action_rsi_status_platform": "Платформа",
"@home_action_rsi_status_platform": {},
"home_action_rsi_status_persistent_universe": "Постоянная вселенная",
"@home_action_rsi_status_persistent_universe": {},
"home_action_rsi_status_electronic_access": "Электронный доступ",
"@home_action_rsi_status_electronic_access": {},
"home_action_rsi_status_arena_commander": "Arena Commander",
"@home_action_rsi_status_arena_commander": {},
"home_action_rsi_status_rsi_server_status": "Статус сервера RSI",
"@home_action_rsi_status_rsi_server_status": {},
"home_action_rsi_status_status": "Статус:",
"@home_action_rsi_status_status": {},
"home_announcement_details": "Подробности объявления",
"@home_announcement_details": {},
"home_action_info_valid_install_location_required": "Для этой функции требуется действительное место установки\n\nЕсли игра еще не загружена полностью, дождитесь завершения загрузки, прежде чем использовать эту функцию.\n\nЕсли загрузка игры завершена, но она не распознается, запустите игру один раз и снова откройте SCToolbox, или установите место установки вручную в настройках.",
"@home_action_info_valid_install_location_required": {},
"home_action_info_scanning": "Сканирование...",
"@home_action_info_scanning": {},
"home_action_info_scan_complete_valid_directories_found": "Сканирование завершено, найдено {v0} действительных директорий установки",
"@home_action_info_scan_complete_valid_directories_found": {},
"home_action_info_log_file_parse_fail": "Ошибка анализа лог-файла!",
"@home_action_info_log_file_parse_fail": {},
"home_action_title_star_citizen_website_localization": "Локализация сайта Star Citizen",
"@home_action_title_star_citizen_website_localization": {},
"home_action_info_web_localization_plugin_disclaimer": "Этот плагин предназначен только для общего просмотра и не несёт ответственности за любые проблемы, вызванные его использованием! Перед выполнением операций с аккаунтом убедитесь, что вы понимаете оригинальное содержание сайта!\n\n\nПри использовании этой функции для входа в аккаунт убедитесь, что вы скачали SCToolbox из надёжного источника.",
"@home_action_info_web_localization_plugin_disclaimer": {},
"home_action_info_initializing_resources": "Инициализация ресурсов локализации...",
"@home_action_info_initializing_resources": {},
"home_action_info_initialization_failed": "Ошибка инициализации ресурсов веб-локализации! {v0}",
"@home_action_info_initialization_failed": {},
"home_title_app_name": "SCToolbox",
"@home_title_app_name": {},
"home_localization_new_version_available": "Доступна новая версия локализации!",
"@home_localization_new_version_available": {},
"home_localization_new_version_installed": "Доступна новая версия локализации, установленной {v0}!",
"@home_localization_new_version_installed": {},
"home_info_valid_installation_required": "Для этой функции требуется действительное место установки",
"@home_info_valid_installation_required": {},
"home_info_one_click_launch_warning": "Предупреждение о функции запуска в один клик",
"@home_info_one_click_launch_warning": {},
"home_info_account_security_warning": "Для обеспечения безопасности аккаунта функция запуска в один клик отключена в версии для разработчиков. Мы предоставим эту функцию в версии из Microsoft Store.\n\nMicrosoft Store обеспечивает надежную загрузку и цифровую подпись, что эффективно защищает от несанкционированного доступа к программному обеспечению.\n\nПодсказка: Вы можете использовать локализацию без запуска игры через SCToolbox.",
"@home_info_account_security_warning": {},
"home_action_install_microsoft_store_version": "Установить версию из Microsoft Store",
"@home_action_install_microsoft_store_version": {},
"home_action_cancel": "Отмена",
"@home_action_cancel": {},
"home_action_info_abnormal_game_exit": "Игра завершилась ненормально\nexitCode={v0}\nstdout={v1}\nstderr={v2}\n\nДиагностическая информация: {v3}\n{v4}",
"@home_action_info_abnormal_game_exit": {},
"home_action_info_unknown_error": "Неизвестная ошибка, пожалуйста, используйте быструю диагностику и присоединитесь к группе для обратной связи.",
"@home_action_info_unknown_error": {},
"home_action_info_check_web_link": "Пожалуйста, проверьте появившуюся веб-ссылку для получения подробной информации.",
"@home_action_info_check_web_link": {},
"home_action_info_game_built_in": "Встроено в игру",
"@home_action_info_game_built_in": {},
"home_action_info_warning": "Предупреждение",
"@home_action_info_warning": {},
"localization_info_machine_translation_warning": "Вы используете встроенные в игру тексты. Официальные тексты в настоящее время переведены машиной (по состоянию на 3.21.0), рекомендуется установить перевод сообщества ниже.",
"@localization_info_machine_translation_warning": {},
"localization_info_translation": "Локализация игры",
"@localization_info_translation": {},
"localization_info_enabled": "Включено ({v0}):",
"@localization_info_enabled": {},
"localization_info_installed_version": "Установленная версия: {v0}",
"@localization_info_installed_version": {},
"localization_action_translation_feedback": "Отзыв о локализации",
"@localization_action_translation_feedback": {},
"localization_action_uninstall_translation": "Удалить локализацию",
"@localization_action_uninstall_translation": {},
"localization_info_note": "Примечание:",
"@localization_info_note": {},
"localization_info_community_translation": "Локализация сообщества",
"@localization_info_community_translation": {},
"localization_info_no_translation_available": "Для этого языка/версии пока нет доступной локализации, пожалуйста, ожидайте!",
"@localization_info_no_translation_available": {},
"localization_action_install": "Установить",
"@localization_action_install": {},
"localization_info_version_number": "Номер версии: {v0}",
"@localization_info_version_number": {},
"localization_info_channel": "Канал: {v0}",
"@localization_info_channel": {},
"localization_info_update_time": "Время обновления: {v0}",
"@localization_info_update_time": {},
"localization_info_installed": "Установлено",
"@localization_info_installed": {},
"localization_info_unavailable": "Недоступно",
"@localization_info_unavailable": {},
"localization_info_language": "Язык: ",
"@localization_info_language": {},
"localization_info_remove_incompatible_translation_params": "Удалить несовместимые параметры локализации",
"@localization_info_remove_incompatible_translation_params": {},
"localization_info_incompatible_translation_params_warning": "USER.cfg содержит несовместимые параметры локализации, это может быть остаток от предыдущих файлов локализации.\n\nЭто может привести к неработающей локализации или искаженному тексту, нажмите подтвердить, чтобы удалить эти параметры (это не повлияет на другие настройки).",
"@localization_info_incompatible_translation_params_warning": {},
"localization_info_corrupted_file": "Файл поврежден, пожалуйста, загрузите его заново",
"@localization_info_corrupted_file": {},
"localization_info_installation_error": "Ошибка установки!\n\n{v0}",
"@localization_info_installation_error": {},
"localization_info_custom_files": "Пользовательские файлы",
"@localization_info_custom_files": {},
"performance_info_graphic_optimization_hint": "Подсказка по оптимизации графики",
"@performance_info_graphic_optimization_hint": {},
"performance_info_graphic_optimization_warning": "Эта функция очень помогает при оптимизации узких мест видеокарты, но может иметь обратный эффект при узких местах CPU. Если у вас мощная видеокарта, попробуйте использовать более высокое качество графики для повышения утилизации видеокарты.",
"@performance_info_graphic_optimization_warning": {},
"performance_info_current_status": "Текущий статус: {v0}",
"@performance_info_current_status": {},
"performance_info_applied": "Применено",
"@performance_info_applied": {},
"performance_info_not_applied": "Не применено",
"@performance_info_not_applied": {},
"performance_action_preset": "Предустановка:",
"@performance_action_preset": {},
"performance_action_low": "Низкая",
"@performance_action_low": {},
"performance_action_medium": "Средняя",
"@performance_action_medium": {},
"performance_action_high": "Высокая",
"@performance_action_high": {},
"performance_action_super": "Супер",
"@performance_action_super": {},
"performance_action_info_preset_only_changes_graphics": "(Предустановки изменяют только настройки графики)",
"@performance_action_info_preset_only_changes_graphics": {},
"performance_action_reset_to_default": "Восстановить по умолчанию",
"@performance_action_reset_to_default": {},
"performance_action_apply": "Применить",
"@performance_action_apply": {},
"performance_action_apply_and_clear_shaders": "Применить и очистить шейдеры (рекомендуется)",
"@performance_action_apply_and_clear_shaders": {},
"performance_title_performance_optimization": "Оптимизация производительности -> {v0}",
"@performance_title_performance_optimization": {},
"performance_action_custom_parameters_input": "Здесь вы можете ввести собственные параметры, не включенные в SCToolbox. Пример конфигурации:\n\nr_displayinfo=0\nr_VSync=0",
"@performance_action_custom_parameters_input": {},
"performance_info_min_max_values": "{v0} Мин.: {v1} / Макс.: {v2}",
"@performance_info_min_max_values": {},
"performance_info_graphics": "Графика",
"@performance_info_graphics": {},
"performance_info_delete_config_file": "Удаление файла конфигурации...",
"@performance_info_delete_config_file": {},
"performance_action_clear_shaders": "Очистить шейдеры",
"@performance_action_clear_shaders": {},
"performance_info_done": "Готово...",
"@performance_info_done": {},
"performance_info_shader_clearing_warning": "После очистки шейдеров при первом входе в игру могут возникнуть задержки. Пожалуйста, дождитесь завершения инициализации игры.",
"@performance_info_shader_clearing_warning": {},
"performance_info_generate_config_file": "Создание файла конфигурации",
"@performance_info_generate_config_file": {},
"performance_info_write_out_config_file": "Запись файла конфигурации",
"@performance_info_write_out_config_file": {},
"app_index_menu_home": "Главная",
"@app_index_menu_home": {},
"app_index_menu_lobby": "Лобби",
"@app_index_menu_lobby": {},
"app_index_menu_tools": "Инструменты",
"@app_index_menu_tools": {},
"app_index_menu_settings": "Настройки",
"@app_index_menu_settings": {},
"app_index_menu_about": "О программе",
"@app_index_menu_about": {},
"lobby_online_lobby_coming_soon": "Онлайн-лобби скоро появится!",
"@lobby_online_lobby_coming_soon": {},
"lobby_invitation_to_participate": "Приглашаем вас принять участие в ",
"@lobby_invitation_to_participate": {},
"lobby_survey": "опросе.",
"@lobby_survey": {},
"setting_action_create_settings_shortcut": "Создать ярлык настроек",
"@setting_action_create_settings_shortcut": {},
"setting_action_create_desktop_shortcut": "Создать ярлык SCToolbox на рабочем столе",
"@setting_action_create_desktop_shortcut": {},
"setting_action_reset_auto_password_fill": "Сбросить автозаполнение пароля",
"@setting_action_reset_auto_password_fill": {},
"setting_action_ignore_efficiency_cores_on_launch": "Игнорировать энергоэффективные ядра при запуске игры (для процессоров Intel 12-го поколения и выше)",
"@setting_action_ignore_efficiency_cores_on_launch": {},
"setting_action_set_core_count": "Установленное количество ядер: {v0} (Эта функция применяется при запуске через SCToolbox или в режиме администратора RSI Launcher из набора инструментов. При значении 0 функция отключена)",
"@setting_action_set_core_count": {},
"setting_action_set_launcher_file": "Установить файл лаунчера (RSI Launcher.exe)",
"@setting_action_set_launcher_file": {},
"setting_action_info_manual_launcher_location_setting": "Ручная установка местоположения лаунчера, рекомендуется только если автоматическое сканирование мест установки не работает",
"@setting_action_info_manual_launcher_location_setting": {},
"setting_action_set_game_file": "Установить файл игры (StarCitizen.exe)",
"@setting_action_set_game_file": {},
"setting_action_info_manual_game_location_setting": "Ручная установка местоположения игры, рекомендуется только если автоматическое сканирование мест установки не работает",
"@setting_action_info_manual_game_location_setting": {},
"setting_action_clear_translation_file_cache": "Очистить кэш файлов локализации",
"@setting_action_clear_translation_file_cache": {},
"setting_action_info_cache_clearing_info": "Размер кэша {v0}MB, очистка кэша загруженных SCToolbox файлов локализации, не повлияет на установленные локализации",
"@setting_action_info_cache_clearing_info": {},
"setting_action_tool_site_access_acceleration": "Ускорение доступа к инструментам",
"@setting_action_tool_site_access_acceleration": {},
"setting_action_info_mirror_server_info": "Использовать зеркальные серверы для ускорения доступа к инструментам, таким как Dps, Uex и другие. Если возникают проблемы с доступом, отключите эту функцию. Для безопасности аккаунта, RSI сайт никогда не будет ускоряться.",
"@setting_action_info_mirror_server_info": {},
"setting_action_view_log": "Просмотр лога",
"@setting_action_view_log": {},
"setting_action_info_view_log_file": "Просмотр лог-файла SCToolbox для определения багов программы",
"@setting_action_info_view_log_file": {},
"setting_action_info_confirm_reset_autofill": "Подтвердить сброс автозаполнения?",
"@setting_action_info_confirm_reset_autofill": {},
"setting_action_info_delete_local_account_warning": "Это удалит локальную запись аккаунта или, при следующем запуске игры, выберите 'Нет' для отключения автозаполнения.",
"@setting_action_info_delete_local_account_warning": {},
"setting_action_info_autofill_data_cleared": "Данные автозаполнения очищены",
"@setting_action_info_autofill_data_cleared": {},
"setting_action_info_enter_cpu_core_to_ignore": "Введите количество ядер CPU для игнорирования",
"@setting_action_info_enter_cpu_core_to_ignore": {},
"setting_action_info_cpu_core_tip": "Совет: Введите количество энергоэффективных ядер вашего устройства. Для устройств без архитектуры big.LITTLE оставьте 0.\n\nЭта функция применяется при запуске через SCToolbox или в режиме администратора RSI Launcher из набора инструментов. При значении 0 функция отключена.",
"@setting_action_info_cpu_core_tip": {},
"setting_action_info_select_rsi_launcher_location": "Выберите местоположение RSI Launcher (RSI Launcher.exe)",
"@setting_action_info_select_rsi_launcher_location": {},
"setting_action_info_setting_success": "Настройка успешно выполнена, нажмите обновить на соответствующей странице для сканирования нового пути",
"@setting_action_info_setting_success": {},
"setting_action_info_file_error": "Ошибка файла!",
"@setting_action_info_file_error": {},
"setting_action_info_select_game_install_location": "Выберите место установки игры (StarCitizen.exe)",
"@setting_action_info_select_game_install_location": {},
"setting_action_info_confirm_clear_cache": "Подтвердите очистку кэша локализации?",
"@setting_action_info_confirm_clear_cache": {},
"setting_action_info_clear_cache_warning": "Это не повлияет на уже установленные локализации.",
"@setting_action_info_clear_cache_warning": {},
"setting_action_info_microsoft_version_limitation": "Из-за ограничений версии Microsoft, пожалуйста, в следующем окне вручную перетащите «SCToolbox» на рабочий стол для создания ярлыка.",
"@setting_action_info_microsoft_version_limitation": {},
"setting_action_info_shortcut_created": "Создание завершено, проверьте рабочий стол",
"@setting_action_info_shortcut_created": {},
"app_upgrade_title_new_version_found": "Найдена новая версия -> {v0}",
"@app_upgrade_title_new_version_found": {},
"app_upgrade_info_getting_new_version_details": "Получение информации о новой версии...",
"@app_upgrade_info_getting_new_version_details": {},
"app_upgrade_info_update_server_tip": "Примечание: Сейчас используется зеркальный сервер для обновления, что может привести к снижению скорости загрузки, но помогает нам контролировать затраты. Если возникают проблемы с загрузкой, нажмите здесь для перехода к ручной установке.",
"@app_upgrade_info_update_server_tip": {},
"app_upgrade_info_installing": "Установка: ",
"@app_upgrade_info_installing": {},
"app_upgrade_info_downloading": "Загрузка: {v0}% ",
"@app_upgrade_info_downloading": {},
"app_upgrade_action_update_now": "Обновить сейчас",
"@app_upgrade_action_update_now": {},
"app_upgrade_action_next_time": "В следующий раз",
"@app_upgrade_action_next_time": {},
"app_upgrade_info_download_failed": "Ошибка загрузки, пожалуйста, попробуйте установить вручную!",
"@app_upgrade_info_download_failed": {},
"app_upgrade_info_run_failed": "Ошибка запуска, пожалуйста, попробуйте установить вручную!",
"@app_upgrade_info_run_failed": {},
"app_splash_checking_availability": "Проверка доступности, это может занять некоторое время...",
"@app_splash_checking_availability": {},
"app_splash_checking_for_updates": "Проверка обновлений...",
"@app_splash_checking_for_updates": {},
"app_splash_almost_done": "Почти готово…",
"@app_splash_almost_done": {},
"tools_hosts_info_rsi_official_website": "Официальный сайт RSI",
"@tools_hosts_info_rsi_official_website": {},
"tools_hosts_info_rsi_customer_service": "Служба поддержки RSI",
"@tools_hosts_info_rsi_customer_service": {},
"tools_hosts_info_dns_query_and_test": "Запрос DNS и проверка доступности, пожалуйста, подождите...",
"@tools_hosts_info_dns_query_and_test": {},
"tools_hosts_info_writing_hosts": "Запись в файл Hosts...",
"@tools_hosts_info_writing_hosts": {},
"tools_hosts_info_reading_config": "Чтение конфигурации...",
"@tools_hosts_info_reading_config": {},
"tools_hosts_info_hosts_acceleration": "Ускорение через Hosts",
"@tools_hosts_info_hosts_acceleration": {},
"tools_hosts_info_open_hosts_file": "Открыть файл Hosts",
"@tools_hosts_info_open_hosts_file": {},
"tools_hosts_info_status": "Статус",
"@tools_hosts_info_status": {},
"tools_hosts_info_site": "Сайт",
"@tools_hosts_info_site": {},
"tools_hosts_info_enable": "Включить",
"@tools_hosts_info_enable": {},
"tools_hosts_action_one_click_acceleration": "Ускорение в один клик",
"@tools_hosts_action_one_click_acceleration": {},
"tools_info_scanning": "Сканирование...",
"@tools_info_scanning": {},
"tools_info_processing_failed": "Ошибка обработки: {v0}",
"@tools_info_processing_failed": {},
"tools_info_game_install_location": "Место установки игры: ",
"@tools_info_game_install_location": {},
"tools_info_rsi_launcher_location": "Местоположение RSI Launcher:",
"@tools_info_rsi_launcher_location": {},
"tools_action_view_system_info": "Просмотр информации о системе",
"@tools_action_view_system_info": {},
"tools_action_info_view_critical_system_info": "Просмотр критической информации о системе для быстрой диагностики\n\nЭто может занять время, пожалуйста, подождите.",
"@tools_action_info_view_critical_system_info": {},
"tools_action_p4k_download_repair": "Загрузка/восстановление P4K через зеркало",
"@tools_action_p4k_download_repair": {},
"tools_action_info_p4k_download_repair_tip": "Использовать сервис зеркальной загрузки от китайской Star Citizen Wiki для загрузки или восстановления файла p4k.\nИнформация о версии: {v0}",
"@tools_action_info_p4k_download_repair_tip": {},
"tools_action_hosts_acceleration_experimental": "Ускорение через Hosts (экспериментально)",
"@tools_action_hosts_acceleration_experimental": {},
"tools_action_info_hosts_acceleration_experimental_tip": "Запись IP-адресов в файл Hosts для решения проблем с DNS-загрязнением, препятствующих входу на официальный сайт в некоторых регионах.\nЭта функция находится на первом этапе тестирования, пожалуйста, сообщайте о любых проблемах.",
"@tools_action_info_hosts_acceleration_experimental_tip": {},
"tools_action_reinstall_easyanticheat": "Переустановка EasyAntiCheat",
"@tools_action_reinstall_easyanticheat": {},
"tools_action_info_reinstall_eac": "Если у вас возникают ошибки EAC и автоматическое исправление не работает, попробуйте использовать эту функцию для переустановки EAC.",
"@tools_action_info_reinstall_eac": {},
"tools_action_rsi_launcher_admin_mode": "Режим администратора RSI Launcher",
"@tools_action_rsi_launcher_admin_mode": {},
"tools_action_info_run_rsi_as_admin": "Запуск RSI Launcher от имени администратора может решить некоторые проблемы.\n\nЕсли настроены параметры блокировки энергоэффективных ядер, они также будут применены здесь.",
"@tools_action_info_run_rsi_as_admin": {},
"tools_action_info_init_failed": "Ошибка инициализации, пожалуйста, сделайте снимок экрана и сообщите разработчику. {v0}",
"@tools_action_info_init_failed": {},
"tools_action_rsi_launcher_log_fix": "Исправление лог-файла RSI Launcher",
"@tools_action_rsi_launcher_log_fix": {},
"tools_action_info_rsi_launcher_log_issue": "В некоторых случаях лог-файл RSI Launcher может повредиться, что мешает завершению сканирования проблем. Используйте этот инструмент для очистки поврежденных лог-файлов.\n\nТекущий размер лог-файла: {v0} МБ",
"@tools_action_info_rsi_launcher_log_issue": {},
"tools_action_remove_nvme_registry_patch": "Удалить патч реестра NVME",
"@tools_action_remove_nvme_registry_patch": {},
"tools_action_info_nvme_patch_issue": "Если у вас возникли проблемы с патчем NVME, запустите этот инструмент. (Может привести к недоступности установки/обновления игры.)\n\nСтатус патча: {v0}",
"@tools_action_info_nvme_patch_issue": {},
"tools_action_info_not_installed": "Не установлен",
"@tools_action_info_not_installed": {},
"tools_action_info_removed_restart_effective": "Удалено, изменения вступят в силу после перезагрузки!",
"@tools_action_info_removed_restart_effective": {},
"tools_action_write_nvme_registry_patch": "Записать патч реестра NVME",
"@tools_action_write_nvme_registry_patch": {},
"tools_action_info_manual_nvme_patch": "Ручная запись патча NVME, используйте эту функцию только если знаете, что делаете",
"@tools_action_info_manual_nvme_patch": {},
"tools_action_info_fix_success_restart": "Исправление успешно, попробуйте перезагрузить компьютер и продолжить установку игры! Если изменения реестра вызвали проблемы совместимости с другими программами, используйте инструмент очистки реестра NVME в разделе Инструменты.",
"@tools_action_info_fix_success_restart": {},
"tools_action_clear_shader_cache": "Очистить кэш шейдеров",
"@tools_action_clear_shader_cache": {},
"tools_action_info_shader_cache_issue": "Если графика игры выглядит необычно или после обновления версии, используйте этот инструмент для очистки устаревших шейдеров (также вернёт Vulkan к DX11)\n\nРазмер кэша: {v0} МБ",
"@tools_action_info_shader_cache_issue": {},
"tools_action_close_photography_mode": "Выключить режим фотографии",
"@tools_action_close_photography_mode": {},
"tools_action_open_photography_mode": "Включить режим фотографии",
"@tools_action_open_photography_mode": {},
"tools_action_info_restore_lens_shake": "Восстановить эффект тряски объектива.\n\nИнформация о параметрах предоставлена @拉邦那 Lapernum.",
"@tools_action_info_restore_lens_shake": {},
"tools_action_info_one_key_close_lens_shake": "Одним кликом отключить дрожание камеры в игре для упрощения фотосъёмки.\n\nИнформация о параметрах предоставлена @拉邦那 Lapernum.",
"@tools_action_info_one_key_close_lens_shake": {},
"tools_action_info_log_file_parse_failed": "Ошибка анализа лог-файла!\nПопробуйте использовать инструмент исправления лог-файла RSI Launcher!",
"@tools_action_info_log_file_parse_failed": {},
"tools_action_info_rsi_launcher_not_found": "RSI Launcher не найден, попробуйте переустановить его или добавить вручную в настройках.",
"@tools_action_info_rsi_launcher_not_found": {},
"tools_action_info_star_citizen_not_found": "Местоположение установки Star Citizen не найдено, пожалуйста, запустите игру хотя бы один раз или добавьте местоположение вручную в настройках.",
"@tools_action_info_star_citizen_not_found": {},
"tools_action_info_valid_game_directory_needed": "Для этой функции требуется действительная директория установки игры",
"@tools_action_info_valid_game_directory_needed": {},
"tools_action_info_eac_file_removed": "Файлы EAC удалены. Сейчас будет открыт RSI Launcher, пожалуйста, перейдите в SETTINGS -> VERIFY для переустановки EAC.",
"@tools_action_info_eac_file_removed": {},
"tools_action_info_error_occurred": "Произошла ошибка: {v0}",
"@tools_action_info_error_occurred": {},
"tools_action_info_system_info_content": "Система: {v0}\n\nПроцессор: {v1}\n\nОбъем памяти: {v2}GB\n\nИнформация о видеокарте:\n{v3}\n\nИнформация о жестком диске:\n{v4}\n\n",
"@tools_action_info_system_info_content": {},
"tools_action_info_rsi_launcher_directory_not_found": "Директория RSI Launcher не найдена, пожалуйста, выполните операцию вручную.",
"@tools_action_info_rsi_launcher_directory_not_found": {},
"tools_action_info_log_file_not_exist": "Лог-файл не существует, попробуйте запустить игру или начать установку и выйти из лаунчера. Если проблема не решена, попробуйте обновить лаунчер до последней версии!",
"@tools_action_info_log_file_not_exist": {},
"tools_action_info_cleanup_complete": "Очистка завершена, пожалуйста, выполните установку или запуск игры.",
"@tools_action_info_cleanup_complete": {},
"tools_action_info_cleanup_failed": "Очистка не удалась, пожалуйста, удалите файл вручную, расположение файла: {v0}",
"@tools_action_info_cleanup_failed": {},
"tools_action_info_system_info_title": "Информация о системе",
"@tools_action_info_system_info_title": {},
"tools_action_info_rsi_launcher_running_warning": "RSI Launcher запущен! Пожалуйста, сначала закройте лаунчер, прежде чем использовать эту функцию!",
"@tools_action_info_rsi_launcher_running_warning": {},
"tools_action_info_p4k_file_description": "P4k - это основной файл игры Star Citizen, размером более 100 ГБ. Автономное скачивание, предоставляемое SCToolbox, помогает пользователям с медленной загрузкой p4k или для исправления файла p4k, который не может быть исправлен официальным лаунчером.\n\nДалее появится диалоговое окно с запросом места сохранения (можно выбрать папку Star Citizen или другое место). После завершения загрузки убедитесь, что файл P4K находится в папке LIVE, затем используйте лаунчер Star Citizen для проверки обновлений.",
"@tools_action_info_p4k_file_description": {},
"tools_action_info_p4k_download_in_progress": "Загрузка p4k уже выполняется, пожалуйста, проверьте менеджер загрузок!",
"@tools_action_info_p4k_download_in_progress": {},
"tools_action_info_function_under_maintenance": "Функция на техническом обслуживании, пожалуйста, повторите попытку позже!",
"@tools_action_info_function_under_maintenance": {},
"tools_action_info_config_file_not_exist": "Конфигурационный файл не существует, попробуйте запустить игру один раз",
"@tools_action_info_config_file_not_exist": {},
"webview_localization_name_member": "именной участник",
"@webview_localization_name_member": {},
"webview_localization_total_invitations": "Всего приглашений:",
"@webview_localization_total_invitations": {},
"webview_localization_unfinished_invitations": "Незавершённые приглашения",
"@webview_localization_unfinished_invitations": {},
"webview_localization_finished_invitations": "Завершённые приглашения",
"@webview_localization_finished_invitations": {},
"app_init_failed_with_reason": "Ошибка инициализации: {v0}",
"@app_init_failed_with_reason": {},
"settings_app_language": "Язык",
"settings_app_language_auto": "Автоматически",
"app_common_network_error": "Ошибка подключения к сети!\nПереход в автономный режим...\n\nПожалуйста, проверьте подключение к сети или получите последние новости на социальном форуме. Попробуйте включить встроенный режим DNS в настройках приложения.\nДата сборки текущей версии: {v0}\nQQ группа: 940696487\nСообщение об ошибке: {v1}",
"app_common_upgrade_info_error": "Не удалось получить информацию об обновлении, пожалуйста, повторите попытку позже.",
"doctor_game_error_low_memory": "Недостаточно доступной памяти",
"doctor_game_error_low_memory_info": "Попробуйте увеличить виртуальную память (для 1080p требуется >64 ГБ физической + виртуальной памяти)",
"doctor_game_error_generic_info": "Игра вызвала наиболее распространенную проблему сбоя, пожалуйста, обратитесь к руководству по устранению неполадок",
"doctor_game_error_gpu_crash": "Ваша видеокарта вышла из строя! Пожалуйста, обратитесь к руководству по устранению неполадок",
"doctor_game_error_socket_error": "Обнаружена ошибка сокета",
"doctor_game_error_socket_error_info": "При использовании ускорителя X Black Box попробуйте изменить режим ускорения",
"doctor_game_error_permissions_error": "Недостаточно прав",
"doctor_game_error_permissions_error_info": "Попробуйте запустить лаунчер от имени администратора или использовать SCToolbox (версия Microsoft Store) для запуска.",
"doctor_game_error_game_process_error": "Процесс игры занят",
"doctor_game_error_game_process_error_info": "Попробуйте перезапустить лаунчер или перезагрузить компьютер",
"doctor_game_error_game_damaged_file": "Файлы программы игры повреждены",
"doctor_game_error_game_damaged_file_info": "Попробуйте удалить папку Bin64 и проверить в лаунчере.",
"doctor_game_error_game_damaged_p4k_file": "Файл P4K поврежден",
"doctor_game_error_game_damaged_p4k_file_info": "Попробуйте удалить файл Data.p4k и проверить в лаунчере или использовать альтернативную загрузку через SCToolbox.",
"doctor_game_error_low_gpu_memory": "Недостаточно видеопамяти",
"doctor_game_error_low_gpu_memory_info": "Пожалуйста, не запускайте другие игры/приложения с высоким использованием видеокарты в фоновом режиме или замените видеокарту.",
"doctor_game_error_gpu_vulkan_crash": "Сбой GPU Vulkan",
"doctor_game_error_gpu_vulkan_crash_info": "Сбой Vulkan! Это может быть проблема с версией драйвера или игрового движка. Попробуйте обновить драйвер GPU или использовать функцию очистки шейдеров для возврата к DX11",
"app_common_error_info": "Произошла ошибка: {v0}",
"app_common_tip": "Подсказка",
"app_common_tip_i_know": "Понятно",
"app_common_tip_confirm": "Подтвердить",
"app_common_tip_cancel": "Отмена",
"settings_app_language_switch_info": "Переключить язык отображения приложения",
"home_holiday_countdown_days": "{v0} дней",
"home_holiday_countdown_in_progress": "В процессе",
"app_common_loading_images": "Загрузка изображений...",
"app_splash_dialog_u_a_p_p": "Пользовательское соглашение и политика конфиденциальности",
"app_splash_dialog_u_a_p_p_content": "Благодарим вас за выбор SCToolbox. Мы стремимся предоставить вам безопасный, удобный и надежный пользовательский опыт. Прежде чем начать использование приложения, пожалуйста, прочтите и согласитесь со следующим:\n\n1. Это приложение является программным обеспечением с открытым исходным кодом под лицензией GNU General Public License v3.0. Вы можете свободно использовать, модифицировать и распространять это программное обеспечение в соответствии с условиями лицензии. Наш исходный код находится на: [Github.com/StarCitizenToolBox/app](https://github.com/StarCitizenToolBox/app).\n2. Авторские права на интернет-контент в этом приложении (включая, но не ограничиваясь файлами локализации, инструментальными сайтами, новостями, видео и т.д.) принадлежат их авторам и не являются частью GPL. Пожалуйста, используйте их в соответствии с соответствующими лицензионными соглашениями.\n3. Официальные каналы бесплатного распространения этого приложения: [Microsoft Store](https://apps.microsoft.com/detail/9NF3SWFWNKL1) и [Star Citizen Localization Group Website](https://www.starcitizenzw.com/). Если вы получили его из других сторонних источников, пожалуйста, тщательно проверяйте, чтобы избежать финансовых потерь.\n4. Это приложение отправляет анонимные статистические данные на наши серверы для улучшения качества программного обеспечения. Мы не собираем вашу личную информацию.\n5. Это приложение поддерживается сообществом и не имеет прямой связи с Cloud Imperium Games или другими коммерческими компаниями.\n6. Мы предоставляем ограниченную поддержку сообщества. При необходимости, пожалуйста, обратитесь к странице «О программе», чтобы узнать, как связаться с нами.",
"tools_unp4k_msg_init": "Инициализация...",
"tools_unp4k_msg_reading": "Чтение файла P4K...",
"tools_unp4k_msg_reading2": "Обработка файлов...",
"tools_unp4k_msg_reading3": "Обработка файлов ({v0}/{v1})...",
"tools_unp4k_msg_read_completed": "Загрузка завершена: {v0} файлов, время: {v1} мс",
"tools_unp4k_msg_open_file": "Открытие файла: {v0}",
"tools_unp4k_msg_read_file": "Чтение файла: {v0}...",
"home_localization_advanced_title": "Расширенная локализация -> {v0}",
"home_localization_advanced_msg_version": "Загруженная версия локализации: {v0}",
"home_localization_advanced_title_msg": "Строк локализации: {v0} Строк P4K: {v1}",
"home_localization_advanced_action_install": "Установить локализацию",
"home_localization_advanced_action_mod_change": "Пересоздание текста...",
"home_localization_advanced_action_mode": "Режим",
"home_localization_advanced_title_preview": "Предпросмотр: {v0}",
"home_localization_advanced_json_text_location_other": "Места - Другое",
"home_localization_advanced_json_text_location_used": "Места - Часто используемые",
"home_localization_advanced_json_text_things_other": "Предметы - Другое",
"home_localization_advanced_json_text_things_used": "Предметы - Часто используемые",
"home_localization_advanced_json_text_vehicle_other": "Транспорт - Другое",
"home_localization_advanced_json_text_vehicle_used": "Транспорт - Часто используемый",
"home_localization_advanced_json_text_mission_or_logs": "Миссии/Журналы",
"home_localization_advanced_json_text_subtitle": "Субтитры",
"home_localization_advanced_json_text_ui_or_hud_or_menu": "UI/HUD/Меню",
"home_localization_advanced_json_text_un_localization": "Без локализации",
"home_localization_advanced_json_text_others": "Другое",
"home_localization_advanced_action_mod_change_localization": "Локализация",
"home_localization_advanced_action_mod_change_un_localization": "Английский оригинал",
"home_localization_advanced_action_mod_change_mixed": "Двуязычный",
"home_localization_advanced_action_mod_change_mixed_newline": "Двуязычный (с новой строки)",
"home_localization_advanced_msg_classifying": "Классификация...",
"home_localization_advanced_msg_reading_p4k": "Чтение файла p4k...",
"home_localization_advanced_msg_reading_server_localization_text": "Получение текста локализации...",
"home_localization_advanced_msg_gen_localization_text": "Создание файла локализации...",
"home_localization_advanced_msg_gen_localization_install": "Установка файла локализации...",
"home_localization_msg_version_advanced": " (Расширенная локализация)",
"home_localization_msg_no_note": "Для этой версии нет описания",
"home_localization_action_rsi_launcher_localization": "Локализация RSI Launcher",
"home_localization_action_rsi_launcher_no_game_path_msg": "У вас не установлена игра или не выбран путь установки игры. Доступна только функция локализации лаунчера. Пожалуйста, убедитесь, что игра установлена или добавьте путь установки игры в настройках SCToolbox и повторите попытку.",
"home_localization_action_advanced": "Расширенная локализация",
"home_localization_action_install_customize": "Установить пользовательский файл",
"home_localization_title_localization_tools": "Инструменты локализации",
"performance_json_text_dof": "Глубина резкости",
"performance_json_text_dof_info": "Управляет эффектом глубины резкости на странице браслета и т.д.",
"performance_json_text_ssdo": "Постобработка освещения",
"performance_json_text_ssdo_info": "Настройка уровня постобработки освещения",
"performance_json_text_title_graphics": "Графика (рекомендуется очистить шейдеры после изменения)",
"performance_json_text_antialiasing": "Сглаживание",
"performance_json_text_antialiasing_info": "0 выкл., 1 SMAA, 2 Временная фильтрация + SMAA, 3 SMAA с временной фильтрацией и дрожанием проекционной матрицы",
"performance_json_text_game_effects": "Уровень эффектов",
"performance_json_text_game_effects_info": "Уровень игровых эффектов",
"performance_json_text_texture": "Уровень текстур",
"performance_json_text_texture_info": "Детализация текстур моделей",
"performance_json_text_volumetric_effects": "Объемные эффекты",
"performance_json_text_volumetric_effects_info": "Объемные облака, объемное освещение и т.д.",
"performance_json_text_water": "Эффекты воды",
"performance_json_text_water_info": "Уровень всех водных эффектов",
"performance_json_text_object_detail": "Детализация объектов",
"performance_json_text_object_detail_info": "Детализация моделей объектов, влияет на LOD и т.д.",
"performance_json_text_particles": "Детализация частиц",
"performance_json_text_physics": "Детализация физики",
"performance_json_text_physics_info": "Диапазон физических эффектов",
"performance_json_text_shading": "Детализация шейдеров",
"performance_json_text_shading_info": "Связанное с шейдерами",
"performance_json_text_shadows": "Детализация теней",
"performance_json_text_shadows_info": "Эффекты теней",
"performance_json_text_postprocessing": "Детализация постобработки",
"performance_json_text_postprocessing_info": "Шейдеры постобработки, эффекты размытия в движении и т.д.",
"performance_json_text_renderer": "Качество рендеринга",
"performance_json_text_renderer_info": "Качество рендерера CryEngine",
"performance_json_text_shader_decal": "Качество наклеек",
"performance_json_text_shader_decal_info": "(логотипы, значки и т.д.)",
"performance_json_text_shader_post_process": "Качество шейдеров",
"performance_json_text_shader_fx": "Качество FX",
"performance_json_text_shader_general": "Общее качество",
"performance_json_text_shader_general_info": "Общее качество моделей",
"performance_json_text_shader_glass": "Качество стекла",
"performance_json_text_shader_glass_info": "Окна, зеркала и т.д.",
"performance_json_text_shader_hdr": "Качество HDR",
"performance_json_text_shader_hdr_info": "Обработка HDR, хроматических аберраций, уровней яркости и т.д.",
"performance_json_text_shader_particle": "Качество частиц",
"performance_json_text_shader_particle_info": "Качество эффектов частиц",
"performance_json_text_shader_terrain": "Качество местности",
"performance_json_text_shader_shadow": "Качество теней",
"performance_json_text_shader_sky": "Качество неба",
"performance_json_text_particles_object_collisions": "Столкновения частиц",
"performance_json_text_particles_object_collisions_info": "1 только статические частицы 2 включая динамические частицы",
"performance_json_text_displayinfo": "Информация на экране (показывать FPS)",
"performance_json_text_displayinfo_info": "Показывать FPS, информацию о сервере и т.д. в правом верхнем углу экрана",
"performance_json_text_max_fps": "Максимальный FPS",
"performance_json_text_max_fps_info": "Регулировка максимального FPS в игре, 0 для неограниченного",
"performance_json_text_display_session": "Показывать информацию о сессии",
"performance_json_text_display_session_info": "Когда включено, показывает QR-код на экране для быстрого доступа CIG к соответствующей информации при обратной связи",
"performance_json_text_vsync": "Вертикальная синхронизация",
"performance_json_text_vsync_info": "Включите для предотвращения разрывов, выключите для повышения FPS",
"performance_json_text_motion_blur": "Размытие в движении",
"performance_json_text_motion_blur_info": "Включите для усиления чувства движения, выключите для улучшения восприятия",
"performance_json_text_fov": "Настройка FOV",
"performance_json_text_ui_animation": "Анимация затухания UI",
"performance_json_text_custom_parameters": "Пользовательские параметры",
"performance_json_text_title_custom": "Пользовательские",
"tools_rsi_launcher_enhance_init_msg1": "Чтение информации о лаунчере...",
"tools_rsi_launcher_enhance_init_msg2": "Получение данных улучшений из сети...",
"tools_rsi_launcher_enhance_working_msg1": "Создание патча...",
"tools_rsi_launcher_enhance_working_msg2": "Установка патча, это займет некоторое время в зависимости от производительности вашего компьютера...",
"tools_rsi_launcher_enhance_title": "Улучшения RSI Launcher",
"tools_rsi_launcher_enhance_msg_version": "Внутренняя версия лаунчера: {v0}",
"tools_rsi_launcher_enhance_msg_patch_status": "Статус патча: {v0}",
"tools_rsi_launcher_enhance_msg_error": "Не удалось получить данные улучшений, возможно проблема с сетью или текущая версия не поддерживается",
"tools_rsi_launcher_enhance_title_localization": "Локализация RSI Launcher",
"tools_rsi_launcher_enhance_subtitle_localization": "Добавляет поддержку нескольких языков в RSI Launcher.",
"tools_rsi_launcher_enhance_title_download_booster": "Ускорение загрузки RSI Launcher",
"tools_rsi_launcher_enhance_subtitle_download_booster": "Позволяет использовать больше потоков при загрузке игры для увеличения скорости, после включения измените количество потоков в настройках лаунчера.",
"tools_rsi_launcher_enhance_action_install": "Установить патч улучшений",
"tools_rsi_launcher_enhance_msg_uninstall": "* Чтобы удалить патч улучшений, переустановите RSI Launcher.",
"tools_rsi_launcher_enhance_msg_error_launcher_notfound": "RSI Launcher не найден",
"tools_rsi_launcher_enhance_msg_error_get_launcher_info_error": "Не удалось прочитать информацию о лаунчере!",
"tools_rsi_launcher_enhance_msg_error_get_launcher_info_error_with_args": "Не удалось прочитать информацию о лаунчере: {v0}",
"tools_action_rsi_launcher_enhance_info": "Локализация лаунчера, улучшение загрузки",
"tools_rsi_launcher_enhance_note_title": "Замечания по использованию улучшений RSI Launcher",
"tools_rsi_launcher_enhance_note_msg": "Улучшения RSI Launcher - это функция сообщества, которая распаковывает \"RSI Launcher\" на вашем компьютере и добавляет дополнительные функции улучшений. Какие функции использовать - решать вам.\n\nВ настоящее время CIG разрешает нам только операции с мультиязычностью. Ускорение загрузки лаунчера - это дополнительная функция, которую мы считаем полезной. Нарушение пользовательского соглашения CIG (https://robertsspaceindustries.com/eula) может привести к серьезным последствиям, включая блокировку аккаунта. Решение об использовании остается за вами, мы не несем ответственности за возможные последствия (повреждение игры, блокировка аккаунта и т.д.).\n\nДля модификаций лаунчера мы открыли исходный код на: https://github.com/StarCitizenToolBox/RSILauncherEnhance, при необходимости вы можете его изучить.\n\nЕсли по какой-либо причине вам нужно отменить этот патч улучшений, просто переустановите официальный лаунчер поверх текущего.",
"tools_action_unp4k": "Просмотрщик P4K",
"tools_action_unp4k_info": "Распаковать файл p4k Star Citizen",
"tools_unp4k_title": "Просмотрщик P4K -> {v0}",
"tools_unp4k_view_file": "Нажмите на файл для предварительного просмотра",
"tools_unp4k_msg_unknown_file_type": "Неизвестный тип файла\n{v0}",
"home_localization_select_customize_file_ini": "Пожалуйста, выберите ini файл",
"home_localization_select_customize_file": "Пожалуйста, выберите пользовательский файл локализации",
"home_localization_action_select_customize_file": "Нажмите для выбора ini файла",
"home_localization_ptu_advanced_localization_tip_title": "Рекомендуется использовать расширенную локализацию",
"home_localization_ptu_advanced_localization_tip_title_info": "В тестовых каналах PTU/EPTU текущий текст локализации может быть не синхронизирован с игрой. Использование расширенной локализации может уменьшить появление некорректного текста.",
"tools_rsi_launcher_enhance_action_fold": "Свернуть дополнительные функции",
"tools_rsi_launcher_enhance_action_expand": "Развернуть дополнительные функции",
"tools_unp4k_missing_runtime": "Отсутствует среда выполнения",
"tools_unp4k_missing_runtime_info": "Для использования этой функции необходимо установить среду выполнения .NET8. Пожалуйста, нажмите кнопку ниже для загрузки и установки, после успешной установки перезапустите эту страницу для продолжения использования.",
"tools_unp4k_missing_runtime_action_install": "Установить среду выполнения",
"settings_title_general": "Общие",
"settings_item_dns": "Использовать встроенный DNS",
"settings_item_dns_info": "При включении может решить проблемы с DNS-загрязнением в некоторых регионах",
"settings_title_game": "Игра",
"about_action_btn_faq": "Часто задаваемые вопросы",
"guide_title_welcome": "Добро пожаловать",
"guide_info_check_settings": "Пожалуйста, проверьте правильность следующих настроек. Если есть ошибки, нажмите на значок справа для исправления, прежде чем продолжить использование",
"guide_info_game_download_note": "* Если ваша игра загружается, пожалуйста, запустите игру один раз после завершения загрузки и нажмите кнопку обновления. Если вы используете только локализацию лаунчера, убедитесь, что путь к лаунчеру правильный, и нажмите 'Завершить настройку'",
"guide_action_get_help": "Получить помощь",
"guide_action_complete_setup": "Завершить настройку",
"guide_dialog_confirm_complete_setup": "Подтвердить завершение настройки?",
"guide_action_info_no_launcher_path_warning": "Вы еще не выбрали путь установки лаунчера. Подтвердить завершение настройки?\n\nПосле закрытия страницы руководства вам нужно будет вручную перейти на страницу настроек.",
"guide_action_info_no_game_path_warning": "Вы еще не выбрали путь установки игры. Подтвердить завершение настройки?\n\nПосле закрытия страницы руководства вам нужно будет вручную перейти на страницу настроек.",
"setting_toast_select_launcher_exe": "Выберите exe файл лаунчера: \"RSI Launcher.exe\"",
"setting_toast_select_game_file": "Выберите соответствующий файл игры: Bin64/StarCitizen.exe",
"input_method_feature_maintenance": "Функция на техническом обслуживании, пожалуйста, повторите попытку позже",
"input_method_community_input_method_not_installed": "Поддержка метода ввода сообщества не установлена",
"input_method_install_community_input_method_prompt": "Перейти к управлению локализацией для установки?\n\nЕсли локализация уже установлена, удалите ее и при повторной установке включите переключатель поддержки метода ввода сообщества.",
"input_method_usage_instructions": "Инструкция по использованию",
"input_method_input_text_instructions": "Введите текст в текстовое поле выше и вставьте (Ctrl+V) преобразованный текст ниже в текстовое поле игры, чтобы отправить текст, который игра не поддерживает для ввода, в канал чата.",
"input_method_input_placeholder": "Введите текст...",
"input_method_encoded_text_placeholder": "Здесь будет преобразованный текст...",
"input_method_remote_input_service": "Служба удаленного ввода:",
"input_method_disclaimer": "*Рекомендуется использовать эту функцию только в непубличных каналах. Если пользователь решает использовать эту функцию в публичных каналах, он несет полную ответственность за любые последствия (включая, но не ограничиваясь, жалобы других игроков на спам).\n*Если эта функция будет использоваться неправильно, мы её отключим.",
"input_method_experimental_input_method": "Метод ввода сообщества (экспериментальный)",
"input_method_auto_copy": "Автоматическое копирование",
"input_method_confirm_enable_remote_input": "Подтвердить включение удаленного ввода?",
"input_method_enable_remote_input_instructions": "После включения этой функции вы сможете быстро вводить текст через мобильный телефон, посетив удаленный адрес сервиса, избегая необходимости переключения окон и не прерывая игровой процесс.\n\nЕсли появится предупреждение брандмауэра, разверните окно, вручную отметьте все типы сетей и разрешите доступ, иначе функция может работать некорректно.",
"input_method_address_fetch_failed": "Не удалось получить адрес, проверьте IP компьютера вручную",
"input_method_text_cannot_be_empty": "Текст не может быть пустым!",
"input_method_send_success": "Успешно отправлено!",
"input_method_ip_address_not_found": "Мы не смогли найти подходящий IP-адрес для доступа к сервису, попробуйте следующие адреса (листайте влево/вправо)",
"input_method_scan_qr_code": "Отсканируйте QR-код с мобильного устройства или посетите ссылку вручную",
"input_method_service_qr_code": "QR-код сервиса",
"input_method_confirm_install_advanced_localization": "Подтвердить установку расширенной локализации?",
"input_method_install_community_input_method_support": "Установить поддержку метода ввода сообщества",
"input_method_community_input_method_support_version": "Поддержка метода ввода сообщества: {v0}",
"input_method_online_version_prompt": "Доступна отдельная онлайн-версия этой функции, нажмите для перехода >",
"input_method_support_updated": "Поддержка метода ввода сообщества обновлена",
"input_method_support_updated_to_version": "Поддержка метода ввода сообщества обновлена до версии: {v0}",
"input_method_auto_translate": "Двуязычный перевод:",
"input_method_auto_translate_dialog_title": "Включить двуязычный перевод?",
"input_method_auto_translate_dialog_title_content": "После включения будет использоваться сервис Google Translate для добавления английской версии к вашему тексту. Это может вызвать задержку отклика. Отключите функцию, если она работает некорректно.\n\nТекст будет отправляться на серверы Google, ознакомьтесь с политикой конфиденциальности Google.",
"support_dev_thanks_message": "Спасибо за использование SCToolbox, я разработчик - xkeyC\nSCToolbox стремится быть проектом с открытым исходным кодом и предоставлять бесплатные услуги игрокам. Бесплатное обслуживание - это сложная работа, и если вы рассматриваете возможность угостить меня напитком, я буду очень признателен.\nПожертвования будут использованы на серверные расходы, разработку новых функций и поддержание мотивации для улучшения программного обеспечения.",
"support_dev_referral_code_message": "Если вы еще не зарегистрировались в игре или не ввели реферальный код, рассмотрите мой: STAR-3YXS-SWTC, спасибо что дочитали до конца",
"support_dev_title": "Поддержать разработчика",
"support_dev_github_star_message": "Вы также можете поставить звезду моему проекту на GitHub",
"support_dev_github_star_button": "Поставить звезду проекту",
"support_dev_in_game_currency_title": "Внутриигровая валюта",
"support_dev_in_game_id": "Игровой ID: xkeyC",
"support_dev_in_game_id_copied": "Игровой ID скопирован",
"support_dev_copy_button": "Копировать",
"support_dev_in_game_currency_message": "Вы можете отправить мне aUEC в игре в качестве поддержки, это поможет мне получить лучший игровой опыт в ограниченное время",
"support_dev_alipay": "Alipay",
"support_dev_wechat": "WeChat",
"support_dev_donation_disclaimer": "* Обратите внимание: пожертвования являются безвозмездными, вы не получите дополнительных преимуществ в программе.",
"support_dev_back_button": "Назад",
"support_dev_scroll_hint": "Прокрутите вниз для просмотра",
"log_analyzer_filter_all": "Все",
"log_analyzer_filter_basic_info": "Основная информация",
"log_analyzer_filter_account_related": "Связанное с аккаунтом",
"log_analyzer_filter_fatal_collision": "Фатальные столкновения",
"log_analyzer_filter_vehicle_damaged": "Повреждения техники",
"log_analyzer_filter_character_death": "Смерть персонажа",
"log_analyzer_filter_statistics": "Статистика",
"log_analyzer_filter_game_crash": "Сбой игры",
"log_analyzer_filter_local_inventory": "Локальный инвентарь",
"log_analyzer_no_log_file": "Файл логов не найден",
"log_analyzer_one_click_diagnosis_header": "----- Экспресс-диагностика SCToolbox -----",
"log_analyzer_details_info": "Подробная информация: {v0}",
"log_analyzer_no_crash_detected": "Сбои игры не обнаружены",
"log_analyzer_game_crash": "Сбой игры ",
"log_analyzer_kill_summary": "Сводка убийств",
"log_analyzer_kill_death_suicide_count": "Убийства: {v0} Смерти: {v1} Самоубийства: {v2} \nУничтожение техники (Мягкая смерть): {v3} Уничтожение техники (Распад): {v4}",
"log_analyzer_play_time": "Время игры",
"log_analyzer_play_time_format": "{v0} часов {v1} минут {v2} секунд",
"log_analyzer_game_start": "Запуск игры",
"log_analyzer_game_loading": "Загрузка игры",
"log_analyzer_mode_loading_time": "Режим: {v0} Время: {v1} секунд",
"log_analyzer_game_close": "Закрытие игры",
"log_analyzer_collision_details": "Зона: {v0} Управление игроком: {v1} Объект столкновения: {v2} \nТехника столкновения: {v3} Дистанция столкновения: {v4} ",
"log_analyzer_soft_death": "Мягкая смерть",
"log_analyzer_disintegration": "Дезинтеграция",
"log_analyzer_vehicle_damage_details": "Модель техники: {v0} \nЗона: {v1} \nУровень повреждения: {v2} ({v3}) Виновник: {v4}",
"log_analyzer_death_details": "ID жертвы: {v0} Причина смерти: {v1} \nID убийцы: {v2} \nЗона: {v3}",
"log_analyzer_player_login": "Игрок {v0} входит в игру...",
"log_analyzer_view_local_inventory": "Просмотр локального инвентаря",
"log_analyzer_player_location": "ID игрока: {v0} Местоположение: {v1}",
"log_analyzer_game_installation_path": "Путь установки игры",
"log_analyzer_select_game_path": "Выберите путь установки игры",
"log_analyzer_search_placeholder": "Введите ключевые слова для поиска",
"log_analyzer_title": "Анализатор логов",
"log_analyzer_description": "Анализ ваших игровых записей (логин, смерти, убийства и другая информация)",
"log_analyzer_window_title": "SCToolbox: Анализатор логов"
}

View File

@ -1,6 +1,6 @@
{
"@@locale": "zh_CN",
"@@auto_translate_locale": "zh-cn",
"@auto_translate_locale": "zh-cn",
"app_language_name": "简体中文",
"@app_language_name": {},
"app_language_code": "zh_CN",
@ -16,7 +16,7 @@
"@about_online_feedback": {},
"about_action_qq_group": "QQ群: 940696487",
"@about_action_qq_group": {},
"about_action_email": "邮箱: xkeyc@qq.com",
"about_action_email": "邮箱: scbox@xkeyc.com",
"@about_action_email": {},
"about_action_open_source": "开源",
"@about_action_open_source": {},
@ -48,12 +48,20 @@
"@home_action_one_click_launch": {},
"home_title_logging_in": "登录中...",
"@home_title_logging_in": {},
"home_info_auto_fill_notice": "* 若开启了自动填充,请留意弹出的 Windows Hello 窗口",
"@home_info_auto_fill_notice": {},
"home_login_title_welcome_back": "欢迎回来!",
"@home_login_title_welcome_back": {},
"home_login_title_launching_game": "正在为您启动游戏...",
"@home_login_title_launching_game": {},
"home_action_login_rsi_account": "登录 RSI 账户",
"@home_action_login_rsi_account": {},
"home_action_q_auto_password_fill_prompt": "是否开启自动密码填充?",
"@home_action_q_auto_password_fill_prompt": {},
"home_login_info_password_encryption_notice": "盒子将使用 PIN 与 Windows 凭据加密保存您的密码,密码只存储在您的设备中。\n\n当下次登录需要输入密码时您只需授权PIN即可自动填充登录。",
"@home_login_info_password_encryption_notice": {},
"home_login_info_enter_pin_to_encrypt": "输入PIN以启用加密",
"@home_login_info_enter_pin_to_encrypt": {},
"home_login_info_game_version_outdated": "游戏版本过期",
"@home_login_info_game_version_outdated": {},
"home_login_info_rsi_server_report": "RSI 服务器报告版本号:{v1} \n\n本地版本号{v2} \n\n建议使用 RSI Launcher 更新游戏!",
@ -322,8 +330,8 @@
"@home_action_info_warning": {},
"localization_info_machine_translation_warning": "您正在使用游戏内置文本官方文本目前为机器翻译截至3.21.0),建议您在下方安装社区汉化。",
"@localization_info_machine_translation_warning": {},
"localization_info_translation": "游戏汉化",
"@localization_info_translation": {},
"localization_info_translation_status": "汉化状态",
"@localization_info_translation_status": {},
"localization_info_enabled": "启用({v0}",
"@localization_info_enabled": {},
"localization_info_installed_version": "已安装版本:{v0}",
@ -338,6 +346,12 @@
"@localization_info_community_translation": {},
"localization_info_no_translation_available": "该语言/版本 暂无可用汉化,敬请期待!",
"@localization_info_no_translation_available": {},
"localization_action_advanced_features": "高级功能",
"@localization_action_advanced_features": {},
"localization_info_custom_text": "自定义文本",
"@localization_info_custom_text": {},
"localization_info_no_custom_text": "暂无自定义文本",
"@localization_info_no_custom_text": {},
"localization_action_install": "安装",
"@localization_action_install": {},
"localization_info_version_number": "版本号:{v0}",
@ -356,6 +370,10 @@
"@localization_info_remove_incompatible_translation_params": {},
"localization_info_incompatible_translation_params_warning": "USER.cfg 包含不兼容的汉化参数,这可能是以前的汉化文件的残留信息。\n\n这将可能导致汉化无效或乱码点击确认为您一键移除不会影响其他配置。",
"@localization_info_incompatible_translation_params_warning": {},
"localization_info_custom_file": "自定义_{v0}",
"@localization_info_custom_file": {},
"localization_info_custom_file_instructions": "即将打开本地化文件夹,请将自定义的 任意名称.ini 文件放入 Customize_ini 文件夹。\n\n添加新文件后未显示请使用右上角刷新按钮。\n\n安装时请确保选择了正确的语言。",
"@localization_info_custom_file_instructions": {},
"localization_info_corrupted_file": "文件受损,请重新下载",
"@localization_info_corrupted_file": {},
"localization_info_installation_error": "安装出错!\n\n {v0}",
@ -432,6 +450,20 @@
"@setting_action_create_desktop_shortcut": {},
"setting_action_reset_auto_password_fill": "重置自动密码填充",
"@setting_action_reset_auto_password_fill": {},
"setting_action_info_device_support_info": "启用:{v0} 设备支持:{v1} 邮箱:{v2} 密码:{v3}",
"@setting_action_info_device_support_info": {},
"setting_action_info_enabled": "已启用",
"@setting_action_info_enabled": {},
"setting_action_info_disabled": "已禁用",
"@setting_action_info_disabled": {},
"setting_action_info_support": "支持",
"@setting_action_info_support": {},
"setting_action_info_not_support": "不支持",
"@setting_action_info_not_support": {},
"setting_action_info_encrypted_saved": "已加密保存",
"@setting_action_info_encrypted_saved": {},
"setting_action_info_not_saved": "未保存",
"@setting_action_info_not_saved": {},
"setting_action_ignore_efficiency_cores_on_launch": "启动游戏时忽略能效核心( 适用于Intel 12th+ 处理器 ",
"@setting_action_ignore_efficiency_cores_on_launch": {},
"setting_action_set_core_count": "已设置的核心数量:{v0} (此功能适用于首页的盒子一键启动 或 工具中的RSI启动器管理员模式当为 0 时不启用此功能 ",
@ -508,6 +540,8 @@
"@app_splash_almost_done": {},
"tools_hosts_info_rsi_official_website": "RSI 官网",
"@tools_hosts_info_rsi_official_website": {},
"tools_hosts_info_rsi_zendesk": "RSI Zendesk 客服站",
"@tools_hosts_info_rsi_zendesk": {},
"tools_hosts_info_rsi_customer_service": "RSI 客服站",
"@tools_hosts_info_rsi_customer_service": {},
"tools_hosts_info_dns_query_and_test": "正在查询 DNS 并测试可访问性 请耐心等待...",
@ -542,7 +576,7 @@
"@tools_action_info_view_critical_system_info": {},
"tools_action_p4k_download_repair": "P4K 分流下载 / 修复",
"@tools_action_p4k_download_repair": {},
"tools_action_info_p4k_download_repair_tip": "使用星际公民中文百科提供的分流下载服务,可用于下载或修复 p4k。 \n版本信息:{v0}",
"tools_action_info_p4k_download_repair_tip": "使用星际公民中文百科提供的分流下载服务,可用于下载或修复 p4k。 \n资源有限,请勿滥用。",
"@tools_action_info_p4k_download_repair_tip": {},
"tools_action_hosts_acceleration_experimental": "Hosts 加速(实验性)",
"@tools_action_hosts_acceleration_experimental": {},
@ -578,7 +612,7 @@
"@tools_action_info_fix_success_restart": {},
"tools_action_clear_shader_cache": "清理着色器缓存",
"@tools_action_clear_shader_cache": {},
"tools_action_info_shader_cache_issue": "若游戏画面出现异常或版本更新后可使用本工具清理过期的着色器(同时会将 Vulkan 还原为 DX11 \n\n缓存大小{v0} MB",
"tools_action_info_shader_cache_issue": "若游戏画面出现异常或版本更新后可使用本工具清理过期的着色器(当大于500M时建议清理 \n\n缓存大小{v0} MB",
"@tools_action_info_shader_cache_issue": {},
"tools_action_close_photography_mode": "关闭摄影模式",
"@tools_action_close_photography_mode": {},
@ -632,9 +666,13 @@
"@webview_localization_finished_invitations": {},
"app_init_failed_with_reason": "初始化失败:{v0}",
"@app_init_failed_with_reason": {},
"webview_localization_enter_device_pin": "请输入设备PIN以自动登录RSI账户",
"@webview_localization_enter_device_pin": {},
"webview_localization_device_windows_hello_toast": "请完成 Windows Hello 验证以填充密码",
"@webview_localization_device_windows_hello_toast": {},
"settings_app_language": "语言",
"settings_app_language_auto": "自动",
"app_common_network_error": "网络连接失败! \n进入离线模式... \n\n请检查网络连接或在社交论坛获取最新资讯可尝试在应用设置中方开启内置 DNS 模式 \n当前版本构建日期{v0}\n QQ群940696487 \n错误信息{v1}",
"app_common_network_error": "网络异常!\n这可能是您的网络环境存在DNS污染请尝试更换DNS。\n或服务器正在维护或遭受攻击稍后再试。 \n进入离线模式... \n\n请谨慎在离线模式中使用。 \n当前版本构建日期{v0}\n QQ群940696487 \n错误信息{v1}",
"app_common_upgrade_info_error": "获取更新信息失败,请稍后重试。",
"doctor_game_error_low_memory": "可用内存不足",
"doctor_game_error_low_memory_info": "请尝试增加虚拟内存( 1080p 下, 物理可用+虚拟内存需 > 64G ",
@ -652,8 +690,6 @@
"doctor_game_error_game_damaged_p4k_file_info": "请尝试删除 Data.p4k 文件 并在启动器校验 或 使用盒子分流。",
"doctor_game_error_low_gpu_memory": "可用显存不足",
"doctor_game_error_low_gpu_memory_info": "请不要在后台运行其他高显卡占用的 游戏/应用,或更换显卡。",
"doctor_game_error_gpu_vulkan_crash": "GPU Vulkan 崩溃",
"doctor_game_error_gpu_vulkan_crash_info": "Vulkan 崩溃!这可能是驱动版本或游戏引擎问题,请尝试更新 GPU 驱动 或 使用清理着色器功能为您回退到 DX11",
"app_common_error_info": "出现错误: {v0}",
"app_common_tip": "提示",
"app_common_tip_i_know": "我知道了",
@ -662,241 +698,5 @@
"settings_app_language_switch_info": "切换应用显示语言",
"home_holiday_countdown_days": "{v0}天 ",
"home_holiday_countdown_in_progress": "正在进行中",
"app_common_loading_images": "加载图片...",
"app_splash_dialog_u_a_p_p": "用户协议与隐私政策",
"app_splash_dialog_u_a_p_p_content": "感谢您选择 SC汉化盒子 ,我们致力于为您提供 安全、便捷、可靠的使用体验,在您开始使用应用前,请先阅读并同意以下内容:\n\n 1. 本应用 为 GNU 通用公共许可证 v3.0 协议下的开源软件,您可以在遵守协议的前提下自由使用、修改、分发本软件。我们的源代码位于:[Github.com/StarCitizenToolBox/app](https://github.com/StarCitizenToolBox/app)。 \n2. 本应用中的互联网内容(包括但不限于 本地化文件、工具网站、新闻、视频 等)版权由其作者创作所有,不属于 GPL 的一部分,请在遵守对应的授权协议下使用。\n3. 本应用的官方免费发布渠道为:[微软应用商店](https://apps.microsoft.com/detail/9NF3SWFWNKL1) 与 [星际公民汉化组官网](https://www.starcitizenzw.com/) ,若您从其他第三方处获得,请仔细甄别,以免遭受财产损失。\n4. 本应用在使用过程中会向我们的服务器发送匿名的统计数据,用于改进软件质量,我们不会收集您的任何个人隐私信息。 \n5. 本应用由社区提供支持,与 Cloud Imperium Games 或 其他第三方商业公司 无直接关联。\n6. 我们提供有限的社区支持,如有需要,请前往关于页面了解如何联系我们。",
"tools_unp4k_msg_init": "初始化中...",
"tools_unp4k_msg_reading": "正在读取P4K 文件 ...",
"tools_unp4k_msg_reading2": "正在处理文件 ...",
"tools_unp4k_msg_reading3": "正在处理文件 ({v0}/{v1}) ...",
"tools_unp4k_msg_read_completed": "加载完毕:{v0} 个文件,用时:{v1} ms",
"tools_unp4k_msg_open_file": "打开文件:{v0}",
"tools_unp4k_msg_read_file": "读取文件:{v0} ...",
"home_localization_advanced_title": "高级汉化 -> {v0}",
"home_localization_advanced_msg_version": "已加载汉化版本:{v0}",
"home_localization_advanced_title_msg": "汉化文本行数:{v0} P4K文本行数{v1}",
"home_localization_advanced_action_install": "安装汉化",
"home_localization_advanced_action_mod_change": "正在重新生成文本...",
"home_localization_advanced_action_mode": "模式",
"home_localization_advanced_title_preview": "预览:{v0}",
"home_localization_advanced_json_text_location_other": "地点-其他",
"home_localization_advanced_json_text_location_used": "地点-常用",
"home_localization_advanced_json_text_things_other": "物品-其他",
"home_localization_advanced_json_text_things_used": "物品-常用",
"home_localization_advanced_json_text_vehicle_other": "载具-其他",
"home_localization_advanced_json_text_vehicle_used": "载具-常用",
"home_localization_advanced_json_text_mission_or_logs": "任务/日志",
"home_localization_advanced_json_text_subtitle": "字幕",
"home_localization_advanced_json_text_ui_or_hud_or_menu": "UI/HUD/菜单",
"home_localization_advanced_json_text_un_localization": "未汉化",
"home_localization_advanced_json_text_others": "其他",
"home_localization_advanced_action_mod_change_localization": "汉化",
"home_localization_advanced_action_mod_change_un_localization": "英文原文",
"home_localization_advanced_action_mod_change_mixed": "双语",
"home_localization_advanced_action_mod_change_mixed_newline": "双语(换行)",
"home_localization_advanced_msg_classifying": "正在分类 ...",
"home_localization_advanced_msg_reading_p4k": "读取 p4k 文件 ...",
"home_localization_advanced_msg_reading_server_localization_text": "获取汉化文本 ...",
"home_localization_advanced_msg_gen_localization_text": "生成汉化文件...",
"home_localization_advanced_msg_gen_localization_install": "安装汉化文件...",
"home_localization_msg_version_advanced": " (高级汉化)",
"home_localization_msg_no_note": "该版本没有提供描述",
"home_localization_action_rsi_launcher_localization": "RSI 启动器汉化",
"home_localization_action_rsi_launcher_no_game_path_msg": "您当前未安装游戏本体或未选择游戏安装目录,只可使用启动器汉化功能。请确保游戏安装完毕或在盒子设置中添加游戏安装目录后重试。",
"home_localization_action_advanced": "高级汉化",
"home_localization_action_install_customize": "安装自定义文件",
"home_localization_title_localization_tools": "汉化工具",
"performance_json_text_dof": "景深效果",
"performance_json_text_dof_info": "控制手环页面等的景深效果",
"performance_json_text_ssdo": "屏幕光线后处理",
"performance_json_text_ssdo_info": "调整光线后处理等级",
"performance_json_text_title_graphics": "图形(修改后建议清理着色器)",
"performance_json_text_antialiasing": "抗锯齿",
"performance_json_text_antialiasing_info": "0 关闭1 SMAA2 时间过滤+SMAA3 时间滤波和投影矩阵抖动的 SMAA",
"performance_json_text_game_effects": "特效等级",
"performance_json_text_game_effects_info": "游戏特效等级",
"performance_json_text_texture": "纹理等级",
"performance_json_text_texture_info": "模型纹理细节",
"performance_json_text_volumetric_effects": "体积效果",
"performance_json_text_volumetric_effects_info": "体积云、体积光照等",
"performance_json_text_water": "水体效果",
"performance_json_text_water_info": "各种水的等级",
"performance_json_text_object_detail": "对象细节",
"performance_json_text_object_detail_info": "模型对象细节影响LOD等..",
"performance_json_text_particles": "粒子细节",
"performance_json_text_physics": "物理细节",
"performance_json_text_physics_info": "物理效果范围",
"performance_json_text_shading": "着色器细节",
"performance_json_text_shading_info": "着色器相关",
"performance_json_text_shadows": "阴影细节",
"performance_json_text_shadows_info": "阴影效果",
"performance_json_text_postprocessing": "后处理细节",
"performance_json_text_postprocessing_info": "后处理着色器,动态模糊效果 等",
"performance_json_text_renderer": "渲染器质量",
"performance_json_text_renderer_info": "cryengine 渲染器质量",
"performance_json_text_shader_decal": "贴花质量",
"performance_json_text_shader_decal_info": "LOGO、标志等",
"performance_json_text_shader_post_process": "着色器质量",
"performance_json_text_shader_fx": "FX 质量",
"performance_json_text_shader_general": "常规质量",
"performance_json_text_shader_general_info": "整体模型质量",
"performance_json_text_shader_glass": "玻璃质量",
"performance_json_text_shader_glass_info": "窗、镜子等",
"performance_json_text_shader_hdr": "HDR质量",
"performance_json_text_shader_hdr_info": "HDR色差亮度层级 处理 等",
"performance_json_text_shader_particle": "粒子质量",
"performance_json_text_shader_particle_info": "粒子效果质量",
"performance_json_text_shader_terrain": "地面质量",
"performance_json_text_shader_shadow": "阴影质量",
"performance_json_text_shader_sky": "天空质量",
"performance_json_text_particles_object_collisions": "粒子碰撞",
"performance_json_text_particles_object_collisions_info": "1 仅静态粒子 2 包括动态粒子",
"performance_json_text_displayinfo": "屏幕信息(展示帧率)",
"performance_json_text_displayinfo_info": "在屏幕右上角展示帧率,服务器信息等",
"performance_json_text_max_fps": "最大帧率",
"performance_json_text_max_fps_info": "调整游戏最高帧率0为不限制",
"performance_json_text_display_session": "显示会话信息",
"performance_json_text_display_session_info": "开启后在屏幕上显示一个二维码,用于反馈时让 CIG 快速定位相关信息",
"performance_json_text_vsync": "垂直同步",
"performance_json_text_vsync_info": "开启以防止撕裂,关闭以提高帧率",
"performance_json_text_motion_blur": "动态模糊",
"performance_json_text_motion_blur_info": "开启以提高运动感,关闭提升观感",
"performance_json_text_fov": "设置视角FOV",
"performance_json_text_ui_animation": "UI 淡入淡出动画",
"performance_json_text_custom_parameters": "自定义参数",
"performance_json_text_title_custom": "自定义",
"tools_rsi_launcher_enhance_init_msg1": "读取启动器信息...",
"tools_rsi_launcher_enhance_init_msg2": "正在从网络获取增强数据...",
"tools_rsi_launcher_enhance_working_msg1": "生成补丁 ...",
"tools_rsi_launcher_enhance_working_msg2": "安装补丁,这需要一点时间,取决于您的计算机性能 ...",
"tools_rsi_launcher_enhance_title": "RSI 启动器增强",
"tools_rsi_launcher_enhance_msg_version": "启动器内部版本信息:{v0}",
"tools_rsi_launcher_enhance_msg_patch_status": "补丁状态:{v0}",
"tools_rsi_launcher_enhance_msg_error": "获取增强数据失败,可能是网络问题或当前版本不支持",
"tools_rsi_launcher_enhance_title_localization": "RSI 启动器本地化",
"tools_rsi_launcher_enhance_subtitle_localization": "为 RSI 启动器增加多语言支持。",
"tools_rsi_launcher_enhance_title_download_booster": "RSI 启动器下载增强",
"tools_rsi_launcher_enhance_subtitle_download_booster": "下载游戏时可使用更多线程以提升下载速度,启用后请在启动器设置修改线程数。",
"tools_rsi_launcher_enhance_action_install": "安装增强补丁",
"tools_rsi_launcher_enhance_msg_uninstall": "* 如需卸载增强补丁,请覆盖安装 RSI 启动器。",
"tools_rsi_launcher_enhance_msg_error_launcher_notfound": "未找到 RSI 启动器",
"tools_rsi_launcher_enhance_msg_error_get_launcher_info_error": "读取启动器信息失败!",
"tools_rsi_launcher_enhance_msg_error_get_launcher_info_error_with_args": "读取启动器信息失败:{v0}",
"tools_action_rsi_launcher_enhance_info": "启动器汉化,下载线程增强",
"tools_rsi_launcher_enhance_note_title": "RSI 启动器增强使用须知",
"tools_rsi_launcher_enhance_note_msg": "RSI 启动器增强是一项社区功能,它会在您的电脑上解包 \"RSI Launcher\" 并加入额外的增强功能,具体使用哪些功能由您决定。\n\n目前官方CIG仅许可我们进行多语言操作启动器下载增强是我们认为有用的额外功能违反cig用户协议https://robertsspaceindustries.com/eula可能导致账号被封禁等严重后果是否启用由您自己决定我们不对可能产生的后果游戏损坏账号封禁等承担任何责任。\n\n对于启动器的修改内容我们开源于https://github.com/StarCitizenToolBox/RSILauncherEnhance如有需要您可自行查阅。\n\n如果您因为任何原因需要取消此增强补丁请直接覆盖安装官方启动器。",
"tools_action_unp4k": "P4K 查看器",
"tools_action_unp4k_info": "解包星际公民 p4k 文件",
"tools_unp4k_title": "P4K 查看器 -> {v0}",
"tools_unp4k_view_file": "单击文件以预览",
"tools_unp4k_msg_unknown_file_type": "未知文件类型\n{v0}",
"home_localization_select_customize_file_ini": "请选择 ini 文件",
"home_localization_select_customize_file": "请选择自定义汉化文件",
"home_localization_action_select_customize_file": "点击选择 ini 文件",
"home_localization_ptu_advanced_localization_tip_title": "推荐使用高级汉化",
"home_localization_ptu_advanced_localization_tip_title_info": "在 PTU/EPTU 等测试频道 ,当前汉化文本可能与游戏不同步,使用高级汉化可以减少乱码产生。",
"tools_rsi_launcher_enhance_action_fold": "收起额外功能",
"tools_rsi_launcher_enhance_action_expand": "展开额外功能",
"tools_unp4k_missing_runtime": "缺少运行库",
"tools_unp4k_missing_runtime_info": "使用此功能需安装 .NET8 运行库,请点击下方按钮下载安装,安装成功后重新打开此页面即可继续使用。",
"tools_unp4k_missing_runtime_action_install": "安装运行库",
"settings_title_general": "通用",
"settings_item_dns": "使用内置 DNS",
"settings_item_dns_info": "开启后可能解决部分地区 DNS 污染的问题",
"settings_title_game": "游戏",
"about_action_btn_faq": "常见问题",
"guide_title_welcome": "欢迎",
"guide_info_check_settings": "请检查以下设置是否正确,如有错误请点击右侧图标更正后继续使用",
"guide_info_game_download_note": "* 若您的游戏正在下载,请在完成下载后启动一次游戏,并点击刷新按钮。若您只使用启动器增强汉化,确保启动器路径正确后点击完成设置即可",
"guide_action_get_help": "获取帮助",
"guide_action_complete_setup": "完成设置",
"guide_dialog_confirm_complete_setup": "确认完成设置?",
"guide_action_info_no_launcher_path_warning": "您尚未选择启动器安装路径,是否确认完成设置?\n\n引导页关闭后需要您手动前往设置页操作。",
"guide_action_info_no_game_path_warning": "您尚未选择游戏安装路径,是否确认完成设置?\n\n引导页关闭后需要您手动前往设置页操作。",
"setting_toast_select_launcher_exe": "选择启动器 exe 文件“RSI Launcher.exe”",
"setting_toast_select_game_file": "选择对应游戏文件到: Bin64/StarCitizen.exe",
"input_method_feature_maintenance": "功能维护中,请稍后重试",
"input_method_community_input_method_not_installed": "未安装社区输入法支持",
"input_method_install_community_input_method_prompt": "是否前往汉化管理安装?\n\n如已安装汉化请卸载并在重新安装时打开社区输入法支持开关。",
"input_method_usage_instructions": "使用说明",
"input_method_input_text_instructions": "在上方文本框中输入文字,并将下方转码后的文本粘贴( Ctrl+V )到游戏的文本框中,即可在聊天频道中发送游戏不支持输入的文字。",
"input_method_input_placeholder": "请输入文本...",
"input_method_encoded_text_placeholder": "这里是转码后的文本...",
"input_method_remote_input_service": "远程输入服务:",
"input_method_disclaimer": "*本功能建议仅在非公共频道中使用。若用户选择在公共频道中使用本功能,由此产生的任何后果(包括但不限于被其他玩家举报刷屏等),均由用户自行承担。\n*若该功能被滥用,我们将关闭该功能。",
"input_method_experimental_input_method": "社区输入法(实验性)",
"input_method_auto_copy": "自动复制",
"input_method_confirm_enable_remote_input": "确认启用远程输入?",
"input_method_enable_remote_input_instructions": "开启此功能后,可通过手机访问远程服务地址,快捷输入文字,省去切换窗口的麻烦,游戏流程不中断。\n\n若弹出防火墙提示请展开弹窗手动勾选所有网络类型并允许否则可能无法正常访问此功能。",
"input_method_address_fetch_failed": "获取地址失败请手动查看电脑IP",
"input_method_text_cannot_be_empty": "文本不能为空!",
"input_method_send_success": "发送成功!",
"input_method_ip_address_not_found": "我们没能找到合适的 ip 地址来访问服务,请您尝试以下地址(左右切换)",
"input_method_scan_qr_code": "请使用您的移动设备扫描以下二维码,或手动访问连接",
"input_method_service_qr_code": "服务二维码",
"input_method_confirm_install_advanced_localization": "确认安装高级汉化?",
"input_method_install_community_input_method_support": "安装社区输入法支持",
"input_method_community_input_method_support_version": "社区输入法支持:{v0}",
"input_method_online_version_prompt": "本功能另有提供在线独立版,点击访问 >",
"input_method_support_updated": "社区输入法支持已更新",
"input_method_support_updated_to_version": "社区输入法支持已更新到:{v0}",
"input_method_auto_translate": "双语翻译:",
"input_method_auto_translate_dialog_title": "启用双语翻译?",
"input_method_auto_translate_dialog_title_content": "启用后,将使用 Google 翻译服务为您的输入内容增加英文副本,可能会导致响应滞后,若功能异常请关闭。\n\n文本将转发给 Google 服务器,请参阅 Google 的隐私政策。",
"support_dev_thanks_message": "感谢您使用 SC汉化盒子我是其开发者 xkeyC\n汉化盒子致力于开放源代码并为各位玩家提供免费的服务无偿的服务是一项充满挑战的工作若您考虑给我送点饮料钱我将不胜感激。\n捐赠的资金将用于服务器支出、新功能的开发以及提高软件维护的积极性。",
"support_dev_referral_code_message": "如果您还没有注册游戏或填写邀请码,可以考虑我的: STAR-3YXS-SWTC ,感谢你看到这里",
"support_dev_title": "支持开发者",
"support_dev_github_star_message": "您也可以在 GitHub 上给我的项目点个 Star",
"support_dev_github_star_button": "Star 项目",
"support_dev_in_game_currency_title": "游戏内货币",
"support_dev_in_game_id": "游戏ID: xkeyC",
"support_dev_in_game_id_copied": "游戏ID已复制",
"support_dev_copy_button": "复制",
"support_dev_in_game_currency_message": "您可以在游戏中向我发送 aUEC 作为支持,这将会帮助我在有限的时间里获得更好的游戏体验",
"support_dev_alipay": "支付宝",
"support_dev_wechat": "微信",
"support_dev_donation_disclaimer": "* 请注意:捐赠是无偿赠与,您不会在软件体验上获得额外好处。",
"support_dev_back_button": "返回",
"support_dev_scroll_hint": "下滑查看更多",
"log_analyzer_filter_all": "全部",
"log_analyzer_filter_basic_info": "基础信息",
"log_analyzer_filter_account_related": "账户相关",
"log_analyzer_filter_fatal_collision": "致命碰撞",
"log_analyzer_filter_vehicle_damaged": "载具损毁",
"log_analyzer_filter_character_death": "角色死亡",
"log_analyzer_filter_statistics": "统计信息",
"log_analyzer_filter_game_crash": "游戏崩溃",
"log_analyzer_filter_local_inventory": "本地库存",
"log_analyzer_no_log_file": "未找到 log 文件",
"log_analyzer_one_click_diagnosis_header": "----- 汉化盒子一键诊断 -----",
"log_analyzer_details_info": "详细信息:{v0}",
"log_analyzer_no_crash_detected": "未检测到游戏崩溃信息",
"log_analyzer_game_crash": "游戏崩溃 ",
"log_analyzer_kill_summary": "击杀总结",
"log_analyzer_kill_death_suicide_count": "击杀次数:{v0} 死亡次数:{v1} 自杀次数:{v2} \n载具损毁软死亡{v3} 载具损毁(解体):{v4}",
"log_analyzer_play_time": "游玩时长",
"log_analyzer_play_time_format": "{v0} 小时 {v1} 分钟 {v2} 秒",
"log_analyzer_game_start": "游戏启动",
"log_analyzer_game_loading": "游戏加载",
"log_analyzer_mode_loading_time": "模式:{v0} 用时:{v1} 秒",
"log_analyzer_game_close": "游戏关闭",
"log_analyzer_collision_details": "区域:{v0} 玩家驾驶:{v1} 碰撞实体:{v2} \n碰撞载具: {v3} 碰撞距离:{v4} ",
"log_analyzer_soft_death": "软死亡",
"log_analyzer_disintegration": "解体",
"log_analyzer_vehicle_damage_details": "载具型号:{v0} \n区域{v1} \n损毁等级{v2} {v3} 责任方:{v4}",
"log_analyzer_death_details": "受害者ID{v0} 死因:{v1} \n击杀者ID{v2} \n区域{v3}",
"log_analyzer_player_login": "玩家 {v0} 登录 ...",
"log_analyzer_view_local_inventory": "查看本地库存",
"log_analyzer_player_location": "玩家ID{v0} 位置:{v1}",
"log_analyzer_game_installation_path": "游戏安装路径",
"log_analyzer_select_game_path": "请选择游戏安装路径",
"log_analyzer_search_placeholder": "输入关键字搜索内容",
"log_analyzer_title": "log 分析器",
"log_analyzer_description": "分析您的游玩记录 (登录、死亡、击杀 等信息)",
"log_analyzer_window_title": "SC汉化盒子: log 分析器",
"nav_title": "导航",
"nav_third_party_service_disclaimer": "*对应链接指向的服务由第三方提供,我们不对其做任何担保,请用户自行判断使用风险 | ",
"nav_website_navigation_data_provided_by": "网站导航数据由",
"nav_provided_by": "提供",
"nav_fetching_data": "正在获取数据..."
}
"app_common_loading_images": "加载图片..."
}

File diff suppressed because it is too large Load Diff

View File

@ -1,24 +1,17 @@
import 'dart:io';
import 'package:desktop_multi_window/desktop_multi_window.dart';
import 'package:desktop_webview_window/desktop_webview_window.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:starcitizen_doctor/generated/l10n.dart';
import 'package:window_manager/window_manager.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'app.dart';
import 'common/utils/multi_window_manager.dart';
void main(List<String> args) async {
// webview window
if (runWebViewTitleBarWidget(args,
backgroundColor: const Color.fromRGBO(19, 36, 49, 1), builder: _defaultWebviewTitleBar)) {
return;
}
if (args.firstOrNull == 'multi_window') {
MultiWindowManager.runSubWindowApp(args);
backgroundColor: const Color.fromRGBO(19, 36, 49, 1),
builder: _defaultWebviewTitleBar)) {
return;
}
WidgetsFlutterBinding.ensureInitialized();
@ -33,27 +26,16 @@ _initWindow() async {
TitleBarStyle.hidden,
windowButtonVisibility: false,
);
await windowManager.setSize(const Size(1280, 810));
await windowManager.setMinimumSize(const Size(1280, 810));
await windowManager.center(animate: true);
}
class App extends HookConsumerWidget with WindowListener {
class App extends HookConsumerWidget {
const App({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
final router = ref.watch(routerProvider);
final appState = ref.watch(appGlobalModelProvider);
useEffect(() {
windowManager.addListener(this);
windowManager.setPreventClose(true);
return () async {
windowManager.removeListener(this);
};
}, const []);
return FluentApp.router(
title: "StarCitizenToolBox",
restorationScopeId: "StarCitizenToolBox",
@ -68,7 +50,8 @@ class App extends HookConsumerWidget with WindowListener {
supportedLocales: S.delegate.supportedLocales,
builder: (context, child) {
return MediaQuery(
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
data:
MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
child: child ?? const SizedBox(),
);
},
@ -82,8 +65,9 @@ class App extends HookConsumerWidget with WindowListener {
micaBackgroundColor: appState.themeConf.micaColor,
buttonTheme: ButtonThemeData(
defaultButtonStyle: ButtonStyle(
shape: WidgetStateProperty.all(RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4), side: BorderSide(color: Colors.white.withValues(alpha: .01)))),
shape: ButtonState.all(RoundedRectangleBorder(
borderRadius: BorderRadius.circular(4),
side: BorderSide(color: Colors.white.withOpacity(.01)))),
))),
locale: appState.appLocale,
debugShowCheckedModeBanner: false,
@ -92,20 +76,6 @@ class App extends HookConsumerWidget with WindowListener {
routeInformationProvider: router.routeInformationProvider,
);
}
@override
Future<void> onWindowClose() async {
debugPrint("onWindowClose");
if (await windowManager.isPreventClose()) {
final windows = await DesktopMultiWindow.getAllSubWindowIds();
for (final id in windows) {
await WindowController.fromWindowId(id).close();
}
await windowManager.destroy();
exit(0);
}
super.onWindowClose();
}
}
Widget _defaultWebviewTitleBar(BuildContext context) {
@ -116,7 +86,6 @@ Widget _defaultWebviewTitleBar(BuildContext context) {
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
if (Platform.isMacOS) const SizedBox(width: 96),
IconButton(
onPressed: !state.canGoBack ? null : controller.back,
icon: const Icon(FluentIcons.chevron_left),

View File

@ -1,15 +1,15 @@
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:starcitizen_doctor/common/conf/binary_conf.dart';
import 'package:starcitizen_doctor/common/rust/api/process_api.dart'
as rs_process;
import 'dart:io';
import 'dart:math';
import 'package:aria2/aria2.dart';
import 'package:flutter/foundation.dart';
import 'package:hive_ce/hive.dart';
import 'package:hive/hive.dart';
import 'package:starcitizen_doctor/api/api.dart';
import 'package:starcitizen_doctor/common/helper/system_helper.dart';
import 'package:starcitizen_doctor/common/rust/api/rs_process.dart'
as rs_process;
import 'package:starcitizen_doctor/common/utils/log.dart';
import 'package:starcitizen_doctor/common/utils/provider.dart';
@ -98,12 +98,12 @@ class Aria2cModel extends _$Aria2cModel {
dPrint("trackerList === $trackerList");
dPrint("Aria2cManager .----- aria2c start $port------");
final stream = rs_process.start(
final stream = rs_process.startProcess(
executable: exePath,
arguments: [
"-V",
"-c",
"-x 16",
"-x 10",
"--dir=${state.aria2cDir}\\downloads",
"--disable-ipv6",
"--enable-rpc",
@ -121,22 +121,17 @@ class Aria2cModel extends _$Aria2cModel {
String launchError = "";
stream.listen((event) {
dPrint(
"Aria2cManager.rs_process event === [${event.rsPid}] ${event.dataType} >> ${event.data}");
switch (event.dataType) {
case rs_process.RsProcessStreamDataType.output:
if (event.data.contains("IPv4 RPC: listening on TCP port")) {
_onLaunch(port, pwd, trackerList);
}
break;
case rs_process.RsProcessStreamDataType.error:
launchError = event.data;
state = state.copyWith(aria2c: null);
break;
case rs_process.RsProcessStreamDataType.exit:
launchError = event.data;
state = state.copyWith(aria2c: null);
break;
dPrint("Aria2cManager.rs_process event === $event");
if (event.startsWith("output:")) {
if (event.contains("IPv4 RPC: listening on TCP port")) {
_onLaunch(port, pwd, trackerList);
}
} else if (event.startsWith("error:")) {
state = state.copyWith(aria2c: null);
launchError = event;
} else if (event.startsWith("exit:")) {
state = state.copyWith(aria2c: null);
launchError = event;
}
});

View File

@ -20,9 +20,7 @@ mixin _$Aria2cModelState {
Aria2c? get aria2c => throw _privateConstructorUsedError;
Aria2GlobalStat? get aria2globalStat => throw _privateConstructorUsedError;
/// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
$Aria2cModelStateCopyWith<Aria2cModelState> get copyWith =>
throw _privateConstructorUsedError;
}
@ -47,8 +45,6 @@ class _$Aria2cModelStateCopyWithImpl<$Res, $Val extends Aria2cModelState>
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -93,8 +89,6 @@ class __$$Aria2cModelStateImplCopyWithImpl<$Res>
$Res Function(_$Aria2cModelStateImpl) _then)
: super(_value, _then);
/// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -157,17 +151,15 @@ class _$Aria2cModelStateImpl
(identical(other.aria2cDir, aria2cDir) ||
other.aria2cDir == aria2cDir) &&
(identical(other.aria2c, aria2c) || other.aria2c == aria2c) &&
(identical(other.aria2globalStat, aria2globalStat) ||
other.aria2globalStat == aria2globalStat));
const DeepCollectionEquality()
.equals(other.aria2globalStat, aria2globalStat));
}
@override
int get hashCode =>
Object.hash(runtimeType, aria2cDir, aria2c, aria2globalStat);
int get hashCode => Object.hash(runtimeType, aria2cDir, aria2c,
const DeepCollectionEquality().hash(aria2globalStat));
/// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$Aria2cModelStateImplCopyWith<_$Aria2cModelStateImpl> get copyWith =>
@ -187,11 +179,8 @@ abstract class _Aria2cModelState implements Aria2cModelState {
Aria2c? get aria2c;
@override
Aria2GlobalStat? get aria2globalStat;
/// Create a copy of Aria2cModelState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
_$$Aria2cModelStateImplCopyWith<_$Aria2cModelStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@ -6,7 +6,7 @@ part of 'aria2c.dart';
// RiverpodGenerator
// **************************************************************************
String _$aria2cModelHash() => r'3d51aeefd92e5291dca1f01db961f9c5496ec24f';
String _$aria2cModelHash() => r'6685f6a716016113487de190a61f71196094526e';
/// See also [Aria2cModel].
@ProviderFor(Aria2cModel)
@ -22,4 +22,4 @@ final aria2cModelProvider =
typedef _$Aria2cModel = AutoDisposeNotifier<Aria2cModelState>;
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member

View File

@ -1,278 +0,0 @@
import 'dart:convert';
import 'dart:io';
import 'package:file/memory.dart';
import 'package:flutter/foundation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:path_provider/path_provider.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:starcitizen_doctor/api/analytics.dart';
import 'package:starcitizen_doctor/common/conf/binary_conf.dart';
import 'package:starcitizen_doctor/common/helper/log_helper.dart';
import 'package:starcitizen_doctor/common/rust/api/rs_process.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
import 'package:starcitizen_doctor/common/utils/provider.dart';
import 'package:starcitizen_doctor/data/app_unp4k_p4k_item_data.dart';
import 'package:starcitizen_doctor/ui/tools/tools_ui_model.dart';
import 'package:starcitizen_doctor/common/rust/api/rs_process.dart'
as rs_process;
part 'unp4kc.freezed.dart';
part 'unp4kc.g.dart';
@freezed
class Unp4kcState with _$Unp4kcState {
const factory Unp4kcState({
required bool startUp,
Map<String, AppUnp4kP4kItemData>? files,
MemoryFileSystem? fs,
required String curPath,
String? endMessage,
MapEntry<String, String>? tempOpenFile,
@Default("") String errorMessage,
}) = _Unp4kcState;
}
@riverpod
class Unp4kCModel extends _$Unp4kCModel {
int? _rsPid;
@override
Unp4kcState build() {
state = Unp4kcState(
startUp: false,
curPath: '\\',
endMessage: S.current.tools_unp4k_msg_init);
_init();
return state;
}
ToolsUIState get _toolsState => ref.read(toolsUIModelProvider);
String getGamePath() => _toolsState.scInstalledPath;
bool _hasUnp4kRunTimeError = false;
void _init() async {
final execDir = "${appGlobalState.applicationBinaryModuleDir}\\unp4kc";
await BinaryModuleConf.extractModule(
["unp4kc"], appGlobalState.applicationBinaryModuleDir!);
final exec = "$execDir\\unp4kc.exe";
final stream = rs_process.start(
executable: exec, arguments: [], workingDirectory: execDir);
stream.listen((event) async {
switch (event.dataType) {
case RsProcessStreamDataType.output:
_rsPid = event.rsPid;
try {
final eventJson = await compute(json.decode, event.data);
_handleMessage(eventJson, event.rsPid);
} catch (e) {
dPrint("[unp4kc] json error: $e");
}
break;
case RsProcessStreamDataType.error:
dPrint("[unp4kc] stderr: ${event.data}");
if (state.errorMessage.isEmpty) {
state = state.copyWith(errorMessage: event.data);
} else {
state = state.copyWith(
errorMessage: "${state.errorMessage}\n${event.data}");
}
if (!_hasUnp4kRunTimeError) {
if (checkRunTimeError(state.errorMessage)) {
_hasUnp4kRunTimeError = true;
AnalyticsApi.touch("unp4k_no_runtime");
}
}
break;
case RsProcessStreamDataType.exit:
dPrint("[unp4kc] exit: ${event.data}");
break;
}
});
ref.onDispose(() {
state = state.copyWith(fs: null);
if (_rsPid != null) {
Process.killPid(_rsPid!);
dPrint("[unp4kc] kill ...");
}
});
}
DateTime? _loadStartTime;
void _handleMessage(Map<String, dynamic> eventJson, int rsPid) async {
final action = eventJson["action"];
final data = eventJson["data"];
final gamePath = getGamePath();
final gameP4kPath = "$gamePath\\Data.p4k";
switch (action.toString().trim()) {
case "info: startup":
rs_process.write(rsPid: rsPid, data: "$gameP4kPath\n");
break;
case "info: Reading_p4k_file":
_loadStartTime = DateTime.now();
state = state.copyWith(endMessage: S.current.tools_unp4k_msg_reading);
break;
case "info: All Ready":
state = state.copyWith(endMessage: S.current.tools_unp4k_msg_reading2);
break;
case "data: P4K_Files":
final p4kFiles = (data as List<dynamic>);
final files = <String, AppUnp4kP4kItemData>{};
final fs = MemoryFileSystem(style: FileSystemStyle.posix);
var nextAwait = 0;
for (var i = 0; i < p4kFiles.length; i++) {
final item = AppUnp4kP4kItemData.fromJson(p4kFiles[i]);
item.name = "${item.name}";
files["\\${item.name}"] = item;
await fs
.file(item.name?.replaceAll("\\", "/") ?? "")
.create(recursive: true);
if (i == nextAwait) {
state = state.copyWith(
endMessage:
S.current.tools_unp4k_msg_reading3(i, p4kFiles.length));
await Future.delayed(Duration.zero);
nextAwait += 20000;
}
}
final endTime = DateTime.now();
state = state.copyWith(
files: files,
fs: fs,
endMessage: S.current.tools_unp4k_msg_read_completed(files.length,
endTime.difference(_loadStartTime!).inMilliseconds));
_loadStartTime = null;
break;
case "info: Extracted_Open":
final filePath = data.toString();
dPrint("[unp4kc] Extracted_Open file: $filePath");
const textExt = [".txt", ".xml", ".json", ".lua", ".cfg", ".ini"];
const imgExt = [".png"];
String openType = "unknown";
for (var element in textExt) {
if (filePath.toLowerCase().endsWith(element)) {
openType = "text";
}
}
for (var element in imgExt) {
if (filePath.endsWith(element)) {
openType = "image";
}
}
state = state.copyWith(
tempOpenFile: MapEntry(openType, filePath),
endMessage: S.current.tools_unp4k_msg_open_file(filePath));
break;
default:
dPrint("[unp4kc] unknown action: $action");
break;
}
}
List<AppUnp4kP4kItemData>? getFiles() {
final path = state.curPath.replaceAll("\\", "/");
final fs = state.fs;
if (fs == null) return null;
final dir = fs.directory(path);
if (!dir.existsSync()) return [];
final files = dir.listSync(recursive: false, followLinks: false);
files.sort((a, b) {
if (a is Directory && b is File) {
return -1;
} else if (a is File && b is Directory) {
return 1;
} else {
return a.path.compareTo(b.path);
}
});
final result = <AppUnp4kP4kItemData>[];
for (var file in files) {
if (file is File) {
final f = state.files?[file.path.replaceAll("/", "\\")];
if (f != null) {
if (!(f.name?.startsWith("\\") ?? true)) {
f.name = "\\${f.name}";
}
result.add(f);
}
} else {
result.add(AppUnp4kP4kItemData(
name: file.path.replaceAll("/", "\\"), isDirectory: true));
}
}
return result;
}
void changeDir(String name, {bool fullPath = false}) {
if (fullPath) {
state = state.copyWith(curPath: name);
} else {
state = state.copyWith(curPath: "${state.curPath}$name\\");
}
}
openFile(String filePath) async {
final tempDir = await getTemporaryDirectory();
final tempPath =
"${tempDir.absolute.path}\\SCToolbox_unp4kc\\${SCLoggerHelper.getGameChannelID(getGamePath())}\\";
state = state.copyWith(
tempOpenFile: const MapEntry("loading", ""),
endMessage: S.current.tools_unp4k_msg_open_file(filePath));
extractFile(filePath, tempPath, mode: "extract_open");
}
extractFile(String filePath, String outputPath,
{String mode = "extract"}) async {
// remove first \\
if (filePath.startsWith("\\")) {
filePath = filePath.substring(1);
}
outputPath = "$outputPath$filePath";
dPrint("extractFile .... $filePath");
if (_rsPid != null) {
rs_process.write(
rsPid: _rsPid!, data: "$mode<:,:>$filePath<:,:>$outputPath\n");
}
}
static bool checkRunTimeError(String errorMessage) {
if (errorMessage
.contains("You must install .NET to run this application") ||
errorMessage.contains(
"You must install or update .NET to run this application") ||
errorMessage.contains(
"It was not possible to find any compatible framework version")) {
AnalyticsApi.touch("unp4k_no_runtime");
return true;
}
return false;
}
static Future<Uint8List> unp4kTools(
String applicationBinaryModuleDir, List<String> args) async {
await BinaryModuleConf.extractModule(
["unp4kc"], applicationBinaryModuleDir);
final execDir = "$applicationBinaryModuleDir\\unp4kc";
final exec = "$execDir\\unp4kc.exe";
final r = await Process.run(exec, args);
if (r.exitCode != 0) {
Process.killPid(r.pid);
throw Exception(
"error: ${r.exitCode} , info= ${r.stdout} , err= ${r.stderr}");
}
final eventJson = await compute(json.decode, r.stdout.toString());
if (eventJson["action"] == "data: Uint8List") {
final data = eventJson["data"];
return Uint8List.fromList((data as List).cast<int>());
}
throw Exception("error: data error");
}
}

View File

@ -1,304 +0,0 @@
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'unp4kc.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
/// @nodoc
mixin _$Unp4kcState {
bool get startUp => throw _privateConstructorUsedError;
Map<String, AppUnp4kP4kItemData>? get files =>
throw _privateConstructorUsedError;
MemoryFileSystem? get fs => throw _privateConstructorUsedError;
String get curPath => throw _privateConstructorUsedError;
String? get endMessage => throw _privateConstructorUsedError;
MapEntry<String, String>? get tempOpenFile =>
throw _privateConstructorUsedError;
String get errorMessage => throw _privateConstructorUsedError;
/// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$Unp4kcStateCopyWith<Unp4kcState> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $Unp4kcStateCopyWith<$Res> {
factory $Unp4kcStateCopyWith(
Unp4kcState value, $Res Function(Unp4kcState) then) =
_$Unp4kcStateCopyWithImpl<$Res, Unp4kcState>;
@useResult
$Res call(
{bool startUp,
Map<String, AppUnp4kP4kItemData>? files,
MemoryFileSystem? fs,
String curPath,
String? endMessage,
MapEntry<String, String>? tempOpenFile,
String errorMessage});
}
/// @nodoc
class _$Unp4kcStateCopyWithImpl<$Res, $Val extends Unp4kcState>
implements $Unp4kcStateCopyWith<$Res> {
_$Unp4kcStateCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? startUp = null,
Object? files = freezed,
Object? fs = freezed,
Object? curPath = null,
Object? endMessage = freezed,
Object? tempOpenFile = freezed,
Object? errorMessage = null,
}) {
return _then(_value.copyWith(
startUp: null == startUp
? _value.startUp
: startUp // ignore: cast_nullable_to_non_nullable
as bool,
files: freezed == files
? _value.files
: files // ignore: cast_nullable_to_non_nullable
as Map<String, AppUnp4kP4kItemData>?,
fs: freezed == fs
? _value.fs
: fs // ignore: cast_nullable_to_non_nullable
as MemoryFileSystem?,
curPath: null == curPath
? _value.curPath
: curPath // ignore: cast_nullable_to_non_nullable
as String,
endMessage: freezed == endMessage
? _value.endMessage
: endMessage // ignore: cast_nullable_to_non_nullable
as String?,
tempOpenFile: freezed == tempOpenFile
? _value.tempOpenFile
: tempOpenFile // ignore: cast_nullable_to_non_nullable
as MapEntry<String, String>?,
errorMessage: null == errorMessage
? _value.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}
/// @nodoc
abstract class _$$Unp4kcStateImplCopyWith<$Res>
implements $Unp4kcStateCopyWith<$Res> {
factory _$$Unp4kcStateImplCopyWith(
_$Unp4kcStateImpl value, $Res Function(_$Unp4kcStateImpl) then) =
__$$Unp4kcStateImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{bool startUp,
Map<String, AppUnp4kP4kItemData>? files,
MemoryFileSystem? fs,
String curPath,
String? endMessage,
MapEntry<String, String>? tempOpenFile,
String errorMessage});
}
/// @nodoc
class __$$Unp4kcStateImplCopyWithImpl<$Res>
extends _$Unp4kcStateCopyWithImpl<$Res, _$Unp4kcStateImpl>
implements _$$Unp4kcStateImplCopyWith<$Res> {
__$$Unp4kcStateImplCopyWithImpl(
_$Unp4kcStateImpl _value, $Res Function(_$Unp4kcStateImpl) _then)
: super(_value, _then);
/// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? startUp = null,
Object? files = freezed,
Object? fs = freezed,
Object? curPath = null,
Object? endMessage = freezed,
Object? tempOpenFile = freezed,
Object? errorMessage = null,
}) {
return _then(_$Unp4kcStateImpl(
startUp: null == startUp
? _value.startUp
: startUp // ignore: cast_nullable_to_non_nullable
as bool,
files: freezed == files
? _value._files
: files // ignore: cast_nullable_to_non_nullable
as Map<String, AppUnp4kP4kItemData>?,
fs: freezed == fs
? _value.fs
: fs // ignore: cast_nullable_to_non_nullable
as MemoryFileSystem?,
curPath: null == curPath
? _value.curPath
: curPath // ignore: cast_nullable_to_non_nullable
as String,
endMessage: freezed == endMessage
? _value.endMessage
: endMessage // ignore: cast_nullable_to_non_nullable
as String?,
tempOpenFile: freezed == tempOpenFile
? _value.tempOpenFile
: tempOpenFile // ignore: cast_nullable_to_non_nullable
as MapEntry<String, String>?,
errorMessage: null == errorMessage
? _value.errorMessage
: errorMessage // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
class _$Unp4kcStateImpl with DiagnosticableTreeMixin implements _Unp4kcState {
const _$Unp4kcStateImpl(
{required this.startUp,
final Map<String, AppUnp4kP4kItemData>? files,
this.fs,
required this.curPath,
this.endMessage,
this.tempOpenFile,
this.errorMessage = ""})
: _files = files;
@override
final bool startUp;
final Map<String, AppUnp4kP4kItemData>? _files;
@override
Map<String, AppUnp4kP4kItemData>? get files {
final value = _files;
if (value == null) return null;
if (_files is EqualUnmodifiableMapView) return _files;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(value);
}
@override
final MemoryFileSystem? fs;
@override
final String curPath;
@override
final String? endMessage;
@override
final MapEntry<String, String>? tempOpenFile;
@override
@JsonKey()
final String errorMessage;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'Unp4kcState(startUp: $startUp, files: $files, fs: $fs, curPath: $curPath, endMessage: $endMessage, tempOpenFile: $tempOpenFile, errorMessage: $errorMessage)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'Unp4kcState'))
..add(DiagnosticsProperty('startUp', startUp))
..add(DiagnosticsProperty('files', files))
..add(DiagnosticsProperty('fs', fs))
..add(DiagnosticsProperty('curPath', curPath))
..add(DiagnosticsProperty('endMessage', endMessage))
..add(DiagnosticsProperty('tempOpenFile', tempOpenFile))
..add(DiagnosticsProperty('errorMessage', errorMessage));
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$Unp4kcStateImpl &&
(identical(other.startUp, startUp) || other.startUp == startUp) &&
const DeepCollectionEquality().equals(other._files, _files) &&
(identical(other.fs, fs) || other.fs == fs) &&
(identical(other.curPath, curPath) || other.curPath == curPath) &&
(identical(other.endMessage, endMessage) ||
other.endMessage == endMessage) &&
(identical(other.tempOpenFile, tempOpenFile) ||
other.tempOpenFile == tempOpenFile) &&
(identical(other.errorMessage, errorMessage) ||
other.errorMessage == errorMessage));
}
@override
int get hashCode => Object.hash(
runtimeType,
startUp,
const DeepCollectionEquality().hash(_files),
fs,
curPath,
endMessage,
tempOpenFile,
errorMessage);
/// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$Unp4kcStateImplCopyWith<_$Unp4kcStateImpl> get copyWith =>
__$$Unp4kcStateImplCopyWithImpl<_$Unp4kcStateImpl>(this, _$identity);
}
abstract class _Unp4kcState implements Unp4kcState {
const factory _Unp4kcState(
{required final bool startUp,
final Map<String, AppUnp4kP4kItemData>? files,
final MemoryFileSystem? fs,
required final String curPath,
final String? endMessage,
final MapEntry<String, String>? tempOpenFile,
final String errorMessage}) = _$Unp4kcStateImpl;
@override
bool get startUp;
@override
Map<String, AppUnp4kP4kItemData>? get files;
@override
MemoryFileSystem? get fs;
@override
String get curPath;
@override
String? get endMessage;
@override
MapEntry<String, String>? get tempOpenFile;
@override
String get errorMessage;
/// Create a copy of Unp4kcState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$Unp4kcStateImplCopyWith<_$Unp4kcStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@ -1,25 +0,0 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'unp4kc.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
String _$unp4kCModelHash() => r'636da3fe20d1fa94917dd63934f08f8dbffc8a9d';
/// See also [Unp4kCModel].
@ProviderFor(Unp4kCModel)
final unp4kCModelProvider =
AutoDisposeNotifierProvider<Unp4kCModel, Unp4kcState>.internal(
Unp4kCModel.new,
name: r'unp4kCModelProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product') ? null : _$unp4kCModelHash,
dependencies: null,
allTransitiveDependencies: null,
);
typedef _$Unp4kCModel = AutoDisposeNotifier<Unp4kcState>;
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package

View File

@ -1,12 +1,10 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter/services.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:qr_flutter/qr_flutter.dart';
import 'package:starcitizen_doctor/api/analytics.dart';
import 'package:starcitizen_doctor/app.dart';
import 'package:starcitizen_doctor/common/conf/conf.dart';
import 'package:starcitizen_doctor/common/conf/const_conf.dart';
import 'package:starcitizen_doctor/common/conf/url_conf.dart';
import 'package:starcitizen_doctor/widgets/src/flow_number_text.dart';
import 'package:starcitizen_doctor/widgets/widgets.dart';
@ -18,411 +16,89 @@ class AboutUI extends HookConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final isTipTextCn = useState(false);
final pageCtrl = usePageController();
return PageView(
scrollDirection: Axis.vertical,
controller: pageCtrl,
children: [
_makeAbout(context, ref, isTipTextCn, pageCtrl),
_makeDonate(context, ref, pageCtrl),
],
);
}
Widget _makeAbout(BuildContext context, WidgetRef ref, ValueNotifier<bool> isTipTextCn, PageController pageCtrl) {
return Stack(
children: [
Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const Spacer(),
const SizedBox(height: 32),
Image.asset("assets/app_logo.png", width: 128, height: 128),
const SizedBox(height: 6),
Text(S.current.app_index_version_info(ConstConf.appVersion, ConstConf.isMSE ? "" : " Dev"),
style: const TextStyle(fontSize: 18)),
const SizedBox(height: 12),
Button(
onPressed: () => _onCheckUpdate(context, ref),
child: Padding(
padding: const EdgeInsets.all(4),
child: Text(S.current.about_check_update),
)),
const SizedBox(height: 32),
Container(
margin: const EdgeInsets.all(24),
decoration:
BoxDecoration(color: FluentTheme.of(context).cardColor, borderRadius: BorderRadius.circular(12)),
child: Padding(
padding: const EdgeInsets.all(24),
child: Column(
children: [
Text(
S.current.about_app_description,
style: TextStyle(fontSize: 14, color: Colors.white.withValues(alpha: .9)),
),
],
),
),
),
const SizedBox(height: 24),
makeAnalyticsWidget(context),
const SizedBox(height: 24),
makeLinksRow(),
const Spacer(),
Row(
return Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const Spacer(),
const SizedBox(height: 32),
Image.asset("assets/app_logo.png", width: 128, height: 128),
const SizedBox(height: 6),
Text(
S.current.app_index_version_info(
ConstConf.appVersion, ConstConf.isMSE ? "" : " Dev"),
style: const TextStyle(fontSize: 18)),
const SizedBox(height: 12),
Button(
onPressed: () => _onCheckUpdate(context, ref),
child: Padding(
padding: const EdgeInsets.all(4),
child: Text(S.current.about_check_update),
)),
const SizedBox(height: 32),
Container(
margin: const EdgeInsets.all(24),
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor,
borderRadius: BorderRadius.circular(12)),
child: Padding(
padding: const EdgeInsets.all(24),
child: Column(
children: [
const Spacer(),
AnimatedSize(
duration: const Duration(milliseconds: 200),
child: Container(
width: MediaQuery.of(context).size.width * .35,
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor.withValues(alpha: .06),
borderRadius: BorderRadius.circular(12)),
child: IconButton(
icon: Padding(
padding: const EdgeInsets.all(3),
child: Text(
isTipTextCn.value ? tipTextCN : tipTextEN,
textAlign: TextAlign.start,
style: TextStyle(fontSize: 12, color: Colors.white.withValues(alpha: .9)),
),
),
onPressed: () {
isTipTextCn.value = !isTipTextCn.value;
},
),
),
Text(
S.current.about_app_description,
style: TextStyle(
fontSize: 14, color: Colors.white.withOpacity(.9)),
),
const SizedBox(width: 12),
],
),
const SizedBox(height: 12),
],
),
),
),
Positioned(
bottom: 12,
left: 0,
right: 0,
child: Center(
child: makeNavButton(pageCtrl, 1),
),
),
],
);
}
Widget _makeDonate(BuildContext context, WidgetRef ref, PageController pageCtrl) {
final donationTypeNotifier = useState('alipay');
final bubbleMessages = [
S.current.support_dev_thanks_message,
S.current.support_dev_referral_code_message,
];
return Container(
width: double.infinity,
padding: const EdgeInsets.symmetric(horizontal: 24),
child: Column(
children: [
const SizedBox(height: 8),
makeNavButton(pageCtrl, 0),
const SizedBox(height: 12),
Text(
S.current.support_dev_title,
style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
),
const SizedBox(height: 32),
//
const SizedBox(height: 24),
makeAnalyticsWidget(context),
const SizedBox(height: 24),
makeLinksRow(),
const Spacer(),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(25),
child: CacheNetImage(
url:
"https://git.scbox.xkeyc.cn/avatars/56a93334e892ba48f4fab453b8205624d661e4f7748cdb52bed47e5dc0c85de5?size=512",
width: 50,
height: 50,
fit: BoxFit.cover,
const Spacer(),
AnimatedSize(
duration: const Duration(milliseconds: 200),
child: Container(
width: MediaQuery.of(context).size.width * .35,
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor.withOpacity(.06),
borderRadius: BorderRadius.circular(12)),
child: IconButton(
icon: Padding(
padding: const EdgeInsets.all(3),
child: Text(
isTipTextCn.value ? tipTextCN : tipTextEN,
textAlign: TextAlign.start,
style: TextStyle(
fontSize: 12, color: Colors.white.withOpacity(.9)),
),
),
onPressed: () {
isTipTextCn.value = !isTipTextCn.value;
},
),
),
),
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
for (var i = 0; i < bubbleMessages.length; i++)
Padding(
padding: const EdgeInsets.only(bottom: 8),
child: SelectionArea(child: ChatBubble(message: bubbleMessages[i])),
),
],
),
),
],
),
const SizedBox(height: 32),
//
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
_donationMethodButton(
context: context,
title: 'AliPay',
icon: FontAwesomeIcons.alipay,
isSelected: donationTypeNotifier.value == 'alipay',
color: const Color(0xFF1677FF),
onTap: () => donationTypeNotifier.value = 'alipay',
),
_donationMethodButton(
context: context,
title: 'WeChat',
icon: FontAwesomeIcons.weixin,
isSelected: donationTypeNotifier.value == 'wechat',
color: const Color(0xFF07C160),
onTap: () => donationTypeNotifier.value = 'wechat',
),
_donationMethodButton(
context: context,
title: 'QQ',
icon: FontAwesomeIcons.qq,
isSelected: donationTypeNotifier.value == 'qq',
color: const Color(0xFF12B7F5),
onTap: () => donationTypeNotifier.value = 'qq',
),
_donationMethodButton(
context: context,
title: 'aUEC',
icon: FontAwesomeIcons.gamepad,
isSelected: donationTypeNotifier.value == 'uec',
color: const Color(0xFFFFD700),
onTap: () => donationTypeNotifier.value = 'uec',
),
_donationMethodButton(
context: context,
title: 'GitHub',
icon: FontAwesomeIcons.github,
isSelected: donationTypeNotifier.value == 'github',
color: Colors.white,
onTap: () => donationTypeNotifier.value = 'github',
),
],
),
const SizedBox(height: 24),
//
Container(
constraints: BoxConstraints(minHeight: 300),
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 300),
transitionBuilder: (Widget child, Animation<double> animation) {
return FadeTransition(opacity: animation, child: child);
},
child: _buildDonationQRCode(donationTypeNotifier.value, context),
),
),
const SizedBox(height: 48),
const SizedBox(height: 12),
],
),
);
}
Widget _donationMethodButton({
required BuildContext context,
required String title,
required IconData icon,
required bool isSelected,
required Color color,
required VoidCallback onTap,
}) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Button(
style: ButtonStyle(
backgroundColor: WidgetStateProperty.resolveWith((states) => isSelected
? ButtonThemeData.buttonColor(context, states).withAlpha((255.0 * 0.08).round())
: ButtonThemeData.buttonColor(context, states).withAlpha((255.0 * 0.005).round())),
padding: WidgetStateProperty.all(EdgeInsets.symmetric(horizontal: 16, vertical: 8)),
),
onPressed: onTap,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(icon, color: color, size: 24),
const SizedBox(height: 4),
Text(title, style: TextStyle(fontSize: 12)),
],
),
),
);
}
Widget _buildDonationQRCode(String type, BuildContext context) {
// GitHub
if (type == 'github') {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
key: ValueKey('github'),
children: [
SizedBox(height: 28),
const Icon(FontAwesomeIcons.github, size: 64),
const SizedBox(height: 32),
Text(S.current.support_dev_github_star_message),
const SizedBox(height: 32),
Button(
onPressed: () {
launchUrlString("https://github.com/StarCitizenToolBox/app");
},
child: Padding(
padding: const EdgeInsets.all(8),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(FontAwesomeIcons.github),
const SizedBox(width: 12),
Text(S.current.support_dev_github_star_button),
],
),
),
),
],
);
}
// UEC
if (type == 'uec') {
return Column(
key: ValueKey('uec'),
children: [
Image.asset("assets/sc_logo.png", width: 128, height: 128),
const SizedBox(height: 16),
Text(S.current.support_dev_in_game_currency_title,
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
const SizedBox(height: 8),
Container(
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor.withAlpha((255 * .1).round()),
borderRadius: BorderRadius.circular(8),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(S.current.support_dev_in_game_id, style: TextStyle(fontSize: 16)),
const SizedBox(width: 12),
Button(
onPressed: () {
// ${S.current.support_dev_copy_button}ID到剪贴板
Clipboard.setData(ClipboardData(text: "xkeyC"));
showToast(context, S.current.support_dev_in_game_id_copied);
},
child: Text(S.current.support_dev_copy_button),
)
],
),
),
const SizedBox(height: 22),
Text(
S.current.support_dev_in_game_currency_message,
textAlign: TextAlign.start,
),
],
);
}
//
String qrData;
String title;
switch (type) {
case 'alipay':
qrData = DonationQrCodeData.alipay;
title = S.current.support_dev_alipay;
break;
case 'wechat':
qrData = DonationQrCodeData.wechat;
title = S.current.support_dev_wechat;
break;
case 'qq':
qrData = DonationQrCodeData.qq;
title = "QQ";
break;
default:
qrData = "";
title = "";
break;
}
return Column(
key: ValueKey(type),
children: [
Text(title, style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
const SizedBox(height: 16),
Container(
width: 200,
height: 200,
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
child: QrImageView(data: qrData),
),
const SizedBox(height: 16),
Text(
S.current.support_dev_donation_disclaimer,
style: TextStyle(fontSize: 16),
),
],
);
}
Widget makeNavButton(PageController pageCtrl, int pageIndex) {
return IconButton(
icon: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(pageIndex == 0 ? FluentIcons.chevron_up : FluentIcons.chevron_down, size: 12),
SizedBox(width: 8),
Text(pageIndex == 0 ? S.current.support_dev_back_button : S.current.support_dev_scroll_hint),
],
),
onPressed: () =>
pageCtrl.animateToPage(pageIndex, duration: const Duration(milliseconds: 300), curve: Curves.ease),
);
}
Widget makeLinksRow() {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
IconButton(
icon: Row(
children: [
const Icon(FontAwesomeIcons.question),
const SizedBox(width: 8),
Text(
S.current.about_action_btn_faq,
style: TextStyle(fontSize: 14, color: Colors.white.withValues(alpha: .6)),
),
],
),
onPressed: () {
launchUrlString(URLConf.feedbackFAQUrl);
},
),
const SizedBox(width: 24),
IconButton(
icon: Row(
children: [
@ -430,7 +106,8 @@ class AboutUI extends HookConsumerWidget {
const SizedBox(width: 8),
Text(
S.current.about_online_feedback,
style: TextStyle(fontSize: 14, color: Colors.white.withValues(alpha: .6)),
style: TextStyle(
fontSize: 14, color: Colors.white.withOpacity(.6)),
),
],
),
@ -446,7 +123,8 @@ class AboutUI extends HookConsumerWidget {
const SizedBox(width: 8),
Text(
S.current.about_action_qq_group,
style: TextStyle(fontSize: 14, color: Colors.white.withValues(alpha: .6)),
style: TextStyle(
fontSize: 14, color: Colors.white.withOpacity(.6)),
),
],
),
@ -463,12 +141,13 @@ class AboutUI extends HookConsumerWidget {
const SizedBox(width: 8),
Text(
S.current.about_action_email,
style: TextStyle(fontSize: 14, color: Colors.white.withValues(alpha: .6)),
style: TextStyle(
fontSize: 14, color: Colors.white.withOpacity(.6)),
),
],
),
onPressed: () {
launchUrlString("mailto:xkeyc@qq.com");
launchUrlString("mailto:scbox@xkeyc.com");
},
),
const SizedBox(width: 24),
@ -479,7 +158,8 @@ class AboutUI extends HookConsumerWidget {
const SizedBox(width: 8),
Text(
S.current.about_action_open_source,
style: TextStyle(fontSize: 14, color: Colors.white.withValues(alpha: .6)),
style: TextStyle(
fontSize: 14, color: Colors.white.withOpacity(.6)),
),
],
),
@ -497,7 +177,6 @@ class AboutUI extends HookConsumerWidget {
static String get tipTextCN => S.current.about_disclaimer;
Widget makeAnalyticsWidget(BuildContext context) {
var buildIndex = 0;
return LoadingWidget(
onLoadData: AnalyticsApi.getAnalyticsData,
autoRefreshDuration: const Duration(seconds: 60),
@ -517,18 +196,20 @@ class AboutUI extends HookConsumerWidget {
"performance_apply",
"p4k_download",
].contains(item["Type"]))
GridItemAnimator(
index: buildIndex++,
child: makeAnalyticsItem(
context: context, name: item["Type"] as String, value: item["Count"] as int),
)
makeAnalyticsItem(
context: context,
name: item["Type"] as String,
value: item["Count"] as int)
],
);
},
);
}
Widget makeAnalyticsItem({required BuildContext context, required String name, required int value}) {
Widget makeAnalyticsItem(
{required BuildContext context,
required String name,
required int value}) {
final names = {
"launch": S.current.about_analytics_launch,
"gameLaunch": S.current.about_analytics_launch_game,
@ -541,12 +222,13 @@ class AboutUI extends HookConsumerWidget {
padding: const EdgeInsets.all(12),
margin: const EdgeInsets.only(left: 18, right: 18),
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor.withValues(alpha: .06), borderRadius: BorderRadius.circular(12)),
color: FluentTheme.of(context).cardColor.withOpacity(.06),
borderRadius: BorderRadius.circular(12)),
child: Column(
children: [
Text(
names[name] ?? name,
style: TextStyle(fontSize: 13, color: Colors.white.withValues(alpha: .6)),
style: TextStyle(fontSize: 13, color: Colors.white.withOpacity(.6)),
),
const SizedBox(height: 4),
Row(
@ -572,7 +254,8 @@ class AboutUI extends HookConsumerWidget {
launchUrlString("ms-windows-store://pdp/?productid=9NF3SWFWNKL1");
return;
} else {
final hasUpdate = await ref.read(appGlobalModelProvider.notifier).checkUpdate(context);
final hasUpdate =
await ref.read(appGlobalModelProvider.notifier).checkUpdate(context);
if (!hasUpdate) {
if (!context.mounted) return;
showToast(context, S.current.about_info_latest_version);
@ -580,36 +263,3 @@ class AboutUI extends HookConsumerWidget {
}
}
}
class ChatBubble extends StatelessWidget {
final String message;
const ChatBubble({super.key, required this.message});
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
decoration: BoxDecoration(
color: FluentTheme.of(context).accentColor.withAlpha((255.0 * .2).round()),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(4),
topRight: Radius.circular(18),
bottomLeft: Radius.circular(18),
bottomRight: Radius.circular(18),
),
),
child: Text(
message,
style: TextStyle(fontSize: 14),
),
);
}
}
class DonationQrCodeData {
static const alipay = "https://qr.alipay.com/tsx16308c4uai0ticmz4j96";
static const wechat = "wxp://f2f0J40rTCX7Vt79yooWNbiqH3U6UmwGJkqjcAYnrv9OZVzKyS5_W6trp8mo3KP-CTQ5";
static const qq =
"https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&f=wallet&a=1&u=3334969096&n=xkeyC&ac=CAEQiK6etgwY8ZuKvgYyGOa1geWKqOaRiuS9jee7j-iQpeaUtuasvjgBQiAzY2Y4NWY3MDI1MWUxYWEwMGYyN2Q0OTM4Y2U2ODFlMw%3D%3D_xxx_sign";
}

View File

@ -1,249 +0,0 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:go_router/go_router.dart';
import 'package:hive_ce/hive.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:starcitizen_doctor/common/conf/conf.dart';
import 'package:starcitizen_doctor/common/conf/url_conf.dart';
import 'package:starcitizen_doctor/ui/settings/settings_ui_model.dart';
import 'package:starcitizen_doctor/ui/tools/tools_ui_model.dart';
import 'package:starcitizen_doctor/widgets/widgets.dart';
import 'package:url_launcher/url_launcher_string.dart';
class GuideUI extends HookConsumerWidget {
const GuideUI({super.key});
static const version = 1;
@override
Widget build(BuildContext context, WidgetRef ref) {
final toolsState = ref.watch(toolsUIModelProvider);
final toolsModel = ref.read(toolsUIModelProvider.notifier);
final settingModel = ref.read(settingsUIModelProvider.notifier);
useEffect(() {
addPostFrameCallback(() {
toolsModel.reScanPath(context, checkActive: true, skipToast: true);
});
return null;
}, []);
return makeDefaultPage(
context,
automaticallyImplyLeading: false,
titleRow: Align(
alignment: AlignmentDirectional.centerStart,
child: Row(
children: [
Image.asset(
"assets/app_logo_mini.png",
width: 20,
height: 20,
fit: BoxFit.cover,
),
const SizedBox(width: 12),
Text(
S.current.app_index_version_info(
ConstConf.appVersion, ConstConf.isMSE ? "" : " Dev"),
)
],
),
),
content: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset("assets/app_logo.png", width: 192, height: 192),
SizedBox(height: 12),
Text(
S.current.guide_title_welcome,
style: TextStyle(
fontSize: 38,
),
),
SizedBox(height: 24),
Text(S.current.guide_info_check_settings),
SizedBox(height: 32),
Container(
padding: EdgeInsets.symmetric(horizontal: 32),
child: Row(
children: [
Expanded(
child: Column(
children: [
makeGameLauncherPathSelect(
context, toolsModel, toolsState, settingModel),
const SizedBox(height: 12),
makeGamePathSelect(
context, toolsModel, toolsState, settingModel),
],
),
),
SizedBox(width: 12),
Button(
onPressed: () => toolsModel.reScanPath(context,
checkActive: true, skipToast: true),
child: const Padding(
padding: EdgeInsets.only(
top: 30, bottom: 30, left: 12, right: 12),
child: Icon(FluentIcons.refresh),
),
),
],
)),
SizedBox(height: 12),
Padding(
padding: const EdgeInsets.only(right: 32, left: 32),
child: Row(
children: [
Expanded(
child: Text(
S.current.guide_info_game_download_note,
style: TextStyle(
fontSize: 12,
color: Colors.white.withValues(alpha: .6)),
textAlign: TextAlign.end,
),
),
],
),
),
SizedBox(height: 38),
Row(
children: [
Spacer(),
Button(
child: Padding(
padding:
const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
child: Text(S.current.guide_action_get_help),
),
onPressed: () {
launchUrlString(URLConf.feedbackFAQUrl);
},
),
SizedBox(width: 24),
FilledButton(
child: Padding(
padding:
const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
child: Text(S.current.guide_action_complete_setup),
),
onPressed: () async {
if (toolsState.rsiLauncherInstallPaths.isEmpty) {
final ok = await showConfirmDialogs(
context,
S.current.guide_dialog_confirm_complete_setup,
Text(S.current
.guide_action_info_no_launcher_path_warning));
if (!ok) return;
}
if (toolsState.scInstallPaths.isEmpty) {
if (!context.mounted) return;
final ok = await showConfirmDialogs(
context,
S.current.guide_dialog_confirm_complete_setup,
Text(S
.current.guide_action_info_no_game_path_warning));
if (!ok) return;
}
final appConf = await Hive.openBox("app_conf");
await appConf.put("guide_version", version);
if (!context.mounted) return;
context.pop();
},
),
SizedBox(width: 32),
],
),
SizedBox(height: 128),
],
),
),
);
}
Widget makeGameLauncherPathSelect(BuildContext context, ToolsUIModel model,
ToolsUIState state, SettingsUIModel settingModel) {
return Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(S.current.tools_info_rsi_launcher_location),
const SizedBox(width: 6),
Expanded(
child: SizedBox(
height: 36,
child: ComboBox<String>(
isExpanded: true,
value: state.rsiLauncherInstalledPath,
items: [
for (final path in state.rsiLauncherInstallPaths)
ComboBoxItem(
value: path,
child: Text(path),
)
],
onChanged: (v) {
model.onChangeLauncherPath(v!);
},
),
),
),
const SizedBox(width: 8),
Button(
child: const Padding(
padding: EdgeInsets.all(6),
child: Icon(FluentIcons.folder_search),
),
onPressed: () async {
await settingModel.setLauncherPath(context);
if (!context.mounted) return;
model.reScanPath(context, checkActive: true, skipToast: true);
},
),
],
);
}
Widget makeGamePathSelect(BuildContext context, ToolsUIModel model,
ToolsUIState state, SettingsUIModel settingModel) {
return Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(S.current.tools_info_game_install_location),
const SizedBox(width: 6),
Expanded(
child: SizedBox(
height: 36,
child: ComboBox<String>(
isExpanded: true,
value: state.scInstalledPath,
items: [
for (final path in state.scInstallPaths)
ComboBoxItem(
value: path,
child: Text(path),
)
],
onChanged: (v) {
model.onChangeGamePath(v!);
},
),
),
),
const SizedBox(width: 8),
Button(
child: const Padding(
padding: EdgeInsets.all(6),
child: Icon(FluentIcons.folder_search),
),
onPressed: () async {
await settingModel.setGamePath(context);
if (!context.mounted) return;
model.reScanPath(context, checkActive: true, skipToast: true);
})
],
);
}
}

View File

@ -24,7 +24,7 @@ class HomeCountdownDialogUI extends HookConsumerWidget {
Navigator.of(context).pop();
}),
const SizedBox(width: 12),
Text(S.current.home_holiday_countdown),
Text(S.current.home_holiday_countdown),
],
),
content: homeState.countdownFestivalListData == null
@ -43,44 +43,41 @@ class HomeCountdownDialogUI extends HookConsumerWidget {
itemBuilder: (BuildContext context, int index) {
final item =
homeState.countdownFestivalListData![index];
return GridItemAnimator(
index: index,
child: Container(
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor,
borderRadius: BorderRadius.circular(12),
),
child: Padding(
padding: const EdgeInsets.all(12),
child: Row(
children: [
if (item.icon != null && item.icon != "") ...[
ClipRRect(
borderRadius: BorderRadius.circular(1000),
child: Image.asset(
"assets/countdown/${item.icon}",
width: 38,
height: 38,
),
return Container(
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor,
borderRadius: BorderRadius.circular(12),
),
child: Padding(
padding: const EdgeInsets.all(12),
child: Row(
children: [
if (item.icon != null && item.icon != "") ...[
ClipRRect(
borderRadius: BorderRadius.circular(1000),
child: Image.asset(
"assets/countdown/${item.icon}",
width: 38,
height: 38,
),
const SizedBox(width: 12),
] else
const SizedBox(width: 50),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"${item.name}",
),
CountdownTimeText(
targetTime:
DateTime.fromMillisecondsSinceEpoch(
item.time ?? 0),
)
],
)
],
),
),
const SizedBox(width: 12),
] else
const SizedBox(width: 50),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"${item.name}",
),
CountdownTimeText(
targetTime:
DateTime.fromMillisecondsSinceEpoch(
item.time ?? 0),
)
],
)
],
),
),
);
@ -90,8 +87,7 @@ class HomeCountdownDialogUI extends HookConsumerWidget {
Text(
S.current.home_holiday_countdown_disclaimer,
style: TextStyle(
fontSize: 13,
color: Colors.white.withValues(alpha: .3)),
fontSize: 13, color: Colors.white.withOpacity(.3)),
)
],
),
@ -99,4 +95,4 @@ class HomeCountdownDialogUI extends HookConsumerWidget {
),
);
}
}
}

View File

@ -6,30 +6,24 @@ import 'package:starcitizen_doctor/widgets/widgets.dart';
import 'home_game_login_dialog_ui_model.dart';
class HomeGameLoginDialogUI extends HookConsumerWidget {
final BuildContext launchContext;
const HomeGameLoginDialogUI(this.launchContext, {super.key});
const HomeGameLoginDialogUI({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
final loginState = ref.watch(homeGameLoginUIModelProvider);
useEffect(() {
ref
.read(homeGameLoginUIModelProvider.notifier)
.launchWebLogin(launchContext);
ref.read(homeGameLoginUIModelProvider.notifier).launchWebLogin(context);
return null;
}, []);
return ContentDialog(
constraints: BoxConstraints(
maxWidth: MediaQuery.of(context).size.width * .56,
),
title: (loginState.loginStatus == 2)
? null
: Text(S.current.home_action_one_click_launch),
title: (loginState.loginStatus == 2) ? null : Text(S.current.home_action_one_click_launch),
content: AnimatedSize(
duration: const Duration(milliseconds: 230),
child: Padding(
padding: const EdgeInsets.only(top: 12, bottom: 0),
padding: const EdgeInsets.only(top: 12, bottom: 12),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
@ -39,9 +33,16 @@ class HomeGameLoginDialogUI extends HookConsumerWidget {
Center(
child: Column(
children: [
Text(S.current.home_title_logging_in),
Text(S.current.home_title_logging_in),
const SizedBox(height: 12),
const ProgressRing(),
if (loginState.isDeviceSupportWinHello ?? false)
const SizedBox(height: 24),
Text(
S.current.home_info_auto_fill_notice,
style: TextStyle(
fontSize: 13, color: Colors.white.withOpacity(.6)),
)
],
),
),
@ -72,42 +73,10 @@ class HomeGameLoginDialogUI extends HookConsumerWidget {
style: const TextStyle(
fontSize: 24, fontWeight: FontWeight.bold),
),
const SizedBox(height: 12),
if (loginState.libraryData?.games != null) ...[
Container(
padding: const EdgeInsets.all(6),
decoration: BoxDecoration(
color: FluentTheme.of(context).cardColor,
borderRadius: BorderRadius.circular(12),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
for (final game in loginState.libraryData!.games!)
Padding(
padding: const EdgeInsets.only(
left: 12, right: 12),
child: Row(
children: [
Icon(
FluentIcons.skype_circle_check,
color: Colors.green,
),
const SizedBox(width: 6),
Text("${game.name}"),
],
),
)
],
),
),
const SizedBox(height: 24)
],
const SizedBox(height: 12),
const SizedBox(height: 32),
Text(S.current.home_login_title_launching_game),
const SizedBox(height: 12),
const ProgressRing(),
const SizedBox(height: 12),
],
),
)
@ -118,4 +87,4 @@ class HomeGameLoginDialogUI extends HookConsumerWidget {
),
);
}
}
}

View File

@ -3,15 +3,17 @@ import 'dart:io';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hive_ce/hive.dart';
import 'package:hive/hive.dart';
import 'package:local_auth/local_auth.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:cryptography/cryptography.dart';
import 'package:desktop_webview_window/desktop_webview_window.dart';
import 'package:jwt_decode/jwt_decode.dart';
import 'package:starcitizen_doctor/common/helper/system_helper.dart';
import 'package:starcitizen_doctor/common/utils/base_utils.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
import 'package:starcitizen_doctor/common/utils/provider.dart';
import 'package:starcitizen_doctor/data/rsi_game_library_data.dart';
import 'package:starcitizen_doctor/common/win32/credentials.dart';
import 'package:starcitizen_doctor/ui/home/home_ui_model.dart';
import 'package:starcitizen_doctor/ui/webview/webview.dart';
import 'package:url_launcher/url_launcher_string.dart';
@ -30,7 +32,6 @@ class HomeGameLoginState with _$HomeGameLoginState {
String? authToken,
String? webToken,
Map? releaseInfo,
RsiGameLibraryData? libraryData,
String? installPath,
bool? isDeviceSupportWinHello,
}) = _LoginStatus;
@ -43,50 +44,82 @@ class HomeGameLoginUIModel extends _$HomeGameLoginUIModel {
return HomeGameLoginState(loginStatus: 0);
}
final LocalAuthentication _localAuth = LocalAuthentication();
// ignore: avoid_build_context_in_providers
Future<void> launchWebLogin(BuildContext context) async {
final homeState = ref.read(homeUIModelProvider);
final isDeviceSupportWinHello = await _localAuth.isDeviceSupported();
state = state.copyWith(isDeviceSupportWinHello: isDeviceSupportWinHello);
if (!context.mounted) return;
goWebView(context, S.current.home_action_login_rsi_account,
"https://robertsspaceindustries.com/en/connect?jumpto=%2Fconnect",
loginMode: true, rsiLoginCallback: (message, ok) async {
"https://robertsspaceindustries.com/connect", loginMode: true,
rsiLoginCallback: (message, ok) async {
// dPrint(
// "======rsiLoginCallback=== $ok ===== data==\n${json.encode(message)}");
if (message == null || !ok) {
Navigator.pop(context);
return;
}
// final emailBox = await Hive.openBox("quick_login_email");
final data = message["data"];
final authToken = data["authToken"];
final webToken = data["webToken"];
final releaseInfo = data["releaseInfo"];
final libraryData = RsiGameLibraryData.fromJson(data["libraryData"]);
var avatarUrl = data["avatar"]
final avatarUrl = data["avatar"]
?.toString()
.replaceAll("url(\"", "")
.replaceAll("\")", "");
if (avatarUrl?.startsWith("/") ?? false) {
avatarUrl = "https://robertsspaceindustries.com$avatarUrl";
}
final Map<String, dynamic> payload = Jwt.parseJwt(authToken!);
final nickname = payload["nickname"] ?? "";
final inputEmail = data["inputEmail"];
final inputPassword = data["inputPassword"];
final userBox = await Hive.openBox("rsi_account_data");
if (inputEmail != null && inputEmail != "") {
await userBox.put("account_email", inputEmail);
}
state = state.copyWith(
nickname: nickname,
avatarUrl: avatarUrl,
authToken: authToken,
webToken: webToken,
releaseInfo: releaseInfo,
libraryData: libraryData,
);
if (isDeviceSupportWinHello) {
if (await userBox.get("enable", defaultValue: true)) {
if (inputEmail != null &&
inputEmail != "" &&
inputPassword != null &&
inputPassword != "") {
if (!context.mounted) return;
final ok = await showConfirmDialogs(
context,
S.current.home_action_q_auto_password_fill_prompt,
Text(S.current.home_login_info_password_encryption_notice));
if (ok == true) {
if (await _localAuth.authenticate(
localizedReason:
S.current.home_login_info_enter_pin_to_encrypt) ==
true) {
await _savePwd(inputEmail, inputPassword);
}
} else {
await userBox.put("enable", false);
}
}
}
}
final buildInfoFile =
File("${homeState.scInstalledPath}\\build_manifest.id");
if (await buildInfoFile.exists()) {
final buildInfo =
json.decode(await buildInfoFile.readAsString())["Data"];
dPrint("buildInfo ======= $buildInfo");
if (releaseInfo?["versionLabel"] != null &&
buildInfo["RequestedP4ChangeNum"] != null) {
@ -197,16 +230,18 @@ class HomeGameLoginUIModel extends _$HomeGameLoginUIModel {
};
final executable = state.releaseInfo?["executable"];
final launchOptions = state.releaseInfo?["launchOptions"];
// dPrint("----------launch data ====== -----------\n$launchData");
// dPrint(
// "----------executable data ====== -----------\n${homeState.scInstalledPath}\\$executable $launchOptions");
dPrint("----------launch data ====== -----------\n$launchData");
dPrint(
"----------executable data ====== -----------\n${homeState.scInstalledPath}\\$executable $launchOptions");
final launchFile = File("${homeState.scInstalledPath}\\loginData.json");
if (await launchFile.exists()) {
await launchFile.delete();
}
await launchFile.create();
await launchFile.writeAsString(json.encode(launchData));
await Future.delayed(const Duration(seconds: 1));
await Future.delayed(const Duration(seconds: 3));
final processorAffinity = await SystemHelper.getCpuAffinity();
final homeUIModel = ref.read(homeUIModelProvider.notifier);
if (!context.mounted) return;
@ -224,7 +259,40 @@ class HomeGameLoginUIModel extends _$HomeGameLoginUIModel {
String getChannelID(String installPath) {
if (installPath.endsWith("\\LIVE")) {
return "LIVE";
} else if (installPath.endsWith("\\PTU")) {
return "PTU";
} else if (installPath.endsWith("\\EPTU")) {
return "EPTU";
}
return "PTU";
return "LIVE";
}
_savePwd(String inputEmail, String inputPassword) async {
final algorithm = AesGcm.with256bits();
final secretKey = await algorithm.newSecretKey();
final nonce = algorithm.newNonce();
final secretBox = await algorithm.encrypt(utf8.encode(inputPassword),
secretKey: secretKey, nonce: nonce);
await algorithm.decrypt(
SecretBox(secretBox.cipherText,
nonce: secretBox.nonce, mac: secretBox.mac),
secretKey: secretKey);
final pwdEncrypted = base64.encode(secretBox.cipherText);
final userBox = await Hive.openBox("rsi_account_data");
await userBox.put("account_email", inputEmail);
await userBox.put("account_pwd_encrypted", pwdEncrypted);
await userBox.put("nonce", base64.encode(secretBox.nonce));
await userBox.put("mac", base64.encode(secretBox.mac.bytes));
final secretKeyStr = base64.encode((await secretKey.extractBytes()));
Win32Credentials.write(
credentialName: "SCToolbox_RSI_Account_secret",
userName: inputEmail,
password: secretKeyStr);
}
}

View File

@ -22,13 +22,10 @@ mixin _$HomeGameLoginState {
String? get authToken => throw _privateConstructorUsedError;
String? get webToken => throw _privateConstructorUsedError;
Map<dynamic, dynamic>? get releaseInfo => throw _privateConstructorUsedError;
RsiGameLibraryData? get libraryData => throw _privateConstructorUsedError;
String? get installPath => throw _privateConstructorUsedError;
bool? get isDeviceSupportWinHello => throw _privateConstructorUsedError;
/// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
$HomeGameLoginStateCopyWith<HomeGameLoginState> get copyWith =>
throw _privateConstructorUsedError;
}
@ -46,7 +43,6 @@ abstract class $HomeGameLoginStateCopyWith<$Res> {
String? authToken,
String? webToken,
Map<dynamic, dynamic>? releaseInfo,
RsiGameLibraryData? libraryData,
String? installPath,
bool? isDeviceSupportWinHello});
}
@ -61,8 +57,6 @@ class _$HomeGameLoginStateCopyWithImpl<$Res, $Val extends HomeGameLoginState>
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -72,7 +66,6 @@ class _$HomeGameLoginStateCopyWithImpl<$Res, $Val extends HomeGameLoginState>
Object? authToken = freezed,
Object? webToken = freezed,
Object? releaseInfo = freezed,
Object? libraryData = freezed,
Object? installPath = freezed,
Object? isDeviceSupportWinHello = freezed,
}) {
@ -101,10 +94,6 @@ class _$HomeGameLoginStateCopyWithImpl<$Res, $Val extends HomeGameLoginState>
? _value.releaseInfo
: releaseInfo // ignore: cast_nullable_to_non_nullable
as Map<dynamic, dynamic>?,
libraryData: freezed == libraryData
? _value.libraryData
: libraryData // ignore: cast_nullable_to_non_nullable
as RsiGameLibraryData?,
installPath: freezed == installPath
? _value.installPath
: installPath // ignore: cast_nullable_to_non_nullable
@ -132,7 +121,6 @@ abstract class _$$LoginStatusImplCopyWith<$Res>
String? authToken,
String? webToken,
Map<dynamic, dynamic>? releaseInfo,
RsiGameLibraryData? libraryData,
String? installPath,
bool? isDeviceSupportWinHello});
}
@ -145,8 +133,6 @@ class __$$LoginStatusImplCopyWithImpl<$Res>
_$LoginStatusImpl _value, $Res Function(_$LoginStatusImpl) _then)
: super(_value, _then);
/// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -156,7 +142,6 @@ class __$$LoginStatusImplCopyWithImpl<$Res>
Object? authToken = freezed,
Object? webToken = freezed,
Object? releaseInfo = freezed,
Object? libraryData = freezed,
Object? installPath = freezed,
Object? isDeviceSupportWinHello = freezed,
}) {
@ -185,10 +170,6 @@ class __$$LoginStatusImplCopyWithImpl<$Res>
? _value._releaseInfo
: releaseInfo // ignore: cast_nullable_to_non_nullable
as Map<dynamic, dynamic>?,
libraryData: freezed == libraryData
? _value.libraryData
: libraryData // ignore: cast_nullable_to_non_nullable
as RsiGameLibraryData?,
installPath: freezed == installPath
? _value.installPath
: installPath // ignore: cast_nullable_to_non_nullable
@ -211,7 +192,6 @@ class _$LoginStatusImpl implements _LoginStatus {
this.authToken,
this.webToken,
final Map<dynamic, dynamic>? releaseInfo,
this.libraryData,
this.installPath,
this.isDeviceSupportWinHello})
: _releaseInfo = releaseInfo;
@ -236,8 +216,6 @@ class _$LoginStatusImpl implements _LoginStatus {
return EqualUnmodifiableMapView(value);
}
@override
final RsiGameLibraryData? libraryData;
@override
final String? installPath;
@override
@ -245,7 +223,7 @@ class _$LoginStatusImpl implements _LoginStatus {
@override
String toString() {
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, libraryData: $libraryData, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)';
return 'HomeGameLoginState(loginStatus: $loginStatus, nickname: $nickname, avatarUrl: $avatarUrl, authToken: $authToken, webToken: $webToken, releaseInfo: $releaseInfo, installPath: $installPath, isDeviceSupportWinHello: $isDeviceSupportWinHello)';
}
@override
@ -265,8 +243,6 @@ class _$LoginStatusImpl implements _LoginStatus {
other.webToken == webToken) &&
const DeepCollectionEquality()
.equals(other._releaseInfo, _releaseInfo) &&
(identical(other.libraryData, libraryData) ||
other.libraryData == libraryData) &&
(identical(other.installPath, installPath) ||
other.installPath == installPath) &&
(identical(
@ -283,13 +259,10 @@ class _$LoginStatusImpl implements _LoginStatus {
authToken,
webToken,
const DeepCollectionEquality().hash(_releaseInfo),
libraryData,
installPath,
isDeviceSupportWinHello);
/// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$LoginStatusImplCopyWith<_$LoginStatusImpl> get copyWith =>
@ -304,7 +277,6 @@ abstract class _LoginStatus implements HomeGameLoginState {
final String? authToken,
final String? webToken,
final Map<dynamic, dynamic>? releaseInfo,
final RsiGameLibraryData? libraryData,
final String? installPath,
final bool? isDeviceSupportWinHello}) = _$LoginStatusImpl;
@ -321,16 +293,11 @@ abstract class _LoginStatus implements HomeGameLoginState {
@override
Map<dynamic, dynamic>? get releaseInfo;
@override
RsiGameLibraryData? get libraryData;
@override
String? get installPath;
@override
bool? get isDeviceSupportWinHello;
/// Create a copy of HomeGameLoginState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
_$$LoginStatusImplCopyWith<_$LoginStatusImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@ -7,7 +7,7 @@ part of 'home_game_login_dialog_ui_model.dart';
// **************************************************************************
String _$homeGameLoginUIModelHash() =>
r'85533839693681a697ea7e0b5de9ac766a46d41e';
r'108812122298cf826ee57ecad3e519b1dc3fd6ce';
/// See also [HomeGameLoginUIModel].
@ProviderFor(HomeGameLoginUIModel)
@ -24,4 +24,4 @@ final homeGameLoginUIModelProvider = AutoDisposeNotifierProvider<
typedef _$HomeGameLoginUIModel = AutoDisposeNotifier<HomeGameLoginState>;
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member

View File

@ -37,8 +37,7 @@ class HomeMdContentDialogUI extends HookConsumerWidget {
actions: [
FilledButton(
child: Padding(
padding:
const EdgeInsets.only(left: 8, right: 8, top: 2, bottom: 2),
padding: const EdgeInsets.only(left: 8, right: 8, top: 2, bottom: 2),
child: Text(S.current.action_close),
),
onPressed: () {
@ -53,4 +52,4 @@ class HomeMdContentDialogUI extends HookConsumerWidget {
final r = await RSHttp.getText(url);
return r;
}
}
}

View File

@ -105,7 +105,7 @@ class HomeDownloaderUI extends HookConsumerWidget {
decoration: BoxDecoration(
color: FluentTheme.of(context)
.cardColor
.withValues(alpha: .06),
.withOpacity(.06),
borderRadius: BorderRadius.circular(7),
),
child: Row(
@ -232,7 +232,7 @@ class HomeDownloaderUI extends HookConsumerWidget {
itemCount: model.getTasksLen(),
)),
Container(
color: FluentTheme.of(context).cardColor.withValues(alpha: .06),
color: FluentTheme.of(context).cardColor.withOpacity(.06),
child: Padding(
padding: const EdgeInsets.only(left: 12, bottom: 3, top: 3),
child: Row(

View File

@ -5,7 +5,7 @@ import 'package:aria2/aria2.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter/services.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hive_ce/hive.dart';
import 'package:hive/hive.dart';
import 'package:intl/intl.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:starcitizen_doctor/common/helper/system_helper.dart';
@ -255,7 +255,7 @@ class HomeDownloaderUIModel extends _$HomeDownloaderUIModel {
S.current.downloader_info_p2p_network_note,
style: TextStyle(
fontSize: 14,
color: Colors.white.withValues(alpha: .6),
color: Colors.white.withOpacity(.6),
),
),
const SizedBox(height: 24),
@ -266,8 +266,7 @@ class HomeDownloaderUIModel extends _$HomeDownloaderUIModel {
TextFormBox(
placeholder: "1、100k、10m、0",
controller: upCtrl,
placeholderStyle:
TextStyle(color: Colors.white.withValues(alpha: .6)),
placeholderStyle: TextStyle(color: Colors.white.withOpacity(.6)),
inputFormatters: [ifr],
),
const SizedBox(height: 12),
@ -276,8 +275,7 @@ class HomeDownloaderUIModel extends _$HomeDownloaderUIModel {
TextFormBox(
placeholder: "1、100k、10m、0",
controller: downCtrl,
placeholderStyle:
TextStyle(color: Colors.white.withValues(alpha: .6)),
placeholderStyle: TextStyle(color: Colors.white.withOpacity(.6)),
inputFormatters: [ifr],
),
const SizedBox(height: 24),
@ -285,7 +283,7 @@ class HomeDownloaderUIModel extends _$HomeDownloaderUIModel {
S.current.downloader_input_info_p2p_upload_note,
style: TextStyle(
fontSize: 13,
color: Colors.white.withValues(alpha: .6),
color: Colors.white.withOpacity(.6),
),
)
],

View File

@ -21,9 +21,7 @@ mixin _$HomeDownloaderUIState {
List<Aria2Task> get stoppedTasks => throw _privateConstructorUsedError;
Aria2GlobalStat? get globalStat => throw _privateConstructorUsedError;
/// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
$HomeDownloaderUIStateCopyWith<HomeDownloaderUIState> get copyWith =>
throw _privateConstructorUsedError;
}
@ -52,8 +50,6 @@ class _$HomeDownloaderUIStateCopyWithImpl<$Res,
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -108,8 +104,6 @@ class __$$HomeDownloaderUIStateImplCopyWithImpl<$Res>
$Res Function(_$HomeDownloaderUIStateImpl) _then)
: super(_value, _then);
/// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -196,8 +190,8 @@ class _$HomeDownloaderUIStateImpl implements _HomeDownloaderUIState {
.equals(other._waitingTasks, _waitingTasks) &&
const DeepCollectionEquality()
.equals(other._stoppedTasks, _stoppedTasks) &&
(identical(other.globalStat, globalStat) ||
other.globalStat == globalStat));
const DeepCollectionEquality()
.equals(other.globalStat, globalStat));
}
@override
@ -206,11 +200,9 @@ class _$HomeDownloaderUIStateImpl implements _HomeDownloaderUIState {
const DeepCollectionEquality().hash(_tasks),
const DeepCollectionEquality().hash(_waitingTasks),
const DeepCollectionEquality().hash(_stoppedTasks),
globalStat);
const DeepCollectionEquality().hash(globalStat));
/// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$HomeDownloaderUIStateImplCopyWith<_$HomeDownloaderUIStateImpl>
@ -233,11 +225,8 @@ abstract class _HomeDownloaderUIState implements HomeDownloaderUIState {
List<Aria2Task> get stoppedTasks;
@override
Aria2GlobalStat? get globalStat;
/// Create a copy of HomeDownloaderUIState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
_$$HomeDownloaderUIStateImplCopyWith<_$HomeDownloaderUIStateImpl>
get copyWith => throw _privateConstructorUsedError;
}

View File

@ -7,7 +7,7 @@ part of 'home_downloader_ui_model.dart';
// **************************************************************************
String _$homeDownloaderUIModelHash() =>
r'24db9bc498a898750c5075e08a9a6c3af6ff9647';
r'ece2e6da4576b945ead5767aea2ccacf5e3e17aa';
/// See also [HomeDownloaderUIModel].
@ProviderFor(HomeDownloaderUIModel)
@ -24,4 +24,4 @@ final homeDownloaderUIModelProvider = AutoDisposeNotifierProvider<
typedef _$HomeDownloaderUIModel = AutoDisposeNotifier<HomeDownloaderUIState>;
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member

View File

@ -3,7 +3,6 @@ import 'package:flutter/scheduler.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_tilt/flutter_tilt.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:starcitizen_doctor/api/analytics.dart';
import 'package:starcitizen_doctor/common/helper/log_helper.dart';
import 'package:starcitizen_doctor/common/helper/system_helper.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
@ -23,7 +22,6 @@ class HomeGameDoctorUI extends HookConsumerWidget {
final model = ref.read(homeGameDoctorUIModelProvider.notifier);
useEffect(() {
AnalyticsApi.touch("auto_scan_issues");
SchedulerBinding.instance.addPostFrameCallback((timeStamp) {
dPrint("HomeGameDoctorUI useEffect doCheck timeStamp === $timeStamp");
model.doCheck(context);
@ -223,7 +221,7 @@ class HomeGameDoctorUI extends HookConsumerWidget {
errorNames[item.key]?.value ??
S.current.doctor_info_result_no_solution),
style: TextStyle(
fontSize: 14, color: Colors.white.withValues(alpha: .7)),
fontSize: 14, color: Colors.white.withOpacity(.7)),
),
],
),
@ -264,8 +262,7 @@ class HomeGameDoctorUI extends HookConsumerWidget {
Text(
item.value,
style: TextStyle(
fontSize: 14,
color: Colors.white.withValues(alpha: .7)),
fontSize: 14, color: Colors.white.withOpacity(.7)),
),
],
),

View File

@ -103,7 +103,7 @@ class HomeGameDoctorUIModel extends _$HomeGameDoctorUIModel {
showToast(context, S.current.doctor_action_result_redirect_warning);
await Future.delayed(const Duration(milliseconds: 300));
launchUrlString(
"https://jingyan.baidu.com/article/59703552a318a08fc0074021.html");
"https://btfy.eu.org/?q=5L+u5pS5d2luZG93c+eUqOaIt+WQjeS7juS4reaWh+WIsOiLseaWhw==");
break;
default:
showToast(context, S.current.doctor_action_result_issue_not_supported);
@ -129,7 +129,7 @@ class HomeGameDoctorUIModel extends _$HomeGameDoctorUIModel {
final scInstalledPath = homeState.scInstalledPath!;
final checkResult = <MapEntry<String, String>>[];
// for debug
// TODO for debug
// checkResult?.add(MapEntry("unSupport_system", "android"));
// checkResult?.add(MapEntry("nvme_PhysicalBytes", "C"));
// checkResult?.add(MapEntry("no_live_path", ""));
@ -169,7 +169,7 @@ class HomeGameDoctorUIModel extends _$HomeGameDoctorUIModel {
if (info != null) {
if (info.key != "_") {
checkResult.add(MapEntry(
S.current.doctor_action_info_game_abnormal_exit(info.key),
S.current.doctor_action_info_game_abnormal_exit(info..key),
info.value));
} else {
checkResult.add(MapEntry(

View File

@ -23,9 +23,7 @@ mixin _$HomeGameDoctorState {
List<MapEntry<String, String>>? get checkResult =>
throw _privateConstructorUsedError;
/// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
$HomeGameDoctorStateCopyWith<HomeGameDoctorState> get copyWith =>
throw _privateConstructorUsedError;
}
@ -54,8 +52,6 @@ class _$HomeGameDoctorStateCopyWithImpl<$Res, $Val extends HomeGameDoctorState>
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -114,8 +110,6 @@ class __$$HomeGameDoctorStateImplCopyWithImpl<$Res>
$Res Function(_$HomeGameDoctorStateImpl) _then)
: super(_value, _then);
/// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -214,9 +208,7 @@ class _$HomeGameDoctorStateImpl implements _HomeGameDoctorState {
isFixingString,
const DeepCollectionEquality().hash(_checkResult));
/// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$HomeGameDoctorStateImplCopyWith<_$HomeGameDoctorStateImpl> get copyWith =>
@ -243,11 +235,8 @@ abstract class _HomeGameDoctorState implements HomeGameDoctorState {
String get isFixingString;
@override
List<MapEntry<String, String>>? get checkResult;
/// Create a copy of HomeGameDoctorState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
_$$HomeGameDoctorStateImplCopyWith<_$HomeGameDoctorStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@ -7,7 +7,7 @@ part of 'game_doctor_ui_model.dart';
// **************************************************************************
String _$homeGameDoctorUIModelHash() =>
r'b69a19a937ca375214a7c7e73b8288f577265625';
r'b4132559510e3e59b1e2e330d9327ff8790df461';
/// See also [HomeGameDoctorUIModel].
@ProviderFor(HomeGameDoctorUIModel)
@ -24,4 +24,4 @@ final homeGameDoctorUIModelProvider = AutoDisposeNotifierProvider<
typedef _$HomeGameDoctorUIModel = AutoDisposeNotifier<HomeGameDoctorState>;
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member

View File

@ -1,24 +1,19 @@
import 'package:card_swiper/card_swiper.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:flutter_tilt/flutter_tilt.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:go_router/go_router.dart';
import 'package:hive_ce/hive.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:starcitizen_doctor/api/analytics.dart';
import 'package:starcitizen_doctor/generated/no_l10n_strings.dart';
import 'package:starcitizen_doctor/ui/guide/guide_ui.dart';
import 'package:starcitizen_doctor/ui/tools/tools_ui_model.dart';
import 'package:starcitizen_doctor/common/helper/system_helper.dart';
import 'package:starcitizen_doctor/widgets/widgets.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'dialogs/home_countdown_dialog_ui.dart';
import 'dialogs/home_md_content_dialog_ui.dart';
import 'home_ui_model.dart';
import 'input_method/input_method_dialog_ui.dart';
import 'localization/localization_dialog_ui.dart';
import 'localization/localization_ui_model.dart';
@ -30,12 +25,6 @@ class HomeUI extends HookConsumerWidget {
final homeState = ref.watch(homeUIModelProvider);
final model = ref.watch(homeUIModelProvider.notifier);
ref.watch(localizationUIModelProvider);
useEffect(() {
_checkGuide(context, model);
return null;
}, const []);
return Stack(
children: [
Center(
@ -55,7 +44,9 @@ class HomeUI extends HookConsumerWidget {
child: Text(S.current.doctor_action_view_details),
onPressed: () => _showPlacard(context, homeState),
),
onClose: homeState.appPlacardData?.alwaysShow == true ? null : () => model.closePlacard(),
onClose: homeState.appPlacardData?.alwaysShow == true
? null
: () => model.closePlacard(),
),
const SizedBox(height: 6),
],
@ -86,7 +77,8 @@ class HomeUI extends HookConsumerWidget {
);
}
List<Widget> makeIndex(BuildContext context, HomeUIModel model, HomeUIModelState homeState, WidgetRef ref) {
List<Widget> makeIndex(BuildContext context, HomeUIModel model,
HomeUIModelState homeState, WidgetRef ref) {
double width = 280;
return [
Stack(
@ -152,33 +144,29 @@ class HomeUI extends HookConsumerWidget {
onChanged: model.onChangeInstallPath,
),
),
if (S.current.app_language_code == NoL10n.langCodeZhCn) ...[
const SizedBox(width: 12),
Button(
onPressed: homeState.webLocalizationVersionsData == null ? null : () => model.launchRSI(context),
style: homeState.isCurGameRunning
? null
: ButtonStyle(
backgroundColor: WidgetStateProperty.resolveWith(_getRunButtonColor),
),
child: Padding(
padding: const EdgeInsets.all(6),
child: Icon(
homeState.isCurGameRunning ? FluentIcons.stop_solid : FluentIcons.play_solid,
color: homeState.isCurGameRunning ? Colors.red.withValues(alpha: .8) : Colors.white,
),
)),
],
const SizedBox(width: 12),
Button(
onPressed: () => _checkAndGoInputMethod(context, homeState, model, ref),
style: ButtonStyle(
backgroundColor: WidgetStateProperty.resolveWith((_) => Colors.blue),
),
child: Padding(
padding: const EdgeInsets.all(6),
child: Icon(FluentIcons.keyboard_classic),
onPressed: homeState.webLocalizationVersionsData == null
? null
: () => model.launchRSI(context),
child: Padding(
padding: const EdgeInsets.all(6),
child: Icon(
homeState.isCurGameRunning
? FluentIcons.stop_solid
: FluentIcons.play,
color: homeState.isCurGameRunning
? Colors.red.withOpacity(.8)
: null,
),
)),
const SizedBox(width: 12),
Button(
child: const Padding(
padding: EdgeInsets.all(6),
child: Icon(FluentIcons.folder_open),
),
onPressed: () => SystemHelper.openDir(homeState.scInstalledPath),
),
const SizedBox(width: 12),
Button(
@ -197,7 +185,8 @@ class HomeUI extends HookConsumerWidget {
];
}
Widget makeLeftColumn(BuildContext context, HomeUIModel model, double width, HomeUIModelState homeState) {
Widget makeLeftColumn(BuildContext context, HomeUIModel model, double width,
HomeUIModelState homeState) {
return Stack(
children: [
Column(
@ -205,7 +194,7 @@ class HomeUI extends HookConsumerWidget {
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: FluentTheme.of(context).cardColor.withValues(alpha: .03),
color: FluentTheme.of(context).cardColor.withOpacity(.03),
),
child: Padding(
padding: const EdgeInsets.all(12),
@ -218,10 +207,13 @@ class HomeUI extends HookConsumerWidget {
colorFilter: makeSvgColor(Colors.white),
height: 18,
),
name: S.current.home_action_star_citizen_website_localization,
webTitle: S.current.home_action_star_citizen_website_localization,
name: S.current
.home_action_star_citizen_website_localization,
webTitle: S.current
.home_action_star_citizen_website_localization,
webURL: "https://robertsspaceindustries.com",
info: S.current.home_action_info_roberts_space_industries_origin,
info: S.current
.home_action_info_roberts_space_industries_origin,
useLocalization: true,
width: width,
touchKey: "webLocalization_rsi"),
@ -239,7 +231,8 @@ class HomeUI extends HookConsumerWidget {
name: S.current.home_action_uex_localization,
webTitle: S.current.home_action_uex_localization,
webURL: "https://uexcorp.space/",
info: S.current.home_action_info_mining_refining_trade_calculator,
info: S.current
.home_action_info_mining_refining_trade_calculator,
useLocalization: true,
width: width,
touchKey: "webLocalization_uex"),
@ -255,9 +248,11 @@ class HomeUI extends HookConsumerWidget {
],
),
name: S.current.home_action_dps_calculator_localization,
webTitle: S.current.home_action_dps_calculator_localization,
webTitle:
S.current.home_action_dps_calculator_localization,
webURL: "https://www.erkul.games/live/calculator",
info: S.current.home_action_info_ship_upgrade_damage_value_query,
info: S.current
.home_action_info_ship_upgrade_damage_value_query,
useLocalization: true,
width: width,
touchKey: "webLocalization_dps"),
@ -267,7 +262,8 @@ class HomeUI extends HookConsumerWidget {
Row(
children: [
Button(
child: const FaIcon(FontAwesomeIcons.chrome, size: 18),
child:
const FaIcon(FontAwesomeIcons.chrome, size: 18),
onPressed: () {
launchUrlString(
"https://chrome.google.com/webstore/detail/gocnjckojmledijgmadmacoikibcggja?authuser=0&hl=zh-CN");
@ -283,17 +279,21 @@ class HomeUI extends HookConsumerWidget {
),
const SizedBox(width: 12),
Button(
child: const FaIcon(FontAwesomeIcons.firefoxBrowser, size: 18),
child: const FaIcon(FontAwesomeIcons.firefoxBrowser,
size: 18),
onPressed: () {
launchUrlString("https://addons.mozilla.org/zh-CN/firefox/"
launchUrlString(
"https://addons.mozilla.org/zh-CN/firefox/"
"addon/%E6%98%9F%E9%99%85%E5%85%AC%E6%B0%91%E7%9B%92%E5%AD%90%E6%B5%8F%E8%A7%88%E5%99%A8%E6%8B%93%E5%B1%95/");
},
),
const SizedBox(width: 12),
Button(
child: const FaIcon(FontAwesomeIcons.github, size: 18),
child:
const FaIcon(FontAwesomeIcons.github, size: 18),
onPressed: () {
launchUrlString("https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx");
launchUrlString(
"https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx");
},
),
],
@ -309,8 +309,9 @@ class HomeUI extends HookConsumerWidget {
if (homeState.webLocalizationVersionsData == null)
Positioned.fill(
child: Container(
decoration:
BoxDecoration(color: Colors.black.withValues(alpha: .3), borderRadius: BorderRadius.circular(12)),
decoration: BoxDecoration(
color: Colors.black.withOpacity(.3),
borderRadius: BorderRadius.circular(12)),
child: const Center(
child: ProgressRing(),
),
@ -319,13 +320,16 @@ class HomeUI extends HookConsumerWidget {
);
}
Widget makeNewsCard(BuildContext context, HomeUIModel model, HomeUIModelState homeState) {
Widget makeNewsCard(
BuildContext context, HomeUIModel model, HomeUIModelState homeState) {
return ScrollConfiguration(
behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
child: Container(
width: 316,
height: 386,
decoration: BoxDecoration(color: Colors.white.withValues(alpha: .1), borderRadius: BorderRadius.circular(12)),
decoration: BoxDecoration(
color: Colors.white.withOpacity(.1),
borderRadius: BorderRadius.circular(12)),
child: SingleChildScrollView(
child: Column(
children: [
@ -340,11 +344,12 @@ class HomeUI extends HookConsumerWidget {
),
child: homeState.rssVideoItems == null
? Container(
decoration: BoxDecoration(color: Colors.white.withValues(alpha: .1)),
decoration: BoxDecoration(
color: Colors.white.withOpacity(.1)),
child: makeLoading(context),
)
: Swiper(
itemCount: getMinNumber([homeState.rssVideoItems?.length ?? 0, 6]),
itemCount: homeState.rssVideoItems?.length ?? 0,
itemBuilder: (context, index) {
final item = homeState.rssVideoItems![index];
return GestureDetector(
@ -381,7 +386,8 @@ class HomeUI extends HookConsumerWidget {
}
},
child: Padding(
padding: const EdgeInsets.only(left: 12, right: 12, top: 4, bottom: 4),
padding: const EdgeInsets.only(
left: 12, right: 12, top: 4, bottom: 4),
child: Row(
children: [
getRssIcon(item.link ?? ""),
@ -399,7 +405,7 @@ class HomeUI extends HookConsumerWidget {
Icon(
FluentIcons.chevron_right,
size: 12,
color: Colors.white.withValues(alpha: .4),
color: Colors.white.withOpacity(.4),
)
],
),
@ -431,14 +437,24 @@ class HomeUI extends HookConsumerWidget {
return const FaIcon(FontAwesomeIcons.rss, size: 14);
}
Widget makeIndexActionLists(BuildContext context, HomeUIModel model, HomeUIModelState homeState, WidgetRef ref) {
Widget makeIndexActionLists(BuildContext context, HomeUIModel model,
HomeUIModelState homeState, WidgetRef ref) {
final items = [
_HomeItemData("game_doctor", S.current.home_action_one_click_diagnosis,
S.current.home_action_info_one_click_diagnosis_star_citizen, FluentIcons.auto_deploy_settings),
_HomeItemData("localization", S.current.home_action_localization_management,
S.current.home_action_info_quick_install_localization_resources, FluentIcons.locale_language),
_HomeItemData("performance", S.current.home_action_performance_optimization,
S.current.home_action_info_engine_config_optimization, FluentIcons.process_meta_task),
_HomeItemData(
"game_doctor",
S.current.home_action_one_click_diagnosis,
S.current.home_action_info_one_click_diagnosis_star_citizen,
FluentIcons.auto_deploy_settings),
_HomeItemData(
"localization",
S.current.home_action_localization_management,
S.current.home_action_info_quick_install_localization_resources,
FluentIcons.locale_language),
_HomeItemData(
"performance",
S.current.home_action_performance_optimization,
S.current.home_action_info_engine_config_optimization,
FluentIcons.process_meta_task),
];
return Padding(
padding: const EdgeInsets.all(24),
@ -452,14 +468,14 @@ class HomeUI extends HookConsumerWidget {
final item = items.elementAt(index);
return HoverButton(
onPressed: () => _onMenuTap(context, item.key, homeState, ref),
builder: (BuildContext context, Set<WidgetState> states) {
builder: (BuildContext context, Set<ButtonStates> states) {
return Container(
width: 300,
height: 120,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: states.isHovered
? FluentTheme.of(context).cardColor.withValues(alpha: .1)
color: states.isHovering
? FluentTheme.of(context).cardColor.withOpacity(.1)
: FluentTheme.of(context).cardColor,
),
child: Padding(
@ -468,7 +484,8 @@ class HomeUI extends HookConsumerWidget {
children: [
Container(
decoration: BoxDecoration(
color: Colors.white.withValues(alpha: .2), borderRadius: BorderRadius.circular(1000)),
color: Colors.white.withOpacity(.2),
borderRadius: BorderRadius.circular(1000)),
child: Padding(
padding: const EdgeInsets.all(12),
child: Icon(
@ -490,15 +507,22 @@ class HomeUI extends HookConsumerWidget {
const SizedBox(height: 4),
Text(
item.infoString,
style: TextStyle(fontSize: 14, color: Colors.white.withValues(alpha: .6)),
style: TextStyle(
fontSize: 14,
color: Colors.white.withOpacity(.6)),
),
],
)),
if (item.key == "localization" && homeState.localizationUpdateInfo != null)
if (item.key == "localization" &&
homeState.localizationUpdateInfo != null)
Container(
padding: const EdgeInsets.only(top: 3, bottom: 3, left: 8, right: 8),
decoration: BoxDecoration(color: Colors.red, borderRadius: BorderRadius.circular(12)),
child: Text(homeState.localizationUpdateInfo?.key ?? " "),
padding: const EdgeInsets.only(
top: 3, bottom: 3, left: 8, right: 8),
decoration: BoxDecoration(
color: Colors.red,
borderRadius: BorderRadius.circular(12)),
child: Text(
homeState.localizationUpdateInfo?.key ?? " "),
),
const SizedBox(width: 12),
const Icon(
@ -562,7 +586,9 @@ class HomeUI extends HookConsumerWidget {
child: Text(
info,
maxLines: 1,
style: TextStyle(fontSize: 12, color: Colors.white.withValues(alpha: .6)),
style: TextStyle(
fontSize: 12,
color: Colors.white.withOpacity(.6)),
),
)
],
@ -572,7 +598,7 @@ class HomeUI extends HookConsumerWidget {
Icon(
FluentIcons.chevron_right,
size: 14,
color: Colors.white.withValues(alpha: .6),
color: Colors.white.withOpacity(.6),
)
],
),
@ -582,10 +608,12 @@ class HomeUI extends HookConsumerWidget {
);
}
Widget makeGameStatusCard(BuildContext context, HomeUIModel model, double width, HomeUIModelState homeState) {
Widget makeGameStatusCard(BuildContext context, HomeUIModel model,
double width, HomeUIModelState homeState) {
final statusCnName = {
"Platform": S.current.home_action_rsi_status_platform,
"Persistent Universe": S.current.home_action_rsi_status_persistent_universe,
"Persistent Universe":
S.current.home_action_rsi_status_persistent_universe,
"Electronic Access": S.current.home_action_rsi_status_electronic_access,
"Arena Commander": S.current.home_action_rsi_status_arena_commander
};
@ -596,7 +624,9 @@ class HomeUI extends HookConsumerWidget {
child: GestureDetector(
onTap: () {
model.goWebView(
context, S.current.home_action_rsi_status_rsi_server_status, "https://status.robertsspaceindustries.com/",
context,
S.current.home_action_rsi_status_rsi_server_status,
"https://status.robertsspaceindustries.com/",
useLocalization: true);
},
child: Container(
@ -622,7 +652,9 @@ class HomeUI extends HookConsumerWidget {
child: Center(
child: Icon(
FontAwesomeIcons.solidCircle,
color: model.isRSIServerStatusOK(item) ? Colors.green : Colors.red,
color: model.isRSIServerStatusOK(item)
? Colors.green
: Colors.red,
size: 12,
),
),
@ -637,7 +669,7 @@ class HomeUI extends HookConsumerWidget {
Icon(
FluentIcons.chevron_right,
size: 12,
color: Colors.white.withValues(alpha: .4),
color: Colors.white.withOpacity(.4),
)
],
)
@ -648,7 +680,8 @@ class HomeUI extends HookConsumerWidget {
);
}
Widget makeActivityBanner(BuildContext context, HomeUIModel model, double width, HomeUIModelState homeState) {
Widget makeActivityBanner(BuildContext context, HomeUIModel model,
double width, HomeUIModelState homeState) {
return Tilt(
borderRadius: BorderRadius.circular(12),
shadowConfig: const ShadowConfig(disable: true),
@ -658,7 +691,8 @@ class HomeUI extends HookConsumerWidget {
width: width + 24,
decoration: BoxDecoration(color: FluentTheme.of(context).cardColor),
child: Padding(
padding: const EdgeInsets.only(left: 12, right: 12, top: 8, bottom: 8),
padding:
const EdgeInsets.only(left: 12, right: 12, top: 8, bottom: 8),
child: (homeState.countdownFestivalListData == null)
? SizedBox(
width: width,
@ -671,11 +705,12 @@ class HomeUI extends HookConsumerWidget {
width: width,
height: 62,
child: Swiper(
itemCount: getMinNumber([homeState.countdownFestivalListData!.length, 6]),
itemCount: homeState.countdownFestivalListData!.length,
autoplay: true,
autoplayDelay: 5000,
itemBuilder: (context, index) {
final item = homeState.countdownFestivalListData![index];
final item =
homeState.countdownFestivalListData![index];
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
@ -698,7 +733,9 @@ class HomeUI extends HookConsumerWidget {
),
const SizedBox(height: 3),
CountdownTimeText(
targetTime: DateTime.fromMillisecondsSinceEpoch(item.time ?? 0),
targetTime:
DateTime.fromMillisecondsSinceEpoch(
item.time ?? 0),
),
],
),
@ -706,7 +743,7 @@ class HomeUI extends HookConsumerWidget {
Icon(
FluentIcons.chevron_right,
size: 14,
color: Colors.white.withValues(alpha: .6),
color: Colors.white.withOpacity(.6),
)
],
);
@ -728,7 +765,8 @@ class HomeUI extends HookConsumerWidget {
context: context,
builder: (context) {
return HomeMdContentDialogUI(
title: homeState.appPlacardData?.title ?? S.current.home_announcement_details,
title: homeState.appPlacardData?.title ??
S.current.home_announcement_details,
url: homeState.appPlacardData?.link,
);
});
@ -737,100 +775,32 @@ class HomeUI extends HookConsumerWidget {
}
_onTapFestival(BuildContext context) {
showDialog(context: context, builder: (context) => const HomeCountdownDialogUI());
showDialog(
context: context, builder: (context) => const HomeCountdownDialogUI());
}
Future<void> _onMenuTap(BuildContext context, String key, HomeUIModelState homeState, WidgetRef ref) async {
String gameInstallReqInfo = S.current.home_action_info_valid_install_location_required;
_onMenuTap(BuildContext context, String key, HomeUIModelState homeState,
WidgetRef ref) async {
String gameInstallReqInfo =
S.current.home_action_info_valid_install_location_required;
switch (key) {
case "localization":
if (homeState.scInstalledPath == "not_install") {
ToolsUIModel.rsiEnhance(context, showNotGameInstallMsg: true);
showToast(context, gameInstallReqInfo);
break;
}
final model = ref.watch(homeUIModelProvider.notifier);
model.checkLocalizationUpdate();
await showDialog(
context: context,
dismissWithEsc: false,
builder: (BuildContext context) => const LocalizationDialogUI(),
);
context: context,
dismissWithEsc: false,
builder: (BuildContext context) => const LocalizationDialogUI());
model.checkLocalizationUpdate(skipReload: true);
break;
case "performance":
if (homeState.scInstalledPath == "not_install") {
showToast(context, gameInstallReqInfo);
break;
}
context.push("/index/$key");
break;
default:
context.push("/index/$key");
}
}
Color? _getRunButtonColor(Set<WidgetState> states) {
if (states.isPressed) {
return const Color.fromRGBO(49, 227, 88, .5);
}
if (states.isPressed) {
return const Color.fromRGBO(47, 213, 84, 1.0);
}
return const Color.fromRGBO(49, 227, 88, .8);
}
Future _checkGuide(BuildContext context, HomeUIModel model) async {
final appConf = await Hive.openBox("app_conf");
final guideVersion = appConf.get("guide_version", defaultValue: 0);
if (guideVersion < GuideUI.version) {
await Future.delayed(Duration(milliseconds: 200));
if (!context.mounted) return;
await context.push("/guide");
await model.reScanPath();
await model.checkLocalizationUpdate();
return;
}
}
void _checkAndGoInputMethod(
BuildContext context, HomeUIModelState homeState, HomeUIModel model, WidgetRef ref) async {
final localizationState = ref.read(localizationUIModelProvider);
if (localizationState.communityInputMethodLanguageData == null) {
showToast(context, S.current.input_method_feature_maintenance);
return;
}
if (localizationState.installedCommunityInputMethodSupportVersion == null) {
final userOK = await showConfirmDialogs(context, S.current.input_method_community_input_method_not_installed,
Text(S.current.input_method_install_community_input_method_prompt));
if (userOK) {
if (!context.mounted) return;
() async {
await _onMenuTap(context, 'localization', homeState, ref);
final localizationState = ref.read(localizationUIModelProvider);
if (localizationState.installedCommunityInputMethodSupportVersion != null) {
await Future.delayed(Duration(milliseconds: 300));
if (!context.mounted) return;
await _goInputMethod(context, model);
return;
}
}();
await Future.delayed(Duration(milliseconds: 300));
final localizationModel = ref.read(localizationUIModelProvider.notifier);
if (!context.mounted) return;
localizationModel.checkReinstall(context);
}
return;
}
await _goInputMethod(context, model);
}
Future<void> _goInputMethod(BuildContext context, HomeUIModel model) async {
await showDialog(
context: context,
builder: (context) => const InputMethodDialogUI(),
);
}
}
class _HomeItemData {

View File

@ -6,17 +6,16 @@ import 'package:dart_rss/domain/rss_item.dart';
import 'package:desktop_webview_window/desktop_webview_window.dart';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hive_ce/hive.dart';
import 'package:hive/hive.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import 'package:starcitizen_doctor/api/analytics.dart';
import 'package:starcitizen_doctor/api/api.dart';
import 'package:starcitizen_doctor/api/rss.dart';
import 'package:starcitizen_doctor/common/conf/conf.dart';
import 'package:starcitizen_doctor/common/conf/const_conf.dart';
import 'package:starcitizen_doctor/common/conf/url_conf.dart';
import 'package:starcitizen_doctor/common/helper/log_helper.dart';
import 'package:starcitizen_doctor/common/helper/system_helper.dart';
import 'package:starcitizen_doctor/common/io/rs_http.dart';
import 'package:starcitizen_doctor/common/rust/api/win32_api.dart' as win32;
import 'package:starcitizen_doctor/common/utils/async.dart';
import 'package:starcitizen_doctor/common/utils/base_utils.dart';
import 'package:starcitizen_doctor/common/utils/log.dart';
@ -28,6 +27,7 @@ import 'package:starcitizen_doctor/ui/home/dialogs/home_game_login_dialog_ui.dar
import 'package:url_launcher/url_launcher_string.dart';
import 'package:html/parser.dart' as html;
import 'package:html/dom.dart' as html_dom;
import 'package:windows_ui/windows_ui.dart';
import '../webview/webview.dart';
import 'localization/localization_ui_model.dart';
@ -86,7 +86,7 @@ class HomeUIModel extends _$HomeUIModel {
return;
}
final scInstallPaths = await SCLoggerHelper.getGameInstallPath(listData,
withVersion: AppConf.gameChannels, checkExists: true);
withVersion: ["LIVE", "PTU", "EPTU"], checkExists: true);
String scInstalledPath = "not_install";
@ -290,14 +290,25 @@ class HomeUIModel extends _$HomeUIModel {
_appUpdateTimer?.cancel();
_appUpdateTimer = null;
//
await win32.sendNotify(
summary: S.current.home_localization_new_version_available,
body:
S.current.home_localization_new_version_installed(updates.first),
appName: S.current.home_title_app_name,
appId: ConstConf.isMSE
? "56575xkeyC.MSE_bsn1nexg8e4qe!starcitizendoctor"
: "{6D809377-6AF0-444B-8957-A3773F02200E}\\Starcitizen_Doctor\\starcitizen_doctor.exe");
final toastNotifier = ToastNotificationManager.createToastNotifierWithId(
S.current.home_title_app_name);
if (toastNotifier != null) {
final toastContent = ToastNotificationManager.getTemplateContent(
ToastTemplateType.toastText02);
if (toastContent != null) {
final xmlNodeList = toastContent.getElementsByTagName('text');
final title = S.current.home_localization_new_version_available;
final content =
S.current.home_localization_new_version_installed(updates.first);
xmlNodeList.item(0)?.appendChild(toastContent.createTextNode(title));
xmlNodeList
.item(1)
?.appendChild(toastContent.createTextNode(content));
final toastNotification =
ToastNotification.createToastNotification(toastContent);
toastNotifier.show(toastNotification);
}
}
}
}
@ -318,7 +329,7 @@ class HomeUIModel extends _$HomeUIModel {
showDialog(
context: context,
dismissWithEsc: false,
builder: (context) => HomeGameLoginDialogUI(context));
builder: (context) => const HomeGameLoginDialogUI());
} else {
final ok = await showConfirmDialogs(
context,
@ -338,9 +349,6 @@ class HomeUIModel extends _$HomeUIModel {
void onChangeInstallPath(String? value) {
if (value == null) return;
state = state.copyWith(scInstalledPath: value);
ref
.read(localizationUIModelProvider.notifier)
.onChangeGameInstallPath(value);
}
doLaunchGame(

View File

@ -33,9 +33,7 @@ mixin _$HomeUIModelState {
throw _privateConstructorUsedError;
Map<String, bool> get isGameRunning => throw _privateConstructorUsedError;
/// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
$HomeUIModelStateCopyWith<HomeUIModelState> get copyWith =>
throw _privateConstructorUsedError;
}
@ -72,8 +70,6 @@ class _$HomeUIModelStateCopyWithImpl<$Res, $Val extends HomeUIModelState>
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -180,8 +176,6 @@ class __$$HomeUIModelStateImplCopyWithImpl<$Res>
$Res Function(_$HomeUIModelStateImpl) _then)
: super(_value, _then);
/// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
@ -413,9 +407,7 @@ class _$HomeUIModelStateImpl implements _HomeUIModelState {
const DeepCollectionEquality().hash(_countdownFestivalListData),
const DeepCollectionEquality().hash(_isGameRunning));
/// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$HomeUIModelStateImplCopyWith<_$HomeUIModelStateImpl> get copyWith =>
@ -465,11 +457,8 @@ abstract class _HomeUIModelState implements HomeUIModelState {
List<CountdownFestivalItemData>? get countdownFestivalListData;
@override
Map<String, bool> get isGameRunning;
/// Create a copy of HomeUIModelState
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
@JsonKey(ignore: true)
_$$HomeUIModelStateImplCopyWith<_$HomeUIModelStateImpl> get copyWith =>
throw _privateConstructorUsedError;
}

Some files were not shown because too many files have changed in this diff Show More