device info

This commit is contained in:
2025-07-29 16:41:22 +02:00
parent 087fd1e9b3
commit 9e33d5a1d2
9 changed files with 243 additions and 6 deletions

View File

@@ -4,6 +4,8 @@
`nn_<class>_<method>` for functions related to "classes",
`nn_<function>` for static functions,
`nn_<type>_t` for types.
- Get rid of `nn_address`
- Make a lot more stuff const
- Rework to API to be much more future-proof to reduce potential breaking changes.
# Parity with Vanilla OC (only the stuff that makes sense for an emulator)
@@ -13,7 +15,6 @@
- `data` component (with error correction codes and maybe synthesizing audio)
- `redstone` component
- `internet` component
- `computer.getDeviceInfo()`, and subsequently, component device information
- `computer.beep(frequency?: number, duration?: number, volume?: number)`, frequency between 20 and 2000 Hz, duration up to 5 seconds, volume from 0 to 1.
# Bugfixes
@@ -39,6 +40,7 @@
# Internal changes
- use more arenas!!!!!!!
- make sure OOMs are recoverable
- rework some interfaces to use pre-allocated or stack-allocated memory more
- use dynamic arrays for signals (and maybe components), but still keep the maximums to prevent memory hogging