Commit Graph

432 Commits

Author SHA1 Message Date
21eca5db92 allowing emulators to change method flags 2026-04-27 20:14:34 +03:00
72fd316310 added support for synchronized methods 2026-04-27 20:07:57 +03:00
7244174945 small doc changes 2026-04-11 15:59:51 +02:00
a5e30abf36 screen brightness 2026-04-11 15:51:26 +02:00
37e5ce0167 no more netlib
its too early for a networking lib
2026-04-11 14:59:51 +02:00
d803783f35 begin work on netlib 2026-04-11 12:22:20 +02:00
6244a2f7a4 figured out how to do smth 2026-04-09 11:12:16 +02:00
13efd53cea stuff 2026-04-08 11:39:42 +02:00
8f044a0eb0 cool stuff 2026-04-08 00:04:36 +02:00
46c9bc8d42 initial work on an ambitious library 2026-04-07 20:07:24 +02:00
21cd1fa4e6 progress on modem and basic todo 2026-04-07 15:55:57 +02:00
82777b52b3 computers can be turned on/off now 2026-04-07 13:11:18 +02:00
5d7725d77b fixed a deadlock 2026-04-07 09:56:47 +02:00
a89ddb8e39 forgot an unmount case 2026-04-07 00:07:07 +02:00
b5b9fe4018 initial work on modems 2026-04-06 14:19:29 +02:00
79ae1e13f8 bunch of progress 2026-04-05 19:48:13 +02:00
0b119e7dda some useful functions 2026-04-05 04:11:48 +02:00
be432de420 rip OSSM 2026-04-05 03:53:44 +02:00
77aded7a05 rip the drive cache
had huge oversight and was just a bad idea
2026-04-05 03:33:26 +02:00
dad8e34cca work on network encoding and documenting eventual component interfaces 2026-04-05 01:04:24 +02:00
e3959a24da a new todo 2026-04-04 02:34:18 +02:00
f9bbe58894 SSDs 2026-04-04 02:26:06 +02:00
a1b0f47f47 small buff 2026-04-04 00:24:43 +02:00
32f94cf02b drives, rebalancing, and a broken tmpfs impl
that tmpfs impl needs to be reworked to heck and back!
2026-04-03 23:58:23 +02:00
e6cf5990bb component costs 2026-04-03 00:42:00 +02:00
Quantum Tomato
c10774ed21 Merge pull request #26 from shorekeeper/main
GPU & Screen
2026-04-02 23:57:10 +02:00
3ed8f58d52 vim error 2026-04-02 23:56:49 +02:00
shorekeeper
6110d8e30f Merge branch 'temp-branch' 2026-04-03 00:46:48 +03:00
shorekeeper
d41e110cdf Fix some GPU bugs and add clamping 2026-04-03 00:44:00 +03:00
3e5a979331 2 more coding rules 2026-04-02 23:30:20 +02:00
shorekeeper
2d0767847f remove test suite completely, we're blind 2026-04-03 00:09:08 +03:00
b8c184dd13 feat(gpu): impl simple gpu, screen and keyboard 2026-04-03 00:06:04 +03:00
a2069eea74 minor tweaks 2026-04-02 21:26:38 +02:00
97a2e34f2e realtime clock 2026-04-02 15:37:01 +02:00
ac2a05efdb MSVC is horrendous 2026-04-02 15:19:51 +02:00
19cfedc112 trying to revive submodule 2026-04-02 11:06:35 +02:00
a6a31d2b64 that wasnt meant to be there 2026-04-02 10:57:48 +02:00
ed745517af Merge branch 'main' of https://github.com/NeoFlock/neonucleus 2026-04-02 10:53:25 +02:00
5e53ae1f86 merge 2026-04-02 10:49:50 +02:00
0dd62a8806 merge 2026-04-02 10:48:20 +02:00
e66b11c5c3 updated readme 2026-04-02 10:46:41 +02:00
13fc83b20b we now have a coding guide 2026-04-01 19:45:59 +02:00
Quantum Tomato
fd9aba2812 Merge pull request #25 from shorekeeper/main
Fix Windows build and several cross-platform bugs
2026-04-01 18:40:28 +02:00
shorekeeper
3943b7d584 push unicode changes lol 2026-04-01 19:28:15 +03:00
shorekeeper
8d37628ae7 Fix Windows build and several cross-platform bugs
Cross-platform bugs:

- ncomplib.c: fseek was called as fseek(f, whence, offset) instead of
  fseek(f, offset, whence). Seeks only worked correctly when offset
  happened to numerically equal a valid whence constant.

- neonucleus.c: nn_realloc passed memory pointer instead of ctx to
  nn_alloc in the NULL and sentinel paths. Any call with memory=NULL
  dereferences NULL as a context struct and crashes. Confirmed by
  test_realloc.c which crashes before fix and passes after.

- neonucleus.h: NN_TiB was defined as (1024 * NN_TiB), referencing
  itself. Fixed to ((size_t)1024 * NN_GiB).

- luaarch.c: unicode functions were registered on the component Lua
  table instead of the unicode table. Wrong stack index variable was
  used in all five lua_setfield calls.

- neonucleus.c: NN_ATOMIC_NONE versions of nn_incRef/nn_decRef took
  1 argument but were called with 2 everywhere. Added the missing
  size_t n parameter.

Windows build:

- neonucleus.c: NN_LOCK_CREATE in NN_THREAD_WINDOWS was missing a
  return statement, falling through into NN_LOCK_DESTROY and
  immediately closing the freshly created mutex handle.

- ncomplib.c: Added Windows implementations for opendir, readdir,
  closedir, stat, mkdir and directory removal using FindFirstFileA,
  FindNextFileA, _stat, _mkdir and _rmdir.

- main.c: Fall back to USERNAME env var when USER is not set.

- neonucleus.h: Added NN_VLA macro. Expands to a plain VLA on
  GCC/Clang, uses _alloca on MSVC. Applied in luaarch.c and
  neonucleus.c where VLAs were used.

- neonucleus.h: Added NN_INIT macro. Expands to a compound literal
  cast on GCC/Clang, expands to nothing on MSVC which does not
  support compound literals as constant initializers at file scope.
  Applied to all global struct initializers in neonucleus.c.

- neonucleus.c: Auto-define NN_ATOMIC_NONE on MSVC in C mode since
  MSVC does not provide stdatomic.h outside of C++ mode.
2026-04-01 19:18:00 +03:00
3f6ef63737 small rework 2026-04-01 14:40:12 +02:00
d95726cbf6 slight bugfix and work on drive 2026-04-01 12:34:57 +02:00
9f6b22cdcf followed the law 2026-04-01 11:22:19 +02:00
b0afd0529e forgot to commit openos 2026-04-01 11:04:22 +02:00
9291d81d41 small tweak 2026-03-31 18:54:19 +02:00