Commit Graph

1918 Commits

Author SHA1 Message Date
riccardom 8b2ebeb2da Add static where due, remove unused variable 2009-01-21 06:41:48 +00:00
riccardom c7188b2d48 stop shadowing of i 2009-01-21 06:41:17 +00:00
mtabachenko f9acd10d94 - add clear data for paths variables; 2009-01-21 00:16:36 +00:00
mtabachenko 8b80838fb8 - added detect Homebrews for game serial :) 2009-01-21 00:09:43 +00:00
mtabachenko 63e9338860 :( stupid me!!! I declared variable "buf" as array pointers "char" with size MAX_PATH in LoadROM. sorry 2009-01-20 23:20:32 +00:00
luigi__ 8c9d99b608 Optimized the 3D pixel blitting funcs a bit. 2009-01-20 22:32:33 +00:00
zeromus e3ce9a41f4 forgot to checkin a file 2009-01-20 22:12:20 +00:00
zeromus f251df055e example of how i think mosaic should work, for 16 and 256 color standard BGs. not tested well. 2009-01-20 22:10:41 +00:00
mtabachenko 16eee0c416 - opps I broke display FIFO. fixed :) 2009-01-20 22:03:55 +00:00
luigi__ 9f6ed6db93 Blending should now work correctly in SPP. 2009-01-20 21:36:44 +00:00
mtabachenko a0c3c02ea9 core:
- fix display FIFO;
- more accurate RTC implementation (is working more correct with Homebrew now);
2009-01-20 21:31:32 +00:00
luigi__ 36132978f5 Oops, forgotten to remove a hack to disable mosaic :(
(anyway mosaic is buggy)
2009-01-20 16:47:28 +00:00
luigi__ dd92d07548 Oops, it seems that the palette index can't be used when using regular palettes on 16-bit affine backgrounds.
BTW, DeSmuME now validates all the graphics tests! (http://wiki.akkit.org/Nds_test_app_releases)
Does somebody have champagne? :P
2009-01-19 22:28:57 +00:00
luigi__ b104d06b4f Fixed a bug with 16-color affine BGs. 2009-01-19 21:42:45 +00:00
yabause 06ab1d081b Added copyright headers for files coming from FCEU.
I'm mostly unsure about those one :)
Again, feel free to update them.
2009-01-19 21:36:27 +00:00
yabause 6909133c5f Added missing copyright headers.
Again, feel free to fix any error I made.
2009-01-19 20:46:49 +00:00
yabause eeb78c4086 Added/fixed some copyright headers.
Feel free to double check and further fix what I've done.
2009-01-19 20:25:40 +00:00
luigi__ b4a3a5ddef Better determination if BG0 has the highest prio. 2009-01-19 19:04:10 +00:00
luigi__ d652b5a0f4 Cleaner and better blending logic for backgrounds.
For info, not performing blending if BLDALPHA_EVA is 16 can cause glitches.
2009-01-18 16:40:31 +00:00
luigi__ 15904d31de Changed default color to pink, so we can now distinguish between transparent and black pixels. 2009-01-18 15:49:09 +00:00
mtabachenko b76fc6277b core:
-fix VRAM mapping for textures (broke in rev 1459, zeromus check it)
2009-01-18 15:25:57 +00:00
mtabachenko f15e3c1b6a - added display FIFO data to savestate; 2009-01-18 13:48:18 +00:00
mtabachenko 38bdc6c2f2 core:
- added display memory FIFO;
2009-01-18 13:43:05 +00:00
luigi__ 5b53b8c73e I made the first correct implementation ever for sprite blending!
(Transparency for bitmap sprites isn't supported yet... tell me if you see sprites that still don't blend correctly)
2009-01-18 12:47:53 +00:00
mtabachenko c4a0542ad3 winport:
- fix crash when close the input config dialog and on exit (on systems where no feedback game devices);
2009-01-18 08:07:53 +00:00
luigi__ 45ee9f6bb5 Changed the sprite drawing functions to save sprite type & alpha.
I've figured out how to implement sprite blending, I'll do it soon.
2009-01-18 00:39:24 +00:00
riccardom 4447955558 Fix strange usage of decrement operator. 2009-01-17 20:09:53 +00:00
luigi__ bf5ca69394 Reverted the save file extension to sav.
Why was it changed to dmc ? I can't find a good reason, it's only annoying.
2009-01-17 17:29:47 +00:00
mtabachenko 081a269f94 core: - cleanup LoadROM and adden paths variables; I changed file saves extension for different with others emuls. :)
for saves (memory cards): dmc (DeSmuME memory card);
for quick saves: dsx (DeSmuME saves when x-number of slot);
for cheats: dct (DeSmuME cheats).

may need later add import saves (memory card) from another emuls.
2009-01-17 16:12:46 +00:00
luigi__ e271c6c4eb Reverted the direct sprite blitting as it causes problems when sprites are behind translucent backgrounds.
Added a new param to the sprite rendering funcs, meant for proper sprite blending.
2009-01-17 15:08:55 +00:00
mtabachenko fd69a0e0aa ops... forgot update file :( - fix winport compile 2009-01-17 14:16:07 +00:00
luigi__ 17f285d455 Changed sprite blitting to draw them directly on GPU_screen instead of a separate buffer.
We'll now be able to do proper sprite blending.
2009-01-17 13:48:58 +00:00
luigi__ f538364e3b Added support for disabling the sound speakers (bit1 of POWCNT2) 2009-01-17 12:12:42 +00:00
mtabachenko 2efd0e19e0 core:
- fix lid folding;
- fix rumblePak addon;
winport:
- added feedback support & analog joysticks;
2009-01-17 11:47:13 +00:00
riccardom 02b6c46751 Add needed header osmesa_3Demu.h, remove unneeded stdio.h and move stdlib.h on top because. 2009-01-16 23:04:09 +00:00
luigi__ 26c2dd2ec9 Fixed a possible bug with 256-color backgrounds not using extended palettes. 2009-01-16 22:41:01 +00:00
luigi__ f035b9d331 Removed some hacks that were supposed to force blending for sprites and that actually cause glitches. 2009-01-16 22:07:58 +00:00
luigi__ 171b4aeeba Fixed a bug with scrolling on 16-color text backgrounds.
Fixed a possible bug with 3D layer scrolling.
2009-01-16 20:35:40 +00:00
riccardom 519711e6f8 Add enable / disable audio switch to gtk frontend. 2009-01-16 20:04:00 +00:00
riccardom 58ac31761a This is more useful not commented, desmume handles the error fine. 2009-01-16 19:52:08 +00:00
luigi__ 747cc72948 Fixed scrolling for 3D layer (it would scroll backwards).
Plus, we can now get rid of the start/end params in the 3D GetLine func.
2009-01-16 15:25:12 +00:00
riccardom 6740cc3b7d Put brackets around a possible noop inside an if. 2009-01-15 21:09:43 +00:00
riccardom e8b3a77331 This is static in NDSSystem.cpp so declaring it extern here does not make sense. 2009-01-15 21:02:47 +00:00
riccardom b57533998a Move MAX_PATH definition for _GNU_C platform to types.h since it's used more than once. 2009-01-15 21:01:35 +00:00
riccardom daa2d26ff6 Add chetSystem to compilation and fix compilation. 2009-01-15 20:59:37 +00:00
zeromus 3b32a1cb4e fix texture debug dumping to flip bmp so that they are wysiwyg 2009-01-15 20:16:49 +00:00
zeromus c3e28a662f mount empty memory for tex and tex palette memory when slots are unmapped. provide diagnostics when unmapped slots are referenced by textures. 2009-01-15 19:33:04 +00:00
mtabachenko 92fb5e378f minor fix in cheat system 2009-01-15 11:43:25 +00:00
mtabachenko 8a9103ed33 core:
- add cheat system (i will Action Replay & Codebreaker parser later :( )
winport:
- add cheats finder and cheats editor;
2009-01-15 00:46:18 +00:00
luigi__ 0bdad85503 Added a table for alpha conversion from 5-bit to 4-bit. Avoids having the 3D layer slightly transparent where it should be opaque. 2009-01-14 22:33:43 +00:00