chore: add patching, change fonts

This commit is contained in:
2025-07-04 15:36:50 +02:00
parent c63b42cae3
commit 804378e404
11 changed files with 222 additions and 164 deletions

View File

@@ -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 });

View File

@@ -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>('');

View File

@@ -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 });
};