Skip to content

Commit

Permalink
feat: exclude bindings that were removed in 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Jan 16, 2025
1 parent a65a802 commit 66bb521
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions client/routes/customize/versions/nightly.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
import {Binding, BuildBindings, NATIVE_ALL, Version} from '../types';
import { Binding, BuildBindings, NATIVE_ALL, Version } from '../types';

export default (prev: BuildBindings): BuildBindings => ({
...prev,
version: Version.LWJGL340,
alias: Version.Nightly,
byId: {
...prev.byId,
[Binding.SDL]: {
id: Binding.SDL,
title: 'SDL (Simple DirectMedia Layer)',
description: 'A cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL/Direct3D/Metal/Vulkan.',
natives: NATIVE_ALL,
website: 'https://www.libsdl.org/',
export default (prev: BuildBindings): BuildBindings => {
// These bindings where removed in 3.4.0
const {
[Binding.CUDA]: _0,
[Binding.LIBDIVIDE]: _1,
[Binding.MEOW]: _2,
[Binding.OPENVR]: _3,
[Binding.OVR]: _4,
[Binding.SSE]: _5,
[Binding.TOOTLE]: _6,
...bindings340
} = prev.byId;
return {
...prev,
version: Version.LWJGL340,
alias: Version.Nightly,
byId: {
...bindings340,
[Binding.SDL]: {
id: Binding.SDL,
title: 'SDL (Simple DirectMedia Layer)',
description:
'A cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL/Direct3D/Metal/Vulkan.',
natives: NATIVE_ALL,
website: 'https://www.libsdl.org/',
},
},
},
});
};
};

0 comments on commit 66bb521

Please sign in to comment.