StapleButter
40f3f91368
move config-file seeking code to its own thing.
...
look also into the same directory as melonDS. make it the preferred place for storing melonDS.ini.
rewrite WinMain() wrapper.
2018-12-11 21:34:05 +01:00
StapleButter
9a0bf912d9
(finally) axe trainwreck savetype-autodetect code.
...
pull that from ROM database.
for now, assume EEPROM 64k if not found, or null for homebrew.
2018-12-11 20:39:07 +01:00
StapleButter
f03828f7b9
add code that searches into romlist.bin
2018-12-11 19:47:03 +01:00
StapleButter
e2f3c29360
blarg.
...
also, calculate ROM CRC.
2018-12-11 19:16:19 +01:00
StapleButter
0579a1cd2e
add CRC32 shit
2018-12-11 19:10:57 +01:00
StapleButter
4aafdee14d
more sensible cache timings
...
(still a big fat hack)
2018-12-11 17:59:52 +01:00
StapleButter
e4c6ac55d2
Mario&Sonic doesn't like it when its code is running too fast; dual-screen-3D shits itself big time
2018-12-11 17:28:59 +01:00
StapleButter
91b2f64596
add back faster prefetch for ARM9
2018-12-11 16:41:18 +01:00
StapleButter
beb092f93e
change where audio/joystick are inited, attempting to fix potential COM initialize issues
2018-12-11 16:24:55 +01:00
StapleButter
3dd8c7b152
finish the work on the main loop. finally fix all cases of desync I could find. also add #ifdef'd debug code to check for desyncs.
2018-12-11 15:56:34 +01:00
StapleButter
78d384a754
temp commit
...
almost done killing ARM9/ARM7 desync, f
2018-12-11 03:08:46 +01:00
StapleButter
aba4610d45
fix bugs
...
still kinda shitty tho. like, we lost enough timer accuracy to have visible effects (aging cart tests that fail, FMVs that play too slow, etc)
2018-12-09 01:46:10 +01:00
StapleButter
b569c03884
make it fasterer
2018-12-09 01:26:51 +01:00
StapleButter
29bca33bc6
take it somewhere.
...
still need to speed it up a tad.
2018-12-09 01:17:05 +01:00
StapleButter
c6fb152d80
start devolving things.
...
also implement proper DMA timings.
will not build. don't try.
2018-12-08 22:33:41 +01:00
StapleButter
86dae1a25c
make this other branch where we're going to actually make it usable
...
but it'll be a gross hack
2018-12-08 20:27:00 +01:00
StapleButter
0b1c2f9691
begin PU work
2018-12-04 18:32:19 +01:00
StapleButter
9ebcb5f143
axe CP15.h, we don't need it anymore.
2018-12-04 17:55:03 +01:00
StapleButter
172fb4876a
begin work on general timing renovation. way shitty because it behaves as if caches were off, so everything will be slow as shit.
2018-12-04 17:54:10 +01:00
StapleButter
808bda9171
do not require dpad mappings for joystick axis to work
2018-12-02 15:11:56 +01:00
StapleButter
5b20f40fad
oopsies
2018-11-28 02:45:20 +01:00
StapleButter
b1973014d3
add some missing shit to savestates
2018-11-25 22:40:08 +01:00
StapleButter
4b8cea3b38
revise windows to be even closer to hardware.
...
apparently hardware only ever updates its 'inside/outside window' status when reaching the coordinates. which becomes apparent if you, like, try to invert a window midframe.
2018-11-25 19:13:23 +01:00
StapleButter
2035784f9f
on the DS, windows with backward coordinates end up inside-out. revise window code accordingly. fixes #287 .
2018-11-25 18:36:47 +01:00
StapleButter
5f1f2a7b4a
fix regression in Marvel Nemesis. keep GX cycle counter from drifting absurdly far in the negatives, and fix a few other issues.
2018-11-25 17:39:43 +01:00
StapleButter
3f8befaf4e
add support for forced-blank. fixing spurious colors during screen transitions in Picross 3D.
...
I thought I had already fixed that, but it was stuck in the long-dead jit branch, so, here it is, back from the dead.
2018-11-24 21:10:26 +01:00
StapleButter
46d5a31275
well yeah that's what I thought
...
GXFIFO stalls don't stall the ARM7
2018-11-24 05:23:35 +01:00
StapleButter
391c8d43b0
drain GX pipelines when there's nothing else running. fixes some weird bugs, apparently.
2018-11-24 04:27:27 +01:00
StapleButter
7b48ce5b75
* fix possible issues with GXFIFO stalling
...
* rework GPU timings, now almost same as hardware. display lists generally execute faster. not finished. not bad for a start tho.
* Rayman RR2 is still getting sound streaming issues. I don't think GXFIFO stalls are supposed to halt the ARM7. that doesn't make sense and would mess badly with sound since it's also using the ARM7 bus.
2018-11-24 02:29:25 +01:00
StapleButter
a9e7f8bc5b
add proper support for GXFIFO stalls.
...
bad games that blast the GXFIFO and overflow it:
* Super Mario 64 DS
* Rayman RR2
latter seems to get its music streaming crapoed.
2018-11-23 22:21:41 +01:00
Madhav Kanbur
78c767b693
Add option to limit framerate from UI
...
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2018-11-21 11:11:02 +05:30
StapleButter
27e1ca4103
beginning timing renovation.
...
smarter Reschedule().
gotta start somewhere, I guess.
2018-11-09 14:10:06 +01:00
StapleButter
7ba32ea076
make the ARM clock shift configurable. nothing fancy there, just paving the way for DSi support later.
2018-11-07 18:38:54 +01:00
StapleButter
fa4fa164cb
* store all 32 matrix stack entries in savestates instead of 31.
...
* bump savestate version up. will break compatibility, but the alternative would be guessing the missing matrix entries somehow, so blarg.
* avoid relocating the savefile if loading a savestate fails.
2018-11-05 16:14:48 +01:00
StapleButter
9b32418367
3D: fix0r matrix stack handling when stack pointers overflow (it fucking wraps around).
...
fixes #231 and probably others of the same vein.
2018-11-05 16:05:16 +01:00
StapleButter
b4165cc0a9
3D: keep the rasterizer from accidentally going out of bounds when given very flat X-major edge slopes.
...
this, by a fucking shitshow of butterfly effect, ends up fixing #234 . technically, the rasterizer was going out of bounds, which, under certain circumstances, caused interpolation to shit itself and generate Z values that were out of range (but still ended up in the zbuffer). sometimes those values ended up negative, which caused these glitches when polygons had to be drawn over those.
about fucking time.
2018-11-04 23:21:58 +01:00
StapleButter
fb284f33ad
Merge branch 'master' of https://github.com/StapleButter/melonDS
2018-10-27 14:44:52 +02:00
StapleButter
658856b256
fix implementation of CoTaskMemRealloc, as it can decide to move the buffer elsewhere, we have to account for that
2018-10-27 14:44:39 +02:00
StapleButter
307c26de93
Merge pull request #248 from Dirbaio/master
...
Two fixes
2018-10-27 14:16:46 +02:00
StapleButter
a4339daade
oops! don't hardcode a 9
2018-10-27 13:51:40 +02:00
StapleButter
f4890137c0
fix configfile loading under Windows, for when it checks AppData
...
by making it actually, you know, build the complete file path
hopefully that fixes that crash bug, but I couldn't reproduce it after touching the code some. heisenbugs are lots of fun
2018-10-27 13:50:29 +02:00
StapleButter
d4d4965b2f
remove trainwrecky code that caused issues now.
2018-10-26 22:17:27 +02:00
StapleButter
c8d63f2be7
fuck that shit.
...
I fucking give up.
Windows actually doesn't want to cooperate either, and is being utter shit.
so, I'm going to do it the desmume way.
2018-10-26 20:10:25 +02:00
StapleButter
eb67ac9a1b
finally come up with a (crummy) solution for those fucking shitty submenus
2018-10-26 20:56:59 +02:00
StapleButter
cbe63f8fd5
until we actually get somewhere with the menu crap... fix potential crashes when exiting.
2018-10-26 18:39:41 +02:00
StapleButter
c5670a22a5
fix GTK menus asploding upon exit. hopefully. fuck this code
2018-10-26 16:29:46 +02:00
StapleButter
65bba8ff81
call it a release???
2018-10-24 00:38:35 +02:00
StapleButter
6e1209dd32
misc things
2018-10-24 00:32:31 +02:00
StapleButter
8b4ba2d8b9
separate SRAM setting coded, I guess
2018-10-24 00:24:36 +02:00
StapleButter
1edf2aed3b
* code function for relocating the savefile.
...
* don't bitch at the user when trying to load a savestate file that doesn't exist.
* grey out 'load state' items if there is no file.
2018-10-23 22:54:09 +02:00
StapleButter
f60ac42466
pass savefile name to NDS::LoadROM() instead of having the core generate it.
2018-10-23 21:52:41 +02:00
StapleButter
a4a9bca5f0
fix more shit
2018-10-23 20:40:57 +02:00
StapleButter
98076f2334
hopefully fix all 3D-related crashes when loading savestates
2018-10-23 20:20:38 +02:00
StapleButter
c9a7a0d744
* start coding UI shito for savestates
...
* change default mapping for L button to the key right next to Shift because we're gonna derp around with it
* still some shito to fix, but hang on, we're getting there
2018-10-23 19:57:01 +02:00
StapleButter
4075dad0a8
3D: attempt at fixing that shadow/AA interaction bug in the MKDS character select screen
2018-10-22 01:36:04 +02:00
StapleButter
d191af8690
rewrite how structures are stored to savestates (store individual fields, to avoid compatibility issues)
...
also fixes stability issues when 3D is involved. turns out we were storing raw pointers to vertices. figures
more crapo code to get around that, but atleast it works without asploding now.
2018-10-21 03:16:41 +02:00
StapleButter
cbcecc8cdb
don't store BIOS in savestates. no point doing so.
2018-10-19 01:05:19 +02:00
StapleButter
467461fb3d
properly initialize shit before attempting to read from the file
...
fixes load failure when attaching a debugger
2018-10-18 05:14:15 +02:00
StapleButter
b5c39680a5
hax, finally making savestates usable
...
F1 to save, F2 to load. filename hardcoded for now.
shits itself:
* when the 3D engine is used
* when a debugger is used (heh)
2018-10-18 04:00:16 +02:00
StapleButter
20862b7daf
aight, wifi done
2018-10-18 03:22:53 +02:00
StapleButter
f51e1ec805
I guess that might have malfunctioned
2018-10-18 03:10:17 +02:00
StapleButter
86f5155f72
more procrastinating before actually starting savestatez0ring wifi.
...
I need to pee
2018-10-18 03:09:03 +02:00
StapleButter
3a54b9178b
RTC done. misc shito.
2018-10-18 03:04:39 +02:00
StapleButter
cbe5780837
SPI done
2018-10-18 02:54:48 +02:00
StapleButter
7bf62918cd
SPU done
2018-10-18 02:45:38 +02:00
StapleButter
a2cc7087f7
GPU done
2018-10-18 02:31:01 +02:00
StapleButter
148f4032f1
fix code that would have fucking asploded
2018-10-18 01:38:33 +02:00
StapleButter
f4cf54829e
a bit moar of it
...
brick by brick, file by file, we will destroy capitalism
and make savestates work, maybe
2018-10-18 00:54:21 +02:00
StapleButter
de91eabf71
savestate shito: fix compile errors.
...
still far from being finished, so avoid using unless you want to spawn blackholes or some pretty bad shit.
2018-10-18 00:27:55 +02:00
StapleButter
7cbcc6c230
zlarg
2018-09-15 03:41:09 +02:00
StapleButter
60f24a7432
moar progress on it
2018-09-15 03:29:36 +02:00
StapleButter
0bfd019dc0
start implementing actual shito
...
(also looks like the test bench in libui_sdl/main.cpp snuck in with the copyright update. shit)
2018-09-15 02:47:34 +02:00
StapleButter
fea7955675
fixor copyright years.
2018-09-15 02:32:13 +02:00
StapleButter
1d19145983
moar working now.
2018-09-15 02:14:08 +02:00
StapleButter
aa59ee257e
base for savestate crapo.
...
I'm not quite settled yet, so before I can get into the real meat, I figured I'd address some 'popular request' items.
2018-09-15 02:04:21 +02:00
Dario Nieuwenhuis
d721e098eb
Make "unknown IO" messages consistent, all including value and PC.
2018-05-24 01:09:40 +02:00
Dario Nieuwenhuis
cb79a5dc14
Make Main RAM size configurable in a single place.
2018-05-24 01:09:23 +02:00
StapleButter
20050fb668
quick attempt at supercard emulation. really ugly
2018-04-27 20:00:53 +02:00
StapleButter
81e98b5e12
direct boot: init cart ID from NDSCart::CartID instead of hardcoding it
2018-04-27 19:26:46 +02:00
StapleButter
f0bc364210
init AUXSPICNT to 0x8000.
...
(guess sloppy DLDI drivers expect that)
2018-04-27 00:20:18 +02:00
StapleButter
39bd94f551
start work on DLDI, with some (very haxy) patching so it can do interesting things
2018-04-27 00:17:05 +02:00
StapleButter
aa3fc8be68
fix build under Windows
...
(fuck that shit)
2018-04-24 23:16:26 +02:00
Dario Nieuwenhuis
a2c95f2dc3
Add 32bit IPCSYNC reads and writes.
2018-04-24 22:31:52 +02:00
dogtopus
41b40cd4fa
Add linux libpcap names to the pcap library list
2018-02-22 10:39:02 -04:00
StapleButter
aab0030137
Merge pull request #224 from hcorion/alternate-loading
...
Load bios, firmware and melonDS.ini from exe, ~/.config/melonds or AppData
2018-02-19 13:08:34 +01:00
StapleButter
12e33ae872
Merge pull request #222 from dogtopus/master
...
Fix build on linux, enable build directory support
2018-02-19 12:50:54 +01:00
Zion Nimchuk
52df6be5f8
Load bios, firmware and melonDS.ini from executable or ~/.config/melonds or AppData
2018-01-11 14:38:57 -08:00
StapleButter
981661a36d
wifi: implement increment for txheader[4]
2018-01-04 00:10:35 +01:00
StapleButter
d50e7e4686
fix SMULWx/SMLAWx. fixes #78 , finally
2017-12-29 03:17:32 +01:00
dogtopus
549bcf6d71
Fix build on linux, enable build directory support
...
Specifically:
- Include stddef.h for missing ptrdiff_t
- Define PCAP_OPENFLAG_PROMISCUOUS if not using WinPcap because it seems to be
a WinPcap extension
- Make use of CMAKE_CURRENT_{SOURCE,BINARY}_DIR to enable building under a
directory other than root of the project
2017-12-22 12:29:34 -04:00
StapleButter
9336e15197
avoid crashing when receiving a packet that is too large
2017-12-19 01:00:55 +01:00
StapleButter
5fe30d306f
wifi:
...
* fix BSSID/MAC check when receiving packets
* safeguard AP auth/deauth so local MP doesn't trigger it
2017-12-19 00:33:09 +01:00
StapleButter
141e2a7ab0
clear chipselect when turning SPI off. fixes libnds bugs.
2017-12-19 00:20:36 +01:00
StapleButter
3bdb7a7f2d
hook up the LAN (pcap) interface
2017-12-18 23:24:45 +01:00
StapleButter
0ff67d28d3
wifiAP: basic support for probereq/auth/assoc/deauth/deassoc
2017-12-18 22:44:29 +01:00
StapleButter
9632aa4021
start working on melonAP.
...
it sends beacons!
2017-12-18 21:37:17 +01:00
StapleButter
07685a80a6
add base for wifi AP
2017-12-18 19:53:51 +01:00
StapleButter
4ec2d109f7
wifi: more shit
2017-12-18 19:31:26 +01:00
StapleButter
e44bc7743d
actually init pcap etc
2017-12-17 23:09:48 +01:00
StapleButter
17087a1ece
start work on libpcap shit
2017-12-17 17:21:50 +01:00