File tree 3 files changed +1
-18
lines changed
packages/app-lib/src/api/profile
3 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,6 @@ fn main() {
151
151
"profile_update_managed_modrinth_version" ,
152
152
"profile_repair_managed_modrinth" ,
153
153
"profile_run" ,
154
- "profile_run_credentials" ,
155
154
"profile_kill" ,
156
155
"profile_edit" ,
157
156
"profile_edit_icon" ,
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
27
27
profile_update_managed_modrinth_version,
28
28
profile_repair_managed_modrinth,
29
29
profile_run,
30
- profile_run_credentials,
31
30
profile_kill,
32
31
profile_edit,
33
32
profile_edit_icon,
@@ -255,20 +254,6 @@ pub async fn profile_run(path: &str) -> Result<ProcessMetadata> {
255
254
Ok ( process)
256
255
}
257
256
258
- // Run Minecraft using a profile using chosen credentials
259
- // Returns the UUID, which can be used to poll
260
- // for the actual Child in the state.
261
- // invoke('plugin:profile|profile_run_credentials', {path, credentials})')
262
- #[ tauri:: command]
263
- pub async fn profile_run_credentials (
264
- path : & str ,
265
- credentials : Credentials ,
266
- ) -> Result < ProcessMetadata > {
267
- let process = profile:: run_credentials ( path, & credentials) . await ?;
268
-
269
- Ok ( process)
270
- }
271
-
272
257
#[ tauri:: command]
273
258
pub async fn profile_kill ( path : & str ) -> Result < ( ) > {
274
259
profile:: kill ( path) . await ?;
Original file line number Diff line number Diff line change @@ -634,10 +634,9 @@ pub async fn run(path: &str) -> crate::Result<ProcessMetadata> {
634
634
}
635
635
636
636
/// Run Minecraft using a profile, and credentials for authentication
637
- /// Returns Arc pointer to RwLock to Child
638
637
#[ tracing:: instrument( skip( credentials) ) ]
639
638
640
- pub async fn run_credentials (
639
+ async fn run_credentials (
641
640
path : & str ,
642
641
credentials : & Credentials ,
643
642
) -> crate :: Result < ProcessMetadata > {
You can’t perform that action at this time.
0 commit comments