Commit Graph

23 Commits

Author SHA1 Message Date
e973236203 Refactor NDS and DSi to be objects (#1893)
* First crack at refactoring NDS and DSi into objects

- Remove all global/`static` variables in `NDS` and related classes
- Rely more on virtual dispatch when we need to pick methods at runtime
- Pass `NDS&` or `DSi&` to its constituent components where necessary
- Introduce some headers or move some definitions to break `#include` cycles

* Refactor the frontend to accommodate the core's changes

* Move up `SchedList`'s declaration

- Move it to before the components are initialized so the `map`s inside are initialized
- Fields in C++ are initialized in the order they're declared

* Fix a crash when allocating memory

* Fix JIT-free builds

* Fix GDB-free builds

* Fix Linux builds

- Explicitly qualify some member types in NDS, since they share the same name as their classes

* Remove an unnecessary template argument

- This was causing the build to fail on macOS

* Fix ARM and Android builds

* Rename `Constants.h` to `MemConstants.h`

* Add `NDS::IsRunning()`

* Use an `#include` guard instead of `#pragma once`
2023-11-28 23:16:41 +01:00
346dd4006e Move all core types into namespaces (#1886)
* Reorganize namespaces

- Most types are now moved into the `melonDS` namespace
- Only good chance to do this for a while, since a big refactor is next

* Fix the build
2023-11-25 18:32:09 +01:00
ac38faef14 update copyright years 2023-11-04 00:21:46 +01:00
70c6750561 better, less hacky, more OOP-friendly scheduler design 2023-11-02 21:04:09 +01:00
98903f8076 fixes editor warnings about undefined types in a bunch of files 2022-07-27 18:55:59 +02:00
35cc79787d update copyright headers 2022-01-09 02:15:50 +01:00
e665e25bd3 Custom path support (#1333)
also including:
* getting rid of shitty strings
* all new, cleaner ROM handling code
* base for DSi savestates
* GBA slot addons (for now, memory cart)
2022-01-07 14:00:43 +01:00
b92622b765 Revert "Misc fixes for dsiwifi BMI stage (#1216)"
This reverts commit a54b076b06.
2021-10-02 13:57:52 +02:00
a54b076b06 Misc fixes for dsiwifi BMI stage (#1216) 2021-09-06 12:52:33 +02:00
436b3c4c1d update copyright year and add missing GPL headers 2021-03-12 20:07:40 +01:00
fa4363ede6 make FIFO size static whene possible 2020-12-30 23:37:46 +01:00
c9447935ff NWifi: correctly determine ROM/chip/etc IDs based on hardware version (as specified in firmware).
fixes #700
2020-08-19 17:53:31 +02:00
b31e049b30 wifi fixes and shit. getting there, somewhat. 2020-06-21 01:43:32 +02:00
1101ed773b make it get further 2020-06-16 02:52:53 +02:00
afbdd96a90 make it actually connect. hark hark hark 2020-06-15 16:06:00 +02:00
c6dc5dfc4b get it to atleast finish a scan without shitting itself 2020-06-15 14:35:02 +02:00
fc5eedc716 * take nwifi forward some
* shut up CP15 printf's for Fx0
* fix bugs
2020-06-15 13:39:33 +02:00
5cd1177e34 huh. all DSi files had outdated copyright years 2020-06-05 20:44:18 +02:00
f7f4ff0519 wifi: take this shit further. complete wifi init 2019-08-04 02:16:16 +02:00
0918da7b00 add BMI commands and other shit 2019-07-24 21:13:08 +02:00
06716794a1 lots of things. attempting to make wifi init work. not there yet. 2019-07-24 18:48:52 +02:00
5062ed543a HARK HARK HARK HARK 2019-07-03 01:17:23 +02:00
ec042000cf lay base for DSi wifi 2019-07-03 00:07:51 +02:00