Skip to content

Commit

Permalink
fix: more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Dec 2, 2024
1 parent 6077654 commit 59d4420
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/dorion-settings/pages/PerformancePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export function PerformancePage() {
}
note={
<>
Detect OBS and Streamlabs OBS and automatically enable streamer mode when they are running. <b>Requires the integrated RPC Server to be enabled (found in the Rich Presence tab).</b>
Detect OBS and Streamlabs OBS and automatically enable streamer mode when they are running. <b>Requires the integrated RPC server and RPC process scanning to be enabled (found in the Rich Presence tab).</b>
</>
}
disabled={!state().rpc_server}
Expand Down
10 changes: 5 additions & 5 deletions plugins/dorion-settings/pages/RPC.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { backendRestartRequired, invoke } from '../../../api/api.js'
import { appName, backendRestartRequired, invoke } from '../../../api/api.js'
import { css, classes } from './RPC.tsx.scss'
import { WarningCard } from '../components/WarningCard.jsx'
import { defaultConfig } from '../util/settings.js'
Expand Down Expand Up @@ -87,7 +87,7 @@ export function RPCPage() {
}, true)
}}
disabled={!settings().rpc_server}
note="Enable this if you want Dorion to scan for and detect games running. This is the most potentially performance-heavy component of RPC."
note={`Enable this if you want ${appName} to scan for running processes and automatically enable streamer mode when they are running.`}
>
Enable Process Scanner
</SwitchItem>
Expand All @@ -102,7 +102,7 @@ export function RPCPage() {
disabled={!settings().rpc_server}
note={
<>
Enable this if you want Dorion to connect to local sockets.
Enable this if you want {appName} to connect to local sockets.
Things such as the <a href="https://github.com/LeonardSSH/vscord">VSCord</a> extension use this method of connection.
</>
}
Expand All @@ -118,7 +118,7 @@ export function RPCPage() {
}, true)
}}
disabled={!settings().rpc_server}
note="Enable this if you want Dorion to accept local websocket connections."
note={`Enable this if you want ${appName} to accept local websocket connections.`}
>
Enable Websocket Connector
</SwitchItem>
Expand All @@ -131,7 +131,7 @@ export function RPCPage() {
}, true)
}}
disabled={!settings().rpc_server}
note="Enable this to allow Dorion to properly handle server invites opened in the browser. Does not work with arRPC."
note={`Enable this to allow ${appName} to properly handle server invites opened in the browser. Does not work with arRPC.`}
>
Enable secondary events
</SwitchItem>
Expand Down
2 changes: 1 addition & 1 deletion plugins/shelteRPC/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { backend, invoke } from '../../api/api.js';
import { backend, invoke } from '../../api/api.js'
import RegisteredGames from './components/RegisteredGames'
import { css, classes } from './index.scss'

Expand Down
12 changes: 12 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ interface DorionSettings {
client_mods: string[];
unread_badge: boolean;
client_plugins: boolean;

tray_icon_enabled: boolean;
proxy_uri: string;

keybinds: Record<string, KeyStruct[]>;
keybinds_enabled: boolean;

// RPC-specific options
rpc_process_scanner: boolean;
rpc_ipc_connector: boolean;
rpc_websocket_connector: boolean;
rpc_secondary_events: boolean;
}

interface DorionTheme {
Expand Down

0 comments on commit 59d4420

Please sign in to comment.