Commit Graph

77 Commits

Author SHA1 Message Date
ef79cc06f3 proof-of-concept code for feeding a WAV to microphone input.
this eventually needs a proper UI.
2018-12-13 14:34:15 +01:00
758bed93bc preliminary microphone code. requires an actual microphone. resulting audio is farty and blargy as fuck. 2018-12-12 16:33:40 +01:00
24d6bd2786 send console output to parent process's console.
this way Windows release builds can get console output if run from cmd.exe, just like under Linux
2018-12-12 15:18:43 +01:00
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
beb092f93e change where audio/joystick are inited, attempting to fix potential COM initialize issues 2018-12-11 16:24:55 +01:00
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
808bda9171 do not require dpad mappings for joystick axis to work 2018-12-02 15:11:56 +01:00
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
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
cbe63f8fd5 until we actually get somewhere with the menu crap... fix potential crashes when exiting. 2018-10-26 18:39:41 +02:00
6e1209dd32 misc things 2018-10-24 00:32:31 +02:00
8b4ba2d8b9 separate SRAM setting coded, I guess 2018-10-24 00:24:36 +02:00
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
f60ac42466 pass savefile name to NDS::LoadROM() instead of having the core generate it. 2018-10-23 21:52:41 +02:00
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
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
fea7955675 fixor copyright years. 2018-09-15 02:32:13 +02:00
52df6be5f8 Load bios, firmware and melonDS.ini from executable or ~/.config/melonds or AppData 2018-01-11 14:38:57 -08:00
e4e8d775c0 libui/windows: don't explode if setWindowText() fails. fixes random crash when closing window.
also add extra safety, can't hurt.
2017-12-17 02:11:28 +01:00
904316de60 fix ScreenGap loading, fixes #218 2017-12-12 02:32:11 +01:00
73bf4471ee audio: change output rate to 47340Hz, add resampler with small margin to elimiate pops/clicks due to output rate fluctuation
output rate is picked such that 1024 samples at that rate equal exactly 710 samples at the SPU's output rate
2017-12-11 18:41:05 +01:00
c639152541 urgl. how could I let something that dumb slip in 2017-12-07 11:17:51 +01:00
e4f030149b add option to toggle filtering 2017-12-07 02:50:05 +01:00
a7c7779917 ensure proper minimum window size at all times 2017-12-07 01:13:13 +01:00
dd529f0f5c libui/GTK: fix drawmatrix transform order to match Windows. fixes rotation. 2017-12-05 04:12:03 +01:00
c5872dab7d libui/GTK: start adding submenu support. cleanup still has to be done. use uiMenuAppendCheckItem() for checkable items. 2017-12-05 03:41:49 +01:00
21e204cdea don't pointlessly restrict the window size 2017-11-23 21:22:47 +01:00
85c375cce7 * remember screen rotation/gap/etc settings
* fix menu cleanup to take submenus into account properly, so it doesn't crash when exiting
2017-11-23 21:02:24 +01:00
aa4f427ed4 properly resize window when changing display settings, etc
begin polishing things
2017-11-23 20:01:43 +01:00
8e6d834f13 libui: add API for setting a background color for uiArea. (TODO: do for GTK)
make window background black.
2017-11-23 19:28:06 +01:00
b96ac8e000 (finally) fix sound
* reset capture position when starting capture
* reorder channel/capture handling
* implement FIFO for channel and capture
2017-11-11 18:46:42 +01:00
35c3b34a09 make screen rotation configurable. start making it all clean. 2017-11-09 16:02:17 +01:00
f2a5be6096 make touchscreen code take rotation into account 2017-11-09 00:15:59 +01:00
34513063ab begin work on rotation 2017-11-09 00:04:01 +01:00
bb87a709be cooler screen positioning in horizontal mode 2017-11-08 02:02:15 +01:00
e6e5f48748 attempt at horizontal mode, I guess 2017-11-08 01:53:20 +01:00
857ba49759 actually implement screen gap 2017-11-08 01:34:11 +01:00
0a04efc33e attempt at auto-emphasis mode, emphasizing main screen 2017-10-30 05:45:26 +01:00
85d823d4c7 fix more sizing bugs 2017-10-30 05:17:20 +01:00
f4e7e2f62a fix aspect ratio code 2017-10-30 05:08:04 +01:00
c9082cd50d some attempt at fancypants scaling, I guess 2017-10-30 04:39:50 +01:00
befc5db031 restore FPS counter 2017-10-11 03:06:30 +02:00
f9d9aaec11 Merge pull request #112 from bentley/master
Portability fixes
2017-10-11 02:56:06 +02:00
ee1da52d77 fail gracefully when ROM loading fails 2017-10-11 00:01:05 +02:00
56bf1ecc13 Treat failed haptics initialization as a warning, not a fatal error. 2017-10-09 03:42:50 -06:00
dad0e6b6e8 add support for non-resizable windows 2017-10-02 23:26:25 +02:00
f8b63759f7 save window size 2017-10-02 23:15:39 +02:00
d0770596ea re-add basic scaling 2017-10-02 03:34:17 +02:00
09920126dd add support for setting an explicit min size for libui controls. for now only supported by uiArea. 2017-10-02 01:58:09 +02:00
1975efaeea fix bugs with SPI shutdown 2017-10-01 03:19:39 +02:00