Commit Graph

133 Commits

Author SHA1 Message Date
aabacchus d9cdf192a8 add simple file sandboxing below cwd
Uses realpath(3) libc function to find the canonical and longest part of the
pathname which exists, then checking if it starts with cwd.

Prints a warning to stderr if an attempt is made to access a file outside the
sandbox.
2022-06-21 08:03:38 -07:00
Devine Lu Linvega fdb52a7480 Added window padding 2022-06-15 09:10:13 -07:00
Devine Lu Linvega 0c6dec9fc8 Device ids error report should be in 16th 2022-06-14 10:52:18 -07:00
Devine Lu Linvega 5d837313e5 Added warning for incompatible emulator devices 2022-06-14 10:47:52 -07:00
Devine Lu Linvega 2a1a506524 F2 should display the stacks even if empty 2022-06-13 12:20:20 -07:00
Devine Lu Linvega 707efa223a Removed unecessary struct 2022-06-13 12:07:49 -07:00
Devine Lu Linvega 1d01e74635 Typedef for Dei/Deo 2022-06-13 12:06:16 -07:00
Devine Lu Linvega 507a4b838c uxn_boot() now expects dei/deo fn pointers 2022-06-13 11:59:42 -07:00
Devine Lu Linvega d118cc3813 Renamed viewport to display 2022-06-13 11:29:16 -07:00
Devine Lu Linvega 48ca266a46 Minor housekeeping 2022-06-13 11:21:15 -07:00
Devine Lu Linvega 53673c2ab4 Updated README 2022-06-13 11:14:17 -07:00
Devine Lu Linvega 406d2fb327 Improved hot reload 2022-06-13 11:08:33 -07:00
Devine Lu Linvega 2b55c0732d Print erroring rom 2022-06-13 10:46:18 -07:00
Devine Lu Linvega eaaed92aeb Reload initial rom when boot.rom is not found 2022-06-13 10:43:43 -07:00
Devine Lu Linvega 245ad452a2 Keep rom path in memory 2022-06-13 10:37:18 -07:00
Devine Lu Linvega 95a28d6b4d Removed err4, display only stack when not empty on debug 2022-06-13 10:32:59 -07:00
Devine Lu Linvega 4d252e3109 Returned busy stack erroring while I finish Inle 2022-06-13 08:31:46 -07:00
Devine Lu Linvega 70ccb4fa68 Removed err4 2022-06-12 14:13:07 -07:00
Devine Lu Linvega 5b96cefb3a Added error code for stack busy 2022-06-12 09:12:13 -07:00
Devine Lu Linvega 15dcde5ae9 Improved gameloop 2022-06-03 14:55:46 -07:00
Devine Lu Linvega 3f32b9f6f9 Stop on System/halt 2022-06-03 14:54:40 -07:00
crossbower 1b982f136c build.sh: automatically include X11 libs on OpenBSD 2022-05-26 20:34:14 -07:00
neauoire 9137114bd2 Simplified LIT opcode 2022-04-18 12:32:42 -07:00
neauoire d8f27c84ab Swapped opcodes 2022-04-18 09:28:14 -07:00
neauoire 1eb140d5c7 Better release flags 2022-04-12 11:12:22 -07:00
neauoire e60b4a1ebd Better release flags 2022-04-12 10:34:28 -07:00
james palmer a339014fdd Show rom name in window title. 2022-04-12 10:33:10 -07:00
james palmer 53f57d4878 Fix typo in Uxn11 usage message. It is no-longer uxncli. 2022-04-12 10:33:10 -07:00
james palmer c68645a08f Fix segmentation fault on first boot.
When emu_start() is first called, the Uxn struct is uninitialised stack data.
This meant the u->ram pointer would be an invalid address so the program would crash
with a segmentation fault when attempting to free it. By setting it to NULL, we avoid this
because calling free() on a NULL pointer is a no-op.
2022-04-12 10:33:10 -07:00
neauoire 1acef2aaed Added instruction code to error report 2022-04-10 10:31:18 -07:00
neauoire c704491d79 Allow the system device to handle errors 2022-04-10 09:42:56 -07:00
neauoire aed26e5bd0 Housekeeping 2022-04-07 09:33:52 -07:00
neauoire 2a179c94de Improved build script 2022-04-06 12:38:34 -07:00
neauoire 60b20eaaf7 Added Fn keys controls 2022-04-05 20:06:42 -07:00
neauoire eb8e241b50 Renamed a few functions in uxn11 2022-04-05 19:40:49 -07:00
neauoire de3b0246e9 Added mouse scroll 2022-04-05 19:31:53 -07:00
neauoire 18058c14f1 Fixed issue with uxncli 2022-04-05 19:13:14 -07:00
neauoire c9ad8e9e43 Ported uxncli to latest device I/O 2022-04-05 12:08:49 -07:00
neauoire 62a35a9b15 Formatting requires a flag 2022-04-05 11:44:59 -07:00
neauoire 725bc38aba Removed Devices 2022-04-05 11:42:50 -07:00
neauoire 35391ca247 Migrated DEIs to device page 2022-04-05 11:06:47 -07:00
neauoire dba7b1f486 Began moving some devices to a ram page 2022-04-05 11:01:23 -07:00
neauoire 121f61e459 Removed uxn_port 2022-04-05 10:48:13 -07:00
neauoire 5d80ab088c Removed individual dei/deo 2022-04-05 10:43:26 -07:00
neauoire 038eaf0724 Removed global devices 2022-04-05 10:37:40 -07:00
neauoire c990a2a407 Removed a few indirections 2022-04-05 10:30:17 -07:00
neauoire 574c4250c3 Removed system as Device 2022-04-05 09:35:49 -07:00
neauoire 8ca86ea9b2 Removed console as Device 2022-04-05 09:29:06 -07:00
neauoire b0c840437a Removed screen as Device 2022-04-05 09:22:33 -07:00
neauoire ab6ce6ba5a Removed mouse as Device 2022-04-05 09:17:08 -07:00