You've already forked AstralRinth
forked from xxxOFFxxx/AstralRinth
* Initial bug fixes * fix compile error on non-mac * Fix even more bugs * Fix more * fix more * fix build * fix build * working basic * removed zip * working functions * merge fixes * fixed loadintg bar bug * changed to one layer deep * forge version numbers * improvements + refactoring * renamed things to fit plugin * fixed bugs * removed println * overrides dont include mrpack * merge * fixes * fixes * fixed deletion * merge errors * force sync before export * removed testing * missed line * removed console log * mac error reverted * incoreclty named helper * added to new register method * review changes * minor changes * moved create pack * renamed function --------- Co-authored-by: Jai A <jaiagr+gpg@pm.me>
18 lines
623 B
JavaScript
18 lines
623 B
JavaScript
/**
|
|
* All theseus API calls return serialized values (both return values and errors);
|
|
* So, for example, addDefaultInstance creates a blank Profile object, where the Rust struct is serialized,
|
|
* and deserialized into a usable JS object.
|
|
*/
|
|
import { invoke } from '@tauri-apps/api/tauri'
|
|
|
|
// Initialize the theseus API state
|
|
// This should be called during the initializion/opening of the launcher
|
|
export async function initialize_state() {
|
|
return await invoke('initialize_state')
|
|
}
|
|
|
|
// Gets active progress bars
|
|
export async function progress_bars_list() {
|
|
return await invoke('plugin:utils|progress_bars_list')
|
|
}
|