mirror of
https://github.com/DeveloperExotic/LegacyCrossPlay.git
synced 2026-07-16 06:31:32 +00:00
20 lines
620 B
JavaScript
20 lines
620 B
JavaScript
/* --------------------------------------------------------------- */
|
|
/* index.js */
|
|
/* --------------------------------------------------------------- */
|
|
process.removeAllListeners("warning");
|
|
process.on("warning", (warning) => {
|
|
if (warning.name === "DeprecationWarning") return;
|
|
console.warn(warning.name, warning.message);
|
|
});
|
|
|
|
const LCEProxy = require("./src/lceproxy");
|
|
|
|
const proxy = new LCEProxy();
|
|
proxy.start();
|
|
|
|
process.on("SIGINT", () => {
|
|
proxy.stop();
|
|
process.exit(0);
|
|
});
|
|
/* --------------------------------------------------------------- */
|