2022-10-18 22:04:55 +00:00
|
|
|
import patcher from "@lib/patcher";
|
|
|
|
import logger from "@lib/logger";
|
|
|
|
import * as metro from "@metro/filters";
|
|
|
|
import * as common from "@metro/common";
|
2022-10-18 22:59:45 +00:00
|
|
|
import initSettings from "./ui/settings";
|
2022-10-18 22:04:55 +00:00
|
|
|
|
|
|
|
console.log("Hello from Vendetta!");
|
|
|
|
|
|
|
|
try {
|
2022-10-18 22:59:45 +00:00
|
|
|
initSettings();
|
|
|
|
|
2022-10-18 22:04:55 +00:00
|
|
|
window.vendetta = {
|
|
|
|
patcher: patcher,
|
|
|
|
metro: { ...metro, common: common },
|
|
|
|
logger: logger,
|
|
|
|
};
|
|
|
|
|
|
|
|
logger.log("Vendetta is ready!");
|
|
|
|
} catch (e: Error | any) {
|
|
|
|
alert(`Vendetta failed to initialize...\n${e.stack || e.toString()}`);
|
|
|
|
}
|