Turn task_patch.c into separately compiled file

This commit is contained in:
twinaphex 2020-01-20 04:31:32 +01:00
parent 8a989b65ee
commit 481f31fe8f
5 changed files with 13 additions and 3 deletions

View File

@ -170,6 +170,7 @@ OBJ += frontend/frontend_driver.o \
intl/msg_hash_us.o \
$(LIBRETRO_COMM_DIR)/queues/task_queue.o \
tasks/task_content.o \
tasks/task_patch.o \
tasks/task_save.o \
tasks/task_file_transfer.o \
tasks/task_image.o \

View File

@ -1204,6 +1204,7 @@ DATA RUNLOOP
============================================================ */
#include "../tasks/task_powerstate.c"
#include "../tasks/task_content.c"
#include "../tasks/task_patch.c"
#include "../tasks/task_save.c"
#include "../tasks/task_image.c"
#include "../tasks/task_file_transfer.c"

View File

@ -109,8 +109,6 @@
#include "../discord/discord.h"
#include "task_patch.c"
extern bool discord_is_inited;
#define MAX_ARGS 32

View File

@ -722,7 +722,7 @@ static bool try_ips_patch(bool allow_ips,
* Apply patch to the content file in-memory.
*
**/
static bool patch_content(
bool patch_content(
bool is_ips_pref,
bool is_bps_pref,
bool is_ups_pref,

View File

@ -136,6 +136,16 @@ bool task_push_overlay_load_default(
void *user_data);
#endif
bool patch_content(
bool is_ips_pref,
bool is_bps_pref,
bool is_ups_pref,
const char *name_ips,
const char *name_bps,
const char *name_ups,
uint8_t **buf,
void *data);
bool task_check_decompress(const char *source_file);
void *task_push_decompress(