Add Playerbot Characters model setup

This commit is contained in:
Nightwalker743 committed 2026-11-20 16:14:27 -06:00
1 parent 10cfdcf5a2
commit 206d4844c9
16 files changed
+564 -4

No files matched your search

+26
View File
@@ -1710,6 +1710,30 @@ async fn module_save_settings(
.await
}
#[tauri::command]
async fn pbc_connection(
state: State<'_, AppState>,
id: String,
) -> std::result::Result<coa_core::modules::pbc::Setup, UiError> {
let root = path_of(&state, &id)?;
blocking(move || coa_core::modules::pbc::load(&root)).await
}
#[tauri::command]
async fn pbc_save_connection(
state: State<'_, AppState>,
id: String,
update: coa_core::modules::pbc::ConnectionUpdate,
) -> std::result::Result<coa_core::modules::pbc::Setup, UiError> {
let root = path_of(&state, &id)?;
let _guard = BusyGuard::acquire(&state, &id)?;
blocking(move || {
let (dir, _) = install_meta(&root)?;
coa_core::modules::pbc::save(&root, &dir, update)
})
.await
}
#[tauri::command]
async fn all_settings(
state: State<'_, AppState>,
@@ -3217,6 +3241,8 @@ pub fn run() {
repair_server,
module_set_enabled,
module_settings,
pbc_connection,
pbc_save_connection,
module_save_settings,
all_settings,
all_settings_save,