feat: Unity creator settings

This commit is contained in:
2026-06-28 16:48:27 +07:00
parent 387fa18927
commit 27389914c6
14 changed files with 392 additions and 19 deletions
+4
View File
@@ -8,6 +8,7 @@ import type {
import type { SocialSnapshot, UserProfile, UserStatus } from "./types/user";
import type { FavoriteWorldFolder, World, WorldSnapshot } from "./types/world";
import type { Instance } from "./types/instance";
import type { UnityStatus } from "./types/unity";
import type { Avatar } from "./types/avatar";
import type { RepoStats, StoredEntity } from "./types/repository";
import type { AccountSettings, ContentFilterKey, Pending2Fa, RecoveryCode } from "./types/settings";
@@ -91,6 +92,9 @@ export interface IpcRequests {
"config:setGamePath": (p: { gamePath: string | null }) => IpcResult<AppConfig>;
"config:pickGamePath": () => IpcResult<AppConfig>;
"unity:status": () => IpcResult<UnityStatus>;
"unity:install": (url: string) => IpcResult<void>;
"game:status": () => IpcResult<GameStatus>;
"game:launch": () => IpcResult<GameStatus>;
+1
View File
@@ -1,4 +1,5 @@
export interface AppConfig {
version: string;
gamePath: string | null;
detectedGamePath: string | null;
}
+8
View File
@@ -0,0 +1,8 @@
export interface UnityStatus {
hubInstalled: boolean;
editorRoot: string | null;
installedVersions: string[];
requiredVersion: string | null;
installUrl: string | null;
match: "ok" | "missing" | "no-editor" | "unknown";
}