diff --git a/Makefile.common b/Makefile.common index c1bd19d9b9..8fcbc288c9 100644 --- a/Makefile.common +++ b/Makefile.common @@ -186,6 +186,7 @@ OBJ += frontend/frontend_driver.o \ tasks/task_image.o \ tasks/task_playlist_manager.o \ tasks/task_manual_content_scan.o \ + tasks/task_core_backup.o \ $(LIBRETRO_COMM_DIR)/encodings/encoding_utf.o \ $(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.o \ $(LIBRETRO_COMM_DIR)/encodings/encoding_base64.o \ @@ -251,6 +252,7 @@ OBJ += \ $(LIBRETRO_COMM_DIR)/compat/compat_posix_string.o \ managers/cheat_manager.o \ core_info.o \ + core_backup.o \ $(LIBRETRO_COMM_DIR)/file/config_file.o \ $(LIBRETRO_COMM_DIR)/file/config_file_userdata.o \ runtime_file.o \ @@ -272,6 +274,7 @@ OBJ += \ $(LIBRETRO_COMM_DIR)/features/features_cpu.o \ verbosity.o \ $(LIBRETRO_COMM_DIR)/playlists/label_sanitization.o \ + $(LIBRETRO_COMM_DIR)/time/rtime.o \ manual_content_scan.o \ disk_control_interface.o diff --git a/core_backup.c b/core_backup.c new file mode 100644 index 0000000000..61f5dd28a7 --- /dev/null +++ b/core_backup.c @@ -0,0 +1,740 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2011-2017 - Daniel De Matteis + * Copyright (C) 2014-2017 - Jean-André Santoni + * Copyright (C) 2016-2019 - Brad Parker + * Copyright (C) 2019-2020 - James Leaver + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#include +#include +#include +#include +#include +#include +#include