Commit Graph

2725 Commits

Author SHA1 Message Date
zeromus 128305c5fd win32: fix typo in sound config dialog 2009-08-04 22:33:29 +00:00
riccardom 339eb9973c Remove usage of uint which is not available on MSC, thanks CrazyMax for noticing. 2009-08-04 21:00:23 +00:00
riccardom 4029f105d8 On gcc the packed attribute is supposed to not work when you use
a typedef in the struct definition. Then packing the whole struct
and each member is redundant. So cleanup __PACKED usage and
hopefully both shut up gcc warnings and keeps things working :).
2009-08-04 20:49:19 +00:00
riccardom 7324afeafd Move rewindsave and dorewind declaration to a proper header instead of using extern. 2009-08-04 20:32:13 +00:00
riccardom e3c0aadb86 Fix gcc warning about enum not handled in switch. 2009-08-04 20:24:56 +00:00
riccardom 04e66de722 Reorder variable initialization to shut up gcc warnings. 2009-08-04 20:20:39 +00:00
riccardom 3043d4045e Fix a few signed vs unsigned comparison warnings. 2009-08-04 19:47:03 +00:00
riccardom 0069c02e73 Put that big pile of double commented code inside an if 0. 2009-08-04 18:46:39 +00:00
riccardom d0ed6ae79c Kill the extern since this would be the default. 2009-08-04 18:41:09 +00:00
riccardom 8e75d3521a Make a function static, add a missing prototype for another one and remove an unused variable. 2009-08-04 18:35:50 +00:00
riccardom 00b5148274 Make a few functions static and shut up signed vs unsigned gcc warnings. 2009-08-04 18:28:03 +00:00
riccardom c99e7dc2e5 This should be MSC specific. 2009-08-04 18:19:01 +00:00
riccardom fc8b2dbfc2 Oh there is another windowDraw gcc bitches about the possibility to have
it unitialized.
2009-08-04 18:10:23 +00:00
riccardom 8bef7cfa68 gcc warns that windowDraw may be used unitialized which in theory is true. 2009-08-04 17:59:58 +00:00
riccardom 6c3b1059b0 Move variable initialization in constructors to shut up gcc warnings about their ordering. 2009-08-04 17:50:02 +00:00
p989 fbab1c2b5f agg.setFont and agg.text 2009-08-04 16:35:38 +00:00
nitsuja 84f637865f win32: some dialog flags/extensions fixes, minor menu readability/grammar fixes, and changing some instances of "Gens" to "DeSmuME" 2009-08-04 10:06:01 +00:00
nitsuja 194723d96d win32:
- added freeform editing of the screen gap size by dragging the window border (optional)
- added extra gap size option
- fixed bug with window sliding around when resizing from the top/left
- fixed(?) bug with default window size command setting invalid sizes after the rotation/gap settings have changed
- fixed some inconsistency in the restoring of forced aspect ratio when changing modes
- fixed window getting very squashed at large sizes even if force maintain ratio is on
2009-08-04 07:44:39 +00:00
zeromus 52b7454046 rasterize: fix bug in edge marking that overwrote depth buffer with one line of color data 2009-08-03 21:57:00 +00:00
zeromus 4015411ad6 gpu: fix bug with 16color bg overdrawing line buffer by one pixel when scrolled to an odd offset. move assert x<256 lower in callstack to help spot these bugs more aggressively. 2009-08-03 21:41:07 +00:00
zeromus 77da6267bf win32: guess for now we have burn cycles copying the GPU_screen so that we keep a pristine copy for screenshots. also screenshots for savestates. the final display handling pipeline still isnt finished yet so this could change again 2009-08-03 05:08:37 +00:00
zeromus 057703e529 fix linux compile, and some warnings 2009-08-03 02:15:35 +00:00
nitsuja ea08d4aa84 rasterizer: fix for everything blended being slightly transparent
opengl: fix for everything blended being doubly opaque
2009-08-03 01:57:25 +00:00
luigi__ c9e2db0250 Oops... fix IORegView. 2009-08-02 23:06:39 +00:00
luigi__ 2254c143ed General: merge ARM9_struct contents into MMU_struct and remove ARM9.h.
(why was ARM9 mem separated from the rest? plus MAIN_MEM doesn't really
belong to the ARM9)
2009-08-02 23:04:26 +00:00
luigi__ 81cf844df6 General: the DS card stuff can perfectly fit in MMU.h (though it'd fit
better in NDSSystem.h, but it would require more work). There's no need 
for tiny extra files.
2009-08-02 22:35:44 +00:00
nitsuja d6fb00bb84 win32: fix for crash when changing the rotation or filter mode 2009-08-02 22:20:44 +00:00
luigi__ d1fe3e3c21 General: the definitions of ARMCPU_ARM9, ARMCPU_ARM7 and ARMPROC seem
to fit the best in MMU.cpp ... so let's get rid of that hack.

Feel free to revert if it breaks compilation under Linux or whatever.
Worked fine under Win32.
2009-08-02 21:14:27 +00:00
luigi__ bf124165f7 Core: prepare gamecard system for future KEY1 and KEY2 encrypted command support.
Also rename MMU_clearMem to MMU_Reset because it's called upon reset and it
doesn't only clear memory.
2009-08-02 20:55:38 +00:00
adelikat 64e0b8a2af Win32 - drag n drop for savestates and movie files. 2009-08-02 20:32:53 +00:00
adelikat 07bdf7d148 Win32 - Adding an "all files" open in the Loadstate as Open file dialog box. Adding on the trunk and on 9.2+ 2009-08-02 19:53:20 +00:00
mtabachenko 13fbc2ea8e undef wifi in non public release (luigi__, sorry if i broke you stuff, but WiFi slowdown emu. may define it only after optimising wifi) 2009-08-02 18:01:10 +00:00
mtabachenko bd04d8e9bb revert last commit. (DON'T touch it if you don't understand how it work. you reverted function which used ONLY in new gxFIFO) 2009-08-02 17:35:14 +00:00
riccardom 28ff237695 Revert r2697 and r2698 because they slowdown things a lot for me and at least
another user.
2009-08-02 16:39:47 +00:00
luigi__ a10305e786 CPU (THUMB): fix for opcode 'BX PC' which does switch to ARM state.
This fix allows the BIOS to boot a bit further (still doesn't boot).
2009-08-02 11:21:50 +00:00
zeromus 573f321508 rasterize: another fix for shadows. fixes most, if not all, of the recently broken shadows. 2009-08-02 08:18:13 +00:00
zeromus f1fa6973ab fix some regressions in display capture (fixes games with vertical streaks corruption) 2009-08-01 22:09:19 +00:00
luigi__ 6dd74f9fd2 NDS: calculate ADC touch coords from firmware calibration info.
Now when using an external firmware, you don't have to re-calibrate
the screen anymore to get correct touchscreen input.
Though, touchscreen input is still broken in commercial games
when using an external firmware. Info on that problem: touchscreen
calibration data in main mem are zeroed out for some weird reason.
2009-08-01 20:42:32 +00:00
luigi__ ea35450d02 Win32: make disassembler available in non-dev+ builds.
NDS: remove the Win32-specific include. The "autoupd asm" 
thing is just crap anyway, and we should avoid platform-
specific code in the core.
2009-08-01 11:45:13 +00:00
mtabachenko 71158e5081 revert some stuff from rev.2697 2009-08-01 06:54:15 +00:00
zeromus b8694398f6 rasterize: fix shadows more. it seems that we need more than one stencil bit. 2009-08-01 06:44:33 +00:00
zeromus c0ea499806 change 3d rendering to use 18 bits of color instead of 15. fix mario kart star powerup rainbow effect regression. merge all 3d pixel blitters into one function. fix bugs in new fifo savestates. i probably just broke some stuff but its worth it. 2009-08-01 00:47:21 +00:00
zeromus 131603c25b fix an error in wifi savestates; add sanity checking for chunk identifier to savestate code to keep this mistake from happening again 2009-07-31 21:46:21 +00:00
mtabachenko 27ce7acf63 new gxFIFO:
- fix pipe clear;
2009-07-31 17:04:02 +00:00
mtabachenko 0eaef3ea53 new gxFIFO:
- more optimizations FIFO;
2009-07-31 13:09:23 +00:00
mtabachenko d78cc99dab new gxFIFO:
- add small hack (smb64 work now)
2009-07-31 10:26:19 +00:00
nitsuja 3790d1d52e fix for too-thick rendering of edgemarked single pixels or sharp protrusions 2009-07-31 09:58:35 +00:00
gocha 14fd8ae6eb Fixed turbo behavior on movie playback (when a movie held a button and the turbo for the button was enabled, the button became released) 2009-07-31 06:33:24 +00:00
mtabachenko 8952a9005e - typo fix (unpacked no$gba saves); 2009-07-30 16:32:49 +00:00
mtabachenko 9bd1b7e691 -some fixes in no$gba saves unpacker; 2009-07-30 15:13:11 +00:00
mtabachenko 517d31bae9 - add loading saves from No$GBA ;) 2009-07-30 14:47:54 +00:00
mtabachenko 66b71553d0 core:
- optimize IPC FIFO;
2009-07-29 22:59:46 +00:00
mtabachenko 309cb2418a new gxFIFO:
- optimization of FIFO functions (speedup);
2009-07-29 22:10:55 +00:00
nitsuja ea5abf672e attempt at fixing the edge marking implementation (softrasterizer) 2009-07-29 13:14:05 +00:00
nitsuja d9b6e86c40 fix for emu window not showing up after it gets saved at position (-32000,-32000) 2009-07-29 04:51:38 +00:00
riccardom 146f8b43df Note we have osd and hud on linux frontends too. 2009-07-28 20:43:56 +00:00
riccardom ffeb6b97f0 Make glib mandatory for all frontends. 2009-07-28 20:36:53 +00:00
zeromus 74e0fabca9 gfx3d: fix bugs in poly sorting 2009-07-28 08:14:11 +00:00
zeromus 2c3cef961c win32: more threading fixes, and fix a bug in stylus coordinate osd 2009-07-28 05:29:28 +00:00
zeromus 11e417f55a win32: safer threading logic in shutdown sequence 2009-07-28 05:12:23 +00:00
zeromus 7219f88382 win32: change osd compositing to 32bpp and decouple from emulation update; add nearest2x resizing filter; add framerate-independent drawing equipment to osd (test in savestate slot display); make lua drawing thread-safe once again; get rid of some warnings 2009-07-28 04:47:06 +00:00
zeromus 74702bae5a gpu: fix a bug in affine start register regeneration which may have made some games (pokemon dash?) fail to make it back from a savestate with scroll variables intact 2009-07-27 20:15:07 +00:00
zeromus bb85744a6f win32: change mapview tool scroll display to indicate that it is useless, because it is 2009-07-27 19:57:36 +00:00
luigi__ 642ce3a115 Win32: fix a bug which would cause recent roms menu to accept only
9 recent roms instead of 10.
2009-07-27 18:35:48 +00:00
zeromus 66c895dca4 fixi wifi compiling in linux 2009-07-27 18:01:42 +00:00
nitsuja ae940c79e1 savestate date memory overwrite fix 2009-07-27 16:25:00 +00:00
mtabachenko de427321ab gxFIFO:
- fix crash some games (Rayman DS now works);
2009-07-27 15:15:00 +00:00
zeromus 2ed7ef8c89 dmacompleted needs savestating 2009-07-27 11:28:02 +00:00
zeromus 6ada678c69 oops my bad. newgxfifo changes back in 2009-07-27 11:16:09 +00:00
zeromus e41741f457 revert gxfifo related changes so at least we have a revision that works. feel free to paste over when its working again 2009-07-27 11:08:37 +00:00
mtabachenko 45d7f2aef9 opps, sorry :( i forget commit mmu.cpp in rev.2667 2009-07-27 11:02:19 +00:00
zeromus c6a8854e92 integrate desync fixes from 094 branch. many extra files touched due to svn merge info tracking being poopy 2009-07-27 10:39:56 +00:00
mtabachenko 8339abdd71 new gxFIFO:
- fix gxFIFO buffer overflow with DMA (Zelda, Submarine tech demo etc.); (but this fix hackly and need rewrite all dma stuff)
2009-07-27 10:28:59 +00:00
zeromus c04caafcbf rasterize: little tweaks to fog 2009-07-26 21:41:10 +00:00
zeromus db610129bb rasterize: add fog emulation 2009-07-26 21:13:38 +00:00
luigi__ 9828895c53 NDS: oops... comment out some logging I added to figure out why the firmware couldn't
boot games.
2009-07-26 18:18:47 +00:00
luigi__ c48ef684f6 MMU: reorganize gamecard emulation so it's easier to implement commands.
NDS: when booting from firmware, copy secure area to main memory (this
is done by the BIOS, not the firmware). This allows the firmware to boot
games! :)
2009-07-26 18:06:47 +00:00
riccardom ef6717c210 Add osd notification for fake microphone and audio toggle, cleanup a bit the hud code. 2009-07-26 08:26:41 +00:00
riccardom 2f1c14fe33 Cleanup the recent hud addition: remove unneeded function calls and includes and put hud initialization code in the same place. 2009-07-26 08:19:21 +00:00
zeromus 1ba3351f6e oglrender: support wireframe 2009-07-25 19:59:40 +00:00
riccardom b5dfdc501c Hook the hud in the cli frontend, based on a patch from szigor at #2825066.
Auto pause, fake mic and boost now have osd notification.
2009-07-25 08:18:16 +00:00
riccardom aa08c20987 Remove stale prototype for ResetHud() which is gone. 2009-07-25 07:54:42 +00:00
zeromus 443fa0c50f gpu: fix disp fifo capture and vram capture/display from same bank. i am beginning to rewrite the dispfifo logic so there may be some easy regressions to fix. fixes splinter cell. 2009-07-25 06:40:47 +00:00
zeromus c0b302f4e4 fix color overflow in capture blending; fixes freedom wings 2009-07-25 03:40:27 +00:00
luigi__ 3856c0c5e9 Add missing files to VS2010 project. 2009-07-24 18:18:39 +00:00
zeromus 9fe5205b2e win32: fix little menu bugs 2009-07-24 08:40:26 +00:00
zeromus 2d5889eaa8 rasterize: add rear depth scroll register emulation; fixes narnia 1 2009-07-24 07:31:56 +00:00
zeromus acadc2f784 fix a bunch of warnings 2009-07-23 20:49:33 +00:00
riccardom c16bf09a68 Update cli frontend makefile to add libagg cflags and to use AM_CPPFLAGS as
used by the gtk frontend instead of AM_CFLAGS. Issues pointend out by szigor
in patch #2825066.
2009-07-23 19:04:58 +00:00
zeromus 188a7e54c4 hud editor works on savestate slot display 2009-07-23 18:34:45 +00:00
zeromus c2943e28d9 allow hud editor to move elements to the bottom screen 2009-07-23 17:24:45 +00:00
p989 908f4116a7 win32: make frame advance more normal 2009-07-22 02:01:31 +00:00
zeromus 689d9a94df win32: fix some frame advance bugs. also maybe fix hotkey mushiness 2009-07-22 01:28:23 +00:00
zeromus 5676772a6c win32: cleanups for hotkey autorepeat 2009-07-22 00:25:25 +00:00
zeromus a88b22e547 increase visual studio warning level and deal with the consequences. 2009-07-21 23:38:19 +00:00
zeromus a086c21ba7 fix savestate saving 2009-07-21 23:18:22 +00:00
zeromus 123743fa57 win32: get rid of some new glibc linker warnings. 2009-07-21 22:59:51 +00:00
zeromus 359aafba57 speed up state rewinding 2009-07-21 08:09:52 +00:00
p989 1559e84d0d win32: savestate rewinding 2009-07-21 07:09:14 +00:00
zeromus 2228a8de13 win32: tone down the default intensity of the scanline filter a bit, and add commandline args to control the intensity, in the vain hopes that someone will give me feedback on what their favourite values are 2009-07-21 02:32:55 +00:00
zeromus 3f3e086d61 win32: what's this..? is it..? could it be..? indeed, it is! a multicore optimization! now featuring all final display logic triple-buffered in another thread. offloads to another thread: rotation, color conversion, filter scaling, and directdraw buffer copy. this makes filter scaling effectively costless. 2009-07-21 01:55:16 +00:00
zeromus f95c64cc6a win32: enable gthreads 2009-07-21 00:08:52 +00:00
zeromus 0d36fecf93 reconfigure sse optimizations. all asm routines have been rewritten with intrinsics so that they are more neatly inlineable; this speeds them up by a couple of FPS; also, they work in gcc; and they can be enabled separately with ENABLE_SSE and ENABLE_SSE2; 95% of the optimizations come from the SSE optimizations, meaning that SSE2 will not be necessary to enjoy the bulk of the optimizations. I think. 2009-07-20 23:33:39 +00:00
zeromus 3abc58ae36 change loadrom() to use FILE* instead of std::ifstream. sidesteps mbcs path issues 2009-07-20 22:55:51 +00:00
p989 17fe2472a2 win32: cursor doesn't get stuck when dragged outside window 2009-07-20 16:03:00 +00:00
gocha 6d4e256d2b Fixed movie length info (60.00fps -> 59.82fps) 2009-07-20 04:37:07 +00:00
zeromus 81b885777c fix some rom loading things 2009-07-20 01:41:22 +00:00
zeromus a61483d87d fix linux compile bug 2009-07-20 01:06:06 +00:00
luigi__ 06e4bcfbb1 zeromus,
(l706) I am okay with these optimizations, even if they don't help much.
But you really, really should avoid giving your macros/variables such...
terrible names. This really looks terrible and unclear.

After waiting a while for you or somebody else to rename those vars/macros, 
I finally decided to do it myself because they were bugging me. It's okay 
for this time, but the next time I see such terrible names in a commit, I'll
just revert it.
2009-07-19 23:13:09 +00:00
p989 2a90946ff5 win32: load archives without temp files 2009-07-19 21:42:15 +00:00
gocha 488fc951d0 Quick fix that should disable autohold while movie playback 2009-07-19 13:07:03 +00:00
zeromus c24caade3e gpu: fix rotozoomed 2d mapped direct color bmp sprites. fixes knights in the nightmare credits intro 2009-07-19 09:41:05 +00:00
zeromus 4a19bac748 gfx3d: i've realized that the poly sorting must happen after clipping. there is no way to do this now, so to approximate really well, it, we will perspective divide the y values. fixes island of happiness shop menus. 2009-07-19 08:23:14 +00:00
zeromus 119deba104 old gxfifo: fix bug which broke galactik football 2009-07-19 07:07:58 +00:00
zeromus 7a2b970aff revert my earlier changes to 0x8000 handling in display capture. i changed my mind, it is working the way it needs to. hotel dusk is broken for other reasons 2009-07-19 02:05:07 +00:00
shashclp 2d6477ce1b - Fixed emulator crash on sample loading failure 2009-07-19 01:23:43 +00:00
zeromus 6c00a49806 gpu: rework capture opaque flag handling a bit. this is a risky change and may break some other capture and layer blending scenarios, but the old way of doing it (writing 0x8000 to vram for opaque black pixels from capture blending) is simply wrong and unworkable. fixes hotel dusk. 2009-07-18 20:24:20 +00:00
zeromus e9d75ad573 rasterize: fix bug in sse texture sampling optimization, fixes ridge racer sky 2009-07-18 18:52:11 +00:00
zeromus f9592ea6d1 gpu: fix layer blending regression, fixes yoshi touch and go 2009-07-18 18:32:10 +00:00
zeromus d8b3a0581d rasterize: fixes to shadows 2009-07-18 18:19:17 +00:00
riccardom 706af15ebe Remove dumplicate double dummy backend from SNDCoreList. 2009-07-18 16:50:24 +00:00
riccardom e96e14d8e6 Shut up gcc's deprecated conversion from string constant to ‘gchar*’ warning. 2009-07-18 13:26:04 +00:00
riccardom 305da3d38a Remove -Wshadow from --enable-hardcore because it triggers so much inside libagg code. 2009-07-18 13:14:23 +00:00
riccardom 2d9bd66224 Declare nds_savestate and nds_loadstate in a proper place. 2009-07-18 13:02:53 +00:00
riccardom 894458bc53 Make some functions static and remove a couple of unused variables. 2009-07-18 12:52:44 +00:00
riccardom a3cbf8ea01 Add missing enum value in switch. 2009-07-18 12:13:45 +00:00
riccardom 194ee3f339 Make a few functions static. 2009-07-18 12:11:36 +00:00
riccardom ec25feee98 Add missing header for memset. 2009-07-18 12:04:36 +00:00
zeromus 062a228877 grab bag of optimizations: many optimizations to sse functions, now using intrinsic functions. this would enable these functions to work on gcc (i think) if our configuration supported it, but it will fail for some vc++ express installations. those guys will have to either #define SSE2_NOINTRIN or help me figure out which installations are broken and why and how to fix it. also, collapse BG layer pixel blenders into a single function, so watch for regressions there. 2009-07-18 09:15:41 +00:00
riccardom baef153e05 Make clear that at least for now antigrain library is mandatory. 2009-07-18 08:57:51 +00:00
zeromus f71921404c win32: screenshot: fix failure to save pngs and failure to respect user specified path 2009-07-17 21:04:42 +00:00
p989 087e9ae5ed display stylus coordinates 2009-07-17 20:33:41 +00:00
zeromus ca6c0db294 dont crash when exiting program 2009-07-17 20:23:17 +00:00
zeromus dd505213be fix path building for archived roms 2009-07-17 17:32:39 +00:00
mtabachenko f6d2ca247e new gxFIFO:
- rewrite GE functions;
winport:
- fix GBAslot dialog;
2009-07-17 09:06:23 +00:00
zeromus ecf5b68df6 a grab bag of optimizations good for about 4fps on my system 2009-07-17 08:33:35 +00:00
zeromus dbe2226498 newemuloop: change main loop to 32bit math for a little speedup and fix a goofup that was costing a small amount of speed 2009-07-17 05:16:07 +00:00
zeromus ccf3535154 newemuloop: fix bug in instruction disassembly logging 2009-07-17 04:51:04 +00:00
zeromus b5d9628a7d newemuloop: bump diagnostic counter up to 22 2009-07-17 04:22:59 +00:00
zeromus bb8e239206 man, i am getting sloppy 2009-07-17 04:17:44 +00:00
zeromus b4c4d55ce2 win32: fix a bug in the last checkin 2009-07-17 04:17:07 +00:00
zeromus 6297f00247 fix screenshot path bugs and add some string utility functions 2009-07-17 04:09:07 +00:00
p989 68cf6f1e5e rework and integrate path settings 2009-07-17 02:37:51 +00:00
zeromus 3c5ad7c896 newemuloop: comment that a little better so i dont forget 2009-07-17 00:15:48 +00:00
zeromus e482c772e2 newemuloop: handle an edge case in timing logic better 2009-07-17 00:09:33 +00:00
zeromus 24a040ef2b gpu: emulate display capture while frame skipping 2009-07-17 00:04:35 +00:00
zeromus ffa4adfc47 newemuloop: add diagnostic code for timer calculation 2009-07-16 23:31:25 +00:00
zeromus 3e9dd9d6c0 newemuloop: fix bug in cascaded timers. fixes shrek streamed music 2009-07-16 23:21:21 +00:00
mtabachenko 980a06f871 - cleanup; 2009-07-16 11:17:23 +00:00
zeromus 00d535f9d3 gpu: fix 128-wide captures. fixes hotel dusk 2009-07-16 09:31:06 +00:00