7dc0b1286a
* [Main] Implement error dialog for failed mod loading * [Main] Initialize Vendetta from entry.js
18 lines
No EOL
542 B
JavaScript
18 lines
No EOL
542 B
JavaScript
// This logs in the native logging implementation, e.g. logcat
|
|
console.log("Hello from Vendetta!");
|
|
|
|
(async () => {
|
|
try {
|
|
await (await import("./src/index.ts")).default();
|
|
} catch (ex) {
|
|
const dialog = [
|
|
"Failed to load Vendetta!\n",
|
|
`Build Number: ${nativeModuleProxy.InfoDictionaryManager.Build}`,
|
|
`Vendetta: ${__vendettaVersion}`,
|
|
ex?.stack || ex.toString(),
|
|
].join("\n");
|
|
|
|
alert(dialog);
|
|
console.error(ex?.stack || ex.toString());
|
|
}
|
|
})(); |