Commit Graph

6 Commits

Author SHA1 Message Date
e0ef512969 [Add] Make machine services persistant. 2025-10-08 19:06:29 +01:00
97b60488de [Add] Persistent VFS and database aware commands. 2025-10-07 00:05:40 +01:00
44ca427c0e [Add] Completed the persistance layer. 2025-10-06 20:41:22 +01:00
c052cf3cbf [Fix] Implement destructors preventing memleaks.
Fixes a bunch of memleaks related to the new Machine and VFS
architecture.

The Machine and vfs_node objects were created with 'new' but were never
properly destroyed, leading to memleaks during CoW operations and on
server shutdown.

- Added a recursive 'delete_vfs_tree' function
- Machine destructor calls this function to lean up its VFS
- CommandProcessor correctly deletes old Machine objects after a CoW
- Player destructor cleans up the player's home machine.
- NetworkManager destructor cleans up all world machines.
2025-09-27 22:18:13 +01:00
4b21d30567 [Fix] Correct CoW logic and fix rm command fallout. 2025-09-27 18:33:45 +01:00
59783d2408 [Refactor] :O Machines now walk the earth!!
Old vfs_node was getting a bit big for its boots, trying to be a
filesystem, network interface and the whole damn computer all at once.

This server-side refactor introduces a 'Machine' class that rightfully
owns the VFS, network services and other machine-state sh.t.
2025-09-27 17:30:14 +01:00