From 18a27ebe5e80337076e70d7a98560c9a01b927a4 Mon Sep 17 00:00:00 2001 From: Jd-1206 Date: Sat, 26 Oct 2024 16:42:44 -0400 Subject: [PATCH] engine time! RSDKv3 has plus disabled, dw :) --- README.md | 5 +- app/controls/settings-content.tsx | 27 ----------- app/globals.css | 67 ++++++++++++++++++-------- lib/settings.ts | 2 - pages/v2.tsx | 42 +++++++++++++++++ pages/v3.tsx | 42 +++++++++++++++++ public/lib/Emscripten.js | 75 ++++++++++++++++++++++++++++++ public/lib/RSDKv2.js | 7 +++ public/lib/RSDKv3.js | 11 +++++ public/modules/RSDKv2.js | 1 + public/modules/RSDKv2.wasm | Bin 0 -> 1022604 bytes public/modules/RSDKv3.js | 1 + public/modules/RSDKv3.wasm | Bin 0 -> 1349938 bytes 13 files changed, 230 insertions(+), 50 deletions(-) create mode 100644 pages/v2.tsx create mode 100644 pages/v3.tsx create mode 100644 public/lib/Emscripten.js create mode 100644 public/lib/RSDKv2.js create mode 100644 public/lib/RSDKv3.js create mode 100644 public/modules/RSDKv2.js create mode 100644 public/modules/RSDKv2.wasm create mode 100644 public/modules/RSDKv3.js create mode 100644 public/modules/RSDKv3.wasm diff --git a/README.md b/README.md index f148141..f158f35 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,13 @@ Website source code for RSDK-Library ## Known issues -* Uploading files *might* just hang. This can be caused by having an insufficient amount of disk space available. +* Uploading files *might* just hang. This can be caused by having an insufficient amount of disk space available. Both locally, and in-browser (IDBFS has a limit) ## Building ###### [(You're gonna need node.js for this.)](https://nodejs.org/en/download/package-manager) -##### Simply run this command, and you should be good to go - +##### Simply run these two commands, and you should be good to go - ``` +npm install npm run build ``` diff --git a/app/controls/settings-content.tsx b/app/controls/settings-content.tsx index 8713c0f..61c647a 100644 --- a/app/controls/settings-content.tsx +++ b/app/controls/settings-content.tsx @@ -34,7 +34,6 @@ import { z } from 'zod'; const FormSchema = z.object({ theme: z.enum(['auto', 'light', 'dark']).default('auto').optional(), enablePlus: z.boolean().default(false).optional(), - enableConsole: z.boolean().default(false).optional(), deviceProfile: z.string().default('desktop').optional(), }); @@ -104,7 +103,6 @@ export function SettingsContent() { resolver: zodResolver(FormSchema), defaultValues: { enablePlus: instSettings.enablePlus ?? false, - enableConsole: instSettings.enableConsole ?? false, deviceProfile: instSettings.deviceProfile, }, }); @@ -112,7 +110,6 @@ export function SettingsContent() { const actionSave = (data: z.infer) => { const settingsToSave: Settings.ISettings = { enablePlus: data.enablePlus ?? false, - enableConsole: data.enableConsole ?? false, deviceProfile: data.deviceProfile || 'desktop', }; @@ -153,30 +150,6 @@ export function SettingsContent() { )} /> - ( - -
- Enable Console - - Enables the emscripten console for the engines - -
- - { - field.onChange(checked); - actionSave({ ...form.getValues(), enableConsole: checked }); - }} - /> - -
- )} - /> - + + +
+
+ +
+ + +
+
+
+ +
+