chore: add patching, change fonts
This commit is contained in:
@@ -70,7 +70,7 @@ export const getSkin = async (folder: string) => {
|
||||
};
|
||||
|
||||
export const runUpdater = async (folder: string) => await invoke('run_osu_updater', { folder });
|
||||
export const runOsu = async (folder: string) => await invoke('run_osu', { folder });
|
||||
export const runOsu = async (folder: string, patch: boolean) => await invoke('run_osu', { folder, patch });
|
||||
|
||||
export const getEZPPLauncherUpdateFiles = async (folder: string) => {
|
||||
const result = await invoke('get_ezpp_launcher_update_files', { folder, updateUrl });
|
||||
|
@@ -7,6 +7,7 @@ export const customCursor = writable<boolean>(false);
|
||||
export const cursorSmoothening = writable<boolean>(false);
|
||||
export const cursorSmoothness = writable<number>(180);
|
||||
export const reduceAnimations = writable<boolean>(false);
|
||||
export const patch = writable<boolean>(true);
|
||||
|
||||
export const osuInstallationPath = writable<string>('');
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import { createAudioStore } from '@elron/svelte-audio-store';
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import { type ClassValue, clsx } from 'clsx';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
@@ -93,3 +94,7 @@ export const formatBytes = (bytes: number, decimals = 2) => {
|
||||
|
||||
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))}${sizes[i]}`;
|
||||
};
|
||||
|
||||
export const openURL = async (url: string) => {
|
||||
await invoke('open_url_in_browser', { url });
|
||||
};
|
||||
|
Reference in New Issue
Block a user