138 Commits

Author SHA1 Message Date
twinaphex
f1819b8c13 Replace read_file instances with retro_read_file 2016-01-30 03:59:30 +01:00
twinaphex
93651ae340 Use CORE_CTL_RETRO_GET_MEMORY 2016-01-28 02:58:53 +01:00
twinaphex
737fd4268c Refactor CORE_CTL_RETRO_GET_MEMORY 2016-01-28 02:53:43 +01:00
twinaphex
f63429601e use CORE_CTL_RETRO_GET_MEMORY in more places 2016-01-27 09:31:31 +01:00
twinaphex
ae2cf510cd Create CORE_CTL_RETRO_GET_MEMORY 2016-01-27 09:29:18 +01:00
twinaphex
e516a64a0c Create CORE_CTL_RETRO_LOAD_GAME 2016-01-27 09:13:26 +01:00
twinaphex
a9e71b12e1 Cleanup 2016-01-27 08:50:23 +01:00
twinaphex
9ad2e6fa1f Simplify some code in load_content - only do cheevos calls
when content has been successfully loaded
2016-01-27 08:48:19 +01:00
twinaphex
24d438ccc1 Start using new callbacks 2016-01-27 07:17:53 +01:00
twinaphex
a4bfd9046c Create CORE_CTL_RETRO_SERIALIZE_SIZE 2016-01-27 06:46:59 +01:00
twinaphex
d1ac905248 Return 'ret' at end of load_content instead of hardcoded 'true' 2016-01-27 02:40:11 +01:00
twinaphex
cce5d3e900 Cleanup dump_to_file_desperate 2016-01-27 00:06:06 +01:00
twinaphex
beb985dbaa Make this code more robust 2016-01-26 08:21:44 +01:00
twinaphex
754bf4043d Load_content_from_compressed_archive sets new_path - attempt
to pass it to retro_load_game
2016-01-26 06:49:59 +01:00
twinaphex
e05f04824c Log calls to retro_load_game and also document some other parts of the code 2016-01-26 06:30:28 +01:00
twinaphex
9c4b927b17 Style nits 2016-01-26 05:48:31 +01:00
twinaphex
5f3b583452 Create CONTENT_CTL_LOAD_RAM_FILE and CONTENT_CTL_SAVE_RAM_FILE 2016-01-25 07:15:05 +01:00
twinaphex
9459cf6445 Rename zlib_ to file_archive_ 2016-01-24 22:17:11 +01:00
twinaphex
aae1faf76f Move crc32_calculate to file_archive_zlib.c 2016-01-24 21:50:28 +01:00
twinaphex
3c2a45d923 Rename file_extract functions 2016-01-24 07:42:46 +01:00
twinaphex
552e78c9bc Rename file_extract to file_archive 2016-01-24 07:29:11 +01:00
twinaphex
c6f7afbd9a Adjust zlib_crc32_calculate 2016-01-24 06:47:06 +01:00
twinaphex
458e3a0fad Fix zlib_extract_first_content_file - we now pass a
new string to zlib_extract_first_content_file which will
fill in the extracted first file's path, we then add this
to temporary_content string list
2016-01-24 05:41:41 +01:00
twinaphex
f4dfde8c47 Replace this with string_list_append 2016-01-24 05:34:17 +01:00
twinaphex
220b42332d Allocate temporary_content once before initing/loading content 2016-01-24 05:29:30 +01:00
twinaphex
55798b0a58 Fix fall-through bug 2016-01-22 20:27:42 +01:00
twinaphex
058c3acbdc Divorce content_crc from global struct 2016-01-22 16:09:48 +01:00
twinaphex
112f564a8f Change setting 2016-01-21 03:49:06 +01:00
twinaphex
89b7fb5380 (content.c) Create error goto 2016-01-21 02:41:29 +01:00
twinaphex
63e2d13b8f Create string_is_equal_noncase - try not to use strcasecmp so much 2016-01-20 17:34:19 +01:00
twinaphex
5643b7d3d8 Add CONTENT_CTL_DOES_NOT_NEED_CONTENT and CONTENT_CTL_SET_DOES_NOT_NEED_CONTENT 2016-01-19 23:15:19 +01:00
twinaphex
a5af9b653a Turn global->content.inited into static local variable
and go through content_ctl
2016-01-19 22:57:18 +01:00
twinaphex
748959c8fc Cleanups 2016-01-19 22:52:31 +01:00
twinaphex
b2426f30a6 (content.c) Start using string_is_empty 2016-01-19 22:41:15 +01:00
twinaphex
4726e3cb4f Cleanups - add more actions to content_ctl 2016-01-19 22:33:37 +01:00
twinaphex
40beb7092a (content.c) Add fallthrough 2016-01-19 22:19:33 +01:00
twinaphex
4df0fb4e07 Turn temporary_content into static local variable of content_ctl 2016-01-19 22:17:54 +01:00
twinaphex
ae704048bc Create CONTENT_CTL_INIT 2016-01-19 22:15:00 +01:00
twinaphex
2836c9755a Create content_ctl 2016-01-19 22:12:25 +01:00
twinaphex
d4102f2816 rename load_content_need_fullpath to load_content_from_compressed_archive 2016-01-19 17:43:37 +01:00
twinaphex
839bf31c2a Rename load_content_dont_need_fullpath to load_content_into_memory 2016-01-19 17:42:14 +01:00
twinaphex
85e6ba128f Move comment in load_content_dont_need_fullpath to appropriate
place
2016-01-19 17:41:14 +01:00
twinaphex
e8e58d841f Cleanup init_content_file_extract 2016-01-19 17:34:47 +01:00
twinaphex
7405535f03 Move attr variable to init_content_file_set_attribs 2016-01-19 17:33:06 +01:00
twinaphex
73e97d119d Cleanups 2016-01-19 17:29:25 +01:00
twinaphex
ddc3959e42 Simplify init_content_file_set_attribs 2016-01-19 17:27:02 +01:00
twinaphex
86906cf5e3 Cleanups 2016-01-19 17:24:42 +01:00
twinaphex
78d3bc5015 Call content_temporary_free if init_content_file errors out 2016-01-19 17:15:36 +01:00
twinaphex
d7375b88e7 Create load_content_append_to_temporary_content 2016-01-19 17:14:57 +01:00
twinaphex
a8ee8ec0cd Put HAVE_ZLIB ifdef around init_content_file_extract 2016-01-19 01:30:28 +01:00