Skip to content

Commit 18ea02b

Browse files
committed
[Feat] Rework Application Core & Packet Processor
1 parent e583b31 commit 18ea02b

File tree

338 files changed

+94067
-1298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+94067
-1298
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ information_log.txt*
1717
settings.json
1818
player_registry.json
1919

20+
# Proto
21+
buf.gen.yaml
22+
/scripts/sync-proto.js
23+
/proto-files
24+
/proto/generated
25+
2026
# Vite cache
2127
.vite/
2228
.vite-inspect/

electron.vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export default defineConfig({
1010
externalizeDepsPlugin(),
1111
copy({
1212
targets: [
13-
{ src: 'algo/blueprotobuf.js', dest: 'out/main/algo' },
1413
{ src: 'translations/*.json', dest: 'out/main/translations' },
1514
],
1615
hook: 'writeBundle'
@@ -20,12 +19,13 @@ export default defineConfig({
2019
outDir: 'out/main',
2120
minify: 'esbuild',
2221
sourcemap: false,
22+
target: 'node22',
2323
rollupOptions: {
2424
input: {
2525
index: path.resolve(__dirname, 'src/main/index.ts'),
2626
server: path.resolve(__dirname, 'src/main/server.ts'),
2727
},
28-
external: ['electron', 'child_process', 'fs', 'path', 'net', 'url'],
28+
external: ['electron', 'child_process', 'fs', 'path', 'net', 'url', 'zlib', 'crypto', 'stream'],
2929
output: {
3030
manualChunks: undefined
3131
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175927,4 +175927,4 @@ proto.EDetachMagneticType = {
175927175927
};
175928175928

175929175929
// Export all proto definitions
175930-
export default proto;
175930+
export default proto;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readFileSync } from 'fs';
44
import path from 'path';
55

66
// Read and evaluate the UMD module manually
7-
const blueprotobufCode = readFileSync(path.join(__dirname, 'algo/blueprotobuf.js'), 'utf-8');
7+
const blueprotobufCode = readFileSync(path.join(__dirname, 'proto/blueprotobuf.js'), 'utf-8');
88

99
// Create a context where the UMD module can execute
1010
let pb = null;

0 commit comments

Comments
 (0)