Commit Graph

858 Commits

Author SHA1 Message Date
e40d414c56 now we can even parse the code from a text code. bahaahhhh 2020-02-15 16:20:53 +01:00
ed39122c67 Arisotura will you ever clean up after yourself. this is like your goddamn apartment, it's a mess. 2020-02-15 16:07:13 +01:00
51dbb7165e finish the AR interpreter, I guess
or mostly
2020-02-15 00:36:22 +01:00
85a6a5bb38 * add support for a bunch of codes (all of them minus the loop shit, really)
* hook it betterer so it doesn't asplode
2020-02-14 23:34:26 +01:00
eb44833171 well, more AR shito 2020-02-14 21:19:36 +01:00
83f8e11bc1 update copyright years 2020-02-14 20:18:08 +01:00
d0b27178f1 miserable, feeble little attempt at executing AR codes.
also, it's hardcoded. probably not a good thing.
2020-02-14 20:13:06 +01:00
106b9a6f24 lay base for AR cheatzorz. baahahhhh 2020-02-14 19:26:52 +01:00
2944575cbc Merge pull request #544 from i404788/master
Fix hanging UI when `null` addr
2020-02-14 14:30:54 +01:00
da0afbde88 Use different icon location
"pixmaps" is the deprecated, legacy-only location. "hicolor" is the current, proper location that supports multiple resolutions which we now use
2020-01-30 17:25:08 +01:00
2c51a49527 Merge pull request #546 from nadiaholmquist/feature/unix-xdg
Make melonDS properly installable systemwide on UNIX systems
2020-01-28 21:37:36 +01:00
12732aa51b Merge pull request #550 from rzumer/slot2
Support GBA game cartridges for DS connectivity
2020-01-28 21:32:29 +01:00
3984491cce * prevent potential race condition while changing window title
* cap framerate at 1000FPS

fixes #547
2019-12-30 13:29:19 +01:00
22d11209b0 Split GBA Reset and Eject logic into two sets
This allows solving some crashes and provides more
flexibility in how GBA cartridges change state between
soft and hard resets. Since save states including GBA
data do not carry over the original save file path,
and the GBA cartridge is being reset along with the other
parts of the system, this is needed to avoid losing
the GBA state on reset following a state load, while
preserving the behavior where cartridges are ejected
when calling Stop().
2019-12-22 16:01:13 -05:00
f380767fab Only store the GBA ROM header in save states
Also fix some potential crashes due to SRAM
state not being cleared correctly on state load.
2019-12-22 14:13:10 -05:00
a57ba1368e Skip saving/loading GBA flash state if SRAM is null 2019-12-22 11:45:11 -05:00
2abdcc54dd Implement DoSavestate() for GBACart classes
Admittedly untested.
2019-12-19 00:12:40 -05:00
be19e0e8d4 Make solar sensor hotkeys configurable 2019-12-18 23:35:18 -05:00
8172cbc170 Add DoSavestate() function to GBACart_SolarSensor
Still empty, but should be implemented along with the rest.
2019-12-18 23:35:14 -05:00
c5623c4dcd Change the config/data dirs from "melonds" to "melonDS" for consistency. 2019-12-19 02:52:34 +01:00
43535c873a Remove redundant desktop file and change desktop/icon file name to net.kuribo64.melonDS, also change melonds to melonDS. 2019-12-19 02:48:11 +01:00
295404a5a6 Fix weird spacing 2019-12-12 09:03:01 +00:00
f8e43ac486 Display solar sensor level changes on OSD 2019-12-10 19:24:30 -05:00
f257b007a2 Properly pass through GBA GPIO writes 2019-12-10 19:10:14 -05:00
ca9f183d24 Hook up solar sensor control to the UI
It uses hardcoded keypad left and right arrows.
2019-12-10 17:54:35 -05:00
f6cd66e5b1 Implement solar sensor processing 2019-12-10 17:43:25 -05:00
9128517b90 Add basic GBA GPIO support, solar sensor detection 2019-12-10 16:36:39 -05:00
0092937148 Rename SRAMFlash to SRAMFlashState 2019-12-10 16:36:00 -05:00
4d1f3d419e Clarify comments and credit DeSmuME for Flash I/O 2019-12-10 09:57:15 -05:00
68d3474458 Fix GBA Flash read/writes and clean up 2019-12-09 07:37:09 -05:00
8fc9a33a9f Implement GBA cartridge Flash reading and writing 2019-12-09 06:10:26 -05:00
5a7600dc79 Fix "é" character encoding in NDS.cpp 2019-12-09 06:09:52 -05:00
4e8b0c8ce4 Eject GBA cartridges on stop from the UI 2019-12-09 06:09:30 -05:00
5ad85f15c1 Add a framework to support non-SRAM GBA saves
The support is not yet there, but at least
we should not read or write bogus data.
2019-12-09 04:58:54 -05:00
86b746dd1c Remove unused Write function in NDSCart 2019-12-09 04:51:59 -05:00
62b9f51e23 Handle GBA cartridge SRAM writes 2019-12-08 21:20:01 -05:00
48a8a25548 Reset GBA cartridge state when loading a new ROM 2019-12-08 17:13:56 -05:00
91bf62a1d4 Keep GBA carts loaded when booting to firmware 2019-12-08 15:55:06 -05:00
1da9b3806c Hook up the GBA slot to the UI
A GBA cartridge may be loaded in the same
way as a DS cartridge. If the extension of
the selected file is "gba", it will be treated
as a GBA file. The system boot logic is still
centered around the DS cartridge, so loading
a GBA file will not start or reset it.
2019-12-08 15:31:20 -05:00
968768042e Properly init/deinit the GBA slot 2019-12-08 15:30:56 -05:00
d86ee1d5bf Add GBA cart model and allow reading from it 2019-12-08 15:30:07 -05:00
f21347c918 Fix GBA memory values on deselected CPU
Previously, the GBA memory was 0xFF-filled
on both CPUs. However, GBATEK reports that
the deselected CPU is 0x00-filled, and that
some titles depend on this behavior to
function properly.
2019-12-08 12:33:02 -05:00
23bca8c17a Tell the user where to place romlist.bin if it can't be found for UNIX non-portable builds. 2019-12-05 00:40:59 +01:00
03f33fa5c3 Make UNIX builds non-portable by default. 2019-12-05 00:12:40 +01:00
4f87707cda If all else fails, look for data files (romlist.bin) in the current working direcoty. 2019-12-05 00:11:52 +01:00
959c37ead7 Open with rb instead of r in OpenDataFile to avoid potential problems with Windows. 2019-12-04 22:54:30 +01:00
7af658f089 Add a UNIX_PORTABLE build option, turning it off makes a build of melonDS suitable for systemwide installation. 2019-12-04 22:46:33 +01:00
7730e6c1e2 Coding style + weird spacing 2019-11-20 23:24:16 +00:00
477be1d155 add device name 2019-11-19 22:34:02 +00:00
c2a55bc217 clean log 2019-11-19 22:22:47 +00:00