Improved Recovery Mode features generally: - Ability to view and modify saved states while not actually running any additional plugins - Better Recovery Mode banner display - Enter Recovery Mode option in Revenge Settings UI - Fixed freeze detection false positives New APIs: - lib/discord: `disabled` in `DiscordModules.Components.FloatingActionButtonProps` - lib/modules/native/app: new submodule with `reloadApp()` method Fixes: - Use `reloadApp()` instead of `BundleUpdaterManager.reload()`
25 lines
580 B
TypeScript
25 lines
580 B
TypeScript
import { callNativeMethodSync } from '@revenge-mod/modules/native'
|
|
|
|
/**
|
|
* The plugin status.
|
|
*/
|
|
export const PluginStatus = {
|
|
PreIniting: 1 << 0,
|
|
PreInited: 1 << 1,
|
|
Initing: 1 << 2,
|
|
Inited: 1 << 3,
|
|
Starting: 1 << 4,
|
|
Started: 1 << 5,
|
|
Stopping: 1 << 6,
|
|
}
|
|
|
|
const { storageRootPath } = callNativeMethodSync(
|
|
'revenge.plugins.getConstants',
|
|
[],
|
|
)
|
|
|
|
/**
|
|
* Absolute path to per-plugin storage directory.
|
|
*/
|
|
// TODO: is it best to dupe this logic with the native side???
|
|
export const pluginStorageDirFor = (id: string) => `${storageRootPath}/${id}`
|