@@ -61,41 +61,45 @@ ObsMCLauncher 采用基于 .NET Assembly 的插件系统,支持开发者使用
6161
6262### 插件安装目录
6363
64- 插件安装在启动器运行目录下的 ` plugins ` 文件夹 :
64+ ObsMCLauncher 支持三种插件目录位置(可在设置中配置) :
6565
66- ```
67- ObsMCLauncher.exe 所在目录/plugins/
68- ```
69-
70- 完整路径示例:
66+ 1 . ** 运行目录\OMCL\plugins \* * (默认,便携模式)
67+ ```
68+ 启动器目录\OMCL\plugins\
69+ ```
70+ 示例: ` C:\Program Files\ObsMCLauncher\OMCL\plugins\ `
7171
72- ```
73- H:\projects\ObsMCLauncher\bin\Debug\net8.0-windows\plugins\
74- ```
72+ 2 . ** %APPDATA%\ObsMCLauncher\plugins\* * (系统目录)
73+ ```
74+ C:\Users\[用户名]\AppData\Roaming\ObsMCLauncher\plugins\
75+ ```
7576
76- 或发布后:
77+ 3 . ** 自定义目录 ** (用户指定的任意位置)
7778
78- ```
79- C:\Program Files\ObsMCLauncher\plugins\
80- ```
79+ ** 默认使用运行目录,适合便携使用。** 用户可以在"设置 - 文件存储设置 - 插件目录位置"中更改。
8180
8281### 目录结构
8382
8483```
85- ObsMCLauncher/ # 启动器运行目录
84+ ObsMCLauncher/ # 启动器运行目录
8685├── ObsMCLauncher.exe
87- ├── plugins/ # 插件目录
88- │ ├── example-hello-plugin/ # 插件文件夹
89- │ │ ├── example-hello-plugin.dll # 插件程序集
90- │ │ ├── plugin.json # 插件元数据
91- │ │ ├── icon.png # 插件图标(可选)
92- │ │ ├── config.json # 插件配置(可选,由开发者自定义)
93- │ │ └── data/ # 插件数据(可选,由开发者自定义)
94- │ └── another-plugin/ # 另一个插件
95- │ ├── another-plugin.dll
96- │ ├── plugin.json
97- │ ├── icon.png
98- │ └── settings.json # 插件自定义的配置文件
86+ ├── OMCL/ # 启动器数据目录
87+ │ ├── config/ # 配置文件
88+ │ │ ├── config.json
89+ │ │ └── accounts.json
90+ │ └── plugins/ # 插件目录(默认位置)
91+ │ ├── example-hello-plugin/ # 插件文件夹
92+ │ │ ├── example-hello-plugin.dll # 插件程序集
93+ │ │ ├── plugin.json # 插件元数据
94+ │ │ ├── icon.png # 插件图标(可选)
95+ │ │ ├── config.json # 插件配置(可选,由开发者自定义)
96+ │ │ └── data/ # 插件数据(可选,由开发者自定义)
97+ │ └── another-plugin/ # 另一个插件
98+ │ ├── another-plugin.dll
99+ │ ├── plugin.json
100+ │ ├── icon.png
101+ │ └── settings.json # 插件自定义的配置文件
102+ ├── OMCL.ini # 引导配置文件
99103└── (其他启动器文件)
100104```
101105
@@ -906,7 +910,9 @@ A: 不会,启动器会捕获插件异常并隔离错误,只会禁用有问
906910
907911本文档采用 [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) 许可协议。
908912
909- 插件开发者可以选择任何开源协议发布插件,推荐使用 MIT License。
913+ 插件开发者可以选择任何开源协议发布插件,推荐使用 MIT License 或 GPL-3.0。
914+
915+ **注意**:ObsMCLauncher 本身采用 GPL-3.0 许可证,如果您的插件与启动器深度集成,可能需要考虑使用兼容的许可证。
910916
911917---
912918
0 commit comments