Commit Graph

126 Commits

Author SHA1 Message Date
twinaphex
8487cd0204 Start using C89-style for loop initial declarations for
reusable code module parts that we reuse in other projects. It's
a huge maintenance burden having to change this stuff around everytime
when compiling in non-C99 mode
2013-10-19 19:39:38 +02:00
Themaister
7df4500024 Use native side asset extraction. 2013-10-14 21:08:41 +02:00
Themaister
23069b6146 Log how SRAM is truncated. 2013-10-13 18:53:12 +02:00
Grazvydas Ignotas
0711463c1e Allow partial SRAM load
Different cores that emulate the same system may have slightly different
understanding of SRAM, like it currently is for Genesis Plus GX vs
PicoDrive. Currently Genesis Plus GX uses larger padding, which means it
creates larger files. When loading such file for PicoDrive, current
code refuses to load it and this effectively destroys user's save
because new SRAM file is written on PicoDrive's exit.

To fix this, allow partial load (and print a warning).
2013-10-13 18:42:31 +03:00
Themaister
197c4db204 Add RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME.
Allows libretro core to not require a ROM to be loaded.
Kill stdin ROM loading support (pointless these days).
Replace "no ROM on CLI" behavior to be attempting to load a core with no
ROM.
2013-05-01 00:59:43 +02:00
twinaphex
da8bbde11d Simplify some _WIN32 includes 2013-04-11 22:35:15 +02:00
Themaister
0ab0688525 Error out correctly if ROM fopen() fails. 2013-02-18 20:31:29 +01:00
ToadKing
7bdc1df39a delete the correct file 2013-01-21 20:28:30 -05:00
ToadKing
6d174dcc3b (Console) don't delete the wrong file on when loading a second rom after loading one in a zip file 2013-01-21 20:18:11 -05:00
Themaister
b90490f425 Add zip loading support to core. 2013-01-21 23:52:47 +01:00
Themaister
e04217e373 Refactor where ROM is loaded. 2013-01-21 21:01:12 +01:00
Themaister
276b588217 Add custom xml parser. Use as fallback. 2013-01-02 15:18:42 +01:00
Themaister
0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
Themaister
64ba845cf4 Do not strip copier headers.
This was a bSNES specific "thing". bSNES core now strips copier headers
anyways.
2012-11-17 00:32:36 +01:00
Themaister
f643df4300 Log save ram more verbosely. 2012-11-16 11:47:39 +01:00
Themaister
c2674328ec Fix broken CRLF, and minor fixes for VC12. 2012-10-24 17:19:37 +02:00
Twinaphex512
53868033b7 (MSVC 2012) Initial MSVC 2012 solution
Just need to sort out the linking errors - we'll need to create a
Direct3D driver that is not external for PC and do away with the
'external' one which is really an unacceptable extra dependency for such
a popular graphics API. Also, look if the WGL context file will even
work. Added some TODOs too.
2012-10-24 15:48:44 +02:00
Themaister
369431d97d Remove some "not-so-serious" logs. 2012-09-07 21:59:20 +02:00
Themaister
29a1e7ac27 Purge some still lingering SSNES-isms. 2012-09-07 21:56:26 +02:00
Themaister
ce740f8948 More fixups. 2012-04-21 23:31:57 +02:00
Themaister
aab8fb6151 ssnes_* => rarch_*. 2012-04-21 23:25:32 +02:00
Themaister
9ab51ad23a SSNES => RetroArch. 2012-04-21 23:17:43 +02:00
Themaister
687d5a2b2b Fix build for Win32. 2012-04-13 21:30:55 +02:00
Themaister
8c426ed49a Split file.c in two. 2012-04-13 21:29:25 +02:00
Twinaphex
add97b9ef5 (360) Don't make a copy of dir_list_new in 360/main.c but rather use
the one in file.c with two small Xbox 360 tweaks to make it work
2012-04-13 14:52:51 +02:00
Themaister
7c5c04bf36 Warning fixups. 2012-04-10 00:37:30 +02:00
Themaister
9f0211d9d7 Fixup C++ build. 2012-04-09 22:30:29 +02:00
Themaister
e3a71a8c5b Fixup headers. 2012-04-09 22:05:26 +02:00
Themaister
e012e290ae Builds clean. 2012-04-09 22:04:44 +02:00
Themaister
5d51942f69 libretro fixups. 2012-04-09 22:04:43 +02:00
Themaister
62c96ea937 Change license header. 2012-04-09 22:03:57 +02:00
Themaister
9698cd7dbd Change headers. 2012-04-09 22:03:57 +02:00
TwinAphex51224
a860a71016 (360) 360 uses Griffin now too 2012-03-29 12:04:58 +02:00
Themaister
d73ec9b645 Move hashing code to hash.o. 2012-03-25 23:29:39 +02:00
Themaister
5272008f54 Add --no-patch to forcefully disable all patching. 2012-03-20 23:45:58 +01:00
Themaister
4e772003c8 Style nit. 2012-03-20 23:18:10 +01:00
Themaister
48cddde84a Add IPS patching. 2012-03-20 23:08:34 +01:00
Twinaphex
4e3359ec19 Merged console_ext.c / main_wrap.c and got rid of warning in file.c 2012-03-17 23:05:48 +01:00
Themaister
56e5c9fcec Refactor patch handling. 2012-03-17 01:12:29 +01:00
Themaister
224db6a4c8 Merge ups.h/bps.h into patch.h. 2012-03-16 23:47:31 +01:00
Themaister
9ab02b12be Move compat functionality to compat/. 2012-03-16 23:26:57 +01:00
TwinAphex51224
81988fc1ef (360) Don't include D3D/Netcode where not needed through NOD3D/
NONET defines
2012-03-11 16:17:42 +01:00
Themaister
6d1ab7ebfd Revert changes with HAVE_XML. The XML read for memory map are not parsed
in any way by SSNES and does not depend on libxml2.

Also keep removal of log where XML map is not found (very likely
anyways).
2012-02-16 20:25:25 +01:00
TwinAphex51224
2760b5b0c2 (Core) Don't create 'can't load XML memory map' if HAVE_XML
is not defined for the port
2012-02-16 03:49:13 +01:00
TwinAphex51224
317f255eae (Core) Remove obsolete file checking function 2012-02-15 18:43:35 +01:00
TwinAphex51224
2cb946ec8b (Core) Add filepath_exists to file.c - needed for console ports 2012-02-15 02:09:55 +01:00
Themaister
9c861f13be Fix additional exclamation marks. 2012-02-11 21:16:01 +01:00
Themaister
accb011196 Add fill_pathname_base. 2012-01-30 22:45:43 +01:00
TwinAphex51224
734afe2058 (PS3) Implement file_is_directory on PS3 2012-01-30 17:18:31 +01:00
TwinAphex51224
e044275c3e (360) Fix for 360 - INVALID_FILE_ATTRIBUTES is not defined in a
360 header
(PS3) Added g_console.rom_path setting - not using g_extern.system.
fullpath anymore
2012-01-21 02:58:19 +01:00