aboutsummaryrefslogtreecommitdiff
path: root/src/AREngine.cpp
Commit message (Collapse)AuthorAge
* Sprinkle `const` around where appropriate (#1909)Jesse Talavera2023-12-12
| | | | | | | | | * Sprinkle `const` around where appropriate - This will make it easier to use `NDS` objects in `const` contexts (e.g. `const` parameters or methods) * Remove the `const` qualifier on `DSi_DSP::DSPRead16` - MMIO reads can be non-pure, so this may not be `const` in the future
* Refactor `NDS` and `DSi` to be objects (#1893)Jesse Talavera-Greenberg2023-11-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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`
* Move all core types into namespaces (#1886)Jesse Talavera-Greenberg2023-11-25
| | | | | | | | * 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
* convert AREngineArisotura2023-11-04
|
* update copyright yearsArisotura2023-11-04
|
* remove AR code size limit (#1802)StraDaMa2023-08-27
| | | Co-authored-by: Arisotura <thetotalworm@gmail.com>
* Introduce `Platform::Log` (#1640)Jesse Talavera-Greenberg2023-03-23
| | | | | | | | | | | | | * Add Platform::Log and Platform::LogLevel * Replace most printf calls with Platform::Log calls * Move a brace down * Move some log entries to one Log call - Some implementations of Log may assume a full line * Log the MAC address as LogLevel::Info
* add support for zero-address in AR codes 3-AArisotura2022-01-28
|
* update copyright headersArisotura2022-01-09
|
* Custom path support (#1333)Arisotura2022-01-07
| | | | | | | also including: * getting rid of shitty strings * all new, cleaner ROM handling code * base for DSi savestates * GBA slot addons (for now, memory cart)
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* make the AR engine use the correct bus funcs based on DS/DSi modeArisotura2020-08-24
|
* add AR code file parser and shitArisotura2020-08-13
|
* change ParseTextCode() so we can specify the length of an individual AR code ↵Arisotura2020-02-16
| | | | within a bigger string.
* also that might have been bad for security. who knows.Arisotura2020-02-15
|
* now we can even parse the code from a text code. bahaahhhhArisotura2020-02-15
|
* Arisotura will you ever clean up after yourself. this is like your goddamn ↵Arisotura2020-02-15
| | | | apartment, it's a mess.
* finish the AR interpreter, I guessArisotura2020-02-15
| | | | or mostly
* * add support for a bunch of codes (all of them minus the loop shit, really)Arisotura2020-02-14
| | | | * hook it betterer so it doesn't asplode
* well, more AR shitoArisotura2020-02-14
|
* update copyright yearsArisotura2020-02-14
|
* miserable, feeble little attempt at executing AR codes.Arisotura2020-02-14
| | | | also, it's hardcoded. probably not a good thing.
* lay base for AR cheatzorz. baahahhhhArisotura2020-02-14