diff --git a/.DS_Store b/.DS_Store index bab200e..4a3877a 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..342831d --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,22 @@ +name: Build and Test + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Build Project + run: | + make + + - name: Clean Up + run: | + make clean diff --git a/Makefile b/Makefile index f79e523..36a1379 100644 --- a/Makefile +++ b/Makefile @@ -21,10 +21,8 @@ MACOS_DESTINATION = $(BUILD_DIR)/$(MACOS_BUNDLE)/Contents/MacOS INFO_PLIST = $(BUILD_DIR)/$(MACOS_BUNDLE)/Contents/Info.plist # Define mGBA path and save file -SAVES_DIR = $(realpath saves) -SAVE_FILE = crystal2.gbc.sav ROM_PATH = $(realpath rom) -ROM_FILE = pk-perfectcrystal.gbc +ROM_FILE = pk-crystal.gbc .PHONY: all run launch clean diff --git a/libpksav/.DS_Store b/libpksav/.DS_Store new file mode 100644 index 0000000..e1d7706 Binary files /dev/null and b/libpksav/.DS_Store differ diff --git a/libpksav/include/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/Makefile b/libpksav/include/Makefile index ee01cad..f199a09 100644 --- a/libpksav/include/Makefile +++ b/libpksav/include/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/cmake_install.cmake b/libpksav/include/cmake_install.cmake index d8ea393..0b9e1ab 100644 --- a/libpksav/include/cmake_install.cmake +++ b/libpksav/include/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include +# Install script for directory: /Users/spencer/Projects/pksav-sv/include # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -38,12 +38,12 @@ if(NOT DEFINED CMAKE_OBJDUMP) endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/Users/spencer/Projects/pksav/include/pksav.h") + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/Users/spencer/Projects/pksav-sv/include/pksav.h") endif() if(NOT CMAKE_INSTALL_LOCAL_ONLY) # Include the install script for each subdirectory. - include("/Users/spencer/Projects/pksav/include/pksav/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/cmake_install.cmake") endif() diff --git a/libpksav/include/pksav.h b/libpksav/include/pksav.h index e9ecfa3..e6c7d67 100644 --- a/libpksav/include/pksav.h +++ b/libpksav/include/pksav.h @@ -1,9 +1,5 @@ -/*! - * @file pksav.h - * @ingroup PKSav - * @brief Global include file, includes all PKSav headers. - * - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -16,16 +12,13 @@ #include #include +#include +#include #include -#include -#include -#include #include #include -#include #include #include -#include #include #include diff --git a/libpksav/include/pksav/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/CMakeLists.txt b/libpksav/include/pksav/CMakeLists.txt index 1929b3c..8c97f2b 100644 --- a/libpksav/include/pksav/CMakeLists.txt +++ b/libpksav/include/pksav/CMakeLists.txt @@ -27,9 +27,9 @@ IF(NOT PKSAV_DONT_INSTALL_HEADERS) error.h ${CMAKE_CURRENT_BINARY_DIR}/config.h ${CMAKE_CURRENT_BINARY_DIR}/version.h - gen1.h - gen2.h - gba.h + gen1.h + gen2.h + gba.h ) ADD_SUBDIRECTORY(common) diff --git a/libpksav/include/pksav/Makefile b/libpksav/include/pksav/Makefile index 66043e8..3378faf 100644 --- a/libpksav/include/pksav/Makefile +++ b/libpksav/include/pksav/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/cmake_install.cmake b/libpksav/include/pksav/cmake_install.cmake index 3e25f3c..2473113 100644 --- a/libpksav/include/pksav/cmake_install.cmake +++ b/libpksav/include/pksav/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -39,24 +39,24 @@ endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav" TYPE FILE FILES - "/Users/spencer/Projects/pksav/include/pksav/error.h" - "/Users/spencer/Projects/pksav/include/pksav/config.h" - "/Users/spencer/Projects/pksav/include/pksav/version.h" - "/Users/spencer/Projects/pksav/include/pksav/gen1.h" - "/Users/spencer/Projects/pksav/include/pksav/gen2.h" - "/Users/spencer/Projects/pksav/include/pksav/gba.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/error.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/config.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/version.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba.h" ) endif() if(NOT CMAKE_INSTALL_LOCAL_ONLY) # Include the install script for each subdirectory. - include("/Users/spencer/Projects/pksav/include/pksav/common/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/include/pksav/math/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/include/pksav/gen1/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/include/pksav/gen2/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/include/pksav/gba/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/include/pksav/gen4/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/include/pksav/gen5/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/common/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/math/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/gen1/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/gen2/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/gba/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/gen4/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/include/pksav/gen5/cmake_install.cmake") endif() diff --git a/libpksav/include/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/common/CMakeLists.txt b/libpksav/include/pksav/common/CMakeLists.txt index 8e69df6..04498f5 100644 --- a/libpksav/include/pksav/common/CMakeLists.txt +++ b/libpksav/include/pksav/common/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) @@ -7,10 +7,9 @@ SET(pksav_common_headers condition.h + constants.h contest_stats.h - coordinates.h datetime.h - gen3_ribbons.h gen4_encounter_type.h item.h markings.h @@ -18,7 +17,6 @@ SET(pksav_common_headers nds_pokemon.h pokedex.h pokerus.h - prng.h stats.h trainer_id.h ) diff --git a/libpksav/include/pksav/common/Makefile b/libpksav/include/pksav/common/Makefile index 541a9c9..5732d83 100644 --- a/libpksav/include/pksav/common/Makefile +++ b/libpksav/include/pksav/common/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/common//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav/common//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/common/cmake_install.cmake b/libpksav/include/pksav/common/cmake_install.cmake index f6efd87..cc81de2 100644 --- a/libpksav/include/pksav/common/cmake_install.cmake +++ b/libpksav/include/pksav/common/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/common +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav/common # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -39,21 +39,19 @@ endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/common" TYPE FILE FILES - "/Users/spencer/Projects/pksav/include/pksav/common/condition.h" - "/Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h" - "/Users/spencer/Projects/pksav/include/pksav/common/coordinates.h" - "/Users/spencer/Projects/pksav/include/pksav/common/datetime.h" - "/Users/spencer/Projects/pksav/include/pksav/common/gen3_ribbons.h" - "/Users/spencer/Projects/pksav/include/pksav/common/gen4_encounter_type.h" - "/Users/spencer/Projects/pksav/include/pksav/common/item.h" - "/Users/spencer/Projects/pksav/include/pksav/common/markings.h" - "/Users/spencer/Projects/pksav/include/pksav/common/nature.h" - "/Users/spencer/Projects/pksav/include/pksav/common/nds_pokemon.h" - "/Users/spencer/Projects/pksav/include/pksav/common/pokedex.h" - "/Users/spencer/Projects/pksav/include/pksav/common/pokerus.h" - "/Users/spencer/Projects/pksav/include/pksav/common/prng.h" - "/Users/spencer/Projects/pksav/include/pksav/common/stats.h" - "/Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/condition.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/datetime.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/gen4_encounter_type.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/item.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/markings.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/nature.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/nds_pokemon.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/pokedex.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/pokerus.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/stats.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h" ) endif() diff --git a/libpksav/include/pksav/common/condition.h b/libpksav/include/pksav/common/condition.h index 9ad6a42..3c38f83 100644 --- a/libpksav/include/pksav/common/condition.h +++ b/libpksav/include/pksav/common/condition.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/common/condition.h - * @ingroup PKSav - * @brief Possible values for a Pokémon's status conditions. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -14,7 +10,8 @@ /*! * @brief Valid values for a Pokémon's current condition in Generations I-II. */ -typedef enum { +enum pksav_gb_condition +{ //! No status ailment. PKSAV_GB_CONDITION_NONE = 0x00, //! Sleep. @@ -32,10 +29,11 @@ typedef enum { PKSAV_GB_CONDITION_FROZEN = 0x20, //! Paralysis. PKSAV_GB_CONDITION_PARALYZ = 0x40 -} pksav_gb_condition_t; +}; //! Valid values (with one mask) for a Pokémon's possible conditions in Generations III+. -typedef enum { +enum pksav_condition_mask +{ //! No status ailment. PKSAV_CONDITION_NONE = 0, /*! @@ -56,6 +54,6 @@ typedef enum { PKSAV_CONDITION_PARALYZ = (1 << 6), //! Bad poison (from Toxic, etc). PKSAV_CONDITION_BAD_POISON = (1 << 7) -} pksav_condition_mask_t; +}; #endif /* PKSAV_COMMON_CONDITION_H */ diff --git a/libpksav/include/pksav/common/constants.h b/libpksav/include/pksav/common/constants.h new file mode 100644 index 0000000..a621f27 --- /dev/null +++ b/libpksav/include/pksav/common/constants.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_CONSTANTS_H +#define PKSAV_COMMON_CONSTANTS_H + +#define PKSAV_STANDARD_POKEMON_NUM_MOVES (4) +#define PKSAV_STANDARD_POKEMON_PARTY_SIZE (6) + +#define PKSAV_STANDARD_NICKNAME_LENGTH (10) +#define PKSAV_STANDARD_TRAINER_NAME_LENGTH (7) + +#endif /* PKSAV_COMMON_CONSTANTS_H */ diff --git a/libpksav/include/pksav/common/contest_stats.h b/libpksav/include/pksav/common/contest_stats.h index 490a5b4..36f2748 100644 --- a/libpksav/include/pksav/common/contest_stats.h +++ b/libpksav/include/pksav/common/contest_stats.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/common/contest_stats.h - * @ingroup PKSav - * @brief Native format for storing a Pokémon's contest stats. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -16,7 +12,8 @@ #pragma pack(push,1) //! Native format for storing a Pokémon's contest stats. -typedef struct { +struct pksav_contest_stats +{ //! Coolness. uint8_t cool; //! Beauty. @@ -27,13 +24,14 @@ typedef struct { uint8_t smart; //! Toughness. uint8_t tough; - union { + union + { //! Feel (Generation IV only). uint8_t feel; //! Sheen (Generation V+). uint8_t sheen; }; -} pksav_contest_stats_t; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/common/item.h b/libpksav/include/pksav/common/item.h index a704e96..ba6c855 100644 --- a/libpksav/include/pksav/common/item.h +++ b/libpksav/include/pksav/common/item.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/common/item.h - * @ingroup PKSav - * @brief Native format for storing an item in Generation III-VI games. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -15,8 +11,18 @@ #pragma pack(push,1) +//! Native representation of an item slot in Generation I. +struct pksav_gb_item +{ + //! Item index. + uint8_t index; + //! Item count (0-99). + uint8_t count; +}; + //! Native format for storing an item in Generation III-IV games. -typedef struct { +struct pksav_item +{ /*! * @brief Which item is stored in this slot. * @@ -31,7 +37,7 @@ typedef struct { * should be used to access and modify it. */ uint16_t count; -} pksav_item_t; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/common/markings.h b/libpksav/include/pksav/common/markings.h index d82372e..8a494b3 100644 --- a/libpksav/include/pksav/common/markings.h +++ b/libpksav/include/pksav/common/markings.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/common/markings.h - * @ingroup PKSav - * @brief Native format for storing a Pokémon's markings. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -17,7 +13,8 @@ * Markings have no functional use and only serve to help the * trainer categorize their Pokémon. */ -typedef enum { +enum pksav_marking_mask +{ //! Circle mask. PKSAV_MARKING_CIRCLE = 0x01, //! Triangle mask. @@ -30,6 +27,6 @@ typedef enum { PKSAV_MARKING_STAR = 0x10, //! Diamond mask (Generation IV+). PKSAV_MARKING_DIAMOND = 0x20, -} pksav_marking_t; +}; #endif /* PKSAV_COMMON_MARKINGS_H */ diff --git a/libpksav/include/pksav/common/nature.h b/libpksav/include/pksav/common/nature.h index 959ea19..241002e 100644 --- a/libpksav/include/pksav/common/nature.h +++ b/libpksav/include/pksav/common/nature.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/common/nature.h - * @ingroup PKSav - * @brief Nature indices. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -12,7 +8,8 @@ #define PKSAV_COMMON_NATURE_H //! Nature indices. -typedef enum { +enum pksav_nature +{ //! Hardy. PKSAV_NATURE_HARDY = 0, //! Lonely. @@ -63,6 +60,6 @@ typedef enum { PKSAV_NATURE_CAREFUL, //! Quirky. PKSAV_NATURE_QUIRKY -} pksav_nature_t; +}; #endif /* PKSAV_COMMON_NATURE_H */ diff --git a/libpksav/include/pksav/common/pokedex.h b/libpksav/include/pksav/common/pokedex.h index 59b0289..d7aed7b 100644 --- a/libpksav/include/pksav/common/pokedex.h +++ b/libpksav/include/pksav/common/pokedex.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -13,6 +13,8 @@ #include #include +#define PKSAV_POKEDEX_BUFFER_SIZE_BYTES(num_pokemon) ((num_pokemon / 8) + 1) + #ifdef __cplusplus extern "C" { #endif @@ -29,10 +31,10 @@ extern "C" { * \param result_out where result is returned * \returns if Pokémon with the given Pokédex number has been seen/caught */ -PKSAV_API pksav_error_t pksav_get_pokedex_bit( - const uint8_t* raw, +PKSAV_API enum pksav_error pksav_get_pokedex_bit( + const uint8_t* p_buffer, uint16_t pokedex_num, - bool* result_out + bool* p_result_out ); /*! @@ -46,8 +48,8 @@ PKSAV_API pksav_error_t pksav_get_pokedex_bit( * \param pokedex_num Which Pokémon to set or unset * \param set Set whether or not Pokémon has been seen/caught */ -PKSAV_API pksav_error_t pksav_set_pokedex_bit( - uint8_t* raw, +PKSAV_API enum pksav_error pksav_set_pokedex_bit( + uint8_t* p_buffer, uint16_t pokedex_num, bool set ); diff --git a/libpksav/include/pksav/common/pokerus.h b/libpksav/include/pksav/common/pokerus.h index 1d3dc63..b2135ec 100644 --- a/libpksav/include/pksav/common/pokerus.h +++ b/libpksav/include/pksav/common/pokerus.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/common/pokerus.h - * @ingroup PKSav - * @brief Functions for getting and setting Pokérus values. - * - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -12,15 +8,17 @@ #define PKSAV_COMMON_POKERUS_H #include +#include #include -typedef enum { +enum pksav_pokerus_strain +{ PKSAV_POKERUS_STRAIN_A = 0, PKSAV_POKERUS_STRAIN_B, PKSAV_POKERUS_STRAIN_C, PKSAV_POKERUS_STRAIN_D -} pksav_pokerus_strain_t; +}; #define PKSAV_POKERUS_STRAIN_MASK ((uint8_t)0xF0) #define PKSAV_POKERUS_DURATION_MASK ((uint8_t)0x0F) @@ -29,85 +27,25 @@ typedef enum { extern "C" { #endif -static PKSAV_INLINE pksav_error_t pksav_pokerus_get_strain( - const uint8_t* pokerus_ptr, - pksav_pokerus_strain_t* strain_out -) -{ - if(!pokerus_ptr) - { - return PKSAV_ERROR_NULL_POINTER; - } - if(!strain_out) - { - return PKSAV_ERROR_NULL_POINTER; - } - - *strain_out = (pksav_pokerus_strain_t)((((*pokerus_ptr) & PKSAV_POKERUS_STRAIN_MASK) >> 4) % 4); - - return PKSAV_ERROR_NONE; -} +PKSAV_API enum pksav_error pksav_pokerus_get_strain( + const uint8_t* p_pokerus, + enum pksav_pokerus_strain* p_strain_out +); -static PKSAV_INLINE pksav_error_t pksav_pokerus_set_strain( - uint8_t* pokerus_ptr, - pksav_pokerus_strain_t strain -) -{ - if(!pokerus_ptr) - { - return PKSAV_ERROR_NULL_POINTER; - } +PKSAV_API enum pksav_error pksav_pokerus_set_strain( + uint8_t* p_pokerus, + enum pksav_pokerus_strain strain +); - *pokerus_ptr = (strain << 4) | ((strain % 4) + 1); +PKSAV_API enum pksav_error pksav_pokerus_get_duration( + const uint8_t* p_pokerus, + uint8_t* p_duration_out +); - return PKSAV_ERROR_NONE; -} - -static PKSAV_INLINE pksav_error_t pksav_pokerus_get_duration( - const uint8_t* pokerus_ptr, - uint8_t* duration_out -) -{ - if(!pokerus_ptr) - { - return PKSAV_ERROR_NULL_POINTER; - } - if(!duration_out) - { - return PKSAV_ERROR_NULL_POINTER; - } - - *duration_out = ((*pokerus_ptr) & PKSAV_POKERUS_DURATION_MASK); - - return PKSAV_ERROR_NONE; -} - -static PKSAV_INLINE pksav_error_t pksav_pokerus_set_duration( - uint8_t* pokerus_ptr, +PKSAV_API enum pksav_error pksav_pokerus_set_duration( + uint8_t* p_pokerus, uint8_t duration -) -{ - if(!pokerus_ptr) - { - return PKSAV_ERROR_NULL_POINTER; - } - if(duration > 15) - { - return PKSAV_ERROR_PARAM_OUT_OF_RANGE; - } - - *pokerus_ptr &= ~PKSAV_POKERUS_DURATION_MASK; - *pokerus_ptr |= duration; - - // Adjust the strain if the duration is incompatible. - if(duration >= 12) - { - *pokerus_ptr &= ~PKSAV_POKERUS_STRAIN_MASK; - *pokerus_ptr |= ((duration % 4) << 4); - } - - return PKSAV_ERROR_NONE; -} +); #ifdef __cplusplus } diff --git a/libpksav/include/pksav/common/stats.h b/libpksav/include/pksav/common/stats.h index 8a4dc68..e358d37 100644 --- a/libpksav/include/pksav/common/stats.h +++ b/libpksav/include/pksav/common/stats.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -11,44 +11,73 @@ #include #include +#include -typedef enum { - PKSAV_STAT_NONE = 0, - PKSAV_STAT_HP, - PKSAV_STAT_ATTACK, - PKSAV_STAT_DEFENSE, - PKSAV_STAT_SPATK, - PKSAV_STAT_SPDEF, - PKSAV_STAT_SPEED, - PKSAV_STAT_SPECIAL = 9 -} pksav_battle_stat_t; +// Effort values (EVs) + +#define PKSAV_MIN_GB_EV (0) +#define PKSAV_MAX_GB_EV (UINT16_MAX) + +#define PKSAV_MIN_EV (0) +#define PKSAV_MAX_EV (UINT8_MAX) + +// Individual values (IVs) + +enum pksav_gb_IV +{ + PKSAV_GB_IV_ATTACK, + PKSAV_GB_IV_DEFENSE, + PKSAV_GB_IV_SPEED, + PKSAV_GB_IV_SPECIAL, + PKSAV_GB_IV_HP +}; + +#define PKSAV_NUM_GB_IVS (5) + +#define PKSAV_MIN_GB_IV (0) +#define PKSAV_MAX_GB_IV (15) + +enum pksav_IV +{ + PKSAV_IV_ATTACK, + PKSAV_IV_DEFENSE, + PKSAV_IV_SPEED, + PKSAV_IV_SPATK, + PKSAV_IV_SPDEF, + PKSAV_IV_HP +}; + +#define PKSAV_NUM_IVS (6) + +#define PKSAV_MIN_IV (0) +#define PKSAV_MAX_IV (31) #ifdef __cplusplus extern "C" { #endif -PKSAV_API pksav_error_t pksav_get_gb_IV( - const uint16_t* raw, - pksav_battle_stat_t stat, - uint8_t* IV_out +PKSAV_API enum pksav_error pksav_get_gb_IVs( + const uint16_t* p_raw_IV, + uint8_t* IVs_out, + size_t IV_buffer_size ); -PKSAV_API pksav_error_t pksav_set_gb_IV( - uint16_t* raw, - pksav_battle_stat_t stat, - uint8_t new_IV +PKSAV_API enum pksav_error pksav_set_gb_IV( + enum pksav_gb_IV stat, + uint8_t IV_value, + uint16_t* p_raw_IV ); -PKSAV_API pksav_error_t pksav_get_IV( - const uint32_t* raw, - pksav_battle_stat_t stat, - uint8_t* IV_out +PKSAV_API enum pksav_error pksav_get_IVs( + const uint32_t* p_raw_IV, + uint8_t* IVs_out, + size_t IV_buffer_size ); -PKSAV_API pksav_error_t pksav_set_IV( - uint32_t* raw, - pksav_battle_stat_t stat, - uint8_t new_IV +PKSAV_API enum pksav_error pksav_set_IV( + enum pksav_IV stat, + uint8_t IV_value, + uint32_t* p_raw_IV ); #ifdef __cplusplus diff --git a/libpksav/include/pksav/common/trainer_id.h b/libpksav/include/pksav/common/trainer_id.h index f500100..e31ac3f 100644 --- a/libpksav/include/pksav/common/trainer_id.h +++ b/libpksav/include/pksav/common/trainer_id.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/common/trainer_id.h - * @ingroup PKSav - * @brief Native storage for a Pokémon trainer's in-game ID. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -16,9 +12,11 @@ #pragma pack(push,1) //! Native storage for a Pokémon trainer's in-game ID (Generation III+). -typedef union { +union pksav_trainer_id +{ //! Convenience struct to allow individual access to secret and public IDs. - struct { + struct + { /*! * @brief Public ID. * @@ -48,7 +46,7 @@ typedef union { * modified with ::pksav_littleendian32. */ uint32_t id; -} pksav_trainer_id_t; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/config.h b/libpksav/include/pksav/config.h index 25198aa..097534c 100644 --- a/libpksav/include/pksav/config.h +++ b/libpksav/include/pksav/config.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/config.h - * @ingroup PKSav - * @brief Platform-defining and platform-agnostic macros. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -15,26 +11,15 @@ * Define cross-platform macros, platform-specific stuff ***************************************************************************/ #if defined(_MSC_VER) -# define PKSAV_EXPORT __declspec(dllexport) -# define PKSAV_IMPORT __declspec(dllimport) -# define PKSAV_INLINE __forceinline -# define PKSAV_UNUSED(x) x +# define PKSAV_EXPORT __declspec(dllexport) +# define PKSAV_IMPORT __declspec(dllimport) # pragma warning(disable: 4800) // forcing value to bool 'true' or 'false' - -// MSVC doesn't have ssize_t for C, so we need to define it -#include -typedef intmax_t ssize_t; - #elif defined(__GNUC__) && __GNUC__ >= 4 -# define PKSAV_EXPORT __attribute__((visibility("default"))) -# define PKSAV_IMPORT __attribute__((visibility("default"))) -# define PKSAV_INLINE inline __attribute__((always_inline)) -# define PKSAV_UNUSED(x) x __attribute__((unused)) +# define PKSAV_EXPORT __attribute__((visibility("default"))) +# define PKSAV_IMPORT __attribute__((visibility("default"))) #else # define PKSAV_EXPORT # define PKSAV_IMPORT -# define PKSAV_INLINE inline -# define PKSAV_UNUSED(x) x #endif #ifdef PKSAV_DLL_EXPORTS @@ -53,6 +38,19 @@ typedef intmax_t ssize_t; # define PKSAV_PLATFORM_MACOS #endif +/* + * Not all supported platforms have ssize_t, so if that's the case, define + * it ourselves. + */ +#ifndef HAVE_SSIZE_T + +#include +typedef intmax_t ssize_t; + +#define HAVE_SSIZE_T + +#endif + /* * Determined at compile-time, do not change! */ @@ -60,6 +58,4 @@ typedef intmax_t ssize_t; /* #undef PKSAV_BIG_ENDIAN */ #define PKSAV_LITTLE_ENDIAN 1 -#define HAVE_UNISTD_H 1 - #endif /* PKSAV_CONFIG_H */ diff --git a/libpksav/include/pksav/config.h.in b/libpksav/include/pksav/config.h.in index e8248fa..8045707 100644 --- a/libpksav/include/pksav/config.h.in +++ b/libpksav/include/pksav/config.h.in @@ -1,9 +1,5 @@ -/*! - * @file pksav/config.h - * @ingroup PKSav - * @brief Platform-defining and platform-agnostic macros. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -15,26 +11,15 @@ * Define cross-platform macros, platform-specific stuff ***************************************************************************/ #if defined(_MSC_VER) -# define PKSAV_EXPORT __declspec(dllexport) -# define PKSAV_IMPORT __declspec(dllimport) -# define PKSAV_INLINE __forceinline -# define PKSAV_UNUSED(x) x +# define PKSAV_EXPORT __declspec(dllexport) +# define PKSAV_IMPORT __declspec(dllimport) # pragma warning(disable: 4800) // forcing value to bool 'true' or 'false' - -// MSVC doesn't have ssize_t for C, so we need to define it -#include -typedef intmax_t ssize_t; - #elif defined(__GNUC__) && __GNUC__ >= 4 -# define PKSAV_EXPORT __attribute__((visibility("default"))) -# define PKSAV_IMPORT __attribute__((visibility("default"))) -# define PKSAV_INLINE inline __attribute__((always_inline)) -# define PKSAV_UNUSED(x) x __attribute__((unused)) +# define PKSAV_EXPORT __attribute__((visibility("default"))) +# define PKSAV_IMPORT __attribute__((visibility("default"))) #else # define PKSAV_EXPORT # define PKSAV_IMPORT -# define PKSAV_INLINE inline -# define PKSAV_UNUSED(x) x #endif #ifdef PKSAV_DLL_EXPORTS @@ -53,6 +38,19 @@ typedef intmax_t ssize_t; # define PKSAV_PLATFORM_MACOS #endif +/* + * Not all supported platforms have ssize_t, so if that's the case, define + * it ourselves. + */ +#ifndef HAVE_SSIZE_T + +#include +typedef intmax_t ssize_t; + +#define HAVE_SSIZE_T + +#endif + /* * Determined at compile-time, do not change! */ @@ -60,6 +58,4 @@ typedef intmax_t ssize_t; #cmakedefine PKSAV_BIG_ENDIAN 1 #cmakedefine PKSAV_LITTLE_ENDIAN 1 -#cmakedefine HAVE_UNISTD_H 1 - #endif /* PKSAV_CONFIG_H */ diff --git a/libpksav/include/pksav/error.h b/libpksav/include/pksav/error.h index 7b44236..ed28b3e 100644 --- a/libpksav/include/pksav/error.h +++ b/libpksav/include/pksav/error.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/error.h - * @ingroup PKSav - * @brief Error codes returned from PKSav functions. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -13,7 +9,8 @@ #include -typedef enum { +enum pksav_error +{ //! Function completed with no error PKSAV_ERROR_NONE = 0, //! A problem occurred reading/writing a save file @@ -31,15 +28,15 @@ typedef enum { PKSAV_ERROR_INVALID_SAVE, //! A null pointer was passed as a parameter. PKSAV_ERROR_NULL_POINTER -} pksav_error_t; +}; #ifdef __cplusplus extern "C" { #endif -//! Returns a string corresponding to the given error code +//! Returns a string corresponding to the given error code. PKSAV_API const char* pksav_strerror( - pksav_error_t error_code + enum pksav_error error_code ); #ifdef __cplusplus diff --git a/libpksav/include/pksav/gba.h b/libpksav/include/pksav/gba.h index 919a837..c60c770 100644 --- a/libpksav/include/pksav/gba.h +++ b/libpksav/include/pksav/gba.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gba.h - * @ingroup PKSav - * @brief Global Game Boy Advance include file. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -14,20 +10,24 @@ #include #include +#include +#include #include +#include +#include +#include #include +#include #include -#include #include +#include #include #include -#include #include #include #include #include -#include #include #include diff --git a/libpksav/include/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/gba/CMakeLists.txt b/libpksav/include/pksav/gba/CMakeLists.txt index b239de2..a4ca241 100644 --- a/libpksav/include/pksav/gba/CMakeLists.txt +++ b/libpksav/include/pksav/gba/CMakeLists.txt @@ -1,16 +1,25 @@ # -# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) # SET(pksav_gba_headers + box_wallpaper.h + common.h + daycare.h items.h + language.h + mail.h + map.h + options.h + pokedex.h pokemon.h + roamer.h save.h - save_structs.h text.h + time.h ) INSTALL( diff --git a/libpksav/include/pksav/gba/Makefile b/libpksav/include/pksav/gba/Makefile index 31b2bdd..0a47bb1 100644 --- a/libpksav/include/pksav/gba/Makefile +++ b/libpksav/include/pksav/gba/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gba//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav/gba//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/gba/box_wallpaper.h b/libpksav/include/pksav/gba/box_wallpaper.h new file mode 100644 index 0000000..aa0aa2d --- /dev/null +++ b/libpksav/include/pksav/gba/box_wallpaper.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_BOX_WALLPAPER_H +#define PKSAV_GBA_BOX_WALLPAPER_H + +enum pksav_gba_box_wallpaper +{ + PKSAV_GBA_BOX_WALLPAPER_FOREST = 0, + PKSAV_GBA_BOX_WALLPAPER_CITY, + PKSAV_GBA_BOX_WALLPAPER_DESERT, + PKSAV_GBA_BOX_WALLPAPER_SAVANNA, + PKSAV_GBA_BOX_WALLPAPER_CRAG, + PKSAV_GBA_BOX_WALLPAPER_VOLCANO, + PKSAV_GBA_BOX_WALLPAPER_SNOW, + PKSAV_GBA_BOX_WALLPAPER_CAVE, + PKSAV_GBA_BOX_WALLPAPER_BEACH, + PKSAV_GBA_BOX_WALLPAPER_SEAFLOOR, + PKSAV_GBA_BOX_WALLPAPER_RIVER, + PKSAV_GBA_BOX_WALLPAPER_SKY +}; + +enum pksav_gba_rse_box_wallpaper +{ + PKSAV_GBA_RSE_BOX_WALLPAPER_POLKADOT = 12, + PKSAV_GBA_RSE_BOX_WALLPAPER_POKECENTER, + PKSAV_GBA_RSE_BOX_WALLPAPER_MACHINE, + PKSAV_GBA_RSE_BOX_WALLPAPER_PLAIN +}; + +enum pksav_gba_frlg_box_wallpaper +{ + PKSAV_GBA_FRLG_BOX_WALLPAPER_STARS = 12, + PKSAV_GBA_FRLG_BOX_WALLPAPER_POKECENTER, + PKSAV_GBA_FRLG_BOX_WALLPAPER_TILES, + PKSAV_GBA_FRLG_BOX_WALLPAPER_SIMPLE +}; + +#endif /* PKSAV_GBA_BOX_WALLPAPER_H */ diff --git a/libpksav/include/pksav/gba/cmake_install.cmake b/libpksav/include/pksav/gba/cmake_install.cmake index c20cce6..17a7f90 100644 --- a/libpksav/include/pksav/gba/cmake_install.cmake +++ b/libpksav/include/pksav/gba/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gba +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav/gba # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -39,11 +39,20 @@ endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gba" TYPE FILE FILES - "/Users/spencer/Projects/pksav/include/pksav/gba/items.h" - "/Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h" - "/Users/spencer/Projects/pksav/include/pksav/gba/save.h" - "/Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h" - "/Users/spencer/Projects/pksav/include/pksav/gba/text.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/box_wallpaper.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/common.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/daycare.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/language.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/mail.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/map.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/options.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/pokedex.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/roamer.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/text.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gba/time.h" ) endif() diff --git a/libpksav/include/pksav/gba/common.h b/libpksav/include/pksav/gba/common.h new file mode 100644 index 0000000..8387723 --- /dev/null +++ b/libpksav/include/pksav/gba/common.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_COMMON_H +#define PKSAV_GBA_COMMON_H + +#include + +#define PKSAV_GBA_TRAINER_NAME_LENGTH PKSAV_STANDARD_TRAINER_NAME_LENGTH + +enum pksav_gba_save_type +{ + PKSAV_GBA_SAVE_TYPE_NONE, + PKSAV_GBA_SAVE_TYPE_RS, + PKSAV_GBA_SAVE_TYPE_EMERALD, + PKSAV_GBA_SAVE_TYPE_FRLG +}; + +#endif /* PKSAV_GBA_COMMON_H */ diff --git a/libpksav/include/pksav/gba/daycare.h b/libpksav/include/pksav/gba/daycare.h new file mode 100644 index 0000000..329caa9 --- /dev/null +++ b/libpksav/include/pksav/gba/daycare.h @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_DAYCARE_H +#define PKSAV_GBA_DAYCARE_H + +#include +#include +#include + +#include + +#define PKSAV_GBA_DAYCARE_NUM_POKEMON (2) + +#pragma pack(push,1) + +// +// Ruby/Sapphire +// + +struct pksav_gba_rs_daycare_mail +{ + struct pksav_gba_mail mail; + uint8_t names[19]; +}; + +struct pksav_gba_rs_daycare +{ + struct pksav_gba_pc_pokemon pokemon[PKSAV_GBA_DAYCARE_NUM_POKEMON]; + struct pksav_gba_rs_daycare_mail mail[PKSAV_GBA_DAYCARE_NUM_POKEMON]; + + uint32_t steps[PKSAV_GBA_DAYCARE_NUM_POKEMON]; + + // Remaining 16 bits generated when egg taken from daycare. + uint16_t pending_egg_personality; + + uint8_t remaining_egg_cycle_steps; +}; + +// +// Emerald/FireRed/LeafGreen +// + +struct pksav_gba_emerald_frlg_daycare_mail +{ + struct pksav_gba_mail mail; + uint8_t otname[8]; + uint8_t nickname[11]; + uint8_t language_info; // TODO: bitfield enum +}; + +struct pksav_gba_emerald_frlg_daycare_pokemon +{ + struct pksav_gba_pc_pokemon pokemon; + struct pksav_gba_emerald_frlg_daycare_mail mail; + + uint32_t steps; +}; + +struct pksav_gba_emerald_frlg_daycare +{ + struct pksav_gba_emerald_frlg_daycare_pokemon pokemon[PKSAV_GBA_DAYCARE_NUM_POKEMON]; + uint32_t egg_personality; + uint8_t remaining_egg_cycle_steps; +}; + +// +// Convenience union +// + +union pksav_gba_daycare +{ + struct pksav_gba_rs_daycare rs; + struct pksav_gba_emerald_frlg_daycare emerald_frlg; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_DAYCARE_H */ diff --git a/libpksav/include/pksav/gba/items.h b/libpksav/include/pksav/gba/items.h index 1f9b03b..222dc94 100644 --- a/libpksav/include/pksav/gba/items.h +++ b/libpksav/include/pksav/gba/items.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -13,53 +13,57 @@ #pragma pack(push,1) +#define PKSAV_GBA_ITEM_PC_NUM_ITEMS (50) + +struct pksav_gba_item_pc +{ + struct pksav_item items[PKSAV_GBA_ITEM_PC_NUM_ITEMS]; +}; + //! Internal represention of item storage in Pokémon Ruby/Sapphire. -typedef struct { - //! Items stored in the PC. - pksav_item_t pc_items[50]; +struct pksav_gba_rs_item_bag +{ //! Items stored in the Items pocket. - pksav_item_t items[20]; + struct pksav_item items[20]; //! Items stored in the Key Items pocket. - pksav_item_t key_items[20]; + struct pksav_item key_items[20]; //! Items stored in the Poké Balls pocket. - pksav_item_t balls[16]; + struct pksav_item balls[16]; //! Items stored in the TMs & HMs pocket. - pksav_item_t tms_hms[64]; + struct pksav_item tms_hms[64]; //! Items stored in the Berries pocket. - pksav_item_t berries[46]; -} pksav_rs_item_storage_t; + struct pksav_item berries[46]; +}; //! Internal represention of item storage in Pokémon Emerald. -typedef struct { - //! Items stored in the PC. - pksav_item_t pc_items[50]; +struct pksav_gba_emerald_item_bag +{ //! Items stored in the Items pocket. - pksav_item_t items[30]; + struct pksav_item items[30]; //! Items stored in the Key Items pocket. - pksav_item_t key_items[30]; + struct pksav_item key_items[30]; //! Items stored in the Poké Balls pocket. - pksav_item_t balls[16]; + struct pksav_item balls[16]; //! Items stored in the TMs & HMs pocket. - pksav_item_t tms_hms[64]; + struct pksav_item tms_hms[64]; //! Items stored in the Berries pocket. - pksav_item_t berries[46]; -} pksav_emerald_item_storage_t; + struct pksav_item berries[46]; +}; //! Internal representation of item storage in Pokémon FireRed/LeafGreen. -typedef struct { - //! Items stored in the PC. - pksav_item_t pc_items[50]; +struct pksav_gba_frlg_item_bag +{ //! Items stored in the Items pocket. - pksav_item_t items[42]; + struct pksav_item items[42]; //! Items stored in the Key Items pocket. - pksav_item_t key_items[30]; + struct pksav_item key_items[30]; //! Items stored in the Poké Balls pocket. - pksav_item_t balls[13]; + struct pksav_item balls[13]; //! Items stored in the TM Case. - pksav_item_t tms_hms[58]; + struct pksav_item tms_hms[58]; //! Items stored in the Berry Pouch. - pksav_item_t berries[43]; -} pksav_frlg_item_storage_t; + struct pksav_item berries[43]; +}; /*! * @brief A union of all three Game Boy Advance item storage structs. @@ -68,14 +72,15 @@ typedef struct { * nothing is stored in the same section after the item storage struct, * this union is safe, despite the different sizes of each struct. */ -typedef union { +union pksav_gba_item_bag +{ //! Access to item storage in Pokémon Ruby/Sapphire. - pksav_rs_item_storage_t rs; + struct pksav_gba_rs_item_bag rs; //! Access to item storage in Pokémon Emerald. - pksav_emerald_item_storage_t emerald; + struct pksav_gba_emerald_item_bag emerald; //! Access to item storage in Pokémon FireRed/LeafGreen. - pksav_frlg_item_storage_t frlg; -} pksav_gba_item_storage_t; + struct pksav_gba_frlg_item_bag frlg; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/gba/language.h b/libpksav/include/pksav/gba/language.h new file mode 100644 index 0000000..4149159 --- /dev/null +++ b/libpksav/include/pksav/gba/language.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_LANGUAGE_H +#define PKSAV_GBA_LANGUAGE_H + +enum pksav_gba_language +{ + PKSAV_GBA_LANGUAGE_NONE = 0, + PKSAV_GBA_LANGUAGE_JAPANESE = 0x0201, + PKSAV_GBA_LANGUAGE_ENGLISH = 0x0202, + PKSAV_GBA_LANGUAGE_FRENCH = 0x0203, + PKSAV_GBA_LANGUAGE_ITALIAN = 0x0204, + PKSAV_GBA_LANGUAGE_GERMAN = 0x0205, + PKSAV_GBA_LANGUAGE_KOREAN = 0x0206, + PKSAV_GBA_LANGUAGE_SPANISH = 0x0207, +}; + +#endif /* PKSAV_GBA_LANGUAGE_H */ diff --git a/libpksav/include/pksav/gba/mail.h b/libpksav/include/pksav/gba/mail.h new file mode 100644 index 0000000..9e9bc2d --- /dev/null +++ b/libpksav/include/pksav/gba/mail.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_MAIL_H +#define PKSAV_GBA_MAIL_H + +#include + +#include + +#pragma pack(push,1) + +struct pksav_gba_mail +{ + uint16_t words[9]; + uint8_t player_name[8]; + union pksav_trainer_id player_id; + uint16_t species; + uint16_t item_id; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_MAIL_H */ diff --git a/libpksav/include/pksav/gba/map.h b/libpksav/include/pksav/gba/map.h new file mode 100644 index 0000000..0a0f451 --- /dev/null +++ b/libpksav/include/pksav/gba/map.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_MAP_H +#define PKSAV_GBA_MAP_H + +#include + +#pragma pack(push,1) + +struct pksav_gba_coords +{ + int16_t x; + int16_t y; +}; + +struct pksav_gba_warp_data +{ + int8_t map_group; + int8_t map_num; + int8_t warp_id; + + struct pksav_gba_coords coords; +}; + +struct pksav_gba_player_location_info +{ + struct pksav_gba_coords current_location_coords; + struct pksav_gba_warp_data current_location; + + struct pksav_gba_warp_data warp1; + struct pksav_gba_warp_data warp2; + struct pksav_gba_warp_data last_heal_location; + struct pksav_gba_warp_data warp3; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_MAP_H */ diff --git a/libpksav/include/pksav/gba/options.h b/libpksav/include/pksav/gba/options.h new file mode 100644 index 0000000..5076e7d --- /dev/null +++ b/libpksav/include/pksav/gba/options.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_OPTIONS_H +#define PKSAV_GBA_OPTIONS_H + +// Button mode +// TODO: is this masked, or is the whole byte actually used for just this? + +enum pksav_gba_rse_button_mode +{ + PKSAV_GBA_RSE_BUTTON_MODE_NORMAL = 0x01, + PKSAV_GBA_RSE_BUTTON_MODE_LR = 0x02, + PKSAV_GBA_RSE_BUTTON_MODE_L_EQUALS_A = 0x03 +}; + +enum pksav_gba_frlg_button_mode +{ + PKSAV_GBA_FRLG_BUTTON_MODE_HELP = 0x01, + PKSAV_GBA_FRLG_BUTTON_MODE_LR = 0x02, + PKSAV_GBA_FRLG_BUTTON_MODE_L_EQUALS_A = 0x03 +}; + +// Text speed, textbox frame + +enum pksav_gba_text_speed +{ + PKSAV_GBA_TEXT_SPEED_SLOW = 0, + PKSAV_GBA_TEXT_SPEED_MEDIUM = 1, + PKSAV_GBA_TEXT_SPEED_FAST = 2 +}; + +#define PKSAV_GBA_OPTIONS_TEXT_SPEED_MASK ((uint8_t)7) + +#define PKSAV_GBA_OPTIONS_TEXTBOX_FRAME_OFFSET (3) + +#define PKSAV_GBA_OPTIONS_TEXTBOX_FRAME_MASK ((uint8_t)(31 << PKSAV_GBA_OPTIONS_TEXTBOX_FRAME_OFFSET)) + +#define PKSAV_GBA_OPTIONS_TEXTBOX_MIN_FRAME ((uint8_t)0) +#define PKSAV_GBA_OPTIONS_TEXTBOX_MAX_FRAME ((uint8_t)15) + +#define PKSAV_GBA_OPTIONS_TEXTBOX_FRAME(options_byte) \ + ((uint8_t)(((options_byte) & PKSAV_GBA_OPTIONS_TEXTBOX_FRAME_MASK) >> PKSAV_GBA_OPTIONS_TEXTBOX_FRAME_OFFSET)) + +// Sound, battle style, battle scene + +#define PKSAV_GBA_OPTIONS_SOUND_STEREO_MASK ((uint8_t)1) +#define PKSAV_GBA_OPTIONS_BATTLE_STYLE_SET_MASK ((uint8_t)(1 << 1)) +#define PKSAV_GBA_OPTIONS_BATTLE_SCENE_DISABLE_MASK ((uint8_t)(1 << 2)) + +#endif /* PKSAV_GBA_OPTIONS_H */ diff --git a/libpksav/include/pksav/gba/pokedex.h b/libpksav/include/pksav/gba/pokedex.h new file mode 100644 index 0000000..92b3619 --- /dev/null +++ b/libpksav/include/pksav/gba/pokedex.h @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_POKEDEX_H +#define PKSAV_GBA_POKEDEX_H + +#include +#include + +#include + +#include +#include + +#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_A_FLAG ((uint16_t)0x01DA) +#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_A_FLAG ((uint8_t)0xB9) + +#define PKSAV_GBA_NAT_POKEDEX_UNLOCKED_B_FLAG ((uint8_t)(1 << 6)) + +#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_C_FLAG ((uint16_t)0x0203) +#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_C_FLAG ((uint16_t)0x5862) + +struct pksav_gba_pokedex +{ + uint8_t* p_seenA; + uint8_t* p_seenB; + uint8_t* p_seenC; + + uint8_t* p_owned; + + uint16_t* p_rse_nat_pokedex_unlockedA; + uint8_t* p_frlg_nat_pokedex_unlockedA; + + uint8_t* p_nat_pokedex_unlockedB; + + uint16_t* p_nat_pokedex_unlockedC; +}; + +#ifdef __cplusplus +extern "C" { +#endif + +PKSAV_API enum pksav_error pksav_gba_pokedex_set_has_seen( + struct pksav_gba_pokedex* p_gba_pokedex, + uint16_t pokedex_num, + bool has_seen +); + +PKSAV_API enum pksav_error pksav_gba_pokedex_set_national_pokedex_unlocked( + struct pksav_gba_pokedex* p_gba_pokedex, + enum pksav_gba_save_type save_type, + bool is_unlocked +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GBA_POKEDEX_H */ diff --git a/libpksav/include/pksav/gba/pokemon.h b/libpksav/include/pksav/gba/pokemon.h index 89d0f32..2bb47dd 100644 --- a/libpksav/include/pksav/gba/pokemon.h +++ b/libpksav/include/pksav/gba/pokemon.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -7,20 +7,33 @@ #ifndef PKSAV_GBA_POKEMON_H #define PKSAV_GBA_POKEMON_H -#include - +#include #include #include +#include +#include + #include +#define PKSAV_GBA_BOX_NUM_POKEMON (30) +#define PKSAV_GBA_PARTY_NUM_POKEMON PKSAV_STANDARD_POKEMON_PARTY_SIZE + +#define PKSAV_GBA_POKEMON_NICKNAME_LENGTH PKSAV_STANDARD_NICKNAME_LENGTH +#define PKSAV_GBA_POKEMON_OTNAME_LENGTH PKSAV_GBA_TRAINER_NAME_LENGTH + +#define PKSAV_GBA_POKEMON_NUM_MOVES PKSAV_STANDARD_POKEMON_NUM_MOVES + +#define PKSAV_GBA_NUM_POKEMON_BOXES (14) +#define PKSAV_GBA_POKEMON_BOX_NAME_LENGTH (8) + /*! * @brief The mask for determining if a Pokémon is an egg. * * Apply this mask to the pksav_gba_pokemon_misc_t.iv_egg_ability * field to access or modify this bit. */ -#define PKSAV_GBA_EGG_MASK (uint32_t)(1 << 30) +#define PKSAV_GBA_POKEMON_EGG_MASK ((uint32_t)(1 << 30)) /*! * @brief The mask for determining which ability a Pokémon has. @@ -28,7 +41,7 @@ * Apply this mask to the pksav_gba_pokemon_misc_t.iv_egg_ability * field to access or modify this bit. */ -#define PKSAV_GBA_ABILITY_MASK (uint32_t)(1 << 31) +#define PKSAV_GBA_POKEMON_ABILITY_MASK ((uint32_t)(1 << 31)) /*! * @brief The mask for determining at which level a Pokémon was met. @@ -36,28 +49,28 @@ * Apply this mask to the pksav_gba_pokemon_misc_t.origin_info * field to access or modify this value. */ -#define PKSAV_GBA_LEVEL_MET_MASK (uint16_t)(0x7F) +#define PKSAV_GBA_POKEMON_LEVEL_MET_MASK (((uint16_t)(0x7F))) /*! * @brief The mask for determining a Pokémon's origin game. * * To access the value, apply the mask to the * pksav_gba_pokemon_misc_t.origin_info field and shift the result - * right by ::PKSAV_GBA_ORIGIN_GAME_OFFSET. + * right by ::PKSAV_GBA_POKEMON_ORIGIN_GAME_OFFSET. * * To modify the value, apply the inverse of the mask to the * pksav_gba_pokemon_misc_t.origin_info field. Then shift the new - * value left by ::PKSAV_GBA_ORIGIN_GAME_OFFSET and perform a logical-or + * value left by ::PKSAV_GBA_POKEMON_ORIGIN_GAME_OFFSET and perform a logical-or * with this value and the field. */ -#define PKSAV_GBA_ORIGIN_GAME_MASK (uint16_t)(0x780) +#define PKSAV_GBA_POKEMON_ORIGIN_GAME_MASK (((uint16_t)(0x780))) /*! * @brief The offset of the bits corresponding to a Pokémon's origin game in its bitfield. * * See ::PKSAV_GBA_ORIGIN_GAME_MASK for it usage. */ -#define PKSAV_GBA_ORIGIN_GAME_OFFSET 7 +#define PKSAV_GBA_POKEMON_ORIGIN_GAME_OFFSET (7) /*! * @brief The mask for determining which Poké Ball was used to catch a Pokémon. @@ -71,14 +84,14 @@ * value left by ::PKSAV_GBA_BALL_OFFSET and perform a logical-or * with this value and the field. */ -#define PKSAV_GBA_BALL_MASK (uint16_t)(0x7800) +#define PKSAV_GBA_POKEMON_BALL_MASK (((uint16_t)(0x7800))) /*! * @brief The offset of the bits corresponding to a Pokémon's ball in its bitfield. * * See ::PKSAV_GBA_BALL_MASK for its usage. */ -#define PKSAV_GBA_BALL_OFFSET 11 +#define PKSAV_GBA_POKEMON_BALL_OFFSET (11) /*! * @brief The mask for determining the gender of a Pokémon's original trainer. @@ -86,129 +99,7 @@ * Apply this mask to the pksav_gba_pokemon_misc_t.origin_info * field to access or modify this bit. */ -#define PKSAV_GBA_OTGENDER_MASK (uint16_t)(1 << 15) - -/*! - * @brief The mask for determining which Coolness contests a Pokémon has won. - * - * The result is 3 bits that correspond to whether or not the Pokémon has won - * various levels of the Coolness contests, as follows: - * * Bit 3 (MSB): Cool Hyper/Ultra - * * Bit 2: Cool Super/Great - * * Bit 1 (LSB): Cool - * - * To access this value, apply this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field. - * - * To modify this value, apply the inverse of this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, then logical-or the - * result with the new value. - */ -#define PKSAV_GBA_COOL_MASK (uint32_t)(7) - -/*! - * @brief The mask for determining which Beauty contests a Pokémon has won. - * - * The result is 3 bits that correspond to whether or not the Pokémon has won - * various levels of the Beauty contests, as follows: - * * Bit 3 (MSB): Beauty Hyper/Ultra - * * Bit 2: Beauty Super/Great - * * Bit 1 (LSB): Beauty - * - * To access this value, apply this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right - * by ::PKSAV_GBA_BEAUTY_OFFSET. - * - * To modify this value, apply the inverse of this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left - * by ::PKSAV_GBA_BEAUTY_OFFSET, then logical-or the result with the field. - */ -#define PKSAV_GBA_BEAUTY_MASK (uint32_t)(7 << PKSAV_GBA_BEAUTY_OFFSET) - -/*! - * @brief The offset of the bits corresponding to which Beauty contests a Pokémon has won. - * - * See ::PKSAV_GBA_BEAUTY_MASK for its usage. - */ -#define PKSAV_GBA_BEAUTY_OFFSET 3 - -/*! - * @brief The mask for determining which Cuteness contests a Pokémon has won. - * - * The result is 3 bits that correspond to whether or not the Pokémon has won - * various levels of the Cute contests, as follows: - * * Bit 3 (MSB): Cute Hyper/Ultra - * * Bit 2: Cute Super/Great - * * Bit 1 (LSB): Cute - * - * To access this value, apply this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right - * by ::PKSAV_GBA_CUTE_OFFSET. - * - * To modify this value, apply the inverse of this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left - * by ::PKSAV_GBA_CUTE_OFFSET, then logical-or the result with the field. - */ -#define PKSAV_GBA_CUTE_MASK (uint32_t)(7 << PKSAV_GBA_CUTE_OFFSET) - -/*! - * @brief The offset of the bits corresponding to which Cuteness contests a Pokémon has won. - * - * See ::PKSAV_GBA_CUTE_MASK for its usage. - */ -#define PKSAV_GBA_CUTE_OFFSET 6 - -/*! - * @brief The mask for determining which Smartness contests a Pokémon has won. - * - * The result is 3 bits that correspond to whether or not the Pokémon has won - * various levels of the Smart contests, as follows: - * * Bit 3 (MSB): Smart Hyper/Ultra - * * Bit 2: Smart Super/Great - * * Bit 1 (LSB): Smart - * - * To access this value, apply this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right - * by ::PKSAV_GBA_SMART_OFFSET. - * - * To modify this value, apply the inverse of this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left - * by ::PKSAV_GBA_SMART_OFFSET, then logical-or the result with the field. - */ -#define PKSAV_GBA_SMART_MASK (uint32_t)(7 << PKSAV_GBA_SMART_OFFSET) - -/*! - * @brief The offset of the bits corresponding to which Smartness contests a Pokémon has won. - * - * See ::PKSAV_GBA_SMART_MASK for its usage. - */ -#define PKSAV_GBA_SMART_OFFSET 9 - -/*! - * @brief The mask for determining which Toughness contests a Pokémon has won. - * - * The result is 3 bits that correspond to whether or not the Pokémon has won - * various levels of the Tough contests, as follows: - * * Bit 3 (MSB): Tough Hyper/Ultra - * * Bit 2: Tough Super/Great - * * Bit 1 (LSB): Tough - * - * To access this value, apply this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right - * by ::PKSAV_GBA_TOUGH_OFFSET. - * - * To modify this value, apply the inverse of this mask to the - * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left - * by ::PKSAV_GBA_TOUGH_OFFSET, then logical-or the result with the field. - */ -#define PKSAV_GBA_TOUGH_MASK (uint32_t)(7 << PKSAV_GBA_TOUGH_OFFSET) - -/*! - * @brief The offset of the bits corresponding to which Toughness contests a Pokémon has won. - * - * See ::PKSAV_GBA_TOUGH_MASK for its usage. - */ -#define PKSAV_GBA_TOUGH_OFFSET 12 +#define PKSAV_GBA_POKEMON_OTGENDER_MASK ((uint16_t)(1 << 15)) /*! * @brief The mask for determining whether a Mew or Deoxys will be obedient. @@ -220,7 +111,10 @@ * Apply this mask to the pksav_gba_pokemon_misc_t.ribbons_obedience field * to modify this bit. */ -#define PKSAV_GBA_OBEDIENCE_MASK (uint32_t)(1 << 31) +#define PKSAV_GBA_POKEMON_OBEDIENCE_MASK ((uint32_t)(1 << 31)) + +#define PKSAV_GBA_POKEMON_PP_UP(field,move_num) \ + (((field) >> (move_num * 2)) & 3) #pragma pack(push,1) @@ -228,7 +122,8 @@ * @brief Internal representation of Pokémon statistics that increase * with growth in a Game Boy Advance game. */ -typedef struct { +struct pksav_gba_pokemon_growth_block +{ /*! * @brief The Pokémon's species index. * @@ -270,13 +165,14 @@ typedef struct { uint8_t friendship; //! Unknown. uint16_t unknown_0xA; -} pksav_gba_pokemon_growth_t; +}; /*! * @brief Internal representation of a Pokémon's moves and current PP in a * Game Boy Advance game. */ -typedef struct { +struct pksav_gba_pokemon_attacks_block +{ /*! * @brief Indices of the Pokémon's moves. * @@ -285,20 +181,21 @@ typedef struct { * These values are stored in little-endian, so access and modify them * with the function ::pksav_littleendian16. */ - uint16_t moves[4]; + uint16_t moves[PKSAV_GBA_POKEMON_NUM_MOVES]; /*! * @brief The PP for each of the Pokémon's moves. * * The maximum value for each slot is dependent on the move. */ - uint8_t move_pps[4]; -} pksav_gba_pokemon_attacks_t; + uint8_t move_pps[PKSAV_GBA_POKEMON_NUM_MOVES]; +}; /*! * @brief Internal representation of a Pokémon's EVs and contest stats * in a Game Boy Advance game. */ -typedef struct { +struct pksav_gba_pokemon_effort_block +{ //! A Pokémon's HP EV. uint8_t ev_hp; //! A Pokémon's Attack EV. @@ -312,14 +209,21 @@ typedef struct { //! A Pokémon's Special Defense EV. uint8_t ev_spdef; //! A Pokémon's contest stats. - pksav_contest_stats_t contest_stats; -} pksav_gba_pokemon_effort_t; + struct pksav_contest_stats contest_stats; +}; + +#define PKSAV_GBA_POKEMON_ORIGIN_GAME(field) \ + (((field) & PKSAV_GBA_POKEMON_ORIGIN_GAME_MASK) >> PKSAV_GBA_POKEMON_ORIGIN_GAME_OFFSET) + +#define PKSAV_GBA_POKEMON_BALL(field) \ + (((field) & PKSAV_GBA_POKEMON_BALL_MASK) >> PKSAV_GBA_POKEMON_BALL_OFFSET) /*! * @brief Internal representation of Pokémon information that doesn't fit in * other structs. */ -typedef struct { +struct pksav_gba_pokemon_misc_block +{ /*! * @brief The Pokémon's Pokérus strain and duration. * @@ -379,46 +283,29 @@ typedef struct { * * 31: needs to be set to 1 for a Mew or Deoxys to be obedient */ uint32_t ribbons_obedience; -} pksav_gba_pokemon_misc_t; +}; /*! * @brief The grouping of all Game Boy Advance Pokémon blocks. - * - * This union allows the data to be parsed in multiple ways, which is useful for - * unshuffling and decryption. */ -typedef union { - //! Parse the blocks byte-by-byte. - uint8_t blocks8[48]; - //! Parse the blocks in two-byte chunks. - uint16_t blocks16[24]; - //! Parse the blocks in four-byte chunks. - uint32_t blocks32[12]; - //! Parse individual blocks byte-by-byte. - uint8_t blocks[4][12]; - /*! - * @brief Parse the blocks in a consistent order once unshuffled. - * - * This order is completely arbitrary and is only laid out this way for - * a convenient interface. - */ - struct { - //! Growth-related information. - pksav_gba_pokemon_growth_t growth; - //! Attacks and PP. - pksav_gba_pokemon_attacks_t attacks; - //! EVs. - pksav_gba_pokemon_effort_t effort; - //! Misc information. - pksav_gba_pokemon_misc_t misc; - }; -} pksav_gba_pokemon_blocks_t; +struct pksav_gba_pokemon_blocks +{ + //! Growth-related information. + struct pksav_gba_pokemon_growth_block growth; + //! Attacks and PP. + struct pksav_gba_pokemon_attacks_block attacks; + //! EVs. + struct pksav_gba_pokemon_effort_block effort; + //! Misc information. + struct pksav_gba_pokemon_misc_block misc; +}; /*! * @brief The internal representation of Pokémon information that's shown in both * the party and PC. */ -typedef struct { +struct pksav_gba_pc_pokemon +{ /*! * @brief The Pokémon's personality value, used to determine other values. * @@ -427,7 +314,7 @@ typedef struct { */ uint32_t personality; //! This Pokémon's original trainer's ID. - pksav_trainer_id_t ot_id; + union pksav_trainer_id ot_id; /*! * @brief This Pokémon's nickname. * @@ -436,7 +323,7 @@ typedef struct { * * In all cases, the num_chars parameter should be 10. */ - uint8_t nickname[10]; + uint8_t nickname[PKSAV_GBA_POKEMON_NICKNAME_LENGTH]; /*! * @brief The language of this Pokémon's original game. * @@ -452,7 +339,7 @@ typedef struct { * * In all cases, the num_chars parameter should be 7. */ - uint8_t otname[7]; + uint8_t otname[PKSAV_GBA_POKEMON_OTNAME_LENGTH]; /*! * @brief This Pokémon's trainer-set markings. * @@ -464,16 +351,17 @@ typedef struct { * @brief The checksum of the Pokémon blocks. * * Users should never need to access or modify this value, as ::pksav_gba_save_save - * automatically sets all checksum. + * automatically sets all checksums. */ uint16_t checksum; //! Unknown. uint16_t unknown_0x1E; //! Pokémon blocks. - pksav_gba_pokemon_blocks_t blocks; -} pksav_gba_pc_pokemon_t; + struct pksav_gba_pokemon_blocks blocks; +}; -typedef struct { +struct pksav_gba_pokemon_party_data +{ uint32_t condition; uint8_t level; uint8_t pokerus_time; @@ -484,28 +372,32 @@ typedef struct { uint16_t spd; uint16_t spatk; uint16_t spdef; -} pksav_gba_pokemon_party_data_t; +}; -typedef struct { - pksav_gba_pc_pokemon_t pc; - pksav_gba_pokemon_party_data_t party_data; -} pksav_gba_party_pokemon_t; +struct pksav_gba_party_pokemon +{ + struct pksav_gba_pc_pokemon pc_data; + struct pksav_gba_pokemon_party_data party_data; +}; -typedef struct { +struct pksav_gba_pokemon_party +{ uint32_t count; - pksav_gba_party_pokemon_t party[6]; -} pksav_gba_pokemon_party_t; + struct pksav_gba_party_pokemon party[PKSAV_GBA_PARTY_NUM_POKEMON]; +}; -typedef struct { - pksav_gba_pc_pokemon_t entries[30]; -} pksav_gba_pokemon_box_t; +struct pksav_gba_pokemon_box +{ + struct pksav_gba_pc_pokemon entries[PKSAV_GBA_BOX_NUM_POKEMON]; +}; -typedef struct { +struct pksav_gba_pokemon_pc +{ uint32_t current_box; - pksav_gba_pokemon_box_t boxes[14]; - uint8_t box_names[14][9]; - uint8_t wallpapers[14]; -} pksav_gba_pokemon_pc_t; + struct pksav_gba_pokemon_box boxes[PKSAV_GBA_NUM_POKEMON_BOXES]; + uint8_t box_names[PKSAV_GBA_NUM_POKEMON_BOXES][PKSAV_GBA_POKEMON_BOX_NAME_LENGTH + 1]; + uint8_t wallpapers[PKSAV_GBA_NUM_POKEMON_BOXES]; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/gba/ribbons.h b/libpksav/include/pksav/gba/ribbons.h new file mode 100644 index 0000000..4546ae0 --- /dev/null +++ b/libpksav/include/pksav/gba/ribbons.h @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_RIBBONS_H +#define PKSAV_GBA_RIBBONS_H + +/*! + * @brief What level of contest ribbon a given Pokémon has. + * + * For each contest type, there is a 3-bit slot in the Pokémon's Hoenn + * ribbon field that stores which level of contest the Pokémon has one for + * that particular type. This enum represents all valid values. + */ +enum pksav_gba_contest_ribbon_level +{ + //! No contest won. + PKSAV_GBA_CONTEST_RIBBON_NONE = 0, + //! Normal contest. + PKSAV_GBA_CONTEST_RIBBON_NORMAL = 1, + //! Super/Great contest. + PKSAV_GBA_CONTEST_RIBBON_SUPER = 2, + //! Hyper/Ultra contest. + PKSAV_GBA_CONTEST_RIBBON_HYPER = 3, + //! Master contest. + PKSAV_GBA_CONTEST_RIBBON_MASTER = 4 +}; + +/*! + * @brief The offsets for the 3-bit slots for each Pokémon contest type. + */ +enum pksav_gba_contest_ribbons_offset +{ + //! The offset for the level of Cool contests won. + PKSAV_GBA_COOL_RIBBONS_OFFSET = 0, + //! The offset for the level of Beauty contests won. + PKSAV_GBA_BEAUTY_RIBBONS_OFFSET = 3, + //! The offset for the level of Cute contests won. + PKSAV_GBA_CUTE_RIBBONS_OFFSET = 6, + //! The offset for the level of Smart contests won. + PKSAV_GBA_SMART_RIBBONS_OFFSET = 9, + //! The offset for the level of Tough contests won. + PKSAV_GBA_TOUGH_RIBBONS_OFFSET = 12, +}; + +enum pksav_gba_contest_ribbons_mask +{ + //! The mask for the level of Cool contests won. + PKSAV_GBA_COOL_RIBBONS_MASK = (7 << PKSAV_GBA_COOL_RIBBONS_OFFSET), + //! The mask for the level of Beauty contests won. + PKSAV_GBA_BEAUTY_RIBBONS_MASK = (7 << PKSAV_GBA_BEAUTY_RIBBONS_OFFSET), + //! The mask for the level of Cute contests won. + PKSAV_GBA_CUTE_RIBBONS_MASK = (7 << PKSAV_GBA_CUTE_RIBBONS_OFFSET), + //! The mask for the level of Smart contests won. + PKSAV_GBA_SMART_RIBBONS_MASK = (7 << PKSAV_GBA_SMART_RIBBONS_OFFSET), + //! The mask for the level of Tough contests won. + PKSAV_GBA_TOUGH_RIBBONS_MASK = (7 << PKSAV_GBA_TOUGH_RIBBONS_OFFSET) +}; + +#define PKSAV_GBA_COOL_CONTEST_LEVEL(field) \ + (((field) & PKSAV_GBA_COOL_RIBBONS_MASK) >> PKSAV_GBA_COOL_RIBBONS_OFFSET) + +#define PKSAV_GBA_BEAUTY_CONTEST_LEVEL(field) \ + (((field) & PKSAV_GBA_BEAUTY_RIBBONS_MASK) >> PKSAV_GBA_BEAUTY_RIBBONS_OFFSET) + +#define PKSAV_GBA_CUTE_CONTEST_LEVEL(field) \ + (((field) & PKSAV_GBA_CUTE_RIBBONS_MASK) >> PKSAV_GBA_CUTE_RIBBONS_OFFSET) + +#define PKSAV_GBA_SMART_CONTEST_LEVEL(field) \ + (((field) & PKSAV_GBA_SMART_RIBBONS_MASK) >> PKSAV_GBA_SMART_RIBBONS_OFFSET) + +#define PKSAV_GBA_TOUGH_CONTEST_LEVEL(field) \ + (((field) & PKSAV_GBA_TOUGH_RIBBONS_MASK) >> PKSAV_GBA_TOUGH_RIBBONS_OFFSET) + +enum pksav_gba_ribbon_mask +{ + //! Champion Ribbon. + PKSAV_GBA_CHAMPION_RIBBON_MASK = (1 << 15), + //! Winning Ribbon. + PKSAV_GBA_WINNING_RIBBON_MASK = (1 << 16), + //! Victory Ribbon. + PKSAV_GBA_VICTORY_RIBBON_MASK = (1 << 17), + //! Artist Ribbon. + PKSAV_GBA_ARTIST_RIBBON_MASK = (1 << 18), + //! Effort Ribbon. + PKSAV_GBA_EFFORT_RIBBON_MASK = (1 << 19), + //! Marine Ribbon. + PKSAV_GBA_MARINE_RIBBON_MASK = (1 << 20), + //! Land Ribbon. + PKSAV_GBA_LAND_RIBBON_MASK = (1 << 21), + //! Sky Ribbon. + PKSAV_GBA_SKY_RIBBON_MASK = (1 << 22), + //! Country Ribbon. + PKSAV_GBA_COUNTRY_RIBBON_MASK = (1 << 23), + //! National Ribbon. + PKSAV_GBA_NATIONAL_RIBBON_MASK = (1 << 24), + //! Earth Ribbon. + PKSAV_GBA_EARTH_RIBBON_MASK = (1 << 25), + //! World Ribbon. + PKSAV_GBA_WORLD_RIBBON_MASK = (1 << 26) +}; + +#endif /* PKSAV_GBA_RIBBONS_H */ diff --git a/libpksav/include/pksav/gba/roamer.h b/libpksav/include/pksav/gba/roamer.h new file mode 100644 index 0000000..d63de64 --- /dev/null +++ b/libpksav/include/pksav/gba/roamer.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_ROAMER_H +#define PKSAV_GBA_ROAMER_H + +#include + +#pragma pack(push,1) + +struct pksav_gba_roamer +{ + uint32_t IVs; + uint32_t personality; + uint16_t species; + uint16_t hp; + uint8_t level; + uint8_t status; + uint8_t cool; + uint8_t beauty; + uint8_t cute; + uint8_t smart; + uint8_t tough; + uint8_t is_active_bool; + uint8_t filler[8]; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_ROAMER_H */ diff --git a/libpksav/include/pksav/gba/save.h b/libpksav/include/pksav/gba/save.h index 0ef1b21..4d2519c 100644 --- a/libpksav/include/pksav/gba/save.h +++ b/libpksav/include/pksav/gba/save.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -10,331 +10,155 @@ #include #include +#include + +#include +#include #include -#include +#include +#include #include +#include +#include #include #include #include -/*! - * @brief An enum describing each type of Game Boy Advance game. - * - * This enum is to be used with ::pksav_file_is_gba_save and - * ::pksav_gba_save_load. - * - * Although Pokémon Emerald is very similar to Ruby/Sapphire, this - * enum distinguishes games based on how data is stored internally. - */ -typedef enum { - //! Pokémon Ruby/Sapphire - PKSAV_GBA_RS = 0, - //! Pokémon Emerald - PKSAV_GBA_EMERALD, - //! Pokémon FireRed/LeafGreen - PKSAV_GBA_FRLG -} pksav_gba_game_t; - -// How many bytes in each section are read for the checksum -#ifndef __DOXYGEN__ -static const uint16_t pksav_gba_section_sizes[14] = { - 3884,3968,3968,3968,3848,3968,3968, - 3968,3968,3968,3968,3968,3968,2000 +#define PKSAV_GBA_SAVE_SIZE (0x10000) + +#define PKSAV_GBA_RIVAL_NAME_LENGTH PKSAV_GBA_TRAINER_NAME_LENGTH + +#define PKSAV_GBA_SAVE_MONEY_MAX_VALUE (999999) +#define PKSAV_GBA_SAVE_CASINO_COINS_MAX_VALUE (9999) + +struct pksav_gba_options +{ + uint8_t* p_button_mode; + + uint8_t* p_text_options; + + uint8_t* p_sound_battle_options; }; -#endif -/*! - * @brief Mask to set the first National Pokédex unlocked field in Ruby/Sapphire/Emerald. - * - * Use this mask to set the data at pksav_gba_save_t.rse_nat_pokedex_unlockedA. Any time - * this value changes, the same corresponding action must be taken on the fields - * pksav_gba_save_t.nat_pokedex_unlockedB and pksav_gba_save_t.nat_pokedex_unlockedC. - */ -#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_A (uint16_t)(0x01DA) +struct pksav_gba_pokemon_storage +{ + struct pksav_gba_pokemon_party* p_party; -/*! - * @brief Mask to set the second National Pokédex unlocked field in Ruby/Sapphire/Emerald. - * - * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedB. Any time - * this value changes, the same corresponding action must be taken on the fields - * pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. - */ -#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_B (uint8_t)(1 << 6) + struct pksav_gba_pokemon_pc* p_pc; -/*! - * @brief Mask to set the third National Pokédex unlocked field in Ruby/Sapphire/Emerald. - * - * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedC. Any time - * this value changes, the same corresponding action must be taken on the fields - * pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedB. - */ -#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_C (uint16_t)(0x0203) + union pksav_gba_daycare* p_daycare; +}; -/*! - * @brief Mask to set the first National Pokédex unlocked field in FireRed/LeafGreen. - * - * Use this mask to set the data at pksav_gba_save_t.frlg_nat_pokedex_unlockedA. Any time - * this value changes, the same corresponding action must be taken on the fields - * pksav_gba_save_t.nat_pokedex_unlockedB and pksav_gba_save_t.nat_pokedex_unlockedC. - */ -#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_A (uint8_t)(0xB9) +struct pksav_gba_item_storage +{ + union pksav_gba_item_bag* p_bag; -/*! - * @brief Mask to set the second National Pokédex unlocked field in FireRed/LeafGreen. - * - * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedB. Any time - * this value changes, the same corresponding action must be taken on the fields - * pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. - */ -#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_B (uint8_t)(0x01) + struct pksav_gba_item_pc* p_pc; -/*! - * @brief Mask to set the third National Pokédex unlocked field in FireRed/LeafGreen. - * - * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedC. Any time - * this value changes, the same corresponding action must be taken on the fields - * pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. - */ -#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_C (uint16_t)(0x5862) + uint16_t* p_registered_item; +}; -/*! - * @brief The structure representing a Game Boy Advance save. - * - * The pointers in this structure should not be used before passing it - * into ::pksav_gba_save_load and should not be used after passing it - * into ::pksav_gba_save_save. Doing so will result in undefined behavior. - */ -typedef struct { - //! Information on the player character. - pksav_gba_trainer_info_t* trainer_info; +struct pksav_gba_player_info +{ + union pksav_trainer_id* p_id; /*! - * @brief The rival's name in FireRed/LeafGreen. + * @brief A pointer to the trainer's name. * - * This name should be accessed with ::pksav_text_from_gba and modified with - * ::pksav_text_to_gba. + * This value should be accessed with ::pksav_text_from_gba with a num_chars + * value of 7. * - * In either case, the num_chars parameter should be 7. - * - * For Ruby/Sapphire/Emerald games, this pointer is set to NULL. + * This value should be set with ::pksav_text_to_gba with a num_chars + * value of 7. */ - uint8_t* rival_name; + uint8_t* p_name; - //! The trainer's Pokémon party. - pksav_gba_pokemon_party_t* pokemon_party; + uint8_t* p_gender; - //! The trainer's Pokémon PC. - pksav_gba_pokemon_pc_t* pokemon_pc; + uint32_t* p_money; - //! The trainer's item bag and PC. - pksav_gba_item_storage_t* item_storage; + struct pksav_gba_player_location_info* p_location_info; +}; - //! The trainer's money (valid values 0-999999). - uint32_t* money; +/*struct pksav_gba_rs_fields +{ +}; - //! The trainer's casino coins (valid values 0-999). - uint16_t* casino_coins; +struct pksav_gba_emerald_fields +{ +};*/ - /*! - * @brief A pointer to the list of Pokémon owned by the trainer. - * - * This list should be accessed with ::pksav_get_pokedex_bit and set with - * ::pksav_set_pokedex_bit. - */ - uint8_t* pokedex_owned; +struct pksav_gba_frlg_fields +{ + uint8_t* p_rival_name; +}; - /*! - * @brief A pointer to the first list of Pokémon seen by the trainer. - * - * This list should be accessed with ::pksav_get_pokedex_bit and set with - * ::pksav_set_pokedex_bit. - * - * Any action taken on this list should also be taken on - * pksav_gba_save_t.pokedex_seenB and pksav_gba_save_t.pokedex_seenC. - */ - uint8_t* pokedex_seenA; +struct pksav_gba_misc_fields +{ + uint16_t* p_casino_coins; - /*! - * @brief A pointer to the second list of Pokémon seen by the trainer. - * - * This list should be accessed with ::pksav_get_pokedex_bit and set with - * ::pksav_set_pokedex_bit. - * - * Any action taken on this list should also be taken on - * pksav_gba_save_t.pokedex_seenA and pksav_gba_save_t.pokedex_seenC. - */ - uint8_t* pokedex_seenB; + struct pksav_gba_roamer* p_roamer; - /*! - * @brief A pointer to the third list of Pokémon seen by the trainer. - * - * This list should be accessed with ::pksav_get_pokedex_bit and set with - * ::pksav_set_pokedex_bit. - * - * Any action taken on this list should also be taken on - * pksav_gba_save_t.pokedex_seenA and pksav_gba_save_t.pokedex_seenB. - */ - uint8_t* pokedex_seenC; + //struct pksav_gba_rs_fields rs_fields; + //struct pksav_gba_emerald_fields emerald_fields; + struct pksav_gba_frlg_fields frlg_fields; +}; - /*! - * @brief The first value that indicates if the National Pokédex is unlocked in - * Ruby/Sapphire/Emerald. - * - * This value should be set or unset with ::PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_A. - * - * Any action taken on this value should be taken on pksav_gba_save_t.nat_pokedex_unlockedB - * and pksav_gba_save_t.nat_pokedex_unlockedC. - */ - uint16_t* rse_nat_pokedex_unlockedA; +struct pksav_gba_save +{ + enum pksav_gba_save_type save_type; - /*! - * @brief The first value that indicates if the National Pokédex is unlocked in - * FireRed/LeafGreen. - * - * This value should be set or unset with ::PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_A. - * - * Any action taken on this value should be taken on pksav_gba_save_t.nat_pokedex_unlockedB - * and pksav_gba_save_t.nat_pokedex_unlockedC. - */ - uint8_t* frlg_nat_pokedex_unlockedA; + struct pksav_gba_time* p_time_played; - /*! - * @brief The second value that indicates if the National Pokédex is unlocked. - * - * For Ruby/Sapphire/Emerald saves, this value should be set or unset with - * ::PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_B. For FireRed/Leafgreen saves, this value - * should be set with ::PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_B. - * - * For Ruby/Sapphire/Emerald saves, any action taken on this value should be taken - * on pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. - * - * For FireRed/LeafGreen saves, any action taken on this value should be taken - * on pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. - */ - uint8_t* nat_pokedex_unlockedB; + struct pksav_gba_options options; - /*! - * @brief The third value that indicates if the National Pokédex is unlocked. - * - * For Ruby/Sapphire/Emerald saves, this value should be set or unset with - * ::PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_C. For FireRed/Leafgreen saves, this value - * should be set with ::PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_C. - * - * For Ruby/Sapphire/Emerald saves, any action taken on this value should be taken - * on pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedB. - * - * For FireRed/LeafGreen saves, any action taken on this value should be taken - * on pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedB. - */ - uint16_t* nat_pokedex_unlockedC; - - //! @brief Which of the three game types this save corresponds to. - pksav_gba_game_t gba_game; - - // Do not edit these -#ifndef __DOXYGEN__ - uint32_t security_key; - uint8_t shuffled_section_nums[14]; - bool small_save; - bool from_first_slot; - pksav_gba_save_slot_t* unshuffled; - uint8_t* raw; -#endif -} pksav_gba_save_t; + struct pksav_gba_item_storage item_storage; + + struct pksav_gba_pokemon_storage pokemon_storage; + + struct pksav_gba_pokedex pokedex; + + struct pksav_gba_player_info player_info; + + struct pksav_gba_misc_fields misc_fields; + + void* p_internal; +}; #ifdef __cplusplus extern "C" { #endif -/*! - * @brief Checks if the given buffer is a valid Game Boy Advance save. - * - * \param buffer buffer to check - * \param buffer_len size of the buffer to check - * \param gba_game which type of Game Boy Advance game to test for - * \param result_out whether or not the buffer is a valid save - * \returns ::PKSAV_ERROR_NONE upon success, no matter the result - * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL - */ -PKSAV_API pksav_error_t pksav_buffer_is_gba_save( - const uint8_t* buffer, +PKSAV_API enum pksav_error pksav_gba_get_buffer_save_type( + const uint8_t* p_buffer, size_t buffer_len, - pksav_gba_game_t gba_game, - bool* result_out + enum pksav_gba_save_type* p_save_type_out ); -/*! - * @brief Checks if the given file is a valid Game Boy Advance save. - * - * \param filepath path of the file to check - * \param gba_game which type of Game Boy Advance game to test for - * \param result_out whether or not the file is a valid save - * \returns ::PKSAV_ERROR_NONE upon success, no matter the result - * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or result_out is NULL - */ -PKSAV_API pksav_error_t pksav_file_is_gba_save( - const char* filepath, - pksav_gba_game_t gba_game, - bool* result_out +PKSAV_API enum pksav_error pksav_gba_get_file_save_type( + const char* p_filepath, + enum pksav_gba_save_type* p_save_type_out ); -/*! - * @brief Loads the save file at the given path and populates the given save struct - * - * This function takes care of all internal storage details, removing the need for a user - * to worry about unshuffling sections, decrypting Pokémon and items, etc. - * - * At the end of the function, all pointers in the gba_save parameter will point to - * completely contiguous and decrypted data. - * - * \param filepath path of the file to load - * \param gba_save pointer to save struct to populate - * \returns ::PKSAV_ERROR_NONE upon completion - * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gba_save is NULL - * \returns ::PKSAV_ERROR_FILE_IO if an error occurs reading the file - * \returns ::PKSAV_ERROR_INVALID_SAVE if the file is not a valid Game Boy Advance save - */ -PKSAV_API pksav_error_t pksav_gba_save_load( - const char* filepath, - pksav_gba_save_t* gba_save +PKSAV_API enum pksav_error pksav_gba_load_save_from_buffer( + uint8_t* p_buffer, + size_t buffer_len, + struct pksav_gba_save* p_gba_save_out ); -/*! - * @brief Saves the given save file to the given path - * - * This function takes care of all internal storage details, removing the need for a - * user to worry about shuffling sections, encrypting Pokémon and items, etc. - * - * This function will save the data into the save slot opposite that from which it was - * loaded, leaving the original save intact. Its save counter will be incremented, so - * the game will load this save slot instead of the previous one. - * - * \param filepath where to save the save file - * \param gba_save pointer to the save struct to save - * \returns ::PKSAV_ERROR_NONE upon completion - * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gba_save is NULL - * \returns ::PKSAV_ERROR_FILE_IO if an error occurs writing the file - */ -PKSAV_API pksav_error_t pksav_gba_save_save( - const char* filepath, - pksav_gba_save_t* gba_save +PKSAV_API enum pksav_error pksav_gba_load_save_from_file( + const char* p_filepath, + struct pksav_gba_save* p_gba_save_out ); -/*! - * @brief Frees memory allocated by ::pksav_gba_save_load. - * - * After using this function, the given pksav_gba_save_t should not be - * used unless passed into ::pksav_gba_save_load, as all pointers in - * the struct will be invalid. Attempting to access or modify them will - * result in undefined behavior. - * - * \param gba_save the save struct to free - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if gba_save is NULL - */ -PKSAV_API pksav_error_t pksav_gba_save_free( - pksav_gba_save_t* gba_save +PKSAV_API enum pksav_error pksav_gba_save_save( + const char* p_filepath, + struct pksav_gba_save* p_gba_save +); + +PKSAV_API enum pksav_error pksav_gba_free_save( + struct pksav_gba_save* p_gba_save ); #ifdef __cplusplus diff --git a/libpksav/include/pksav/gba/text.h b/libpksav/include/pksav/gba/text.h index 5a13230..03f24a4 100644 --- a/libpksav/include/pksav/gba/text.h +++ b/libpksav/include/pksav/gba/text.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gba/text.h - * @ingroup PKSav - * @brief Conversions between C strings and the string format used in Game Boy Advance games. - * - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -29,15 +25,15 @@ extern "C" { * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_buffer Game Boy Advance string - * \param output_text output buffer in which to place converted text + * \param p_input_buffer Game Boy Advance string + * \param p_output_text output buffer in which to place converted text * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_buffer or p_output_text is NULL */ -PKSAV_API pksav_error_t pksav_text_from_gba( - const uint8_t* input_buffer, - char* output_text, +PKSAV_API enum pksav_error pksav_gba_import_text( + const uint8_t* p_input_buffer, + char* p_output_text, size_t num_chars ); @@ -49,15 +45,15 @@ PKSAV_API pksav_error_t pksav_text_from_gba( * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_text C string to convert - * \param output_buffer output buffer in which to place Game Boy Advance string + * \param p_input_text C string to convert + * \param p_output_buffer output buffer in which to place Game Boy Advance string * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_text or p_output_buffer is NULL */ -PKSAV_API pksav_error_t pksav_text_to_gba( - const char* input_text, - uint8_t* output_buffer, +PKSAV_API enum pksav_error pksav_gba_export_text( + const char* p_input_text, + uint8_t* p_output_buffer, size_t num_chars ); diff --git a/libpksav/include/pksav/gba/time.h b/libpksav/include/pksav/gba/time.h new file mode 100644 index 0000000..65eaed7 --- /dev/null +++ b/libpksav/include/pksav/gba/time.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_TIME_H +#define PKSAV_GBA_TIME_H + +#include + +#pragma pack(push,1) + +//! The representation of time in a Game Boy Advance game. +struct pksav_gba_time +{ + //! Hours (0-99). + uint16_t hours; + //! Minutes (0-59). + uint8_t minutes; + //! Seconds (0-59). + uint8_t seconds; + //! Frames per second (0-59). + uint8_t frames; +}; + +struct pksav_gba_time_offset +{ + int16_t days; + int8_t hours; + int8_t minutes; + int8_t seconds; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_TIME_H */ diff --git a/libpksav/include/pksav/gen1.h b/libpksav/include/pksav/gen1.h index d996008..b853664 100644 --- a/libpksav/include/pksav/gen1.h +++ b/libpksav/include/pksav/gen1.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen1.h - * @ingroup PKSav - * @brief Global Generation I include file. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -14,10 +10,16 @@ #include #include +#include +#include +#include #include +#include #include #include #include +#include +#include #include #include diff --git a/libpksav/include/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/gen1/CMakeLists.txt b/libpksav/include/pksav/gen1/CMakeLists.txt index 3e24c77..d9906a0 100644 --- a/libpksav/include/pksav/gen1/CMakeLists.txt +++ b/libpksav/include/pksav/gen1/CMakeLists.txt @@ -1,15 +1,21 @@ # -# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) # SET(pksav_gen1_headers + badges.h + common.h + daycare_data.h items.h + options.h pokemon.h save.h text.h + time.h + type.h ) INSTALL( diff --git a/libpksav/include/pksav/gen1/Makefile b/libpksav/include/pksav/gen1/Makefile index 148f7b5..ca8208d 100644 --- a/libpksav/include/pksav/gen1/Makefile +++ b/libpksav/include/pksav/gen1/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen1//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav/gen1//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/gen1/badges.h b/libpksav/include/pksav/gen1/badges.h new file mode 100644 index 0000000..22df8ba --- /dev/null +++ b/libpksav/include/pksav/gen1/badges.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_BADGES_H +#define PKSAV_GEN1_BADGES_H + +/*! + * @brief Bitmasks for checking if the player has a specific badge. + * + * The pksav_gen1_save_t.badges field points to the byte in the save file + * that stores this bitmap. Use these enum values on this byte to access and + * set whether or not the player has this badge. + */ +enum pksav_gen1_badge_mask +{ + //! Boulder Badge (Brock, Badge #1) + PKSAV_GEN1_BOULDER_BADGE = 0x01, + //! Cascade Badge (Misty, Badge #2) + PKSAV_GEN1_CASCADE_BADGE = 0x02, + //! Thunder Badge (Lt. Surge, Badge #3) + PKSAV_GEN1_THUNDER_BADGE = 0x04, + //! Rainbow Badge (Erika, Badge #4) + PKSAV_GEN1_RAINBOW_BADGE = 0x08, + //! Soul Badge (Koga, Badge #5) + PKSAV_GEN1_SOUL_BADGE = 0x10, + //! Marsh Badge (Sabrina, Badge #6) + PKSAV_GEN1_MARSH_BADGE = 0x20, + //! Volcano Badge (Blaine, Badge #7) + PKSAV_GEN1_VOLCANO_BADGE = 0x40, + //! Earth Badge (Giovanni, Badge #8) + PKSAV_GEN1_EARTH_BADGE = 0x80 +}; + +#endif /* PKSAV_GEN1_BADGES_H */ diff --git a/libpksav/include/pksav/gen1/cmake_install.cmake b/libpksav/include/pksav/gen1/cmake_install.cmake index 9db39d7..14cc603 100644 --- a/libpksav/include/pksav/gen1/cmake_install.cmake +++ b/libpksav/include/pksav/gen1/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen1 +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav/gen1 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -39,10 +39,16 @@ endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen1" TYPE FILE FILES - "/Users/spencer/Projects/pksav/include/pksav/gen1/items.h" - "/Users/spencer/Projects/pksav/include/pksav/gen1/pokemon.h" - "/Users/spencer/Projects/pksav/include/pksav/gen1/save.h" - "/Users/spencer/Projects/pksav/include/pksav/gen1/text.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/badges.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/common.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/daycare_data.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/items.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/options.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/pokemon.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/save.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/text.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/time.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen1/type.h" ) endif() diff --git a/libpksav/include/pksav/gen1/common.h b/libpksav/include/pksav/gen1/common.h new file mode 100644 index 0000000..a80f029 --- /dev/null +++ b/libpksav/include/pksav/gen1/common.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_COMMON_H +#define PKSAV_GEN1_COMMON_H + +#include + +#define PKSAV_GEN1_TRAINER_NAME_LENGTH PKSAV_STANDARD_TRAINER_NAME_LENGTH + +#define PKSAV_GEN1_NUM_POKEMON_BOXES (12) + +enum pksav_gen1_save_type +{ + PKSAV_GEN1_SAVE_TYPE_NONE, + PKSAV_GEN1_SAVE_TYPE_RED_BLUE, + PKSAV_GEN1_SAVE_TYPE_YELLOW +}; + +#endif /* PKSAV_GEN1_COMMON_H */ diff --git a/libpksav/include/pksav/gen1/daycare_data.h b/libpksav/include/pksav/gen1/daycare_data.h new file mode 100644 index 0000000..990f74d --- /dev/null +++ b/libpksav/include/pksav/gen1/daycare_data.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_DAYCARE_DATA_H +#define PKSAV_GEN1_DAYCARE_DATA_H + +#include + +#include + +#define PKSAV_GEN1_DAYCARE_NOT_IN_USE ((uint8_t)0) +#define PKSAV_GEN1_DAYCARE_IN_USE ((uint8_t)1) + +#pragma pack(push,1) + +struct pksav_gen1_daycare_data +{ + uint8_t is_daycare_in_use; + uint8_t stored_pokemon_nickname[PKSAV_GEN1_POKEMON_NICKNAME_LENGTH]; + uint8_t stored_pokemon_otname[PKSAV_GEN1_POKEMON_OTNAME_STORAGE_LENGTH]; + struct pksav_gen1_pc_pokemon stored_pokemon; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GEN1_DAYCARE_DATA_H */ diff --git a/libpksav/include/pksav/gen1/items.h b/libpksav/include/pksav/gen1/items.h index 322acbd..85ce95a 100644 --- a/libpksav/include/pksav/gen1/items.h +++ b/libpksav/include/pksav/gen1/items.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen1/items.h - * @ingroup PKSav - * @brief Native formats for item storage in Generation I games. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -11,17 +7,14 @@ #ifndef PKSAV_GEN1_ITEMS_H #define PKSAV_GEN1_ITEMS_H +#include + #include #pragma pack(push,1) -//! Native representation of an item slot in Generation I. -typedef struct { - //! Item index. - uint8_t index; - //! Item count (0-99). - uint8_t count; -} pksav_gen1_item_t; +#define PKSAV_GEN1_ITEM_BAG_SIZE (20) +#define PKSAV_GEN1_ITEM_PC_SIZE (50) /*! * @brief Native representation of the trainer's item bag in Generation I. @@ -31,14 +24,15 @@ typedef struct { * ignore any later items, and if it is too large, whatever happens to be in * memory will be parsed as items, leading to undefined behavior when used. */ -typedef struct { +struct pksav_gen1_item_bag +{ //! How many unique items are in the bag (0-20). uint8_t count; //! Item slots. - pksav_gen1_item_t items[20]; + struct pksav_gb_item items[PKSAV_GEN1_ITEM_BAG_SIZE]; //! End of the item list. uint8_t terminator; -} pksav_gen1_item_bag_t; +}; /*! * @brief Native representation of the trainer's item PC. in Generation I. @@ -48,14 +42,15 @@ typedef struct { * ignore any later items, and if it is too large, whatever happens to be in * memory will be parsed as items, leading to undefined behavior when used. */ -typedef struct { +struct pksav_gen1_item_pc +{ //! How many unique items are in the PC (0-50). uint8_t count; //! Item slots. - pksav_gen1_item_t items[50]; + struct pksav_gb_item items[PKSAV_GEN1_ITEM_PC_SIZE]; //! End of the item list. uint8_t terminator; -} pksav_gen1_item_pc_t; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/gen1/options.h b/libpksav/include/pksav/gen1/options.h new file mode 100644 index 0000000..9a70712 --- /dev/null +++ b/libpksav/include/pksav/gen1/options.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_OPTIONS_H +#define PKSAV_GEN1_OPTIONS_H + +// Common + +#define PKSAV_GEN1_OPTIONS_BATTLE_STYLE_SET_MASK ((uint8_t)(1 << 6)) +#define PKSAV_GEN1_OPTIONS_BATTLE_EFFECTS_DISABLE_MASK ((uint8_t)(1 << 7)) + +// Red/Blue + +enum pksav_gen1_rb_text_speed +{ + PKSAV_GEN1_RB_TEXT_SPEED_FAST = 1, + PKSAV_GEN1_RB_TEXT_SPEED_NORMAL = 3, + PKSAV_GEN1_RB_TEXT_SPEED_SLOW = 5 +}; + +#define PKSAV_GEN1_RB_OPTIONS_TEXT_SPEED_MASK ((uint8_t)7) +#define PKSAV_GEN1_RB_OPTIONS_SOUND_STEREO_MASK ((uint8_t)(1 << 4)) + +// Yellow + +enum pksav_gen1_yellow_sound_option +{ + PKSAV_GEN1_YELLOW_SOUND_MONO = 0, + PKSAV_GEN1_YELLOW_SOUND_EARPHONE1 = 1, + PKSAV_GEN1_YELLOW_SOUND_EARPHONE2 = 2, + PKSAV_GEN1_YELLOW_SOUND_EARPHONE3 = 3, +}; + +#define PKSAV_GEN1_YELLOW_OPTIONS_SOUND_OFFSET (4) +#define PKSAV_GEN1_YELLOW_OPTIONS_SOUND_MASK ((uint8_t)(3 << PKSAV_GEN1_YELLOW_OPTIONS_SOUND_OFFSET)) + +#define PKSAV_GEN1_YELLOW_SOUND_OPTION(options_byte) \ + (((options_byte) >> PKSAV_GEN1_YELLOW_OPTIONS_SOUND_OFFSET) & \ + PKSAV_GEN1_YELLOW_OPTIONS_SOUND_MASK) + +#endif /* PKSAV_GEN1_OPTIONS_H */ diff --git a/libpksav/include/pksav/gen1/pokemon.h b/libpksav/include/pksav/gen1/pokemon.h index 56c2138..200f292 100644 --- a/libpksav/include/pksav/gen1/pokemon.h +++ b/libpksav/include/pksav/gen1/pokemon.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen1/pokemon.h - * @ingroup PKSav - * @brief Native formats for Pokémon in Generation I games. - * - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -11,61 +7,28 @@ #ifndef PKSAV_GEN1_POKEMON_H #define PKSAV_GEN1_POKEMON_H +#include + +#include + #include -/*! - * @brief The mask for a move's PP in the PP field. - * - * Mask the value of one of the indices of pksav_gen1_pc_pokemon_t.move_pps to - * get the PP of that move. - */ -#define PKSAV_GEN1_MOVE_PP_MASK ((uint8_t)0x3F) +#define PKSAV_GEN1_BOX_NUM_POKEMON (20) +#define PKSAV_GEN1_PARTY_NUM_POKEMON PKSAV_STANDARD_POKEMON_PARTY_SIZE +#define PKSAV_GEN1_POKEMON_NUM_MOVES PKSAV_STANDARD_POKEMON_NUM_MOVES -/*! - * @brief The mask for the number of PP Ups used on a move (0-3). - * - * Mask the value of one of the indices of pksav_gen1_pc_pokemon_t.move_pps to - * get the number of PP Ups used. If a PP Max has been used, this value will be 3. - */ -#define PKSAV_GEN1_MOVE_PP_UP_MASK ((uint8_t)0xC0) +#define PKSAV_GEN1_POKEMON_NICKNAME_LENGTH PKSAV_STANDARD_NICKNAME_LENGTH +#define PKSAV_GEN1_POKEMON_OTNAME_LENGTH PKSAV_GEN1_TRAINER_NAME_LENGTH +#define PKSAV_GEN1_POKEMON_OTNAME_STORAGE_LENGTH (10) -/*! - * @brief Valid values for a Pokémon's types. - * - * This enum applies to the indices of the pksav_gen1_pc_pokemon_t.types field. - */ -typedef enum { - //! Normal. - PKSAV_GEN1_TYPE_NORMAL = 0x00, - //! Fighting. - PKSAV_GEN1_TYPE_FIGHTING = 0x01, - //! Flying. - PKSAV_GEN1_TYPE_FLYING = 0x02, - //! Poison. - PKSAV_GEN1_TYPE_POISON = 0x03, - //! Ground. - PKSAV_GEN1_TYPE_GROUND = 0x04, - //! Rock. - PKSAV_GEN1_TYPE_ROCK = 0x05, - //! Bug. - PKSAV_GEN1_TYPE_BUG = 0x07, - //! Ghost. - PKSAV_GEN1_TYPE_GHOST = 0x08, - //! Fire. - PKSAV_GEN1_TYPE_FIRE = 0x14, - //! Water. - PKSAV_GEN1_TYPE_WATER = 0x15, - //! Grass. - PKSAV_GEN1_TYPE_GRASS = 0x16, - //! Electric. - PKSAV_GEN1_TYPE_ELECTRIC = 0x17, - //! Psychic. - PKSAV_GEN1_TYPE_PSYCHIC = 0x18, - //! Ice. - PKSAV_GEN1_TYPE_ICE = 0x19, - //! Dragon. - PKSAV_GEN1_TYPE_DRAGON = 0x1A -} pksav_gen1_type_t; +#define PKSAV_GEN1_POKEMON_EXPERIENCE_BUFFER_SIZE (3) +#define PKSAV_GEN1_POKEMON_NUM_TYPES (2) + +#define PKSAV_GEN1_POKEMON_MOVE_PP_MASK ((uint8_t)0x3F) +#define PKSAV_GEN1_POKEMON_MOVE_PP(field) ((field) & PKSAV_GEN1_POKEMON_MOVE_PP_MASK) + +#define PKSAV_GEN1_POKEMON_MOVE_PP_UP_OFFSET (6) +#define PKSAV_GEN1_POKEMON_MOVE_PP_UP(field) ((field) >> PKSAV_GEN1_POKEMON_MOVE_PP_UP_OFFSET) #pragma pack(push,1) @@ -75,7 +38,8 @@ typedef enum { * This data is available both when the Pokémon is in the trainer's party or in the * PC. */ -typedef struct { +struct pksav_gen1_pc_pokemon +{ //! Species index. uint8_t species; /*! @@ -107,7 +71,7 @@ typedef struct { * * The enum ::pksav_gen1_type_t contains all valid values for this field. */ - uint8_t types[2]; + uint8_t types[PKSAV_GEN1_POKEMON_NUM_TYPES]; /*! * @brief The Pokémon's catch rate. * @@ -118,7 +82,7 @@ typedef struct { /*! * @brief Indices for each of this Pokémon's moves. */ - uint8_t moves[4]; + uint8_t moves[PKSAV_GEN1_POKEMON_NUM_MOVES]; /*! * @brief The Pokémon's original trainer's ID (stored in big-endian). * @@ -128,10 +92,10 @@ typedef struct { /*! * @brief The Pokémon's current total experience points (stored in Base-256). * - * This value should be accessed with ::pksav_from_base256 (with a num_bytes - * value of 3) and set with ::pksav_to_base256. + * This value should be accessed with ::pksav_import_base256 (with a num_bytes + * value of 3) and set with ::pksav_export_base256. */ - uint8_t exp[3]; + uint8_t exp[PKSAV_GEN1_POKEMON_EXPERIENCE_BUFFER_SIZE]; /*! * @brief The Pokémon's HP EV stat (stored in big-endian). * @@ -177,8 +141,8 @@ typedef struct { * Mask an index with ::PKSAV_GEN1_MOVE_PP_UP_MASK to get the number of * PP Ups applied to the move. */ - uint8_t move_pps[4]; -} pksav_gen1_pc_pokemon_t; + uint8_t move_pps[PKSAV_GEN1_POKEMON_NUM_MOVES]; +}; /*! * @brief Data generated when a Pokémon is added to a trainer's party in Generation I. @@ -186,7 +150,8 @@ typedef struct { * All of this information is generated from values stored in * pksav_gen1_pc_pokemon_t. */ -typedef struct { +struct pksav_gen1_pokemon_party_data +{ /*! * @brief The Pokémon's level. * @@ -238,16 +203,17 @@ typedef struct { * This value should be accessed and set with ::pksav_bigendian16. */ uint16_t spcl; -} pksav_gen1_pokemon_party_data_t; +}; //! Native format for a Pokémon in the trainer's party in Generation I. -typedef struct { +struct pksav_gen1_party_pokemon +{ /*! * @brief PC data. * * This data is accessible whether the Pokémon is in the PC or party. */ - pksav_gen1_pc_pokemon_t pc; + struct pksav_gen1_pc_pokemon pc_data; /*! * @brief Party data. @@ -256,11 +222,12 @@ typedef struct { * all of it can be generated from the PC data, it is not stored until * it needs to be used. */ - pksav_gen1_pokemon_party_data_t party_data; -} pksav_gen1_party_pokemon_t; + struct pksav_gen1_pokemon_party_data party_data; +}; //! Native format for a trainer's Pokémon party in Generation I. -typedef struct { +struct pksav_gen1_pokemon_party +{ //! The actual number of Pokémon in the party (0-6). uint8_t count; /*! @@ -271,27 +238,28 @@ typedef struct { * * The final index of this field should always be set to 0xFF. */ - uint8_t species[7]; + uint8_t species[PKSAV_GEN1_PARTY_NUM_POKEMON + 1]; //! The actual Pokémon in the party. - pksav_gen1_party_pokemon_t party[6]; + struct pksav_gen1_party_pokemon party[PKSAV_GEN1_PARTY_NUM_POKEMON]; /*! * @brief The names of each Pokémon's original trainer. * * To access this value, you should use the function ::pksav_text_from_gen1 * with a num_chars value of 10. */ - uint8_t otnames[6][11]; + uint8_t otnames[PKSAV_GEN1_PARTY_NUM_POKEMON][PKSAV_GEN1_POKEMON_OTNAME_STORAGE_LENGTH + 1]; /*! * @brief The nicknames of each Pokémon in the party. * * To access this value, you should use the function ::pksav_text_from_gen1 * with a num_chars value of 10. */ - uint8_t nicknames[6][11]; -} pksav_gen1_pokemon_party_t; + uint8_t nicknames[PKSAV_GEN1_PARTY_NUM_POKEMON][PKSAV_GEN1_POKEMON_NICKNAME_LENGTH + 1]; +}; //! Native format for a Pokémon PC box in Generation I. -typedef struct { +struct pksav_gen1_pokemon_box +{ //! The actual number of Pokémon in the box (0-20). uint8_t count; /*! @@ -300,26 +268,27 @@ typedef struct { * When the box is viewed in-game, it is this value that determines * what Pokémon is shown, not the pksav_gen1_pc_pokemon_t.species value. * - * The final index of this field should always be set to 0xFF. + * The first index after the last Pokémon in the box should always be + * set to 0xFF. */ - uint8_t species[21]; + uint8_t species[PKSAV_GEN1_BOX_NUM_POKEMON + 1]; //! The actual Pokémon in the box. - pksav_gen1_pc_pokemon_t entries[20]; + struct pksav_gen1_pc_pokemon entries[PKSAV_GEN1_BOX_NUM_POKEMON]; /*! * @brief The names of each Pokémon's original trainer. * * To access this value, you should use the function ::pksav_text_from_gen1 * with a num_chars value of 10. */ - uint8_t otnames[20][11]; + uint8_t otnames[PKSAV_GEN1_BOX_NUM_POKEMON][PKSAV_GEN1_POKEMON_OTNAME_STORAGE_LENGTH + 1]; /*! * @brief The nicknames of each Pokémon in the box. * * To access this value, you should use the function ::pksav_text_from_gen1 * with a num_chars value of 10). */ - uint8_t nicknames[20][11]; -} pksav_gen1_pokemon_box_t; + uint8_t nicknames[PKSAV_GEN1_BOX_NUM_POKEMON][PKSAV_GEN1_POKEMON_NICKNAME_LENGTH + 1]; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/gen1/save.h b/libpksav/include/pksav/gen1/save.h index ace9f74..5ac10e3 100644 --- a/libpksav/include/pksav/gen1/save.h +++ b/libpksav/include/pksav/gen1/save.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen1/save.h - * @ingroup PKSav - * @brief Functions for interacting with Generation I save files. - * - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -14,84 +10,72 @@ #include #include +#include + +#include +#include +#include #include #include +#include #include #include #include +#define PKSAV_GEN1_SAVE_SIZE (0x8000) + +#define PKSAV_GEN1_SAVE_RIVAL_NAME_LENGTH PKSAV_GEN1_TRAINER_NAME_LENGTH + +#define PKSAV_GEN1_SAVE_MONEY_BUFFER_SIZE_BYTES (3) +#define PKSAV_GEN1_SAVE_MONEY_MAX_VALUE (999999) + +#define PKSAV_GEN1_SAVE_CASINO_COINS_BUFFER_SIZE_BYTES (2) +#define PKSAV_GEN1_SAVE_CASINO_COINS_MAX_VALUE (9999) + +#define PKSAV_GEN1_POKEDEX_NUM_POKEMON (151) +#define PKSAV_GEN1_POKEDEX_BUFFER_SIZE_BYTES PKSAV_POKEDEX_BUFFER_SIZE_BYTES(PKSAV_GEN1_POKEDEX_NUM_POKEMON) + /*! * @brief Mask for getting the current Pokémon box number. * * In the field for storing the current Pokémon box number, the relevant * value is only stored in the lower four bytes. * - * This is used with the pksav_gen1_save_t.current_pokemon_box_num field. + * This is used with the pksav_gen1_save_t.current_box_num field. */ #define PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM_MASK ((uint8_t)0x0F) -/*! - * @brief Bitmasks for checking if the player has a specific badge. - * - * The pksav_gen1_save_t.badges field points to the byte in the save file - * that stores this bitmap. Use these enum values on this byte to access and - * set whether or not the player has this badge. - */ -typedef enum { - //! Earth Badge (Giovanni, Badge #8) - PKSAV_GEN1_EARTH_BADGE = 0x01, - //! Volcano Badge (Blaine, Badge #7) - PKSAV_GEN1_VOLCANO_BADGE = 0x02, - //! Marsh Badge (Sabrina, Badge #6) - PKSAV_GEN1_MARSH_BADGE = 0x04, - //! Soul Badge (Koga, Badge #5) - PKSAV_GEN1_SOUL_BADGE = 0x08, - //! Rainbow Badge (Erika, Badge #4) - PKSAV_GEN1_RAINBOW_BADGE = 0x10, - //! Thunder Badge (Lt. Surge, Badge #3) - PKSAV_GEN1_THUNDER_BADGE = 0x20, - //! Cascade Badge (Misty, Badge #2) - PKSAV_GEN1_CASCADE_BADGE = 0x40, - //! Boulder Badge (Brock, Badge #1) - PKSAV_GEN1_BOULDER_BADGE = 0x80 -} pksav_gen1_badge_t; - -#pragma pack(push,1) - -//! Native representation of how much time has passed in a Generation I game. -typedef struct { +struct pksav_gen1_pokedex_lists +{ /*! - * @brief The number of hours (stored in little-endian). + * @brief A pointer to the list of Pokémon seen by the trainer. * - * This value should be accessed and set with ::pksav_littleendian16. + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. */ - uint16_t hours; - //! The number of minutes (0-59). - uint8_t minutes; - //! The number of second (0-59). - uint8_t seconds; -} pksav_gen1_time_t; + uint8_t* p_seen; -#pragma pack(pop) + /*! + * @brief A pointer to the list of Pokémon owned by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + */ + uint8_t* p_owned; +}; -/*! - * @brief The primary PKSav struct for interacting with Generation I save files. - * - * After passing the struct into ::pksav_gen1_save_load, it will hold the binary - * data for the save file and provide pointers to all relevant offsets within the - * file. Accessing these pointers before calling ::pksav_gen1_save_load will result - * in undefined behavior. - * - * To save the save file's data to another location, pass the struct into - * ::pksav_gen1_save_save, along with a filepath. - * - * Once you are finished using the struct, pass it into ::pksav_gen1_save_free to - * free the memory allocated by ::pksav_gen1_save_load. - */ -typedef struct { - //! A pointer to the trainer's Pokémon party. - pksav_gen1_pokemon_party_t* pokemon_party; +struct pksav_gen1_pokemon_storage +{ + struct pksav_gen1_pokemon_party* p_party; + + /*! + * @brief Pointers to the trainer's Pokémon boxes. + * + * The boxes are not stored contiguously in the save file, so these pointers + * point to their actual positions in the file. + */ + struct pksav_gen1_pokemon_box* pp_boxes[PKSAV_GEN1_NUM_POKEMON_BOXES]; /*! * @brief The number of the current Pokémon box (0-11). @@ -102,7 +86,7 @@ typedef struct { * The ::PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM_MASK should be used to access or set * this value. */ - uint8_t* current_pokemon_box_num; + uint8_t* p_current_box_num; /*! * @brief A pointer to the current Pokémon box. @@ -110,59 +94,26 @@ typedef struct { * Pokémon are only deposited or withdrawn from this box, and its data is * switched out when the current box is changed. */ - pksav_gen1_pokemon_box_t* current_pokemon_box; - - /*! - * @brief Pointers to the trainer's Pokémon boxes. - * - * The boxes are not stored contiguously in the save file, so these pointers - * point to their actual positions in the file. - */ - pksav_gen1_pokemon_box_t* pokemon_boxes[12]; + struct pksav_gen1_pokemon_box* p_current_box; +}; +struct pksav_gen1_item_storage +{ //! A pointer to the trainer's item bag. - pksav_gen1_item_bag_t* item_bag; - //! A pointer to the trainer's item PC. - pksav_gen1_item_pc_t* item_pc; + struct pksav_gen1_item_bag* p_item_bag; - /*! - * @brief A pointer to the list of Pokémon seen by the trainer. - * - * This list should be accessed with ::pksav_get_pokedex_bit and set with - * ::pksav_set_pokedex_bit. - */ - uint8_t* pokedex_seen; - /*! - * @brief A pointer to the list of Pokémon owned by the trainer. - * - * This list should be accessed with ::pksav_get_pokedex_bit and set with - * ::pksav_set_pokedex_bit. - */ - uint8_t* pokedex_owned; + //! A pointer to the trainer's item PC. + struct pksav_gen1_item_pc* p_item_pc; +}; - //! A pointer to the amount of time this save file has been played. - pksav_gen1_time_t* time_played; +struct pksav_gen1_trainer_info +{ /*! * @brief A pointer to the trainer's ID (stored in big-endian). * * This value should be accessed and modified with ::pksav_bigendian16. */ - uint16_t* trainer_id; - - /*! - * @brief A pointer to how much money the trainer has (stored in BCD). - * - * This value should be accessed with ::pksav_from_bcd, with a num_bytes value - * of 3. It should be set with ::pksav_to_bcd, with a maximum value of 999999. - */ - uint8_t* money; - /*! - * @brief A pointer to how many casino coins the trainer has (stored in BCD). - * - * This value should be accessed with ::pksav_from_bcd, with a num_bytes value - * of 2. It should be set with ::pksav_to_bcd, with a maximum value of 999. - */ - uint8_t* casino_coins; + uint16_t* p_id; /*! * @brief A pointer to the trainer's name. @@ -173,17 +124,15 @@ typedef struct { * This value should be set with ::pksav_text_to_gen1 with a num_chars * value of 7. */ - uint8_t* trainer_name; + uint8_t* p_name; + /*! - * @brief A pointer to the rival's name. - * - * This value should be accessed with ::pksav_text_from_gen1 with a num_chars - * value of 7. + * @brief A pointer to how much money the trainer has (stored in BCD). * - * This value should be set with ::pksav_text_to_gen1 with a num_chars - * value of 7. + * This value should be accessed with ::pksav_import_bcd, with a num_bytes value + * of 3. It should be set with ::pksav_export_bcd, with a maximum value of 999999. */ - uint8_t* rival_name; + uint8_t* p_money; /*! * @brief A pointer to the list of badges the trainer has earned. @@ -191,113 +140,124 @@ typedef struct { * This value should be manipulated with the bitmasks given in the * ::pksav_gen1_badge_t enum. */ - uint8_t* badges; + uint8_t* p_badges; +}; +struct pksav_gen1_daycare +{ + // TODO: are these stored in the save, or does the ROM check the save data + // and determine it programmatically? + uint8_t* p_daycare_start_level; + uint8_t* p_daycare_num_levels_grown; + + struct pksav_gen1_daycare_data* p_daycare_data; +}; + +struct pksav_gen1_misc_fields +{ /*! - * @brief A pointer to Pikachu's friendship level in Pokémon Yellow. + * @brief A pointer to the rival's name. * - * In Pokémon Red/Blue, this field is unused and is set to 0. + * This value should be accessed with ::pksav_text_from_gen1 with a num_chars + * value of 7. + * + * This value should be set with ::pksav_text_to_gen1 with a num_chars + * value of 7. */ - uint8_t* pikachu_friendship; + uint8_t* p_rival_name; /*! - * @brief Whether or not this save file corresponds to a Pokémon Yellow game. + * @brief A pointer to how many casino coins the trainer has (stored in BCD). * - * This is determined by ::pksav_gen1_save_load by examining the Pikachu friendship - * value. As this value is always 0 in Pokémon Red/Blue, the save file is determined - * to be from Pokémon Yellow if this value is non-zero. This is reliable most of the - * time, but technically, if the trainer's Pikachu despises him enough for this value - * to be 0, this save file will be considered to be from Pokémon Red/Blue. + * This value should be accessed with ::pksav_import_bcd, with a num_bytes value + * of 2. It should be set with ::pksav_export_bcd, with a maximum value of 999. */ - bool yellow; + uint8_t* p_casino_coins; /*! - * @brief The raw binary data for the save file. + * @brief A pointer to Pikachu's friendship level in Pokémon Yellow. * - * You should never need to edit this field, as the pointers described above should - * point to any areas of interest. + * In Pokémon Red/Blue, this field is unused and is set to 0. */ - uint8_t* raw; -} pksav_gen1_save_t; - -#ifdef __cplusplus -extern "C" { -#endif + uint8_t* p_pikachu_friendship; +}; /*! - * @brief Determines whether the given buffer is from a valid Generation I save file. + * @brief The primary PKSav struct for interacting with Generation I save files. * - * This is determining by checking the data's checksum. + * After passing the struct into ::pksav_gen1_save_load, it will hold the binary + * data for the save file and provide pointers to all relevant offsets within the + * file. Accessing these pointers before calling ::pksav_gen1_save_load will result + * in undefined behavior. * - * \param buffer buffer to be checked - * \param buffer_len length of the buffer passed in - * \param result_out whether or not the given buffer has a valid Generation I save file - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + * To save the save file's data to another location, pass the struct into + * ::pksav_gen1_save_save, along with a filepath. + * + * Once you are finished using the struct, pass it into ::pksav_gen1_save_free to + * free the memory allocated by ::pksav_gen1_save_load. */ -PKSAV_API pksav_error_t pksav_buffer_is_gen1_save( - const uint8_t* buffer, +struct pksav_gen1_save +{ + enum pksav_gen1_save_type save_type; + + //! A pointer to the amount of time this save file has been played. + struct pksav_gen1_time* p_time_played; + + uint8_t* p_options; + + struct pksav_gen1_item_storage item_storage; + + struct pksav_gen1_pokemon_storage pokemon_storage; + + struct pksav_gen1_pokedex_lists pokedex_lists; + + struct pksav_gen1_trainer_info trainer_info; + + struct pksav_gen1_daycare daycare; + + struct pksav_gen1_misc_fields misc_fields; + + void* p_internal; +}; + +#ifdef __cplusplus +extern "C" { +#endif + +PKSAV_API enum pksav_error pksav_gen1_get_buffer_save_type( + const uint8_t* p_buffer, size_t buffer_len, - bool* result_out + enum pksav_gen1_save_type* p_save_type_out ); -/*! - * @brief Determines whether the file at the given path is a valid Generation I save file. - * - * This is determined simply by checking the file's checksum. - * - * \param filepath path to the file to be checked - * \param result_out whether or not the given buffer has a valid Generation I save file - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL - */ -PKSAV_API pksav_error_t pksav_file_is_gen1_save( - const char* filepath, - bool* result_out +PKSAV_API enum pksav_error pksav_gen1_get_file_save_type( + const char* p_filepath, + enum pksav_gen1_save_type* p_save_type_out ); -/*! - * @brief Loads the save file at the given path into the given PKSav struct. - * - * Upon a failure state, the given pksav_gen1_save_t will be left in an undefined state. - * - * \param filepath path to the file to be loaded - * \param gen1_save PKSav struct in which to load file - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen1_save is NULL - * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs reading the file - * \returns ::PKSAV_ERROR_INVALID_SAVE if the given file is not a valid Generation I save file - */ -PKSAV_API pksav_error_t pksav_gen1_save_load( - const char* filepath, - pksav_gen1_save_t* gen1_save +PKSAV_API enum pksav_error pksav_gen1_load_save_from_buffer( + uint8_t* p_buffer, + size_t buffer_len, + struct pksav_gen1_save* p_gen1_save_out ); -/*! - * @brief Saves a Generation I save file to the given path. - * - * Upon a failure state, the save file is not guaranteed to have been properly written. - * - * \param filepath where the save file should be written - * \param gen1_save the same to be written - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen1_save is NULL - * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs writing the file - */ -PKSAV_API pksav_error_t pksav_gen1_save_save( - const char* filepath, - pksav_gen1_save_t* gen1_save +PKSAV_API enum pksav_error pksav_gen1_load_save_from_file( + const char* p_filepath, + struct pksav_gen1_save* p_gen1_save_out ); -/*! - * @brief Frees memory allocated for a pksav_gen1_save_t. - * - * \param gen1_save save whose memory should be freed - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if gen1_save is NULL - */ -PKSAV_API pksav_error_t pksav_gen1_save_free( - pksav_gen1_save_t* gen1_save +PKSAV_API enum pksav_error pksav_gen1_save_save( + const char* p_filepath, + struct pksav_gen1_save* p_gen1_save +); + +PKSAV_API enum pksav_error pksav_gen1_free_save( + struct pksav_gen1_save* p_gen1_save +); + +PKSAV_API enum pksav_error pksav_gen1_pokemon_storage_set_current_box( + struct pksav_gen1_pokemon_storage* p_gen1_pokemon_storage, + uint8_t new_current_box_num ); #ifdef __cplusplus diff --git a/libpksav/include/pksav/gen1/text.h b/libpksav/include/pksav/gen1/text.h index 4de91e6..2e92021 100644 --- a/libpksav/include/pksav/gen1/text.h +++ b/libpksav/include/pksav/gen1/text.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen1/text.h - * @ingroup PKSav - * @brief Conversions between C strings and the string format used in Generation I games. - * - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -17,6 +13,8 @@ #include #include +#define PKSAV_GEN1_TEXT_TERMINATOR (0x50) + #ifdef __cplusplus extern "C" { #endif @@ -35,9 +33,9 @@ extern "C" { * \returns PKSAV_ERROR_NONE upon success * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL */ -PKSAV_API pksav_error_t pksav_text_from_gen1( - const uint8_t* input_buffer, - char* output_text, +PKSAV_API enum pksav_error pksav_gen1_import_text( + const uint8_t* p_input_buffer, + char* p_output_text, size_t num_chars ); @@ -55,9 +53,9 @@ PKSAV_API pksav_error_t pksav_text_from_gen1( * \returns PKSAV_ERROR_NONE upon success * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL */ -PKSAV_API pksav_error_t pksav_text_to_gen1( - const char* input_text, - uint8_t* output_buffer, +PKSAV_API enum pksav_error pksav_gen1_export_text( + const char* p_input_text, + uint8_t* p_output_buffer, size_t num_chars ); diff --git a/libpksav/include/pksav/gen1/time.h b/libpksav/include/pksav/gen1/time.h new file mode 100644 index 0000000..1a0ae46 --- /dev/null +++ b/libpksav/include/pksav/gen1/time.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_TIME_H +#define PKSAV_GEN1_TIME_H + +#include + +#pragma pack(push,1) + +//! Native representation of how much time has passed in a Generation I game. +struct pksav_gen1_time +{ + /*! + * @brief The number of hours (stored in little-endian). + * + * This value should be accessed and set with ::pksav_littleendian16. + */ + uint16_t hours; + //! The number of minutes (0-59). + uint8_t minutes; + //! The number of second (0-59). + uint8_t seconds; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GEN1_TIME_H */ diff --git a/libpksav/include/pksav/gen1/type.h b/libpksav/include/pksav/gen1/type.h new file mode 100644 index 0000000..d58ccd2 --- /dev/null +++ b/libpksav/include/pksav/gen1/type.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_TYPE_H +#define PKSAV_GEN1_TYPE_H + +/*! + * @brief Valid values for a Pokémon's types. + * + * This enum applies to the indices of the pksav_gen1_pc_pokemon_t.types field. + */ +enum pksav_gen1_type +{ + //! Normal. + PKSAV_GEN1_TYPE_NORMAL = 0x00, + //! Fighting. + PKSAV_GEN1_TYPE_FIGHTING = 0x01, + //! Flying. + PKSAV_GEN1_TYPE_FLYING = 0x02, + //! Poison. + PKSAV_GEN1_TYPE_POISON = 0x03, + //! Ground. + PKSAV_GEN1_TYPE_GROUND = 0x04, + //! Rock. + PKSAV_GEN1_TYPE_ROCK = 0x05, + //! Bug. + PKSAV_GEN1_TYPE_BUG = 0x07, + //! Ghost. + PKSAV_GEN1_TYPE_GHOST = 0x08, + //! Fire. + PKSAV_GEN1_TYPE_FIRE = 0x14, + //! Water. + PKSAV_GEN1_TYPE_WATER = 0x15, + //! Grass. + PKSAV_GEN1_TYPE_GRASS = 0x16, + //! Electric. + PKSAV_GEN1_TYPE_ELECTRIC = 0x17, + //! Psychic. + PKSAV_GEN1_TYPE_PSYCHIC = 0x18, + //! Ice. + PKSAV_GEN1_TYPE_ICE = 0x19, + //! Dragon. + PKSAV_GEN1_TYPE_DRAGON = 0x1A +}; + +#endif /* PKSAV_GEN1_TYPE_H */ diff --git a/libpksav/include/pksav/gen2.h b/libpksav/include/pksav/gen2.h index d3a488d..9cb65f4 100644 --- a/libpksav/include/pksav/gen2.h +++ b/libpksav/include/pksav/gen2.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen2.h - * @ingroup PKSav - * @brief Global Generation II include file. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -14,7 +10,13 @@ #include #include +#include +#include +#include #include +#include +#include +#include #include #include #include diff --git a/libpksav/include/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/gen2/CMakeLists.txt b/libpksav/include/pksav/gen2/CMakeLists.txt index 1103255..ab175ec 100644 --- a/libpksav/include/pksav/gen2/CMakeLists.txt +++ b/libpksav/include/pksav/gen2/CMakeLists.txt @@ -1,12 +1,18 @@ # -# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) # SET(pksav_gen2_headers + badges.h + common.h + daycare_data.h items.h + mom_money_policy.h + options.h + palette.h pokemon.h save.h text.h diff --git a/libpksav/include/pksav/gen2/Makefile b/libpksav/include/pksav/gen2/Makefile index ff2a0f3..4a19693 100644 --- a/libpksav/include/pksav/gen2/Makefile +++ b/libpksav/include/pksav/gen2/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen2//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav/gen2//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/gen2/badges.h b/libpksav/include/pksav/gen2/badges.h new file mode 100644 index 0000000..1fef2a8 --- /dev/null +++ b/libpksav/include/pksav/gen2/badges.h @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_BADGES_H +#define PKSAV_GEN2_BADGES_H + +// TODO: verify + +enum pksav_gen2_johto_badge_mask +{ + //! Zephyr Badge (Falkner, Badge #1) + PKSAV_GEN2_JOHTO_ZEPHYR_BADGE = 0x01, + //! Hive Badge (Bugsy, Badge #2) + PKSAV_GEN2_JOHTO_HIVE_BADGE = 0x02, + //! Plain Badge (Whitney, Badge #3) + PKSAV_GEN2_JOHTO_PLAIN_BADGE = 0x04, + //! Fog Badge (Morty, Badge #4) + PKSAV_GEN2_JOHTO_FOG_BADGE = 0x08, + //! Soul Badge (Chuck, Badge #5) + PKSAV_GEN2_JOHTO_STORM_BADGE = 0x10, + //! Marsh Badge (Jasmine, Badge #6) + PKSAV_GEN2_JOHTO_MINERAL_BADGE = 0x20, + //! Volcano Badge (Pryce, Badge #7) + PKSAV_GEN2_JOHTO_GLACIER_BADGE = 0x40, + //! Earth Badge (Clair, Badge #8) + PKSAV_GEN2_JOHTO_RISING_BADGE = 0x80 +}; + +enum pksav_gen2_kanto_badge_mask +{ + //! Boulder Badge (Brock, Badge #1) + PKSAV_GEN2_KANTO_BOULDER_BADGE = 0x01, + //! Cascade Badge (Misty, Badge #2) + PKSAV_GEN2_KANTO_CASCADE_BADGE = 0x02, + //! Thunder Badge (Lt. Surge, Badge #3) + PKSAV_GEN2_KANTO_THUNDER_BADGE = 0x04, + //! Rainbow Badge (Erika, Badge #4) + PKSAV_GEN2_KANTO_RAINBOW_BADGE = 0x08, + //! Soul Badge (Janine, Badge #5) + PKSAV_GEN2_KANTO_SOUL_BADGE = 0x10, + //! Marsh Badge (Sabrina, Badge #6) + PKSAV_GEN2_KANTO_MARSH_BADGE = 0x20, + //! Volcano Badge (Blaine, Badge #7) + PKSAV_GEN2_KANTO_VOLCANO_BADGE = 0x40, + //! Earth Badge (Blue, Badge #8) + PKSAV_GEN2_KANTO_EARTH_BADGE = 0x80 +}; + +#endif /* PKSAV_GEN2_BADGES_H */ diff --git a/libpksav/include/pksav/gen2/cmake_install.cmake b/libpksav/include/pksav/gen2/cmake_install.cmake index 64f9ce3..aa2893b 100644 --- a/libpksav/include/pksav/gen2/cmake_install.cmake +++ b/libpksav/include/pksav/gen2/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen2 +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav/gen2 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -39,11 +39,17 @@ endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen2" TYPE FILE FILES - "/Users/spencer/Projects/pksav/include/pksav/gen2/items.h" - "/Users/spencer/Projects/pksav/include/pksav/gen2/pokemon.h" - "/Users/spencer/Projects/pksav/include/pksav/gen2/save.h" - "/Users/spencer/Projects/pksav/include/pksav/gen2/text.h" - "/Users/spencer/Projects/pksav/include/pksav/gen2/time.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/badges.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/common.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/daycare_data.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/items.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/mom_money_policy.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/options.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/palette.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/pokemon.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/save.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/text.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/gen2/time.h" ) endif() diff --git a/libpksav/include/pksav/gen2/common.h b/libpksav/include/pksav/gen2/common.h new file mode 100644 index 0000000..0016fd8 --- /dev/null +++ b/libpksav/include/pksav/gen2/common.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_COMMON_H +#define PKSAV_GEN2_COMMON_H + +#include + +#define PKSAV_GEN2_TRAINER_NAME_LENGTH PKSAV_STANDARD_TRAINER_NAME_LENGTH + +#define PKSAV_GEN2_NUM_POKEMON_BOXES (14) + +enum pksav_gen2_save_type +{ + PKSAV_GEN2_SAVE_TYPE_NONE, + PKSAV_GEN2_SAVE_TYPE_GS, + PKSAV_GEN2_SAVE_TYPE_CRYSTAL +}; + +enum pksav_gen2_gender +{ + PKSAV_GEN2_GENDER_MALE, + PKSAV_GEN2_GENDER_FEMALE +}; + +#endif /* PKSAV_GEN2_COMMON_H */ diff --git a/libpksav/include/pksav/gen2/daycare_data.h b/libpksav/include/pksav/gen2/daycare_data.h new file mode 100644 index 0000000..e7859c0 --- /dev/null +++ b/libpksav/include/pksav/gen2/daycare_data.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_DAYCARE_DATA_H +#define PKSAV_GEN2_DAYCARE_DATA_H + +#include + +#include + +#define PKSAV_GEN2_DAYCARE_MAN_POKEMON_PRESENT_MASK ((uint8_t)1) +#define PKSAV_GEN2_DAYCARE_MAN_ARE_POKEMON_COMPATIBLE_MASK ((uint8_t)(1 << 5)) +#define PKSAV_GEN2_DAYCARE_MAN_IS_EGG_READY_MASK ((uint8_t)(1 << 6)) +#define PKSAV_GEN2_DAYCARE_MAN_IS_ACTIVE_MASK ((uint8_t)(1 << 7)) + +#define PKSAV_GEN2_DAYCARE_LADY_POKEMON_PRESENT_MASK ((uint8_t)1) +#define PKSAV_GEN2_DAYCARE_LADY_IS_ACTIVE_MASK ((uint8_t)(1 << 7)) + +#define PKSAV_GEN2_DAYCARE_BREED_IS_NOT_MOTHER_OR_NON_DITTO ((uint8_t)0) +#define PKSAV_GEN2_DAYCARE_BREED_IS_MOTHER_OR_NON_DITTO ((uint8_t)1) + +#pragma pack(push,1) + +struct pksav_gen2_daycare_pokemon_data +{ + uint8_t nickname[PKSAV_GEN2_POKEMON_NICKNAME_LENGTH]; + uint8_t otname[PKSAV_GEN2_POKEMON_OTNAME_STORAGE_LENGTH]; + struct pksav_gen2_pc_pokemon pokemon; +}; + +struct pksav_gen2_daycare_data +{ + uint8_t daycare_man_fields; + struct pksav_gen2_daycare_pokemon_data stored_pokemon1_data; + + uint8_t daycare_lady_fields; + uint8_t steps_to_egg; + uint8_t is_breed_mother_or_non_ditto; + struct pksav_gen2_daycare_pokemon_data stored_pokemon2_data; + + struct pksav_gen2_daycare_pokemon_data egg_pokemon_data; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GEN2_DAYCARE_DATA_H */ diff --git a/libpksav/include/pksav/gen2/items.h b/libpksav/include/pksav/gen2/items.h index f94be8b..8853d3b 100644 --- a/libpksav/include/pksav/gen2/items.h +++ b/libpksav/include/pksav/gen2/items.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen2/items.h - * @ingroup PKSav - * @brief Native formats for item storage in Generation II games. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -11,17 +7,18 @@ #ifndef PKSAV_GEN2_ITEMS_H #define PKSAV_GEN2_ITEMS_H +#include + #include #pragma pack(push,1) -//! Native representation of an item slot in Generation II. -typedef struct { - //! Item count (0-99). - uint8_t count; - //! Item index. - uint8_t index; -} pksav_gen2_item_t; +#define PKSAV_GEN2_TM_COUNT (50) +#define PKSAV_GEN2_HM_COUNT (7) +#define PKSAV_GEN2_ITEM_POCKET_SIZE (20) +#define PKSAV_GEN2_KEY_ITEM_POCKET_SIZE (25) +#define PKSAV_GEN2_BALL_POCKET_SIZE (12) +#define PKSAV_GEN2_ITEM_PC_SIZE (50) /*! * @brief Native representation of the TM/HM pocket in Generation II. @@ -30,14 +27,15 @@ typedef struct { * the set of items that go in this pocket. Instead, an index exists for each * TM and HM, and the value of the index corresponds to the number of that item. */ -typedef struct { +struct pksav_gen2_tmhm_pocket +{ /*! * @brief Number of each TM. * * Each index corresponds to the TM of that same number (offset by one), so * for example, tm_count[35] contains the number of TM36 held in the bag. */ - uint8_t tm_count[50]; + uint8_t tm_count[PKSAV_GEN2_TM_COUNT]; /*! * @brief Number of each HM. * @@ -46,8 +44,8 @@ typedef struct { * * For HMs, this value should only be 0-1. */ - uint8_t hm_count[7]; -} pksav_gen2_tmhm_pocket_t; + uint8_t hm_count[PKSAV_GEN2_HM_COUNT]; +}; /*! * @brief Native representation of the trainer's item pocket in Generation II. @@ -57,31 +55,25 @@ typedef struct { * ignore any later items, and if it is too large, whatever happens to be in * memory will be parsed as items, leading to undefined behavior when used. */ -typedef struct { +struct pksav_gen2_item_pocket +{ //! How many unique items are in the bag (0-20). uint8_t count; //! Item slots. - pksav_gen2_item_t items[20]; + struct pksav_gb_item items[PKSAV_GEN2_ITEM_POCKET_SIZE]; //! End of the item list. uint8_t terminator; -} pksav_gen2_item_pocket_t; +}; -/*! - * @brief Native representation of the trainer's key item pocket in Generation II. - * - * All items in this list should be contiguous, and the amount should match - * the value in the count field. If the count value is too small, the game will - * ignore any later items, and if it is too large, whatever happens to be in - * memory will be parsed as items, leading to undefined behavior when used. - */ -typedef struct { +struct pksav_gen2_key_item_pocket +{ //! How many unique items are in the bag (0-26). uint8_t count; //! Item slots. - pksav_gen2_item_t items[26]; + uint8_t item_indices[PKSAV_GEN2_KEY_ITEM_POCKET_SIZE]; //! End of the item list. uint8_t terminator; -} pksav_gen2_key_item_pocket_t; +}; /*! * @brief Native representation of the trainer's key ball pocket in Generation II. @@ -91,30 +83,32 @@ typedef struct { * ignore any later items, and if it is too large, whatever happens to be in * memory will be parsed as items, leading to undefined behavior when used. */ -typedef struct { +struct pksav_gen2_ball_pocket +{ //! How many unique items are in the bag (0-12). uint8_t count; //! Item slots. - pksav_gen2_item_t items[12]; + struct pksav_gb_item items[PKSAV_GEN2_BALL_POCKET_SIZE]; //! End of the item list. uint8_t terminator; -} pksav_gen2_ball_pocket_t; +}; /*! * @brief Native representation of the trainer's item bag in Generation II. * * This struct is simply all four pockets, stored contiguously in memory. */ -typedef struct { +struct pksav_gen2_item_bag +{ //! TM/HM pocket. - pksav_gen2_tmhm_pocket_t tmhm_pocket; + struct pksav_gen2_tmhm_pocket tmhm_pocket; //! Item pocket. - pksav_gen2_item_pocket_t item_pocket; + struct pksav_gen2_item_pocket item_pocket; //! Key item pocket. - pksav_gen2_key_item_pocket_t key_item_pocket; + struct pksav_gen2_key_item_pocket key_item_pocket; //! Ball pocket. - pksav_gen2_ball_pocket_t ball_pocket; -} pksav_gen2_item_bag_t; + struct pksav_gen2_ball_pocket ball_pocket; +}; /*! * @brief Native representation of the trainer's item PC. in Generation II. @@ -124,14 +118,15 @@ typedef struct { * ignore any later items, and if it is too large, whatever happens to be in * memory will be parsed as items, leading to undefined behavior when used. */ -typedef struct { +struct pksav_gen2_item_pc +{ //! How many unique items are in the PC (0-50). uint8_t count; //! Item slots. - pksav_gen2_item_t items[50]; + struct pksav_gb_item items[PKSAV_GEN2_ITEM_PC_SIZE]; //! End of the item list. uint8_t terminator; -} pksav_gen2_item_pc_t; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/gen2/mom_money_policy.h b/libpksav/include/pksav/gen2/mom_money_policy.h new file mode 100644 index 0000000..75cb080 --- /dev/null +++ b/libpksav/include/pksav/gen2/mom_money_policy.h @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_MOM_MONEY_POLICY_H +#define PKSAV_GEN2_MOM_MONEY_POLICY_H + +#define PKSAV_GEN2_MOM_MONEY_POLICY_ACTIVE_FLAG ((uint8_t)(1 << 7)) + +enum pksav_gen2_mom_money_policy +{ + PKSAV_GEN2_MOM_MONEY_POLICY_NOT_SAVING = 0, + PKSAV_GEN2_MOM_MONEY_POLICY_SAVING_SOME_MONEY = 1, + PKSAV_GEN2_MOM_MONEY_POLICY_SAVING_HALF_MONEY = (1 << 1), + PKSAV_GEN2_MOM_MONEY_POLICY_SAVING_ALL_MONEY = (1 << 2) +}; + +#endif /* PKSAV_GEN2_MOM_MONEY_POLICY_H */ diff --git a/libpksav/include/pksav/gen2/options.h b/libpksav/include/pksav/gen2/options.h new file mode 100644 index 0000000..1dc5f7e --- /dev/null +++ b/libpksav/include/pksav/gen2/options.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_OPTIONS_H +#define PKSAV_GEN2_OPTIONS_H + +// Byte 1 + +enum pksav_gen2_text_speed +{ + PKSAV_GEN2_TEXT_SPEED_FAST = 1, + PKSAV_GEN2_TEXT_SPEED_NORMAL = 3, + PKSAV_GEN2_TEXT_SPEED_SLOW = 5 +}; + +#define PKSAV_GEN2_OPTIONS_TEXT_SPEED_MASK ((uint8_t)7) +#define PKSAV_GEN2_OPTIONS_NO_TEXT_DELAY_MASK ((uint8_t)(1 << 4)) +#define PKSAV_GEN2_OPTIONS_SOUND_STEREO_MASK ((uint8_t)(1 << 4)) +#define PKSAV_GEN2_OPTIONS_BATTLE_STYLE_SET_MASK ((uint8_t)(1 << 6)) +#define PKSAV_GEN2_OPTIONS_BATTLE_SCENE_MASK ((uint8_t)(1 << 7)) + +// Textbox frame + +#define PKSAV_GEN2_OPTIONS_TEXTBOX_FRAME_MASK ((uint8_t)7) + +#define PKSAV_GEN2_OPTIONS_TEXTBOX_MIN_FRAME ((uint8_t)0) +#define PKSAV_GEN2_OPTIONS_TEXTBOX_MAX_FRAME ((uint8_t)7) + +// Game Boy Printer + +enum pksav_gen2_gbprinter_brightness +{ + PKSAV_GEN2_GBPRINTER_BRIGHTNESS_LIGHTEST = 0x00, + PKSAV_GEN2_GBPRINTER_BRIGHTNESS_LIGHTER = 0x20, + PKSAV_GEN2_GBPRINTER_BRIGHTNESS_NORMAL = 0x40, + PKSAV_GEN2_GBPRINTER_BRIGHTNESS_DARKER = 0x60, + PKSAV_GEN2_GBPRINTER_BRIGHTNESS_DARKEST = 0x7F, +}; + +#define PKSAV_GEN2_GBPRINTER_BRIGHTNESS_MASK ((uint8_t)0x7F) + +// Menu account + +#define PKSAV_GEN2_OPTIONS_MENU_ACCOUNT_MASK ((uint8_t)2) + +#endif /* PKSAV_GEN2_OPTIONS_H */ diff --git a/libpksav/include/pksav/gen2/palette.h b/libpksav/include/pksav/gen2/palette.h new file mode 100644 index 0000000..2885de4 --- /dev/null +++ b/libpksav/include/pksav/gen2/palette.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_PALETTE_H +#define PKSAV_GEN2_PALETTE_H + +enum pksav_gen2_palette +{ + PKSAV_GEN2_PALETTE_RED = 0, + PKSAV_GEN2_PALETTE_BLUE, + PKSAV_GEN2_PALETTE_GREEN, + PKSAV_GEN2_PALETTE_BROWN, + PKSAV_GEN2_PALETTE_ORANGE, + PKSAV_GEN2_PALETTE_GRAY, + PKSAV_GEN2_PALETTE_DARK_GREEN, + PKSAV_GEN2_PALETTE_DARK_RED +}; + +#endif /* PKSAV_GEN2_PALETTE_H */ diff --git a/libpksav/include/pksav/gen2/pokemon.h b/libpksav/include/pksav/gen2/pokemon.h index edfd331..987be48 100644 --- a/libpksav/include/pksav/gen2/pokemon.h +++ b/libpksav/include/pksav/gen2/pokemon.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen2/pokemon.h - * @ingroup PKSav - * @brief Native formats and convenience functions for Pokémon in Generation II games. - * - * Copyright (c) 2015-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2015-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -11,99 +7,69 @@ #ifndef PKSAV_GEN2_POKEMON_H #define PKSAV_GEN2_POKEMON_H -#include -#include +#include + +#include #include -#include -/*! - * @brief The mask for a move's PP in the PP field. - * - * Mask the value of one of the indices of pksav_gen2_pc_pokemon_t.move_pps to - * get the PP of that move. - */ -#define PKSAV_GEN2_MOVE_PP_MASK ((uint8_t)0x3F) +#define PKSAV_GEN2_BOX_NUM_POKEMON (20) +#define PKSAV_GEN2_PARTY_NUM_POKEMON PKSAV_STANDARD_POKEMON_PARTY_SIZE +#define PKSAV_GEN2_POKEMON_NUM_MOVES PKSAV_STANDARD_POKEMON_NUM_MOVES -/*! - * @brief The mask for the number of PP Ups used on a move (0-3). - * - * Mask the value of one of the indices of pksav_gen2_pc_pokemon_t.move_pps - * and shift it right by ::PKSAV_GEN2_MOVE_PP_UP_MASK to get the number of PP - * Ups used. - */ -#define PKSAV_GEN2_MOVE_PP_UP_MASK ((uint8_t)0xC0) +#define PKSAV_GEN2_POKEMON_NICKNAME_LENGTH PKSAV_STANDARD_NICKNAME_LENGTH +#define PKSAV_GEN2_POKEMON_OTNAME_LENGTH PKSAV_GEN2_TRAINER_NAME_LENGTH +#define PKSAV_GEN2_POKEMON_OTNAME_STORAGE_LENGTH (10) -/*! - * @brief The offset of the number of PP UPs used on a move. - * - * Mask the value of one of the indices of pksav_gen2_pc_pokemon_t.move_pps - * with ::PKSAV_GEN2_MOVE_PP_UP_OFFSET and shift it right by this to get the - * number of PP Ups used. - */ -#define PKSAV_GEN2_MOVE_PP_UP_OFFSET 6 +#define PKSAV_GEN2_POKEMON_MOVE_PP_MASK ((uint8_t)0x3F) +#define PKSAV_GEN1_POKEMON_MOVE_PP(field) ((field) & PKSAV_GEN1_POKEMON_MOVE_PP_MASK) -/*! - * @brief The mask for the level at which a Pokémon was caught. - * - * Mask pksav_gen2_pc_pokemon_t.caught_data with this mask and shift it - * right by ::PKSAV_GEN2_LEVEL_CAUGHT_OFFSET to get the value. - */ -#define PKSAV_GEN2_LEVEL_CAUGHT_MASK ((uint16_t)0x3F00) +#define PKSAV_GEN2_POKEMON_MOVE_PP_UP_OFFSET (6) +#define PKSAV_GEN2_POKEMON_MOVE_PP_UP(field) ((field) >> PKSAV_GEN2_POKEMON_MOVE_PP_UP_OFFSET) -/*! - * @brief The offset for the level at which a Pokémon was caught. - * - * Mask pksav_gen2_pc_pokemon_t.caught_data with ::PKSAV_GEN2_LEVEL_CAUGHT_MASK - * and shift it right by this offset to get the value. - */ -#define PKSAV_GEN2_LEVEL_CAUGHT_OFFSET 8 +#define PKSAV_GEN2_POKEMON_LEVEL_CAUGHT_MASK ((uint16_t)0x3F00) +#define PKSAV_GEN2_POKEMON_LEVEL_CAUGHT_OFFSET (8) -/*! - * @brief The mask for setting a Pokémon's original trainer's gender. - * - * Mask pksav_gen2_pc_pokemon_t.caught_data with this mask to set the trainer's - * gender to female. Unmask it to set the trainer's gender to male. - */ -#define PKSAV_GEN2_OT_GENDER_MASK ((uint16_t)0x0080) +#define PKSAV_GEN2_POKEMON_LEVEL_CAUGHT(field) \ + (((field) & PKSAV_GEN2_POKEMON_LEVEL_CAUGHT_MASK) >> PKSAV_GEN2_POKEMON_LEVEL_CAUGHT_OFFSET) -/*! - * @brief The mask for the index of the location at which the Pokémon was caught. - * - * Mask pksav_gen2_pc_pokemon_t.caught_data with this mask to get or set the - * location index. - */ -#define PKSAV_GEN2_LOCATION_MASK ((uint16_t)0x007F) +#define PKSAV_GEN2_POKEMON_OTGENDER_MASK ((uint16_t)0x0080) +#define PKSAV_GEN2_POKEMON_LOCATION_MASK ((uint16_t)0x007F) + +#define PKSAV_GEN2_POKEMON_EGG_INDEX (0xFD) +#define PKSAV_GEN2_POKEMON_EXPERIENCE_BUFFER_SIZE (3) +#define PKSAV_GEN2_POKEMON_BOX_NAME_LENGTH (8) #pragma pack(push,1) /*! - * @brief Native format for the persistent data of a Pokémon in Generation IIII. + * @brief Native format for the persistent data of a Pokémon in Generation II. * * This data is available both when the Pokémon is in the trainer's party or in the * PC. */ -typedef struct { +struct pksav_gen2_pc_pokemon +{ /*! * @brief Species index. * * This value is the same whether or not the Pokémon is in an egg. If this is - * the case, the value is reflected in pksav_gen2_pokemon_party_t.species or - * pksav_gen2_pokemon_box_t.species. + * the case, the value is reflected in struct pksav_gen2_pokemon_party.species or + * struct pksav_gen2_pokemon_box.species. */ uint8_t species; /*! * @brief Held item index. * * When a Generation I Pokémon is traded into a Generation II game, the - * pksav_gen2_pc_pokemon_t.catch_rate field is placed here. As such, there is - * a set held item corresponding to each species when trading up. + * struct pksav_gen2_pc_pokemon.catch_rate field is placed here. As such, there is + * a set held uitem corresponding to each species when trading up. */ uint8_t held_item; /*! * @brief Indices for each of this Pokémon's moves. */ - uint8_t moves[4]; + uint8_t moves[PKSAV_GEN2_POKEMON_NUM_MOVES]; /*! * @brief The Pokémon's original trainer's ID (stored in big-endian). * @@ -113,10 +79,10 @@ typedef struct { /*! * @brief The Pokémon's current total experience points (stored in Base-256). * - * This value should be accessed with ::pksav_from_base256 (with a num_bytes - * value of 3) and set with ::pksav_to_base256. + * This value should be accessed with ::pksav_import_base256 (with a num_bytes + * value of 3) and set with ::pksav_export_base256. */ - uint8_t exp[3]; + uint8_t exp[PKSAV_GEN2_POKEMON_EXPERIENCE_BUFFER_SIZE]; /*! * @brief The Pokémon's HP EV stat (stored in big-endian). * @@ -165,7 +131,7 @@ typedef struct { * Mask an index with ::PKSAV_GEN2_MOVE_PP_UP_MASK to get the number of * PP Ups applied to the move. */ - uint8_t move_pps[4]; + uint8_t move_pps[PKSAV_GEN2_POKEMON_NUM_MOVES]; /*! * @brief A Pokémon's friendship/happiness value. * @@ -199,19 +165,20 @@ typedef struct { * @brief The Pokémon's level. */ uint8_t level; -} pksav_gen2_pc_pokemon_t; +}; /*! * @brief Data generated when a Pokémon is added to a trainer's party in Generation III. * * All of this information is generated from values stored in - * pksav_gen2_pc_pokemon_t. + * struct pksav_gen2_pc_pokemon. */ -typedef struct { +struct pksav_gen2_pokemon_party_data +{ /*! * @brief The Pokémon's status ailments, if any. * - * The enum ::pksav_gb_condition_t contains all valid values for this field. + * The enum ::struct pksav_gb_condition contains all valid values for this field. */ uint8_t condition; //! Unused. @@ -219,7 +186,7 @@ typedef struct { /*! * @brief The Pokémon's current HP. * - * This value should never be higher than pksav_gen2_pokemon_party_data_t.max_hp. + * This value should never be higher than struct pksav_gen2_pokemon_party_data.max_hp. * * This value should be accessed and set with ::pksav_bigendian16. */ @@ -278,16 +245,17 @@ typedef struct { * This value should be accessed and set with ::pksav_bigendian16. */ uint16_t spdef; -} pksav_gen2_pokemon_party_data_t; +}; //! Native format for a Pokémon in the trainer's party in Generation III. -typedef struct { +struct pksav_gen2_party_pokemon +{ /*! * @brief PC data. * * This data is accessible whether the Pokémon is in the PC or party. */ - pksav_gen2_pc_pokemon_t pc; + struct pksav_gen2_pc_pokemon pc_data; /*! * @brief Party data. @@ -296,89 +264,94 @@ typedef struct { * all of it can be generated from the PC data, it is not stored until * it needs to be used. */ - pksav_gen2_pokemon_party_data_t party_data; -} pksav_gen2_party_pokemon_t; + struct pksav_gen2_pokemon_party_data party_data; +}; //! Native format for a trainer's Pokémon party in Generation II. -typedef struct { +struct pksav_gen2_pokemon_party +{ //! The actual number of Pokémon in the party (0-6). uint8_t count; /*! * @brief The species indices of the Pokémon in the party. * * When the party is viewed in-game, it is this value that determines - * what Pokémon is shown, not the pksav_gen2_pc_pokemon_t.species value. + * what Pokémon is shown, not the struct pksav_gen2_pc_pokemon.species value. * * If this field is set to 0xFD, the Pokémon will be in an egg. Its field - * in pksav_gen2_pc_pokemon_t will correspond to its species when hatched. + * in struct pksav_gen2_pc_pokemon will correspond to its species when hatched. * - * The final index of this field should always be set to 0xFF. + * The first index after the last Pokémon in the box should always be + * set to 0xFF. */ - uint8_t species[7]; + uint8_t species[PKSAV_GEN2_PARTY_NUM_POKEMON + 1]; //! The actual Pokémon in the party. - pksav_gen2_party_pokemon_t party[6]; + struct pksav_gen2_party_pokemon party[PKSAV_GEN2_PARTY_NUM_POKEMON]; /*! * @brief The names of each Pokémon's original trainer. * * To access this value, you should use the function ::pksav_text_from_gen2 * with a num_chars value of 10. */ - uint8_t otnames[6][11]; + uint8_t otnames[PKSAV_GEN2_PARTY_NUM_POKEMON][PKSAV_GEN2_POKEMON_OTNAME_STORAGE_LENGTH + 1]; /*! * @brief The nicknames of each Pokémon in the party. * * To access this value, you should use the function ::pksav_text_from_gen2 * with a num_chars value of 10. */ - uint8_t nicknames[6][11]; -} pksav_gen2_pokemon_party_t; + uint8_t nicknames[PKSAV_GEN2_PARTY_NUM_POKEMON][PKSAV_GEN2_POKEMON_NICKNAME_LENGTH + 1]; +}; //! Native format for a Pokémon PC box in Generation II. -typedef struct { +struct pksav_gen2_pokemon_box +{ //! The actual number of Pokémon in the box (0-20). uint8_t count; /*! * @brief The species indices of the Pokémon in the box. * * When the box is viewed in-game, it is this value that determines - * what Pokémon is showed, not the pksav_gen2_pc_pokemon_t.species value. + * what Pokémon is showed, not the struct pksav_gen2_pc_pokemon.species value. * * If this field is set to 0xFD, the Pokémon will be in an egg. Its field - * in pksav_gen2_pc_pokemon_t will correspond to its species when hatched. + * in struct pksav_gen2_pc_pokemon will correspond to its species when hatched. * - * The final index of this field should always be set to 0xFF. + * The first index after the last Pokémon in the box should always be + * set to 0xFF. */ - uint8_t species[21]; + uint8_t species[PKSAV_GEN2_BOX_NUM_POKEMON + 1]; //! The actual Pokémon in the box. - pksav_gen2_pc_pokemon_t entries[20]; + struct pksav_gen2_pc_pokemon entries[PKSAV_GEN2_BOX_NUM_POKEMON]; /*! * @brief The names of each Pokémon's original trainer. * * To access this value, you should use the function ::pksav_text_from_gen2 * with a num_chars value of 10. */ - uint8_t otnames[20][11]; + uint8_t otnames[PKSAV_GEN2_BOX_NUM_POKEMON][PKSAV_GEN2_POKEMON_OTNAME_STORAGE_LENGTH + 1]; /*! * @brief The nicknames of each Pokémon in the box. * * To access this value, you should use the function ::pksav_text_from_gen2 * with a num_chars value of 10. */ - uint8_t nicknames[20][11]; + uint8_t nicknames[PKSAV_GEN2_BOX_NUM_POKEMON][PKSAV_GEN2_POKEMON_NICKNAME_LENGTH + 1]; //! Padding. uint8_t padding[2]; -} pksav_gen2_pokemon_box_t; +}; //! List of Pokémon box names in Generation II. -typedef struct { +struct pksav_gen2_pokemon_box_names +{ /*! * @brief Each box name. * * To access a name, you should use the function ::pksav_text_from_gen2 * with a num_chars value of 9. */ - uint8_t names[14][9]; -} pksav_gen2_pokemon_box_names_t; + uint8_t names[PKSAV_GEN2_NUM_POKEMON_BOXES][PKSAV_GEN2_POKEMON_BOX_NAME_LENGTH + 1]; +}; #pragma pack(pop) diff --git a/libpksav/include/pksav/gen2/save.h b/libpksav/include/pksav/gen2/save.h index ffe8a24..286da4e 100644 --- a/libpksav/include/pksav/gen2/save.h +++ b/libpksav/include/pksav/gen2/save.h @@ -1,8 +1,4 @@ -/*! - * @file pksav/gen2/save.h - * @ingroup PKSav - * @brief Functions for interacting with Generation II save files. - * +/* * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt @@ -14,240 +10,274 @@ #include #include +#include +#include #include #include -#include #include -#include -#include - #include #include +#include -typedef enum { - PKSAV_GEN2_MALE = 0, - PKSAV_GEN2_FEMALE -} pksav_gen2_gender_t; +#define PKSAV_GEN2_SAVE_SIZE (0x8000) -typedef enum { - PKSAV_GEN2_GS = 0, - PKSAV_GEN2_CRYSTAL -} pksav_gen2_game_t; +#define PKSAV_GEN2_RIVAL_NAME_LENGTH PKSAV_GEN2_TRAINER_NAME_LENGTH -/*! - * @brief The primary PKSav struct for interacting with Generation II save files. - * - * After passing the struct into ::pksav_gen2_save_load, it will hold the binary - * data for the save file and provide pointers to all relevant offsets within the - * file. Accessing these pointers before calling ::pksav_gen2_save_load will result - * in undefined behavior. - * - * To save the save file's data to another location, pass the struct into - * ::pksav_gen2_save_save, along with a filepath. - * - * Once you are finished using the struct, pass it into ::pksav_gen2_save_free to - * free the memory allocated by ::pksav_gen2_save_load. - */ -typedef struct { - //! A pointer to the trainer's Pokémon party. - pksav_gen2_pokemon_party_t* pokemon_party; +#define PKSAV_GEN2_SAVE_MONEY_BUFFER_SIZE_BYTES (3) +#define PKSAV_GEN2_SAVE_MONEY_MAX_VALUE (999999) - /*! - * @brief The number of the current Pokémon box (0-13). - * - * There are 14 Pokémon boxes, and this value (0-based) shows which one will be - * deposited and withdrawn from. - */ - uint8_t* current_pokemon_box_num; +#define PKSAV_GEN2_SAVE_CASINO_COINS_BUFFER_SIZE_BYTES (2) +#define PKSAV_GEN2_SAVE_CASINO_COINS_MAX_VALUE (9999) - /*! - * @brief A pointer to the current Pokémon box. - * - * Pokémon are only deposited or withdrawn from this box, and its data is - * switched out when the current box is changed. - */ - pksav_gen2_pokemon_box_t* current_pokemon_box; +#define PKSAV_GEN2_POKEDEX_BUFFER_SIZE_BYTES ((251 / 8) + 1) - //! A pointer to the Pokémon PC. - pksav_gen2_pokemon_box_t* pokemon_boxes[14]; +#define PKSAV_GEN2_DAYLIGHT_SAVINGS_TIME_MASK ((uint8_t)(1 << 7)) - //! A pointer to the Pokémon PC's box names. - pksav_gen2_pokemon_box_names_t* pokemon_box_names; +#define PKSAV_GEN2_REGISTERED_ITEM_INFO_POCKET_MASK (0xC0) +#define PKSAV_GEN2_REGISTERED_ITEM_INFO_POCKET_OFFSET (6) - //! A pointer to the trainer's item bag. - pksav_gen2_item_bag_t* item_bag; +#define PKSAV_GEN2_REGISTERED_ITEM_INFO_POCKET(byte) \ + ((byte & PKSAV_GEN2_REGISTERED_ITEM_INFO_POCKET_MASK) >> PKSAV_GEN2_REGISTERED_ITEM_INFO_POCKET_OFFSET) - //! A pointer to the trainer's item PC. - pksav_gen2_item_pc_t* item_pc; +#define PKSAV_GEN2_REGISTERED_ITEM_INFO_AMOUNT_MASK (0x3F) + +enum pksav_gen2_registered_item_pocket +{ + PKSAV_GEN2_REGISTERED_ITEM_POCKET_REGISTERED_ITEM, + PKSAV_GEN2_REGISTERED_ITEM_POCKET_BALL, + PKSAV_GEN2_REGISTERED_ITEM_POCKET_KEY_REGISTERED_ITEM, + PKSAV_GEN2_REGISTERED_ITEM_POCKET_TMHM +}; + +struct pksav_gen2_save_time +{ + //! A pointer to the amount of time this save file has been played. + struct pksav_gen2_time* p_time_played; + + uint8_t* p_daylight_savings; +}; +struct pksav_gen2_options +{ + uint8_t* p_misc_options; + + uint8_t* p_textbox_frame_index; + + uint8_t* p_gbprinter_brightness; + + uint8_t* p_menu_account; +}; + +struct pksav_gen2_pokedex_lists +{ /*! * @brief A pointer to the list of Pokémon seen by the trainer. * * This list should be accessed with ::pksav_get_pokedex_bit and set with * ::pksav_set_pokedex_bit. */ - uint8_t* pokedex_seen; + uint8_t* p_seen; + /*! * @brief A pointer to the list of Pokémon owned by the trainer. * * This list should be accessed with ::pksav_get_pokedex_bit and set with * ::pksav_set_pokedex_bit. */ - uint8_t* pokedex_owned; + uint8_t* p_owned; +}; + +struct pksav_gen2_pokemon_storage +{ + struct pksav_gen2_pokemon_party* p_party; /*! - * @brief A pointer to the trainer's name. - * - * This value should be accessed with ::pksav_text_from_gen2 with a num_chars - * value of 7. + * @brief Pointers to the trainer's Pokémon boxes. * - * This value should be set with ::pksav_text_to_gen2, with a num_chars - * num_chars value of 7. + * The boxes are not stored contiguously in the save file, so these pointers + * point to their actual positions in the file. */ - uint8_t* trainer_name; + struct pksav_gen2_pokemon_box* pp_boxes[PKSAV_GEN2_NUM_POKEMON_BOXES]; + + struct pksav_gen2_pokemon_box_names* p_box_names; /*! - * @brief A pointer to the trainer's ID (stored in big-endian). + * @brief The number of the current Pokémon box (0-11). * - * This value should be accessed and modified with ::pksav_bigendian16. + * There are 12 Pokémon boxes, and this value (0-based) shows which one will be + * deposited and withdrawn from. + * + * The ::PKSAV_GEN2_CURRENT_POKEMON_BOX_NUM_MASK should be used to access or set + * this value. */ - uint16_t* trainer_id; + uint8_t* p_current_box_num; /*! - * @brief A pointer to the trainer's gender. - * - * As Crystal was the first game in the franchise to introduce a female player - * character, this value is set to NULL for Gold and Silver saves. + * @brief A pointer to the current Pokémon box. * - * For Crystal saves, valid values are ::PKSAV_GEN2_MALE or ::PKSAV_GEN2_FEMALE. + * Pokémon are only deposited or withdrawn from this box, and its data is + * switched out when the current box is changed. */ - uint8_t* trainer_gender; + struct pksav_gen2_pokemon_box* p_current_box; +}; + +struct pksav_gen2_item_storage +{ + //! A pointer to the trainer's item bag. + struct pksav_gen2_item_bag* p_item_bag; + + //! A pointer to the trainer's item PC. + struct pksav_gen2_item_pc* p_item_pc; + + uint8_t* p_registered_item_index; + uint8_t* p_registered_item_info; +}; +struct pksav_gen2_trainer_info +{ /*! - * @brief A pointer to how much money the trainer has (stored in BCD). + * @brief A pointer to the trainer's ID (stored in big-endian). * - * This value should be accessed with ::pksav_from_bcd, with a num_bytes value - * of 3. It should be set with ::pksav_to_bcd, with a maximum value of 999999. + * This value should be accessed and modified with ::pksav_bigendian16. */ - uint8_t* money; + uint16_t* p_id; /*! * @brief A pointer to the trainer's name. * - * This value should be accessed with ::pksav_text_from_gen2, with a num_chars + * This value should be accessed with ::pksav_text_from_gen2 with a num_chars * value of 7. * * This value should be set with ::pksav_text_to_gen2 with a num_chars * value of 7. */ - uint8_t* rival_name; + uint8_t* p_name; + + uint8_t* p_gender; + + uint8_t* p_palette; /*! - * @brief Whether daylight savings time is set. + * @brief A pointer to how much money the trainer has (stored in BCD). * - * Valid values are 0 or 1. + * This value should be accessed with ::pksav_import_bcd, with a num_bytes value + * of 3. It should be set with ::pksav_export_bcd, with a maximum value of 999999. */ - uint8_t* daylight_savings; + uint8_t* p_money; - //! A pointer to the amount of time this save file has been played. - pksav_gen2_time_t* time_played; + /*! + * @brief A pointer to the list of Johto badges the trainer has earned. + * + * This value should be manipulated with the bitmasks given in the + * ::pksav_gen2_johto_badge_t enum. + */ + uint8_t* p_johto_badges; - //! Which Generation II save group this struct corresponds to. - pksav_gen2_game_t gen2_game; + /*! + * @brief A pointer to the list of Kanto badges the trainer has earned. + * + * This value should be manipulated with the bitmasks given in the + * ::pksav_gen2_kanto_badge_t enum. + */ + uint8_t* p_kanto_badges; +}; - #ifndef __DOXYGEN__ - uint8_t* raw; - #endif -} pksav_gen2_save_t; +struct pksav_gen2_misc_fields +{ + /*! + * @brief A pointer to the rival's name. + * + * This value should be accessed with ::pksav_text_from_gen1 with a num_chars + * value of 7. + * + * This value should be set with ::pksav_text_to_gen1 with a num_chars + * value of 7. + */ + uint8_t* p_rival_name; -#ifdef __cplusplus -extern "C" { -#endif + uint8_t* p_money_with_mom; + + uint8_t* p_mom_money_policy; + + uint8_t* p_casino_coins; +}; /*! - * @brief Determines whether the given buffer is from a valid Generation II save file. + * @brief The primary PKSav struct for interacting with Generation II save files. * - * This is determining by checking the data's size and checksums. The data checked differs - * between Gold/Silver and Crystal. + * After passing the struct into ::pksav_gen2_save_load, it will hold the binary + * data for the save file and provide pointers to all relevant offsets within the + * file. Accessing these pointers before calling ::pksav_gen2_save_load will result + * in undefined behavior. * - * \param buffer buffer to be checked - * \param buffer_len length of the buffer passed in - * \param crystal Whether to check Crystal's checksum locations - * \param result_out whether or not the given buffer has a valid Generation II save file - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + * To save the save file's data to another location, pass the struct into + * ::pksav_gen2_save_save, along with a p_filepath. + * + * Once you are finished using the struct, pass it into ::pksav_gen2_save_free to + * free the memory allocated by ::pksav_gen2_save_load. */ -PKSAV_API pksav_error_t pksav_buffer_is_gen2_save( +struct pksav_gen2_save +{ + enum pksav_gen2_save_type save_type; + + struct pksav_gen2_options options; + + struct pksav_gen2_save_time save_time; + + struct pksav_gen2_item_storage item_storage; + + struct pksav_gen2_pokemon_storage pokemon_storage; + + struct pksav_gen2_pokedex_lists pokedex_lists; + + struct pksav_gen2_trainer_info trainer_info; + + struct pksav_gen2_daycare_data* p_daycare_data; + + struct pksav_gen2_misc_fields misc_fields; + + void* p_internal; +}; + +#ifdef __cplusplus +extern "C" { +#endif + +PKSAV_API enum pksav_error pksav_gen2_get_buffer_save_type( const uint8_t* buffer, size_t buffer_len, - bool crystal, - bool* result_out + enum pksav_gen2_save_type* p_save_type_out ); -/*! - * @brief Determines whether the file at the given path is a valid Generation I save file. - * - * This is determined by checking the file's size and checksum. The data checked differs - * between Gold/Silver and Crystal. - * - * \param filepath path to the file to be checked - * \param crystal Whether to check Crystal's checksum locations - * \param result_out whether or not the given buffer has a valid Generation I save file - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL - */ -PKSAV_API pksav_error_t pksav_file_is_gen2_save( - const char* filepath, - bool crystal, - bool* result_out +PKSAV_API enum pksav_error pksav_gen2_get_file_save_type( + const char* p_filepath, + enum pksav_gen2_save_type* p_save_type_out ); -/*! - * @brief Loads the save file at the given path into the given PKSav struct. - * - * Upon a failure state, the given pksav_gen2_save_t will be left in an undefined state. - * - * \param filepath path to the file to be loaded - * \param gen2_save PKSav struct in which to load file - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen2_save is NULL - * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs reading the file - * \returns ::PKSAV_ERROR_INVALID_SAVE if the given file is not a valid Generation II save file - */ -PKSAV_API pksav_error_t pksav_gen2_save_load( - const char* filepath, - pksav_gen2_save_t* gen2_save +PKSAV_API enum pksav_error pksav_gen2_load_save_from_buffer( + uint8_t* buffer, + size_t buffer_len, + struct pksav_gen2_save* p_gen2_save_out ); -/*! - * @brief Saves a Generation II save file to the given path. - * - * Upon a failure state, the save file is not guaranteed to have been properly written. - * - * \param filepath where the save file should be written - * \param gen2_save the same to be written - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen2_save is NULL - * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs writing the file - */ -PKSAV_API pksav_error_t pksav_gen2_save_save( - const char* filepath, - pksav_gen2_save_t* gen2_save +PKSAV_API enum pksav_error pksav_gen2_load_save_from_file( + const char* p_filepath, + struct pksav_gen2_save* p_gen2_save_out ); -/*! - * @brief Frees memory allocated for a pksav_gen2_save_t. - * - * After this function is called, all pointer members of the given save file will - * be set to NULL. - * - * \param gen2_save save whose memory should be freed - * \returns ::PKSAV_ERROR_NONE upon success - * \returns ::PKSAV_ERROR_NULL_POINTER if gen2_save is NULL - */ -PKSAV_API pksav_error_t pksav_gen2_save_free( - pksav_gen2_save_t* gen2_save +PKSAV_API enum pksav_error pksav_gen2_save_save( + const char* p_filepath, + struct pksav_gen2_save* p_gen2_save +); + +PKSAV_API enum pksav_error pksav_gen2_free_save( + struct pksav_gen2_save* p_gen2_save +); + +PKSAV_API enum pksav_error pksav_gen2_pokemon_storage_set_current_box( + struct pksav_gen2_pokemon_storage* p_gen2_pokemon_storage, + uint8_t new_current_box_num ); #ifdef __cplusplus diff --git a/libpksav/include/pksav/gen2/text.h b/libpksav/include/pksav/gen2/text.h index 735af6f..82d6550 100644 --- a/libpksav/include/pksav/gen2/text.h +++ b/libpksav/include/pksav/gen2/text.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen2/text.h - * @ingroup PKSav - * @brief Conversions between C strings and the string format used in Generation II games. - * - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -17,6 +13,8 @@ #include #include +#define PKSAV_GEN2_TEXT_TERMINATOR (0x50) + #ifdef __cplusplus extern "C" { #endif @@ -29,15 +27,15 @@ extern "C" { * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_buffer Generation II string - * \param output_text output buffer in which to place converted text + * \param p_input_buffer Generation II string + * \param p_output_text output buffer in which to place converted text * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_buffer or p_output_text is NULL */ -PKSAV_API pksav_error_t pksav_text_from_gen2( - const uint8_t* input_buffer, - char* output_text, +PKSAV_API enum pksav_error pksav_gen2_import_text( + const uint8_t* p_input_buffer, + char* p_output_text, size_t num_chars ); @@ -49,15 +47,15 @@ PKSAV_API pksav_error_t pksav_text_from_gen2( * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_text C string to convert - * \param output_buffer output buffer in which to place Generation II string + * \param p_input_text C string to convert + * \param p_output_buffer output buffer in which to place Generation II string * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_text or p_output_buffer is NULL */ -PKSAV_API pksav_error_t pksav_text_to_gen2( - const char* input_text, - uint8_t* output_buffer, +PKSAV_API enum pksav_error pksav_gen2_export_text( + const char* p_input_text, + uint8_t* p_output_buffer, size_t num_chars ); diff --git a/libpksav/include/pksav/gen2/time.h b/libpksav/include/pksav/gen2/time.h index 412413f..d42e8a9 100644 --- a/libpksav/include/pksav/gen2/time.h +++ b/libpksav/include/pksav/gen2/time.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen2/time.h - * @ingroup PKSav - * @brief Time-related structs and functions in the Generation II games. - * - * Copyright (c) 2015-2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2015-2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -20,7 +16,8 @@ #pragma pack(push,1) //! How much time has passed in a given save. -typedef struct { +struct pksav_gen2_time +{ //! Hours (0-23). uint8_t hours; //! Minutes (0-59). @@ -29,12 +26,13 @@ typedef struct { uint8_t seconds; //! Frames (0-59). uint8_t frames; -} pksav_gen2_time_t; +}; #pragma pack(pop) //! Valid values for time of day (Crystal only). -typedef enum { +enum pksav_gen2_time_of_day +{ //! No value set (Gold/Silver). PKSAV_GEN2_NONE_SET = 0, //! Morning (4:00-9:59). @@ -43,13 +41,16 @@ typedef enum { PKSAV_GEN2_DAY, //! Night (18:00-3:59). PKSAV_GEN2_NIGHT -} pksav_gen2_time_of_day; +}; //! The mask for getting/setting the time of day in the pksav_gen2_pc_pokemon_t.caught_data field. #define PKSAV_GEN2_TIME_OF_DAY_MASK ((uint16_t)0xC000) //! The offset of the time of day information in the pksav_gen2_pc_pokemon_t.caught_data field. -#define PKSAV_GEN2_TIME_OF_DAY_OFFSET 14 +#define PKSAV_GEN2_TIME_OF_DAY_OFFSET (14) + +#define PKSAV_GEN2_TIME_OF_DAY(field) \ + (((field) & PKSAV_GEN2_TIME_OF_DAY_MASK) >> PKSAV_GEN2_TIME_OF_DAY_OFFSET) #ifdef __cplusplus extern "C" { @@ -64,9 +65,9 @@ extern "C" { * \returns ::PKSAV_ERROR_NULL_POINTER if time_in or caught_data is NULL */ -PKSAV_API pksav_error_t pksav_gen2_set_caught_data_time_field( - const time_t* time_in, - uint16_t* caught_data +PKSAV_API enum pksav_error pksav_gen2_set_caught_data_time_field( + const time_t* p_ctime, + uint16_t* p_caught_data ); #ifdef __cplusplus diff --git a/libpksav/include/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/gen4/Makefile b/libpksav/include/pksav/gen4/Makefile index 936426e..385d9cc 100644 --- a/libpksav/include/pksav/gen4/Makefile +++ b/libpksav/include/pksav/gen4/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen4//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav/gen4//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/gen4/cmake_install.cmake b/libpksav/include/pksav/gen4/cmake_install.cmake index c981ee4..2ccd110 100644 --- a/libpksav/include/pksav/gen4/cmake_install.cmake +++ b/libpksav/include/pksav/gen4/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen4 +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav/gen4 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -38,6 +38,6 @@ if(NOT DEFINED CMAKE_OBJDUMP) endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen4" TYPE FILE FILES "/Users/spencer/Projects/pksav/include/pksav/gen4/text.h") + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen4" TYPE FILE FILES "/Users/spencer/Projects/pksav-sv/include/pksav/gen4/text.h") endif() diff --git a/libpksav/include/pksav/gen4/text.h b/libpksav/include/pksav/gen4/text.h index 6867774..50e9662 100644 --- a/libpksav/include/pksav/gen4/text.h +++ b/libpksav/include/pksav/gen4/text.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen4/text.h - * @ingroup PKSav - * @brief Conversions between C strings and the string formats used in Generation IV games. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -28,34 +24,15 @@ extern "C" { * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_buffer Generation IV string - * \param output_text output buffer in which to place converted text - * \param num_chars the number of characters to convert - * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL - */ -PKSAV_API pksav_error_t pksav_text_from_gen4( - const uint16_t* input_buffer, - char* output_text, - size_t num_chars -); - -//! Convert a string from the given generation's format to a wide-character C string -/*! - * In Generation IV, strings are stored in a proprietary character map. - * - * Both buffers passed into the function must be at least the length passed - * in the num_chars parameter, or it will result in undefined behavior. - * - * \param input_buffer Generation IV string - * \param output_text output buffer in which to place converted text + * \param p_input_buffer Generation IV string + * \param p_output_text output buffer in which to place converted text * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_buffer or p_output_text is NULL */ -PKSAV_API pksav_error_t pksav_widetext_from_gen4( - const uint16_t* input_buffer, - wchar_t* output_text, +PKSAV_API enum pksav_error pksav_gen4_import_text( + const uint16_t* p_input_buffer, + char* p_output_text, size_t num_chars ); @@ -66,34 +43,15 @@ PKSAV_API pksav_error_t pksav_widetext_from_gen4( * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_text C string to convert - * \param output_buffer output buffer in which to place converted text - * \param num_chars the number of characters to convert - * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL - */ -PKSAV_API pksav_error_t pksav_text_to_gen4( - const char* input_text, - uint16_t* output_buffer, - size_t num_chars -); - -//! Convert a wide-character C string to a string in Generation IV's format -/*! - * In Generation IV, strings are stored in a proprietary character map. - * - * Both buffers passed into the function must be at least the length passed - * in the num_chars parameter, or it will result in undefined behavior. - * - * \param input_text C string to convert - * \param output_buffer output buffer in which to place converted text + * \param p_input_text C string to convert + * \param p_output_buffer output buffer in which to place converted text * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_text or p_output_buffer is NULL */ -PKSAV_API pksav_error_t pksav_widetext_to_gen4( - const wchar_t* input_text, - uint16_t* output_buffer, +PKSAV_API enum pksav_error pksav_gen4_export_text( + const char* p_input_text, + uint16_t* p_output_buffer, size_t num_chars ); diff --git a/libpksav/include/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/gen5/Makefile b/libpksav/include/pksav/gen5/Makefile index bdc2db5..56a5238 100644 --- a/libpksav/include/pksav/gen5/Makefile +++ b/libpksav/include/pksav/gen5/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen5//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav/gen5//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/gen5/cmake_install.cmake b/libpksav/include/pksav/gen5/cmake_install.cmake index fa9d443..16092a5 100644 --- a/libpksav/include/pksav/gen5/cmake_install.cmake +++ b/libpksav/include/pksav/gen5/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen5 +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav/gen5 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -38,6 +38,6 @@ if(NOT DEFINED CMAKE_OBJDUMP) endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen5" TYPE FILE FILES "/Users/spencer/Projects/pksav/include/pksav/gen5/text.h") + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen5" TYPE FILE FILES "/Users/spencer/Projects/pksav-sv/include/pksav/gen5/text.h") endif() diff --git a/libpksav/include/pksav/gen5/text.h b/libpksav/include/pksav/gen5/text.h index d9ccd03..70042e3 100644 --- a/libpksav/include/pksav/gen5/text.h +++ b/libpksav/include/pksav/gen5/text.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/gen5/text.h - * @ingroup PKSav - * @brief Conversions between C strings and the string formats used in Generation V games. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -28,34 +24,15 @@ extern "C" { * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_buffer Generation V string - * \param output_text output buffer in which to place converted text - * \param num_chars the number of characters to convert - * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL - */ -PKSAV_API pksav_error_t pksav_text_from_gen5( - const uint16_t* input_buffer, - char* output_text, - size_t num_chars -); - -//! Convert a string from the given generation's format to a wide-character C string -/*! - * In Generation V, strings are stored in Unicode. - * - * Both buffers passed into the function must be at least the length passed - * in the num_chars parameter, or it will result in undefined behavior. - * - * \param input_buffer Generation V string - * \param output_text output buffer in which to place converted text + * \param p_input_buffer Generation V string + * \param p_output_text output buffer in which to place converted text * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_buffer or p_output_text is NULL */ -PKSAV_API pksav_error_t pksav_widetext_from_gen5( - const uint16_t* input_buffer, - wchar_t* output_text, +PKSAV_API enum pksav_error pksav_gen5_import_text( + const uint16_t* p_input_buffer, + char* p_output_text, size_t num_chars ); @@ -66,34 +43,15 @@ PKSAV_API pksav_error_t pksav_widetext_from_gen5( * Both buffers passed into the function must be at least the length passed * in the num_chars parameter, or it will result in undefined behavior. * - * \param input_text C string to convert - * \param output_buffer output buffer in which to place converted text - * \param num_chars the number of characters to convert - * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL - */ -PKSAV_API pksav_error_t pksav_text_to_gen5( - const char* input_text, - uint16_t* output_buffer, - size_t num_chars -); - -//! Convert a wide-character C string to a string in Generation V's format -/*! - * In Generation V, strings are stored in Unicode. - * - * Both buffers passed into the function must be at least the length passed - * in the num_chars parameter, or it will result in undefined behavior. - * - * \param input_text C string to convert - * \param output_buffer output buffer in which to place converted text + * \param p_input_text C string to convert + * \param p_output_buffer output buffer in which to place converted text * \param num_chars the number of characters to convert * \returns PKSAV_ERROR_NONE upon success - * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + * \returns PKSAV_ERROR_NULL_POINTER if p_input_text or p_output_buffer is NULL */ -PKSAV_API pksav_error_t pksav_widetext_to_gen5( - const wchar_t* input_text, - uint16_t* output_buffer, +PKSAV_API enum pksav_error pksav_gen5_export_text( + const char* p_input_text, + uint16_t* p_output_buffer, size_t num_chars ); diff --git a/libpksav/include/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/include/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/include/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/include/pksav/math/Makefile b/libpksav/include/pksav/math/Makefile index 103af57..5aedfcd 100644 --- a/libpksav/include/pksav/math/Makefile +++ b/libpksav/include/pksav/math/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/math//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/include/pksav/math//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/include/pksav/math/base256.h b/libpksav/include/pksav/math/base256.h index 0a0b1e0..b3b5d08 100644 --- a/libpksav/include/pksav/math/base256.h +++ b/libpksav/include/pksav/math/base256.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/math/base256.h - * @ingroup PKSav - * @brief Conversions between Base-10 and Base-256 numbers. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -29,10 +25,10 @@ extern "C" { * \returns PKSAV_ERROR_NONE upon success * \returns PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL */ -PKSAV_API pksav_error_t pksav_from_base256( - const uint8_t* buffer, +PKSAV_API enum pksav_error pksav_import_base256( + const uint8_t* p_buffer, size_t num_bytes, - uint32_t* result_out + size_t* p_result_out ); //! Convert a Base-10 number to Base-256. @@ -43,9 +39,9 @@ PKSAV_API pksav_error_t pksav_from_base256( * \returns PKSAV_ERROR_NONE upon success * \returns PKSAV_ERROR_NULL_POINTER if buffer_out is NULL */ -PKSAV_API pksav_error_t pksav_to_base256( - uint32_t num, - uint8_t* buffer_out, +PKSAV_API enum pksav_error pksav_export_base256( + size_t num, + uint8_t* p_buffer_out, size_t buffer_size ); diff --git a/libpksav/include/pksav/math/bcd.h b/libpksav/include/pksav/math/bcd.h index f2cc4aa..07328d1 100644 --- a/libpksav/include/pksav/math/bcd.h +++ b/libpksav/include/pksav/math/bcd.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/math/bcd.h - * @ingroup PKSav - * @brief Conversions between Base-10 and binary-coded decimal (BCD) numbers. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -29,10 +25,10 @@ extern "C" { * \returns PKSAV_ERROR_NONE upon success * \returns PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL */ -PKSAV_API pksav_error_t pksav_from_bcd( - const uint8_t* buffer, +PKSAV_API enum pksav_error pksav_import_bcd( + const uint8_t* p_buffer, size_t num_bytes, - uint32_t* result_out + size_t* p_result_out ); //! Convert a Base-10 number to binary-coded decimal (BCD). @@ -42,9 +38,10 @@ PKSAV_API pksav_error_t pksav_from_bcd( * \returns PKSAV_ERROR_NONE upon success * \returns PKSAV_ERROR_NULL_POINTER if buffer_out is NULL */ -PKSAV_API pksav_error_t pksav_to_bcd( - uint32_t num, - uint8_t* buffer_out +PKSAV_API enum pksav_error pksav_export_bcd( + size_t num, + uint8_t* p_buffer_out, + size_t buffer_size ); #ifdef __cplusplus diff --git a/libpksav/include/pksav/math/cmake_install.cmake b/libpksav/include/pksav/math/cmake_install.cmake index f1a6d73..8caa3eb 100644 --- a/libpksav/include/pksav/math/cmake_install.cmake +++ b/libpksav/include/pksav/math/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/math +# Install script for directory: /Users/spencer/Projects/pksav-sv/include/pksav/math # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -39,9 +39,9 @@ endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/math" TYPE FILE FILES - "/Users/spencer/Projects/pksav/include/pksav/math/base256.h" - "/Users/spencer/Projects/pksav/include/pksav/math/bcd.h" - "/Users/spencer/Projects/pksav/include/pksav/math/endian.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/math/base256.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/math/bcd.h" + "/Users/spencer/Projects/pksav-sv/include/pksav/math/endian.h" ) endif() diff --git a/libpksav/include/pksav/math/endian.h b/libpksav/include/pksav/math/endian.h index 75f2af1..39284e7 100644 --- a/libpksav/include/pksav/math/endian.h +++ b/libpksav/include/pksav/math/endian.h @@ -1,9 +1,5 @@ -/*! - * @file pksav/math/endian.h - * @ingroup PKSav - * @brief Endianness (byte-ordering) conversions. - * - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -39,24 +35,15 @@ extern "C" { #endif -/*! - * @brief Swaps the endianness (byte ordering) of a 16-bit number. - * - * When possible, this function uses an optimized version of this - * operation provided by the operating system. - */ -static PKSAV_INLINE uint16_t pksav_byteswap16(uint16_t num) { - return PKSAV_BYTESWAP16(num); -} - /*! * @brief Swaps the endianness of a given 16-bit number to/from big-endian. * * On big-endian platforms, this simply returns the given number. */ -static PKSAV_INLINE uint16_t pksav_bigendian16(uint16_t num) { +static inline uint16_t pksav_bigendian16(uint16_t num) +{ #if PKSAV_LITTLE_ENDIAN - return pksav_byteswap16(num); + return PKSAV_BYTESWAP16(num); #else return num; #endif @@ -67,32 +54,24 @@ static PKSAV_INLINE uint16_t pksav_bigendian16(uint16_t num) { * * On little-endian platforms, this simply returns the given number. */ -static PKSAV_INLINE uint16_t pksav_littleendian16(uint16_t num) { +static inline uint16_t pksav_littleendian16(uint16_t num) +{ #if PKSAV_LITTLE_ENDIAN return num; #else - return pksav_byteswap16(num); + return PKSAV_BYTESWAP16(num); #endif } -/*! - * @brief Swaps the endianness (byte ordering) of a 32-bit number. - * - * When possible, this function uses an optimized version of this - * operation provided by the operating system. - */ -static PKSAV_INLINE uint32_t pksav_byteswap32(uint32_t num) { - return PKSAV_BYTESWAP32(num); -} - /*! * @brief Swaps the endianness of a given 32-bit number to/from big-endian. * * On big-endian platforms, this simply returns the given number. */ -static PKSAV_INLINE uint32_t pksav_bigendian32(uint32_t num) { +static inline uint32_t pksav_bigendian32(uint32_t num) +{ #if PKSAV_LITTLE_ENDIAN - return pksav_byteswap32(num); + return PKSAV_BYTESWAP32(num); #else return num; #endif @@ -103,11 +82,12 @@ static PKSAV_INLINE uint32_t pksav_bigendian32(uint32_t num) { * * On little-endian platforms, this simply returns the given number. */ -static PKSAV_INLINE uint32_t pksav_littleendian32(uint32_t num) { +static inline uint32_t pksav_littleendian32(uint32_t num) +{ #if PKSAV_LITTLE_ENDIAN return num; #else - return pksav_byteswap32(num); + return PKSAV_BYTESWAP32(num); #endif } diff --git a/libpksav/include/pksav/version.h b/libpksav/include/pksav/version.h index f03ac2b..65f1a02 100644 --- a/libpksav/include/pksav/version.h +++ b/libpksav/include/pksav/version.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -21,9 +21,9 @@ * * This number is incremented with new feature support, usually the addition * of a new generation of games or adding features to an existing component. - * Existing API is guaranteed to be compatible, but ABI may not be compatible. + * Existing ABI may be compatible but is not guaranteed. */ -#define PKSAV_VERSION_MINOR 7 +#define PKSAV_VERSION_MINOR 999 /*! * @brief PKSav patch version. @@ -31,10 +31,10 @@ * This number is incremented when a significant set of bugfixes is added * without breaking ABI compatibility. */ -#define PKSAV_VERSION_PATCH 5 +#define PKSAV_VERSION_PATCH 999 //! A string literal representing PKSav's full version. -#define PKSAV_VERSION "1.7.5" +#define PKSAV_VERSION "1.999.999" /*! * @brief An integer representation of PKSav's full version. @@ -43,6 +43,6 @@ * * (X * 1000000) + (Y * 1000) + Z */ -#define PKSAV_VERSION_NUMBER 1007005 +#define PKSAV_VERSION_NUMBER 1999999 #endif /* PKSAV_VERSION_H */ diff --git a/libpksav/include/pksav/version.h.in b/libpksav/include/pksav/version.h.in index af35a23..69be5a1 100644 --- a/libpksav/include/pksav/version.h.in +++ b/libpksav/include/pksav/version.h.in @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -21,7 +21,7 @@ * * This number is incremented with new feature support, usually the addition * of a new generation of games or adding features to an existing component. - * Existing API is guaranteed to be compatible, but ABI may not be compatible. + * Existing ABI may be compatible but is not guaranteed. */ #define PKSAV_VERSION_MINOR @PKSAV_VERSION_MINOR@ diff --git a/libpksav/include_bak/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/CMakeFiles/progress.marks b/libpksav/include_bak/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/CMakeLists.txt b/libpksav/include_bak/CMakeLists.txt new file mode 100644 index 0000000..d7330a2 --- /dev/null +++ b/libpksav/include_bak/CMakeLists.txt @@ -0,0 +1,16 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +IF(NOT PKSAV_DONT_INSTALL_HEADERS) + INSTALL( + FILES pksav.h + DESTINATION ${INCLUDE_DIR} + COMPONENT Headers + ) +ENDIF(NOT PKSAV_DONT_INSTALL_HEADERS) + +ADD_SUBDIRECTORY(pksav) diff --git a/libpksav/include_bak/Makefile b/libpksav/include_bak/Makefile new file mode 100644 index 0000000..ee01cad --- /dev/null +++ b/libpksav/include_bak/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/cmake_install.cmake b/libpksav/include_bak/cmake_install.cmake new file mode 100644 index 0000000..d8ea393 --- /dev/null +++ b/libpksav/include_bak/cmake_install.cmake @@ -0,0 +1,49 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include" TYPE FILE FILES "/Users/spencer/Projects/pksav/include/pksav.h") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/Users/spencer/Projects/pksav/include/pksav/cmake_install.cmake") + +endif() + diff --git a/libpksav/include_bak/pksav.h b/libpksav/include_bak/pksav.h new file mode 100644 index 0000000..e9ecfa3 --- /dev/null +++ b/libpksav/include_bak/pksav.h @@ -0,0 +1,42 @@ +/*! + * @file pksav.h + * @ingroup PKSav + * @brief Global include file, includes all PKSav headers. + * + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_H +#define PKSAV_H + +#include + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include + +#endif /* PKSAV_H */ diff --git a/libpksav/include_bak/pksav/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/CMakeLists.txt b/libpksav/include_bak/pksav/CMakeLists.txt new file mode 100644 index 0000000..1929b3c --- /dev/null +++ b/libpksav/include_bak/pksav/CMakeLists.txt @@ -0,0 +1,48 @@ +# +# Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in + ${CMAKE_CURRENT_BINARY_DIR}/config.h +@ONLY) + +# +# Create version header based on CMake variables +# +MATH(EXPR PKSAV_VERSION_NUMBER "(${PKSAV_VERSION_MAJOR} * 1000000) + + (${PKSAV_VERSION_MINOR} * 1000) + + ${PKSAV_VERSION_PATCH}") + +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/version.h.in + ${CMAKE_CURRENT_BINARY_DIR}/version.h +@ONLY) + +IF(NOT PKSAV_DONT_INSTALL_HEADERS) + SET(pksav_headers + error.h + ${CMAKE_CURRENT_BINARY_DIR}/config.h + ${CMAKE_CURRENT_BINARY_DIR}/version.h + gen1.h + gen2.h + gba.h + ) + + ADD_SUBDIRECTORY(common) + ADD_SUBDIRECTORY(math) + ADD_SUBDIRECTORY(gen1) + ADD_SUBDIRECTORY(gen2) + ADD_SUBDIRECTORY(gba) + ADD_SUBDIRECTORY(gen4) + ADD_SUBDIRECTORY(gen5) + + INSTALL( + FILES ${pksav_headers} + DESTINATION ${INCLUDE_DIR}/pksav + COMPONENT Headers + ) +ENDIF(NOT PKSAV_DONT_INSTALL_HEADERS) diff --git a/libpksav/include_bak/pksav/Makefile b/libpksav/include_bak/pksav/Makefile new file mode 100644 index 0000000..66043e8 --- /dev/null +++ b/libpksav/include_bak/pksav/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/cmake_install.cmake b/libpksav/include_bak/pksav/cmake_install.cmake new file mode 100644 index 0000000..3e25f3c --- /dev/null +++ b/libpksav/include_bak/pksav/cmake_install.cmake @@ -0,0 +1,62 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav" TYPE FILE FILES + "/Users/spencer/Projects/pksav/include/pksav/error.h" + "/Users/spencer/Projects/pksav/include/pksav/config.h" + "/Users/spencer/Projects/pksav/include/pksav/version.h" + "/Users/spencer/Projects/pksav/include/pksav/gen1.h" + "/Users/spencer/Projects/pksav/include/pksav/gen2.h" + "/Users/spencer/Projects/pksav/include/pksav/gba.h" + ) +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/Users/spencer/Projects/pksav/include/pksav/common/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/include/pksav/math/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/include/pksav/gen1/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/include/pksav/gen2/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/include/pksav/gba/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/include/pksav/gen4/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/include/pksav/gen5/cmake_install.cmake") + +endif() + diff --git a/libpksav/include_bak/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/common/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/common/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/common/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/common/CMakeLists.txt b/libpksav/include_bak/pksav/common/CMakeLists.txt new file mode 100644 index 0000000..8e69df6 --- /dev/null +++ b/libpksav/include_bak/pksav/common/CMakeLists.txt @@ -0,0 +1,30 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_common_headers + condition.h + contest_stats.h + coordinates.h + datetime.h + gen3_ribbons.h + gen4_encounter_type.h + item.h + markings.h + nature.h + nds_pokemon.h + pokedex.h + pokerus.h + prng.h + stats.h + trainer_id.h +) + +INSTALL( + FILES ${pksav_common_headers} + DESTINATION ${INCLUDE_DIR}/pksav/common + COMPONENT Headers +) diff --git a/libpksav/include_bak/pksav/common/Makefile b/libpksav/include_bak/pksav/common/Makefile new file mode 100644 index 0000000..541a9c9 --- /dev/null +++ b/libpksav/include_bak/pksav/common/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/common//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/common/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/common/cmake_install.cmake b/libpksav/include_bak/pksav/common/cmake_install.cmake new file mode 100644 index 0000000..f6efd87 --- /dev/null +++ b/libpksav/include_bak/pksav/common/cmake_install.cmake @@ -0,0 +1,59 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/common + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/common" TYPE FILE FILES + "/Users/spencer/Projects/pksav/include/pksav/common/condition.h" + "/Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h" + "/Users/spencer/Projects/pksav/include/pksav/common/coordinates.h" + "/Users/spencer/Projects/pksav/include/pksav/common/datetime.h" + "/Users/spencer/Projects/pksav/include/pksav/common/gen3_ribbons.h" + "/Users/spencer/Projects/pksav/include/pksav/common/gen4_encounter_type.h" + "/Users/spencer/Projects/pksav/include/pksav/common/item.h" + "/Users/spencer/Projects/pksav/include/pksav/common/markings.h" + "/Users/spencer/Projects/pksav/include/pksav/common/nature.h" + "/Users/spencer/Projects/pksav/include/pksav/common/nds_pokemon.h" + "/Users/spencer/Projects/pksav/include/pksav/common/pokedex.h" + "/Users/spencer/Projects/pksav/include/pksav/common/pokerus.h" + "/Users/spencer/Projects/pksav/include/pksav/common/prng.h" + "/Users/spencer/Projects/pksav/include/pksav/common/stats.h" + "/Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h" + ) +endif() + diff --git a/libpksav/include_bak/pksav/common/condition.h b/libpksav/include_bak/pksav/common/condition.h new file mode 100644 index 0000000..9ad6a42 --- /dev/null +++ b/libpksav/include_bak/pksav/common/condition.h @@ -0,0 +1,61 @@ +/*! + * @file pksav/common/condition.h + * @ingroup PKSav + * @brief Possible values for a Pokémon's status conditions. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_CONDITION_H +#define PKSAV_COMMON_CONDITION_H + +/*! + * @brief Valid values for a Pokémon's current condition in Generations I-II. + */ +typedef enum { + //! No status ailment. + PKSAV_GB_CONDITION_NONE = 0x00, + //! Sleep. + PKSAV_GB_CONDITION_ASLEEP = 0x04, + /*! + * @brief Poison. + * + * Bad Poison (inflicted by Toxic) is considered separate and is not reflected + * in this field. + */ + PKSAV_GB_CONDITION_POISON = 0x08, + //! Burn. + PKSAV_GB_CONDITION_BURN = 0x10, + //! Frozen. + PKSAV_GB_CONDITION_FROZEN = 0x20, + //! Paralysis. + PKSAV_GB_CONDITION_PARALYZ = 0x40 +} pksav_gb_condition_t; + +//! Valid values (with one mask) for a Pokémon's possible conditions in Generations III+. +typedef enum { + //! No status ailment. + PKSAV_CONDITION_NONE = 0, + /*! + * @brief Sleep mask. + * + * This condition differs from the others in that this field stores how + * many turns (0-7) are left for the Pokémon to sleep instead of the + * Pokémon simply having the condition. + */ + PKSAV_CONDITION_SLEEP_MASK = 0x7, + //! Poison. + PKSAV_CONDITION_POISON = (1 << 3), + //! Burn. + PKSAV_CONDITION_BURN = (1 << 4), + //! Frozen. + PKSAV_CONDITION_FROZEN = (1 << 5), + //! Paralysis. + PKSAV_CONDITION_PARALYZ = (1 << 6), + //! Bad poison (from Toxic, etc). + PKSAV_CONDITION_BAD_POISON = (1 << 7) +} pksav_condition_mask_t; + +#endif /* PKSAV_COMMON_CONDITION_H */ diff --git a/libpksav/include_bak/pksav/common/contest_stats.h b/libpksav/include_bak/pksav/common/contest_stats.h new file mode 100644 index 0000000..490a5b4 --- /dev/null +++ b/libpksav/include_bak/pksav/common/contest_stats.h @@ -0,0 +1,40 @@ +/*! + * @file pksav/common/contest_stats.h + * @ingroup PKSav + * @brief Native format for storing a Pokémon's contest stats. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_CONTEST_STATS_H +#define PKSAV_COMMON_CONTEST_STATS_H + +#include + +#pragma pack(push,1) + +//! Native format for storing a Pokémon's contest stats. +typedef struct { + //! Coolness. + uint8_t cool; + //! Beauty. + uint8_t beauty; + //! Cuteness. + uint8_t cute; + //! Smartness. + uint8_t smart; + //! Toughness. + uint8_t tough; + union { + //! Feel (Generation IV only). + uint8_t feel; + //! Sheen (Generation V+). + uint8_t sheen; + }; +} pksav_contest_stats_t; + +#pragma pack(pop) + +#endif /* PKSAV_COMMON_CONTEST_STATS_H */ diff --git a/libpksav/include/pksav/common/coordinates.h b/libpksav/include_bak/pksav/common/coordinates.h similarity index 100% rename from libpksav/include/pksav/common/coordinates.h rename to libpksav/include_bak/pksav/common/coordinates.h diff --git a/libpksav/include/pksav/common/datetime.h b/libpksav/include_bak/pksav/common/datetime.h similarity index 100% rename from libpksav/include/pksav/common/datetime.h rename to libpksav/include_bak/pksav/common/datetime.h diff --git a/libpksav/include/pksav/common/gen3_ribbons.h b/libpksav/include_bak/pksav/common/gen3_ribbons.h similarity index 100% rename from libpksav/include/pksav/common/gen3_ribbons.h rename to libpksav/include_bak/pksav/common/gen3_ribbons.h diff --git a/libpksav/include/pksav/common/gen4_encounter_type.h b/libpksav/include_bak/pksav/common/gen4_encounter_type.h similarity index 100% rename from libpksav/include/pksav/common/gen4_encounter_type.h rename to libpksav/include_bak/pksav/common/gen4_encounter_type.h diff --git a/libpksav/include_bak/pksav/common/item.h b/libpksav/include_bak/pksav/common/item.h new file mode 100644 index 0000000..a704e96 --- /dev/null +++ b/libpksav/include_bak/pksav/common/item.h @@ -0,0 +1,38 @@ +/*! + * @file pksav/common/item.h + * @ingroup PKSav + * @brief Native format for storing an item in Generation III-VI games. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_ITEM_H +#define PKSAV_COMMON_ITEM_H + +#include + +#pragma pack(push,1) + +//! Native format for storing an item in Generation III-IV games. +typedef struct { + /*! + * @brief Which item is stored in this slot. + * + * This value is stored in little-endian, so the function ::pksav_littleendian16 + * should be used to access and modify it. + */ + uint16_t index; + /*! + * @brief How many of the given item are stored in this slot. + * + * This value is stored in little-endian, so the function ::pksav_littleendian16 + * should be used to access and modify it. + */ + uint16_t count; +} pksav_item_t; + +#pragma pack(pop) + +#endif /* PKSAV_COMMON_ITEM_H */ diff --git a/libpksav/include_bak/pksav/common/markings.h b/libpksav/include_bak/pksav/common/markings.h new file mode 100644 index 0000000..d82372e --- /dev/null +++ b/libpksav/include_bak/pksav/common/markings.h @@ -0,0 +1,35 @@ +/*! + * @file pksav/common/markings.h + * @ingroup PKSav + * @brief Native format for storing a Pokémon's markings. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_MARKINGS_H +#define PKSAV_COMMON_MARKINGS_H + +/*! + * @brief Masks for getting/setting Pokémon markings. + * + * Markings have no functional use and only serve to help the + * trainer categorize their Pokémon. + */ +typedef enum { + //! Circle mask. + PKSAV_MARKING_CIRCLE = 0x01, + //! Triangle mask. + PKSAV_MARKING_TRIANGLE = 0x02, + //! Square mask. + PKSAV_MARKING_SQUARE = 0x04, + //! Heart mask. + PKSAV_MARKING_HEART = 0x08, + //! Star mask (Generation IV+). + PKSAV_MARKING_STAR = 0x10, + //! Diamond mask (Generation IV+). + PKSAV_MARKING_DIAMOND = 0x20, +} pksav_marking_t; + +#endif /* PKSAV_COMMON_MARKINGS_H */ diff --git a/libpksav/include_bak/pksav/common/nature.h b/libpksav/include_bak/pksav/common/nature.h new file mode 100644 index 0000000..959ea19 --- /dev/null +++ b/libpksav/include_bak/pksav/common/nature.h @@ -0,0 +1,68 @@ +/*! + * @file pksav/common/nature.h + * @ingroup PKSav + * @brief Nature indices. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_NATURE_H +#define PKSAV_COMMON_NATURE_H + +//! Nature indices. +typedef enum { + //! Hardy. + PKSAV_NATURE_HARDY = 0, + //! Lonely. + PKSAV_NATURE_LONELY, + //! Brave. + PKSAV_NATURE_BRAVE, + //! Adamant. + PKSAV_NATURE_ADAMANT, + //! Naughty. + PKSAV_NATURE_NAUGHTY, + //! Bold. + PKSAV_NATURE_BOLD, + //! Docile. + PKSAV_NATURE_DOCILE, + //! Relaxed. + PKSAV_NATURE_RELAXED, + //! Impish. + PKSAV_NATURE_IMPISH, + //! Lax. + PKSAV_NATURE_LAX, + //! Timid. + PKSAV_NATURE_TIMID, + //! Hasty. + PKSAV_NATURE_HASTY, + //! Serious. + PKSAV_NATURE_SERIOUS, + //! Jolly. + PKSAV_NATURE_JOLLY, + //! Naive. + PKSAV_NATURE_NAIVE, + //! Modest. + PKSAV_NATURE_MODEST, + //! Mild. + PKSAV_NATURE_MILD, + //! Quiet. + PKSAV_NATURE_QUIET, + //! Bashful. + PKSAV_NATURE_BASHFUL, + //! Rash. + PKSAV_NATURE_RASH, + //! Calm. + PKSAV_NATURE_CALM, + //! Gentle. + PKSAV_NATURE_GENTLE, + //! Sassy. + PKSAV_NATURE_SASSY, + //! Careful. + PKSAV_NATURE_CAREFUL, + //! Quirky. + PKSAV_NATURE_QUIRKY +} pksav_nature_t; + +#endif /* PKSAV_COMMON_NATURE_H */ diff --git a/libpksav/include/pksav/common/nds_pokemon.h b/libpksav/include_bak/pksav/common/nds_pokemon.h similarity index 100% rename from libpksav/include/pksav/common/nds_pokemon.h rename to libpksav/include_bak/pksav/common/nds_pokemon.h diff --git a/libpksav/include_bak/pksav/common/pokedex.h b/libpksav/include_bak/pksav/common/pokedex.h new file mode 100644 index 0000000..59b0289 --- /dev/null +++ b/libpksav/include_bak/pksav/common/pokedex.h @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_POKEDEX_H +#define PKSAV_COMMON_POKEDEX_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/*! + * @brief Check if a given Pokémon has been seen/caught in the Pokédex's native representation. + * + * In a seen/caught buffer, each Pokémon is represented by a single bit. This + * function calculates which bit that is based on the National Pokédex number and + * checks it. + * + * \param raw Pokédex buffer + * \param pokedex_num Which Pokémon to check + * \param result_out where result is returned + * \returns if Pokémon with the given Pokédex number has been seen/caught + */ +PKSAV_API pksav_error_t pksav_get_pokedex_bit( + const uint8_t* raw, + uint16_t pokedex_num, + bool* result_out +); + +/*! + * @brief Set whether or not a given Pokémon has been seen/caught. + * + * In a seen/caught buffer, each Pokémon is represented by a single bit. This + * function calculates which bit that is based on the National Pokédex number and + * checks it. + * + * \param raw Pokédex buffer + * \param pokedex_num Which Pokémon to set or unset + * \param set Set whether or not Pokémon has been seen/caught + */ +PKSAV_API pksav_error_t pksav_set_pokedex_bit( + uint8_t* raw, + uint16_t pokedex_num, + bool set +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_COMMON_POKEDEX_H */ diff --git a/libpksav/include_bak/pksav/common/pokerus.h b/libpksav/include_bak/pksav/common/pokerus.h new file mode 100644 index 0000000..1d3dc63 --- /dev/null +++ b/libpksav/include_bak/pksav/common/pokerus.h @@ -0,0 +1,116 @@ +/*! + * @file pksav/common/pokerus.h + * @ingroup PKSav + * @brief Functions for getting and setting Pokérus values. + * + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_POKERUS_H +#define PKSAV_COMMON_POKERUS_H + +#include + +#include + +typedef enum { + PKSAV_POKERUS_STRAIN_A = 0, + PKSAV_POKERUS_STRAIN_B, + PKSAV_POKERUS_STRAIN_C, + PKSAV_POKERUS_STRAIN_D +} pksav_pokerus_strain_t; + +#define PKSAV_POKERUS_STRAIN_MASK ((uint8_t)0xF0) +#define PKSAV_POKERUS_DURATION_MASK ((uint8_t)0x0F) + +#ifdef __cplusplus +extern "C" { +#endif + +static PKSAV_INLINE pksav_error_t pksav_pokerus_get_strain( + const uint8_t* pokerus_ptr, + pksav_pokerus_strain_t* strain_out +) +{ + if(!pokerus_ptr) + { + return PKSAV_ERROR_NULL_POINTER; + } + if(!strain_out) + { + return PKSAV_ERROR_NULL_POINTER; + } + + *strain_out = (pksav_pokerus_strain_t)((((*pokerus_ptr) & PKSAV_POKERUS_STRAIN_MASK) >> 4) % 4); + + return PKSAV_ERROR_NONE; +} + +static PKSAV_INLINE pksav_error_t pksav_pokerus_set_strain( + uint8_t* pokerus_ptr, + pksav_pokerus_strain_t strain +) +{ + if(!pokerus_ptr) + { + return PKSAV_ERROR_NULL_POINTER; + } + + *pokerus_ptr = (strain << 4) | ((strain % 4) + 1); + + return PKSAV_ERROR_NONE; +} + +static PKSAV_INLINE pksav_error_t pksav_pokerus_get_duration( + const uint8_t* pokerus_ptr, + uint8_t* duration_out +) +{ + if(!pokerus_ptr) + { + return PKSAV_ERROR_NULL_POINTER; + } + if(!duration_out) + { + return PKSAV_ERROR_NULL_POINTER; + } + + *duration_out = ((*pokerus_ptr) & PKSAV_POKERUS_DURATION_MASK); + + return PKSAV_ERROR_NONE; +} + +static PKSAV_INLINE pksav_error_t pksav_pokerus_set_duration( + uint8_t* pokerus_ptr, + uint8_t duration +) +{ + if(!pokerus_ptr) + { + return PKSAV_ERROR_NULL_POINTER; + } + if(duration > 15) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + + *pokerus_ptr &= ~PKSAV_POKERUS_DURATION_MASK; + *pokerus_ptr |= duration; + + // Adjust the strain if the duration is incompatible. + if(duration >= 12) + { + *pokerus_ptr &= ~PKSAV_POKERUS_STRAIN_MASK; + *pokerus_ptr |= ((duration % 4) << 4); + } + + return PKSAV_ERROR_NONE; +} + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_COMMON_POKERUS_H */ diff --git a/libpksav/include/pksav/common/prng.h b/libpksav/include_bak/pksav/common/prng.h similarity index 100% rename from libpksav/include/pksav/common/prng.h rename to libpksav/include_bak/pksav/common/prng.h diff --git a/libpksav/include_bak/pksav/common/stats.h b/libpksav/include_bak/pksav/common/stats.h new file mode 100644 index 0000000..8a4dc68 --- /dev/null +++ b/libpksav/include_bak/pksav/common/stats.h @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_STATS_H +#define PKSAV_COMMON_STATS_H + +#include +#include + +#include + +typedef enum { + PKSAV_STAT_NONE = 0, + PKSAV_STAT_HP, + PKSAV_STAT_ATTACK, + PKSAV_STAT_DEFENSE, + PKSAV_STAT_SPATK, + PKSAV_STAT_SPDEF, + PKSAV_STAT_SPEED, + PKSAV_STAT_SPECIAL = 9 +} pksav_battle_stat_t; + +#ifdef __cplusplus +extern "C" { +#endif + +PKSAV_API pksav_error_t pksav_get_gb_IV( + const uint16_t* raw, + pksav_battle_stat_t stat, + uint8_t* IV_out +); + +PKSAV_API pksav_error_t pksav_set_gb_IV( + uint16_t* raw, + pksav_battle_stat_t stat, + uint8_t new_IV +); + +PKSAV_API pksav_error_t pksav_get_IV( + const uint32_t* raw, + pksav_battle_stat_t stat, + uint8_t* IV_out +); + +PKSAV_API pksav_error_t pksav_set_IV( + uint32_t* raw, + pksav_battle_stat_t stat, + uint8_t new_IV +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_COMMON_STATS_H */ diff --git a/libpksav/include_bak/pksav/common/trainer_id.h b/libpksav/include_bak/pksav/common/trainer_id.h new file mode 100644 index 0000000..f500100 --- /dev/null +++ b/libpksav/include_bak/pksav/common/trainer_id.h @@ -0,0 +1,55 @@ +/*! + * @file pksav/common/trainer_id.h + * @ingroup PKSav + * @brief Native storage for a Pokémon trainer's in-game ID. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_TRAINER_ID_H +#define PKSAV_COMMON_TRAINER_ID_H + +#include + +#pragma pack(push,1) + +//! Native storage for a Pokémon trainer's in-game ID (Generation III+). +typedef union { + //! Convenience struct to allow individual access to secret and public IDs. + struct { + /*! + * @brief Public ID. + * + * This is the value shown in-game. + * + * This value is stored in little-endian and should be accessed and + * modified with ::pksav_littleendian16. + */ + uint16_t pid; + /*! + * @brief Secret ID. + * + * This value is never shown in-game and exists to prevent + * ID collision, as many more than 65536 people play these games. + * + * This value is stored in little-endian and should be accessed and + * modified with ::pksav_littleendian16. + */ + uint16_t sid; + }; + /*! + * @brief Full ID. + * + * This value is never shown in-game. + * + * This value is stored in little-endian and should be accessed and + * modified with ::pksav_littleendian32. + */ + uint32_t id; +} pksav_trainer_id_t; + +#pragma pack(pop) + +#endif /* PKSAV_COMMON_TRAINER_ID_H */ diff --git a/libpksav/include_bak/pksav/config.h b/libpksav/include_bak/pksav/config.h new file mode 100644 index 0000000..25198aa --- /dev/null +++ b/libpksav/include_bak/pksav/config.h @@ -0,0 +1,65 @@ +/*! + * @file pksav/config.h + * @ingroup PKSav + * @brief Platform-defining and platform-agnostic macros. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_CONFIG_H +#define PKSAV_CONFIG_H + +/*************************************************************************** + * Define cross-platform macros, platform-specific stuff + ***************************************************************************/ +#if defined(_MSC_VER) +# define PKSAV_EXPORT __declspec(dllexport) +# define PKSAV_IMPORT __declspec(dllimport) +# define PKSAV_INLINE __forceinline +# define PKSAV_UNUSED(x) x +# pragma warning(disable: 4800) // forcing value to bool 'true' or 'false' + +// MSVC doesn't have ssize_t for C, so we need to define it +#include +typedef intmax_t ssize_t; + +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PKSAV_EXPORT __attribute__((visibility("default"))) +# define PKSAV_IMPORT __attribute__((visibility("default"))) +# define PKSAV_INLINE inline __attribute__((always_inline)) +# define PKSAV_UNUSED(x) x __attribute__((unused)) +#else +# define PKSAV_EXPORT +# define PKSAV_IMPORT +# define PKSAV_INLINE inline +# define PKSAV_UNUSED(x) x +#endif + +#ifdef PKSAV_DLL_EXPORTS +# define PKSAV_API PKSAV_EXPORT +#else +# define PKSAV_API PKSAV_IMPORT +#endif + +#if defined(linux) || defined(__linux) || defined(__linux__) +# define PKSAV_PLATFORM_LINUX +#elif defined(__MINGW32__) || defined(MINGW32) +# define PKSAV_PLATFORM_MINGW +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PKSAV_PLATFORM_WIN32 +#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) +# define PKSAV_PLATFORM_MACOS +#endif + +/* + * Determined at compile-time, do not change! + */ + +/* #undef PKSAV_BIG_ENDIAN */ +#define PKSAV_LITTLE_ENDIAN 1 + +#define HAVE_UNISTD_H 1 + +#endif /* PKSAV_CONFIG_H */ diff --git a/libpksav/include_bak/pksav/config.h.in b/libpksav/include_bak/pksav/config.h.in new file mode 100644 index 0000000..e8248fa --- /dev/null +++ b/libpksav/include_bak/pksav/config.h.in @@ -0,0 +1,65 @@ +/*! + * @file pksav/config.h + * @ingroup PKSav + * @brief Platform-defining and platform-agnostic macros. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_CONFIG_H +#define PKSAV_CONFIG_H + +/*************************************************************************** + * Define cross-platform macros, platform-specific stuff + ***************************************************************************/ +#if defined(_MSC_VER) +# define PKSAV_EXPORT __declspec(dllexport) +# define PKSAV_IMPORT __declspec(dllimport) +# define PKSAV_INLINE __forceinline +# define PKSAV_UNUSED(x) x +# pragma warning(disable: 4800) // forcing value to bool 'true' or 'false' + +// MSVC doesn't have ssize_t for C, so we need to define it +#include +typedef intmax_t ssize_t; + +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PKSAV_EXPORT __attribute__((visibility("default"))) +# define PKSAV_IMPORT __attribute__((visibility("default"))) +# define PKSAV_INLINE inline __attribute__((always_inline)) +# define PKSAV_UNUSED(x) x __attribute__((unused)) +#else +# define PKSAV_EXPORT +# define PKSAV_IMPORT +# define PKSAV_INLINE inline +# define PKSAV_UNUSED(x) x +#endif + +#ifdef PKSAV_DLL_EXPORTS +# define PKSAV_API PKSAV_EXPORT +#else +# define PKSAV_API PKSAV_IMPORT +#endif + +#if defined(linux) || defined(__linux) || defined(__linux__) +# define PKSAV_PLATFORM_LINUX +#elif defined(__MINGW32__) || defined(MINGW32) +# define PKSAV_PLATFORM_MINGW +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PKSAV_PLATFORM_WIN32 +#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) +# define PKSAV_PLATFORM_MACOS +#endif + +/* + * Determined at compile-time, do not change! + */ + +#cmakedefine PKSAV_BIG_ENDIAN 1 +#cmakedefine PKSAV_LITTLE_ENDIAN 1 + +#cmakedefine HAVE_UNISTD_H 1 + +#endif /* PKSAV_CONFIG_H */ diff --git a/libpksav/include_bak/pksav/error.h b/libpksav/include_bak/pksav/error.h new file mode 100644 index 0000000..7b44236 --- /dev/null +++ b/libpksav/include_bak/pksav/error.h @@ -0,0 +1,49 @@ +/*! + * @file pksav/error.h + * @ingroup PKSav + * @brief Error codes returned from PKSav functions. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_ERROR_H +#define PKSAV_ERROR_H + +#include + +typedef enum { + //! Function completed with no error + PKSAV_ERROR_NONE = 0, + //! A problem occurred reading/writing a save file + PKSAV_ERROR_FILE_IO, + //! A numeric parameter passed into the function was outside the valid range + PKSAV_ERROR_PARAM_OUT_OF_RANGE, + //! The given stat did not exist in the given generation + /*! + * The "Special Attack" and "Special Defense" stat was introduced in Generation II, + * so passing these values into a function corresponding to Generation I will + * produce this error. + */ + PKSAV_ERROR_INVALID_STAT, + //! The filepath passed in the function is not a valid save file for the given generation. + PKSAV_ERROR_INVALID_SAVE, + //! A null pointer was passed as a parameter. + PKSAV_ERROR_NULL_POINTER +} pksav_error_t; + +#ifdef __cplusplus +extern "C" { +#endif + +//! Returns a string corresponding to the given error code +PKSAV_API const char* pksav_strerror( + pksav_error_t error_code +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_ERROR_H */ diff --git a/libpksav/include_bak/pksav/gba.h b/libpksav/include_bak/pksav/gba.h new file mode 100644 index 0000000..919a837 --- /dev/null +++ b/libpksav/include_bak/pksav/gba.h @@ -0,0 +1,36 @@ +/*! + * @file pksav/gba.h + * @ingroup PKSav + * @brief Global Game Boy Advance include file. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_H +#define PKSAV_GBA_H + +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#endif /* PKSAV_GBA_H */ diff --git a/libpksav/include_bak/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/gba/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/gba/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/gba/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/gba/CMakeLists.txt b/libpksav/include_bak/pksav/gba/CMakeLists.txt new file mode 100644 index 0000000..b239de2 --- /dev/null +++ b/libpksav/include_bak/pksav/gba/CMakeLists.txt @@ -0,0 +1,20 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gba_headers + items.h + pokemon.h + save.h + save_structs.h + text.h +) + +INSTALL( + FILES ${pksav_gba_headers} + DESTINATION ${INCLUDE_DIR}/pksav/gba + COMPONENT Headers +) diff --git a/libpksav/include_bak/pksav/gba/Makefile b/libpksav/include_bak/pksav/gba/Makefile new file mode 100644 index 0000000..31b2bdd --- /dev/null +++ b/libpksav/include_bak/pksav/gba/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gba//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gba/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/gba/cmake_install.cmake b/libpksav/include_bak/pksav/gba/cmake_install.cmake new file mode 100644 index 0000000..c20cce6 --- /dev/null +++ b/libpksav/include_bak/pksav/gba/cmake_install.cmake @@ -0,0 +1,49 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gba + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gba" TYPE FILE FILES + "/Users/spencer/Projects/pksav/include/pksav/gba/items.h" + "/Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h" + "/Users/spencer/Projects/pksav/include/pksav/gba/save.h" + "/Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h" + "/Users/spencer/Projects/pksav/include/pksav/gba/text.h" + ) +endif() + diff --git a/libpksav/include_bak/pksav/gba/items.h b/libpksav/include_bak/pksav/gba/items.h new file mode 100644 index 0000000..1f9b03b --- /dev/null +++ b/libpksav/include_bak/pksav/gba/items.h @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_ITEMS_H +#define PKSAV_GBA_ITEMS_H + +#include + +#include + +#pragma pack(push,1) + +//! Internal represention of item storage in Pokémon Ruby/Sapphire. +typedef struct { + //! Items stored in the PC. + pksav_item_t pc_items[50]; + //! Items stored in the Items pocket. + pksav_item_t items[20]; + //! Items stored in the Key Items pocket. + pksav_item_t key_items[20]; + //! Items stored in the Poké Balls pocket. + pksav_item_t balls[16]; + //! Items stored in the TMs & HMs pocket. + pksav_item_t tms_hms[64]; + //! Items stored in the Berries pocket. + pksav_item_t berries[46]; +} pksav_rs_item_storage_t; + +//! Internal represention of item storage in Pokémon Emerald. +typedef struct { + //! Items stored in the PC. + pksav_item_t pc_items[50]; + //! Items stored in the Items pocket. + pksav_item_t items[30]; + //! Items stored in the Key Items pocket. + pksav_item_t key_items[30]; + //! Items stored in the Poké Balls pocket. + pksav_item_t balls[16]; + //! Items stored in the TMs & HMs pocket. + pksav_item_t tms_hms[64]; + //! Items stored in the Berries pocket. + pksav_item_t berries[46]; +} pksav_emerald_item_storage_t; + +//! Internal representation of item storage in Pokémon FireRed/LeafGreen. +typedef struct { + //! Items stored in the PC. + pksav_item_t pc_items[50]; + //! Items stored in the Items pocket. + pksav_item_t items[42]; + //! Items stored in the Key Items pocket. + pksav_item_t key_items[30]; + //! Items stored in the Poké Balls pocket. + pksav_item_t balls[13]; + //! Items stored in the TM Case. + pksav_item_t tms_hms[58]; + //! Items stored in the Berry Pouch. + pksav_item_t berries[43]; +} pksav_frlg_item_storage_t; + +/*! + * @brief A union of all three Game Boy Advance item storage structs. + * + * This allows a common interface to be used for all three structs. As + * nothing is stored in the same section after the item storage struct, + * this union is safe, despite the different sizes of each struct. + */ +typedef union { + //! Access to item storage in Pokémon Ruby/Sapphire. + pksav_rs_item_storage_t rs; + //! Access to item storage in Pokémon Emerald. + pksav_emerald_item_storage_t emerald; + //! Access to item storage in Pokémon FireRed/LeafGreen. + pksav_frlg_item_storage_t frlg; +} pksav_gba_item_storage_t; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_ITEMS_H */ diff --git a/libpksav/include_bak/pksav/gba/pokemon.h b/libpksav/include_bak/pksav/gba/pokemon.h new file mode 100644 index 0000000..89d0f32 --- /dev/null +++ b/libpksav/include_bak/pksav/gba/pokemon.h @@ -0,0 +1,512 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_POKEMON_H +#define PKSAV_GBA_POKEMON_H + +#include + +#include +#include + +#include + +/*! + * @brief The mask for determining if a Pokémon is an egg. + * + * Apply this mask to the pksav_gba_pokemon_misc_t.iv_egg_ability + * field to access or modify this bit. + */ +#define PKSAV_GBA_EGG_MASK (uint32_t)(1 << 30) + +/*! + * @brief The mask for determining which ability a Pokémon has. + * + * Apply this mask to the pksav_gba_pokemon_misc_t.iv_egg_ability + * field to access or modify this bit. + */ +#define PKSAV_GBA_ABILITY_MASK (uint32_t)(1 << 31) + +/*! + * @brief The mask for determining at which level a Pokémon was met. + * + * Apply this mask to the pksav_gba_pokemon_misc_t.origin_info + * field to access or modify this value. + */ +#define PKSAV_GBA_LEVEL_MET_MASK (uint16_t)(0x7F) + +/*! + * @brief The mask for determining a Pokémon's origin game. + * + * To access the value, apply the mask to the + * pksav_gba_pokemon_misc_t.origin_info field and shift the result + * right by ::PKSAV_GBA_ORIGIN_GAME_OFFSET. + * + * To modify the value, apply the inverse of the mask to the + * pksav_gba_pokemon_misc_t.origin_info field. Then shift the new + * value left by ::PKSAV_GBA_ORIGIN_GAME_OFFSET and perform a logical-or + * with this value and the field. + */ +#define PKSAV_GBA_ORIGIN_GAME_MASK (uint16_t)(0x780) + +/*! + * @brief The offset of the bits corresponding to a Pokémon's origin game in its bitfield. + * + * See ::PKSAV_GBA_ORIGIN_GAME_MASK for it usage. + */ +#define PKSAV_GBA_ORIGIN_GAME_OFFSET 7 + +/*! + * @brief The mask for determining which Poké Ball was used to catch a Pokémon. + * + * To access the value, apply the mask to the + * pksav_gba_pokemon_misc_t.origin_info field and shift the result + * right by ::PKSAV_GBA_BALL_OFFSET. + * + * To modify the value, apply the inverse of the mask to the + * pksav_gba_pokemon_misc_t.origin_info field. Then shift the new + * value left by ::PKSAV_GBA_BALL_OFFSET and perform a logical-or + * with this value and the field. + */ +#define PKSAV_GBA_BALL_MASK (uint16_t)(0x7800) + +/*! + * @brief The offset of the bits corresponding to a Pokémon's ball in its bitfield. + * + * See ::PKSAV_GBA_BALL_MASK for its usage. + */ +#define PKSAV_GBA_BALL_OFFSET 11 + +/*! + * @brief The mask for determining the gender of a Pokémon's original trainer. + * + * Apply this mask to the pksav_gba_pokemon_misc_t.origin_info + * field to access or modify this bit. + */ +#define PKSAV_GBA_OTGENDER_MASK (uint16_t)(1 << 15) + +/*! + * @brief The mask for determining which Coolness contests a Pokémon has won. + * + * The result is 3 bits that correspond to whether or not the Pokémon has won + * various levels of the Coolness contests, as follows: + * * Bit 3 (MSB): Cool Hyper/Ultra + * * Bit 2: Cool Super/Great + * * Bit 1 (LSB): Cool + * + * To access this value, apply this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field. + * + * To modify this value, apply the inverse of this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, then logical-or the + * result with the new value. + */ +#define PKSAV_GBA_COOL_MASK (uint32_t)(7) + +/*! + * @brief The mask for determining which Beauty contests a Pokémon has won. + * + * The result is 3 bits that correspond to whether or not the Pokémon has won + * various levels of the Beauty contests, as follows: + * * Bit 3 (MSB): Beauty Hyper/Ultra + * * Bit 2: Beauty Super/Great + * * Bit 1 (LSB): Beauty + * + * To access this value, apply this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right + * by ::PKSAV_GBA_BEAUTY_OFFSET. + * + * To modify this value, apply the inverse of this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left + * by ::PKSAV_GBA_BEAUTY_OFFSET, then logical-or the result with the field. + */ +#define PKSAV_GBA_BEAUTY_MASK (uint32_t)(7 << PKSAV_GBA_BEAUTY_OFFSET) + +/*! + * @brief The offset of the bits corresponding to which Beauty contests a Pokémon has won. + * + * See ::PKSAV_GBA_BEAUTY_MASK for its usage. + */ +#define PKSAV_GBA_BEAUTY_OFFSET 3 + +/*! + * @brief The mask for determining which Cuteness contests a Pokémon has won. + * + * The result is 3 bits that correspond to whether or not the Pokémon has won + * various levels of the Cute contests, as follows: + * * Bit 3 (MSB): Cute Hyper/Ultra + * * Bit 2: Cute Super/Great + * * Bit 1 (LSB): Cute + * + * To access this value, apply this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right + * by ::PKSAV_GBA_CUTE_OFFSET. + * + * To modify this value, apply the inverse of this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left + * by ::PKSAV_GBA_CUTE_OFFSET, then logical-or the result with the field. + */ +#define PKSAV_GBA_CUTE_MASK (uint32_t)(7 << PKSAV_GBA_CUTE_OFFSET) + +/*! + * @brief The offset of the bits corresponding to which Cuteness contests a Pokémon has won. + * + * See ::PKSAV_GBA_CUTE_MASK for its usage. + */ +#define PKSAV_GBA_CUTE_OFFSET 6 + +/*! + * @brief The mask for determining which Smartness contests a Pokémon has won. + * + * The result is 3 bits that correspond to whether or not the Pokémon has won + * various levels of the Smart contests, as follows: + * * Bit 3 (MSB): Smart Hyper/Ultra + * * Bit 2: Smart Super/Great + * * Bit 1 (LSB): Smart + * + * To access this value, apply this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right + * by ::PKSAV_GBA_SMART_OFFSET. + * + * To modify this value, apply the inverse of this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left + * by ::PKSAV_GBA_SMART_OFFSET, then logical-or the result with the field. + */ +#define PKSAV_GBA_SMART_MASK (uint32_t)(7 << PKSAV_GBA_SMART_OFFSET) + +/*! + * @brief The offset of the bits corresponding to which Smartness contests a Pokémon has won. + * + * See ::PKSAV_GBA_SMART_MASK for its usage. + */ +#define PKSAV_GBA_SMART_OFFSET 9 + +/*! + * @brief The mask for determining which Toughness contests a Pokémon has won. + * + * The result is 3 bits that correspond to whether or not the Pokémon has won + * various levels of the Tough contests, as follows: + * * Bit 3 (MSB): Tough Hyper/Ultra + * * Bit 2: Tough Super/Great + * * Bit 1 (LSB): Tough + * + * To access this value, apply this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, and shift the result right + * by ::PKSAV_GBA_TOUGH_OFFSET. + * + * To modify this value, apply the inverse of this mask to the + * pksav_gba_pokemon_misc_t.ribbons_obedience field, shift the new value left + * by ::PKSAV_GBA_TOUGH_OFFSET, then logical-or the result with the field. + */ +#define PKSAV_GBA_TOUGH_MASK (uint32_t)(7 << PKSAV_GBA_TOUGH_OFFSET) + +/*! + * @brief The offset of the bits corresponding to which Toughness contests a Pokémon has won. + * + * See ::PKSAV_GBA_TOUGH_MASK for its usage. + */ +#define PKSAV_GBA_TOUGH_OFFSET 12 + +/*! + * @brief The mask for determining whether a Mew or Deoxys will be obedient. + * + * If this bit is not set, a Mew or Deoxys will not listen to the player, no + * matter how many badges he/she has. This field has no effect in any other + * Pokémon. + * + * Apply this mask to the pksav_gba_pokemon_misc_t.ribbons_obedience field + * to modify this bit. + */ +#define PKSAV_GBA_OBEDIENCE_MASK (uint32_t)(1 << 31) + +#pragma pack(push,1) + +/*! + * @brief Internal representation of Pokémon statistics that increase + * with growth in a Game Boy Advance game. + */ +typedef struct { + /*! + * @brief The Pokémon's species index. + * + * The index may not correspond to its National Pokédex number. + * + * This value is stored in little-endian, so access and modify it with + * the function ::pksav_littleendian16. + */ + uint16_t species; + /*! + * @brief The index for the Pokémon's held item. + * + * If the Pokémon is not holding any item, this field will be set to 0. + * + * This value is stored in little-endian, so access and modify it with + * the function ::pksav_littleendian16. + */ + uint16_t held_item; + /*! + * @brief The Pokémon's experience. + * + * This value is stored in little-endian, so access and modify it with + * the function ::pksav_littleendian32. + */ + uint32_t exp; + /*! + * @brief The number of PP Ups used for each move, stored in a bitfield. + * + * A PP Max being used on a move automatically sets the value to 3. + * + * The bitfield is arranges as follows: + * * 0-1: Move 1 PP + * * 2-3: Move 2 PP + * * 4-5: Move 3 PP + * * 6-7: Move 4 PP + */ + uint8_t pp_up; + //! The Pokémon's happiness/friendship (0-255). + uint8_t friendship; + //! Unknown. + uint16_t unknown_0xA; +} pksav_gba_pokemon_growth_t; + +/*! + * @brief Internal representation of a Pokémon's moves and current PP in a + * Game Boy Advance game. + */ +typedef struct { + /*! + * @brief Indices of the Pokémon's moves. + * + * If a move slot does not have a move, its value will be 0. + * + * These values are stored in little-endian, so access and modify them + * with the function ::pksav_littleendian16. + */ + uint16_t moves[4]; + /*! + * @brief The PP for each of the Pokémon's moves. + * + * The maximum value for each slot is dependent on the move. + */ + uint8_t move_pps[4]; +} pksav_gba_pokemon_attacks_t; + +/*! + * @brief Internal representation of a Pokémon's EVs and contest stats + * in a Game Boy Advance game. + */ +typedef struct { + //! A Pokémon's HP EV. + uint8_t ev_hp; + //! A Pokémon's Attack EV. + uint8_t ev_atk; + //! A Pokémon's Defense EV. + uint8_t ev_def; + //! A Pokémon's Speed EV. + uint8_t ev_spd; + //! A Pokémon's Special Attack EV. + uint8_t ev_spatk; + //! A Pokémon's Special Defense EV. + uint8_t ev_spdef; + //! A Pokémon's contest stats. + pksav_contest_stats_t contest_stats; +} pksav_gba_pokemon_effort_t; + +/*! + * @brief Internal representation of Pokémon information that doesn't fit in + * other structs. + */ +typedef struct { + /*! + * @brief The Pokémon's Pokérus strain and duration. + * + * See for more details. + */ + uint8_t pokerus; + //! Where the Pokémon was originally met. + uint8_t met_location; + /*! + * @brief Bitfield containing information about how the Pokémon was caught. + * + * The bitfield is arranged as follows: + * * 0-6: Level met (0-100) + * * 7-10: Origin game + * * 11-14: Ball + * * 15: OT gender (0 if male, 1 if female) + */ + uint16_t origin_info; + /*! + * @brief Bitfield containing the Pokémon's IVs, egg status, and ability. + * + * The bitfield is arranged as follows: + * * 0-4: HP IV (0-31) + * * 5-9: Attack IV (0-31) + * * 10-14: Defense IV (0-31) + * * 15-19: Speed IV (0-31) + * * 20-24: Special Attack IV (0-31) + * * 25-29: Special Defense IV (0-31) + * * 30: 0 if this Pokémon is hatched, 1 if it is an egg + * * 31: 0 if the Pokémon has its first ability, 1 if it has its second + */ + uint32_t iv_egg_ability; + /*! + * @brief Bitfield containing the Pokémon's ribbons and obedience information. + * + * The enums in can be used to set or unset + * these values. + * + * The bitfield is arranged as follows: + * * 0-2: Cool contest level + * * 3-5: Beauty contest level + * * 6-8: Cute contest level + * * 9-11: Smart contest level + * * 12-14: Tough contest level + * * 15: Champion ribbon + * * 16: Winning ribbon + * * 17: Victory ribbon + * * 18: Artist ribbon + * * 19: Effort ribbon + * * 20: Marine ribbon + * * 21: Land ribbon + * * 22: Sky ribbon + * * 23: Country ribbon + * * 24: National ribbon + * * 25: Earth ribbon + * * 26: World ribbon + * * 31: needs to be set to 1 for a Mew or Deoxys to be obedient + */ + uint32_t ribbons_obedience; +} pksav_gba_pokemon_misc_t; + +/*! + * @brief The grouping of all Game Boy Advance Pokémon blocks. + * + * This union allows the data to be parsed in multiple ways, which is useful for + * unshuffling and decryption. + */ +typedef union { + //! Parse the blocks byte-by-byte. + uint8_t blocks8[48]; + //! Parse the blocks in two-byte chunks. + uint16_t blocks16[24]; + //! Parse the blocks in four-byte chunks. + uint32_t blocks32[12]; + //! Parse individual blocks byte-by-byte. + uint8_t blocks[4][12]; + /*! + * @brief Parse the blocks in a consistent order once unshuffled. + * + * This order is completely arbitrary and is only laid out this way for + * a convenient interface. + */ + struct { + //! Growth-related information. + pksav_gba_pokemon_growth_t growth; + //! Attacks and PP. + pksav_gba_pokemon_attacks_t attacks; + //! EVs. + pksav_gba_pokemon_effort_t effort; + //! Misc information. + pksav_gba_pokemon_misc_t misc; + }; +} pksav_gba_pokemon_blocks_t; + +/*! + * @brief The internal representation of Pokémon information that's shown in both + * the party and PC. + */ +typedef struct { + /*! + * @brief The Pokémon's personality value, used to determine other values. + * + * This value is stored in little-endian, so use the function ::pksav_littleendian32 + * to access or modify it. + */ + uint32_t personality; + //! This Pokémon's original trainer's ID. + pksav_trainer_id_t ot_id; + /*! + * @brief This Pokémon's nickname. + * + * This value should be accessed with ::pksav_text_from_gba and modified with + * ::pksav_text_to_gba. + * + * In all cases, the num_chars parameter should be 10. + */ + uint8_t nickname[10]; + /*! + * @brief The language of this Pokémon's original game. + * + * This value is stored in little-endian, so use the function ::pksav_littleendian16 to + * access or modify it. + */ + uint16_t language; + /*! + * @brief This Pokémon's nickname. + * + * This value should be accessed with ::pksav_text_from_gba and modified with + * ::pksav_text_to_gba. + * + * In all cases, the num_chars parameter should be 7. + */ + uint8_t otname[7]; + /*! + * @brief This Pokémon's trainer-set markings. + * + * These markings do not mean anything in particular and are primarily used to sort + * Pokémon in the PC. + */ + uint8_t markings; + /*! + * @brief The checksum of the Pokémon blocks. + * + * Users should never need to access or modify this value, as ::pksav_gba_save_save + * automatically sets all checksum. + */ + uint16_t checksum; + //! Unknown. + uint16_t unknown_0x1E; + //! Pokémon blocks. + pksav_gba_pokemon_blocks_t blocks; +} pksav_gba_pc_pokemon_t; + +typedef struct { + uint32_t condition; + uint8_t level; + uint8_t pokerus_time; + uint16_t current_hp; + uint16_t max_hp; + uint16_t atk; + uint16_t def; + uint16_t spd; + uint16_t spatk; + uint16_t spdef; +} pksav_gba_pokemon_party_data_t; + +typedef struct { + pksav_gba_pc_pokemon_t pc; + pksav_gba_pokemon_party_data_t party_data; +} pksav_gba_party_pokemon_t; + +typedef struct { + uint32_t count; + pksav_gba_party_pokemon_t party[6]; +} pksav_gba_pokemon_party_t; + +typedef struct { + pksav_gba_pc_pokemon_t entries[30]; +} pksav_gba_pokemon_box_t; + +typedef struct { + uint32_t current_box; + pksav_gba_pokemon_box_t boxes[14]; + uint8_t box_names[14][9]; + uint8_t wallpapers[14]; +} pksav_gba_pokemon_pc_t; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_POKEMON_H */ diff --git a/libpksav/include_bak/pksav/gba/save.h b/libpksav/include_bak/pksav/gba/save.h new file mode 100644 index 0000000..0ef1b21 --- /dev/null +++ b/libpksav/include_bak/pksav/gba/save.h @@ -0,0 +1,344 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_SAVE_H +#define PKSAV_GBA_SAVE_H + +#include +#include + +#include +#include +#include + +#include +#include +#include + +/*! + * @brief An enum describing each type of Game Boy Advance game. + * + * This enum is to be used with ::pksav_file_is_gba_save and + * ::pksav_gba_save_load. + * + * Although Pokémon Emerald is very similar to Ruby/Sapphire, this + * enum distinguishes games based on how data is stored internally. + */ +typedef enum { + //! Pokémon Ruby/Sapphire + PKSAV_GBA_RS = 0, + //! Pokémon Emerald + PKSAV_GBA_EMERALD, + //! Pokémon FireRed/LeafGreen + PKSAV_GBA_FRLG +} pksav_gba_game_t; + +// How many bytes in each section are read for the checksum +#ifndef __DOXYGEN__ +static const uint16_t pksav_gba_section_sizes[14] = { + 3884,3968,3968,3968,3848,3968,3968, + 3968,3968,3968,3968,3968,3968,2000 +}; +#endif + +/*! + * @brief Mask to set the first National Pokédex unlocked field in Ruby/Sapphire/Emerald. + * + * Use this mask to set the data at pksav_gba_save_t.rse_nat_pokedex_unlockedA. Any time + * this value changes, the same corresponding action must be taken on the fields + * pksav_gba_save_t.nat_pokedex_unlockedB and pksav_gba_save_t.nat_pokedex_unlockedC. + */ +#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_A (uint16_t)(0x01DA) + +/*! + * @brief Mask to set the second National Pokédex unlocked field in Ruby/Sapphire/Emerald. + * + * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedB. Any time + * this value changes, the same corresponding action must be taken on the fields + * pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. + */ +#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_B (uint8_t)(1 << 6) + +/*! + * @brief Mask to set the third National Pokédex unlocked field in Ruby/Sapphire/Emerald. + * + * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedC. Any time + * this value changes, the same corresponding action must be taken on the fields + * pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedB. + */ +#define PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_C (uint16_t)(0x0203) + +/*! + * @brief Mask to set the first National Pokédex unlocked field in FireRed/LeafGreen. + * + * Use this mask to set the data at pksav_gba_save_t.frlg_nat_pokedex_unlockedA. Any time + * this value changes, the same corresponding action must be taken on the fields + * pksav_gba_save_t.nat_pokedex_unlockedB and pksav_gba_save_t.nat_pokedex_unlockedC. + */ +#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_A (uint8_t)(0xB9) + +/*! + * @brief Mask to set the second National Pokédex unlocked field in FireRed/LeafGreen. + * + * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedB. Any time + * this value changes, the same corresponding action must be taken on the fields + * pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. + */ +#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_B (uint8_t)(0x01) + +/*! + * @brief Mask to set the third National Pokédex unlocked field in FireRed/LeafGreen. + * + * Use this mask to set the data at pksav_gba_save_t.nat_pokedex_unlockedC. Any time + * this value changes, the same corresponding action must be taken on the fields + * pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. + */ +#define PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_C (uint16_t)(0x5862) + +/*! + * @brief The structure representing a Game Boy Advance save. + * + * The pointers in this structure should not be used before passing it + * into ::pksav_gba_save_load and should not be used after passing it + * into ::pksav_gba_save_save. Doing so will result in undefined behavior. + */ +typedef struct { + //! Information on the player character. + pksav_gba_trainer_info_t* trainer_info; + + /*! + * @brief The rival's name in FireRed/LeafGreen. + * + * This name should be accessed with ::pksav_text_from_gba and modified with + * ::pksav_text_to_gba. + * + * In either case, the num_chars parameter should be 7. + * + * For Ruby/Sapphire/Emerald games, this pointer is set to NULL. + */ + uint8_t* rival_name; + + //! The trainer's Pokémon party. + pksav_gba_pokemon_party_t* pokemon_party; + + //! The trainer's Pokémon PC. + pksav_gba_pokemon_pc_t* pokemon_pc; + + //! The trainer's item bag and PC. + pksav_gba_item_storage_t* item_storage; + + //! The trainer's money (valid values 0-999999). + uint32_t* money; + + //! The trainer's casino coins (valid values 0-999). + uint16_t* casino_coins; + + /*! + * @brief A pointer to the list of Pokémon owned by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + */ + uint8_t* pokedex_owned; + + /*! + * @brief A pointer to the first list of Pokémon seen by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + * + * Any action taken on this list should also be taken on + * pksav_gba_save_t.pokedex_seenB and pksav_gba_save_t.pokedex_seenC. + */ + uint8_t* pokedex_seenA; + + /*! + * @brief A pointer to the second list of Pokémon seen by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + * + * Any action taken on this list should also be taken on + * pksav_gba_save_t.pokedex_seenA and pksav_gba_save_t.pokedex_seenC. + */ + uint8_t* pokedex_seenB; + + /*! + * @brief A pointer to the third list of Pokémon seen by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + * + * Any action taken on this list should also be taken on + * pksav_gba_save_t.pokedex_seenA and pksav_gba_save_t.pokedex_seenB. + */ + uint8_t* pokedex_seenC; + + /*! + * @brief The first value that indicates if the National Pokédex is unlocked in + * Ruby/Sapphire/Emerald. + * + * This value should be set or unset with ::PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_A. + * + * Any action taken on this value should be taken on pksav_gba_save_t.nat_pokedex_unlockedB + * and pksav_gba_save_t.nat_pokedex_unlockedC. + */ + uint16_t* rse_nat_pokedex_unlockedA; + + /*! + * @brief The first value that indicates if the National Pokédex is unlocked in + * FireRed/LeafGreen. + * + * This value should be set or unset with ::PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_A. + * + * Any action taken on this value should be taken on pksav_gba_save_t.nat_pokedex_unlockedB + * and pksav_gba_save_t.nat_pokedex_unlockedC. + */ + uint8_t* frlg_nat_pokedex_unlockedA; + + /*! + * @brief The second value that indicates if the National Pokédex is unlocked. + * + * For Ruby/Sapphire/Emerald saves, this value should be set or unset with + * ::PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_B. For FireRed/Leafgreen saves, this value + * should be set with ::PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_B. + * + * For Ruby/Sapphire/Emerald saves, any action taken on this value should be taken + * on pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. + * + * For FireRed/LeafGreen saves, any action taken on this value should be taken + * on pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedC. + */ + uint8_t* nat_pokedex_unlockedB; + + /*! + * @brief The third value that indicates if the National Pokédex is unlocked. + * + * For Ruby/Sapphire/Emerald saves, this value should be set or unset with + * ::PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_MASK_C. For FireRed/Leafgreen saves, this value + * should be set with ::PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_MASK_C. + * + * For Ruby/Sapphire/Emerald saves, any action taken on this value should be taken + * on pksav_gba_save_t.rse_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedB. + * + * For FireRed/LeafGreen saves, any action taken on this value should be taken + * on pksav_gba_save_t.frlg_nat_pokedex_unlockedA and pksav_gba_save_t.nat_pokedex_unlockedB. + */ + uint16_t* nat_pokedex_unlockedC; + + //! @brief Which of the three game types this save corresponds to. + pksav_gba_game_t gba_game; + + // Do not edit these +#ifndef __DOXYGEN__ + uint32_t security_key; + uint8_t shuffled_section_nums[14]; + bool small_save; + bool from_first_slot; + pksav_gba_save_slot_t* unshuffled; + uint8_t* raw; +#endif +} pksav_gba_save_t; + +#ifdef __cplusplus +extern "C" { +#endif + +/*! + * @brief Checks if the given buffer is a valid Game Boy Advance save. + * + * \param buffer buffer to check + * \param buffer_len size of the buffer to check + * \param gba_game which type of Game Boy Advance game to test for + * \param result_out whether or not the buffer is a valid save + * \returns ::PKSAV_ERROR_NONE upon success, no matter the result + * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_buffer_is_gba_save( + const uint8_t* buffer, + size_t buffer_len, + pksav_gba_game_t gba_game, + bool* result_out +); + +/*! + * @brief Checks if the given file is a valid Game Boy Advance save. + * + * \param filepath path of the file to check + * \param gba_game which type of Game Boy Advance game to test for + * \param result_out whether or not the file is a valid save + * \returns ::PKSAV_ERROR_NONE upon success, no matter the result + * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_file_is_gba_save( + const char* filepath, + pksav_gba_game_t gba_game, + bool* result_out +); + +/*! + * @brief Loads the save file at the given path and populates the given save struct + * + * This function takes care of all internal storage details, removing the need for a user + * to worry about unshuffling sections, decrypting Pokémon and items, etc. + * + * At the end of the function, all pointers in the gba_save parameter will point to + * completely contiguous and decrypted data. + * + * \param filepath path of the file to load + * \param gba_save pointer to save struct to populate + * \returns ::PKSAV_ERROR_NONE upon completion + * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gba_save is NULL + * \returns ::PKSAV_ERROR_FILE_IO if an error occurs reading the file + * \returns ::PKSAV_ERROR_INVALID_SAVE if the file is not a valid Game Boy Advance save + */ +PKSAV_API pksav_error_t pksav_gba_save_load( + const char* filepath, + pksav_gba_save_t* gba_save +); + +/*! + * @brief Saves the given save file to the given path + * + * This function takes care of all internal storage details, removing the need for a + * user to worry about shuffling sections, encrypting Pokémon and items, etc. + * + * This function will save the data into the save slot opposite that from which it was + * loaded, leaving the original save intact. Its save counter will be incremented, so + * the game will load this save slot instead of the previous one. + * + * \param filepath where to save the save file + * \param gba_save pointer to the save struct to save + * \returns ::PKSAV_ERROR_NONE upon completion + * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gba_save is NULL + * \returns ::PKSAV_ERROR_FILE_IO if an error occurs writing the file + */ +PKSAV_API pksav_error_t pksav_gba_save_save( + const char* filepath, + pksav_gba_save_t* gba_save +); + +/*! + * @brief Frees memory allocated by ::pksav_gba_save_load. + * + * After using this function, the given pksav_gba_save_t should not be + * used unless passed into ::pksav_gba_save_load, as all pointers in + * the struct will be invalid. Attempting to access or modify them will + * result in undefined behavior. + * + * \param gba_save the save struct to free + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if gba_save is NULL + */ +PKSAV_API pksav_error_t pksav_gba_save_free( + pksav_gba_save_t* gba_save +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GBA_SAVE_H */ diff --git a/libpksav/include/pksav/gba/save_structs.h b/libpksav/include_bak/pksav/gba/save_structs.h similarity index 100% rename from libpksav/include/pksav/gba/save_structs.h rename to libpksav/include_bak/pksav/gba/save_structs.h diff --git a/libpksav/include_bak/pksav/gba/text.h b/libpksav/include_bak/pksav/gba/text.h new file mode 100644 index 0000000..5a13230 --- /dev/null +++ b/libpksav/include_bak/pksav/gba/text.h @@ -0,0 +1,68 @@ +/*! + * @file pksav/gba/text.h + * @ingroup PKSav + * @brief Conversions between C strings and the string format used in Game Boy Advance games. + * + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_TEXT_H +#define PKSAV_GBA_TEXT_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +//! Convert a string from Game Boy Advance format to a UTF-8 C string +/*! + * In Game Boy Advance games, strings are stored with a proprietary character + * map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_buffer Game Boy Advance string + * \param output_text output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + */ +PKSAV_API pksav_error_t pksav_text_from_gba( + const uint8_t* input_buffer, + char* output_text, + size_t num_chars +); + +//! Convert a UTF-8 string to Game Boy Advance format +/*! + * In Game Boy Advance games, strings are stored with a proprietary character + * map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_text C string to convert + * \param output_buffer output buffer in which to place Game Boy Advance string + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + */ +PKSAV_API pksav_error_t pksav_text_to_gba( + const char* input_text, + uint8_t* output_buffer, + size_t num_chars +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GBA_TEXT_H */ diff --git a/libpksav/include_bak/pksav/gen1.h b/libpksav/include_bak/pksav/gen1.h new file mode 100644 index 0000000..d996008 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1.h @@ -0,0 +1,30 @@ +/*! + * @file pksav/gen1.h + * @ingroup PKSav + * @brief Global Generation I include file. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_H +#define PKSAV_GEN1_H + +#include +#include + +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include + +#endif /* PKSAV_GEN1_H */ diff --git a/libpksav/include_bak/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/gen1/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/gen1/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/gen1/CMakeLists.txt b/libpksav/include_bak/pksav/gen1/CMakeLists.txt new file mode 100644 index 0000000..3e24c77 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/CMakeLists.txt @@ -0,0 +1,19 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen1_headers + items.h + pokemon.h + save.h + text.h +) + +INSTALL( + FILES ${pksav_gen1_headers} + DESTINATION ${INCLUDE_DIR}/pksav/gen1 + COMPONENT Headers +) diff --git a/libpksav/include_bak/pksav/gen1/Makefile b/libpksav/include_bak/pksav/gen1/Makefile new file mode 100644 index 0000000..148f7b5 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen1//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen1/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/gen1/cmake_install.cmake b/libpksav/include_bak/pksav/gen1/cmake_install.cmake new file mode 100644 index 0000000..9db39d7 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/cmake_install.cmake @@ -0,0 +1,48 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen1 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen1" TYPE FILE FILES + "/Users/spencer/Projects/pksav/include/pksav/gen1/items.h" + "/Users/spencer/Projects/pksav/include/pksav/gen1/pokemon.h" + "/Users/spencer/Projects/pksav/include/pksav/gen1/save.h" + "/Users/spencer/Projects/pksav/include/pksav/gen1/text.h" + ) +endif() + diff --git a/libpksav/include_bak/pksav/gen1/items.h b/libpksav/include_bak/pksav/gen1/items.h new file mode 100644 index 0000000..322acbd --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/items.h @@ -0,0 +1,62 @@ +/*! + * @file pksav/gen1/items.h + * @ingroup PKSav + * @brief Native formats for item storage in Generation I games. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_ITEMS_H +#define PKSAV_GEN1_ITEMS_H + +#include + +#pragma pack(push,1) + +//! Native representation of an item slot in Generation I. +typedef struct { + //! Item index. + uint8_t index; + //! Item count (0-99). + uint8_t count; +} pksav_gen1_item_t; + +/*! + * @brief Native representation of the trainer's item bag in Generation I. + * + * All items in this list should be contiguous, and the amount should match + * the value in the count field. If the count value is too small, the game will + * ignore any later items, and if it is too large, whatever happens to be in + * memory will be parsed as items, leading to undefined behavior when used. + */ +typedef struct { + //! How many unique items are in the bag (0-20). + uint8_t count; + //! Item slots. + pksav_gen1_item_t items[20]; + //! End of the item list. + uint8_t terminator; +} pksav_gen1_item_bag_t; + +/*! + * @brief Native representation of the trainer's item PC. in Generation I. + * + * All items in this list should be contiguous, and the amount should match + * the value in the count field. If the count value is too small, the game will + * ignore any later items, and if it is too large, whatever happens to be in + * memory will be parsed as items, leading to undefined behavior when used. + */ +typedef struct { + //! How many unique items are in the PC (0-50). + uint8_t count; + //! Item slots. + pksav_gen1_item_t items[50]; + //! End of the item list. + uint8_t terminator; +} pksav_gen1_item_pc_t; + +#pragma pack(pop) + +#endif /* PKSAV_GEN1_ITEMS_H */ diff --git a/libpksav/include_bak/pksav/gen1/pokemon.h b/libpksav/include_bak/pksav/gen1/pokemon.h new file mode 100644 index 0000000..56c2138 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/pokemon.h @@ -0,0 +1,326 @@ +/*! + * @file pksav/gen1/pokemon.h + * @ingroup PKSav + * @brief Native formats for Pokémon in Generation I games. + * + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_POKEMON_H +#define PKSAV_GEN1_POKEMON_H + +#include + +/*! + * @brief The mask for a move's PP in the PP field. + * + * Mask the value of one of the indices of pksav_gen1_pc_pokemon_t.move_pps to + * get the PP of that move. + */ +#define PKSAV_GEN1_MOVE_PP_MASK ((uint8_t)0x3F) + +/*! + * @brief The mask for the number of PP Ups used on a move (0-3). + * + * Mask the value of one of the indices of pksav_gen1_pc_pokemon_t.move_pps to + * get the number of PP Ups used. If a PP Max has been used, this value will be 3. + */ +#define PKSAV_GEN1_MOVE_PP_UP_MASK ((uint8_t)0xC0) + +/*! + * @brief Valid values for a Pokémon's types. + * + * This enum applies to the indices of the pksav_gen1_pc_pokemon_t.types field. + */ +typedef enum { + //! Normal. + PKSAV_GEN1_TYPE_NORMAL = 0x00, + //! Fighting. + PKSAV_GEN1_TYPE_FIGHTING = 0x01, + //! Flying. + PKSAV_GEN1_TYPE_FLYING = 0x02, + //! Poison. + PKSAV_GEN1_TYPE_POISON = 0x03, + //! Ground. + PKSAV_GEN1_TYPE_GROUND = 0x04, + //! Rock. + PKSAV_GEN1_TYPE_ROCK = 0x05, + //! Bug. + PKSAV_GEN1_TYPE_BUG = 0x07, + //! Ghost. + PKSAV_GEN1_TYPE_GHOST = 0x08, + //! Fire. + PKSAV_GEN1_TYPE_FIRE = 0x14, + //! Water. + PKSAV_GEN1_TYPE_WATER = 0x15, + //! Grass. + PKSAV_GEN1_TYPE_GRASS = 0x16, + //! Electric. + PKSAV_GEN1_TYPE_ELECTRIC = 0x17, + //! Psychic. + PKSAV_GEN1_TYPE_PSYCHIC = 0x18, + //! Ice. + PKSAV_GEN1_TYPE_ICE = 0x19, + //! Dragon. + PKSAV_GEN1_TYPE_DRAGON = 0x1A +} pksav_gen1_type_t; + +#pragma pack(push,1) + +/*! + * @brief Native format for the persistent data of a Pokémon in Generation I. + * + * This data is available both when the Pokémon is in the trainer's party or in the + * PC. + */ +typedef struct { + //! Species index. + uint8_t species; + /*! + * @brief The Pokémon's current HP. + * + * This value should never be higher than pksav_gen1_pokemon_party_data_t.max_hp. + */ + uint16_t current_hp; + /*! + * @brief The Pokémon's level. + * + * This value is also stored in pksav_gen1_pokemon_party_data_t.level. + */ + uint8_t level; + /*! + * @brief The Pokémon's status ailments, if any. + * + * The enum ::pksav_gb_condition_t contains all valid values for this field. + */ + uint8_t condition; + /*! + * @brief Indices for each of this Pokémon's types. + * + * If the Pokémon has a single type, then both of these values are equal to that + * type's index. + * + * These fields have no real use in a save editing program and should have simply been + * in a lookup table on the ROM itself. + * + * The enum ::pksav_gen1_type_t contains all valid values for this field. + */ + uint8_t types[2]; + /*! + * @brief The Pokémon's catch rate. + * + * This value has no real use in a save editing program and should have simply been + * in a lookup table on the ROM itself. + */ + uint8_t catch_rate; + /*! + * @brief Indices for each of this Pokémon's moves. + */ + uint8_t moves[4]; + /*! + * @brief The Pokémon's original trainer's ID (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ot_id; + /*! + * @brief The Pokémon's current total experience points (stored in Base-256). + * + * This value should be accessed with ::pksav_from_base256 (with a num_bytes + * value of 3) and set with ::pksav_to_base256. + */ + uint8_t exp[3]; + /*! + * @brief The Pokémon's HP EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_hp; + /*! + * @brief The Pokémon's Attack EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_atk; + /*! + * @brief The Pokémon's Defense EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_def; + /*! + * @brief The Pokémon's Speed EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_spd; + /*! + * @brief The Pokémon's Special EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_spcl; + /*! + * @brief The Pokémon's IV's, stored as a bitset. + * + * These values should be accessed with ::pksav_get_gb_IV and set + * with ::pksav_set_gb_IV. + */ + uint16_t iv_data; + /*! + * @brief The Pokémon's PPs and number of PP Ups used for each move. + * + * Mask an index with ::PKSAV_GEN1_MOVE_PP_MASK to get the move PP. + * + * Mask an index with ::PKSAV_GEN1_MOVE_PP_UP_MASK to get the number of + * PP Ups applied to the move. + */ + uint8_t move_pps[4]; +} pksav_gen1_pc_pokemon_t; + +/*! + * @brief Data generated when a Pokémon is added to a trainer's party in Generation I. + * + * All of this information is generated from values stored in + * pksav_gen1_pc_pokemon_t. + */ +typedef struct { + /*! + * @brief The Pokémon's level. + * + * This value is also stored in pksav_gen1_pc_pokemon_t.level. + */ + uint8_t level; + /*! + * @brief The Pokémon's maximum HP. + * + * This value is calculated using the Pokémon's base HP stat, HP + * EV, and HP IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t max_hp; + /*! + * @brief The Pokémon's Attack stat. + * + * This value is calculated using the Pokémon's base Attack stat, + * Attack EV, and Attack IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t atk; + /*! + * @brief The Pokémon's Defense stat. + * + * This value is calculated using the Pokémon's base Defense stat, + * Defense EV, and Defense IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t def; + /*! + * @brief The Pokémon's Speed stat. + * + * This value is calculated using the Pokémon's base Speed stat, + * Speed EV, and Speed IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t spd; + /*! + * @brief The Pokémon's Special stat. + * + * This value is calculated using the Pokémon's base Special stat, + * Special EV, and Special IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t spcl; +} pksav_gen1_pokemon_party_data_t; + +//! Native format for a Pokémon in the trainer's party in Generation I. +typedef struct { + /*! + * @brief PC data. + * + * This data is accessible whether the Pokémon is in the PC or party. + */ + pksav_gen1_pc_pokemon_t pc; + + /*! + * @brief Party data. + * + * This data is generated when the Pokémon is moved into the party. As + * all of it can be generated from the PC data, it is not stored until + * it needs to be used. + */ + pksav_gen1_pokemon_party_data_t party_data; +} pksav_gen1_party_pokemon_t; + +//! Native format for a trainer's Pokémon party in Generation I. +typedef struct { + //! The actual number of Pokémon in the party (0-6). + uint8_t count; + /*! + * @brief The species indices of the Pokémon in the party. + * + * When the party is viewed in-game, it is this value that determines + * what Pokémon is shown, not the pksav_gen1_pc_pokemon_t.species value. + * + * The final index of this field should always be set to 0xFF. + */ + uint8_t species[7]; + //! The actual Pokémon in the party. + pksav_gen1_party_pokemon_t party[6]; + /*! + * @brief The names of each Pokémon's original trainer. + * + * To access this value, you should use the function ::pksav_text_from_gen1 + * with a num_chars value of 10. + */ + uint8_t otnames[6][11]; + /*! + * @brief The nicknames of each Pokémon in the party. + * + * To access this value, you should use the function ::pksav_text_from_gen1 + * with a num_chars value of 10. + */ + uint8_t nicknames[6][11]; +} pksav_gen1_pokemon_party_t; + +//! Native format for a Pokémon PC box in Generation I. +typedef struct { + //! The actual number of Pokémon in the box (0-20). + uint8_t count; + /*! + * @brief The species indices of the Pokémon in the box. + * + * When the box is viewed in-game, it is this value that determines + * what Pokémon is shown, not the pksav_gen1_pc_pokemon_t.species value. + * + * The final index of this field should always be set to 0xFF. + */ + uint8_t species[21]; + //! The actual Pokémon in the box. + pksav_gen1_pc_pokemon_t entries[20]; + /*! + * @brief The names of each Pokémon's original trainer. + * + * To access this value, you should use the function ::pksav_text_from_gen1 + * with a num_chars value of 10. + */ + uint8_t otnames[20][11]; + /*! + * @brief The nicknames of each Pokémon in the box. + * + * To access this value, you should use the function ::pksav_text_from_gen1 + * with a num_chars value of 10). + */ + uint8_t nicknames[20][11]; +} pksav_gen1_pokemon_box_t; + +#pragma pack(pop) + +#endif /* PKSAV_GEN1_POKEMON_H */ diff --git a/libpksav/include_bak/pksav/gen1/save.h b/libpksav/include_bak/pksav/gen1/save.h new file mode 100644 index 0000000..ace9f74 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/save.h @@ -0,0 +1,307 @@ +/*! + * @file pksav/gen1/save.h + * @ingroup PKSav + * @brief Functions for interacting with Generation I save files. + * + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_SAVE_H +#define PKSAV_GEN1_SAVE_H + +#include +#include + +#include +#include + +#include +#include +#include + +/*! + * @brief Mask for getting the current Pokémon box number. + * + * In the field for storing the current Pokémon box number, the relevant + * value is only stored in the lower four bytes. + * + * This is used with the pksav_gen1_save_t.current_pokemon_box_num field. + */ +#define PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM_MASK ((uint8_t)0x0F) + +/*! + * @brief Bitmasks for checking if the player has a specific badge. + * + * The pksav_gen1_save_t.badges field points to the byte in the save file + * that stores this bitmap. Use these enum values on this byte to access and + * set whether or not the player has this badge. + */ +typedef enum { + //! Earth Badge (Giovanni, Badge #8) + PKSAV_GEN1_EARTH_BADGE = 0x01, + //! Volcano Badge (Blaine, Badge #7) + PKSAV_GEN1_VOLCANO_BADGE = 0x02, + //! Marsh Badge (Sabrina, Badge #6) + PKSAV_GEN1_MARSH_BADGE = 0x04, + //! Soul Badge (Koga, Badge #5) + PKSAV_GEN1_SOUL_BADGE = 0x08, + //! Rainbow Badge (Erika, Badge #4) + PKSAV_GEN1_RAINBOW_BADGE = 0x10, + //! Thunder Badge (Lt. Surge, Badge #3) + PKSAV_GEN1_THUNDER_BADGE = 0x20, + //! Cascade Badge (Misty, Badge #2) + PKSAV_GEN1_CASCADE_BADGE = 0x40, + //! Boulder Badge (Brock, Badge #1) + PKSAV_GEN1_BOULDER_BADGE = 0x80 +} pksav_gen1_badge_t; + +#pragma pack(push,1) + +//! Native representation of how much time has passed in a Generation I game. +typedef struct { + /*! + * @brief The number of hours (stored in little-endian). + * + * This value should be accessed and set with ::pksav_littleendian16. + */ + uint16_t hours; + //! The number of minutes (0-59). + uint8_t minutes; + //! The number of second (0-59). + uint8_t seconds; +} pksav_gen1_time_t; + +#pragma pack(pop) + +/*! + * @brief The primary PKSav struct for interacting with Generation I save files. + * + * After passing the struct into ::pksav_gen1_save_load, it will hold the binary + * data for the save file and provide pointers to all relevant offsets within the + * file. Accessing these pointers before calling ::pksav_gen1_save_load will result + * in undefined behavior. + * + * To save the save file's data to another location, pass the struct into + * ::pksav_gen1_save_save, along with a filepath. + * + * Once you are finished using the struct, pass it into ::pksav_gen1_save_free to + * free the memory allocated by ::pksav_gen1_save_load. + */ +typedef struct { + //! A pointer to the trainer's Pokémon party. + pksav_gen1_pokemon_party_t* pokemon_party; + + /*! + * @brief The number of the current Pokémon box (0-11). + * + * There are 12 Pokémon boxes, and this value (0-based) shows which one will be + * deposited and withdrawn from. + * + * The ::PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM_MASK should be used to access or set + * this value. + */ + uint8_t* current_pokemon_box_num; + + /*! + * @brief A pointer to the current Pokémon box. + * + * Pokémon are only deposited or withdrawn from this box, and its data is + * switched out when the current box is changed. + */ + pksav_gen1_pokemon_box_t* current_pokemon_box; + + /*! + * @brief Pointers to the trainer's Pokémon boxes. + * + * The boxes are not stored contiguously in the save file, so these pointers + * point to their actual positions in the file. + */ + pksav_gen1_pokemon_box_t* pokemon_boxes[12]; + + //! A pointer to the trainer's item bag. + pksav_gen1_item_bag_t* item_bag; + //! A pointer to the trainer's item PC. + pksav_gen1_item_pc_t* item_pc; + + /*! + * @brief A pointer to the list of Pokémon seen by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + */ + uint8_t* pokedex_seen; + /*! + * @brief A pointer to the list of Pokémon owned by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + */ + uint8_t* pokedex_owned; + + //! A pointer to the amount of time this save file has been played. + pksav_gen1_time_t* time_played; + /*! + * @brief A pointer to the trainer's ID (stored in big-endian). + * + * This value should be accessed and modified with ::pksav_bigendian16. + */ + uint16_t* trainer_id; + + /*! + * @brief A pointer to how much money the trainer has (stored in BCD). + * + * This value should be accessed with ::pksav_from_bcd, with a num_bytes value + * of 3. It should be set with ::pksav_to_bcd, with a maximum value of 999999. + */ + uint8_t* money; + /*! + * @brief A pointer to how many casino coins the trainer has (stored in BCD). + * + * This value should be accessed with ::pksav_from_bcd, with a num_bytes value + * of 2. It should be set with ::pksav_to_bcd, with a maximum value of 999. + */ + uint8_t* casino_coins; + + /*! + * @brief A pointer to the trainer's name. + * + * This value should be accessed with ::pksav_text_from_gen1 with a num_chars + * value of 7. + * + * This value should be set with ::pksav_text_to_gen1 with a num_chars + * value of 7. + */ + uint8_t* trainer_name; + /*! + * @brief A pointer to the rival's name. + * + * This value should be accessed with ::pksav_text_from_gen1 with a num_chars + * value of 7. + * + * This value should be set with ::pksav_text_to_gen1 with a num_chars + * value of 7. + */ + uint8_t* rival_name; + + /*! + * @brief A pointer to the list of badges the trainer has earned. + * + * This value should be manipulated with the bitmasks given in the + * ::pksav_gen1_badge_t enum. + */ + uint8_t* badges; + + /*! + * @brief A pointer to Pikachu's friendship level in Pokémon Yellow. + * + * In Pokémon Red/Blue, this field is unused and is set to 0. + */ + uint8_t* pikachu_friendship; + + /*! + * @brief Whether or not this save file corresponds to a Pokémon Yellow game. + * + * This is determined by ::pksav_gen1_save_load by examining the Pikachu friendship + * value. As this value is always 0 in Pokémon Red/Blue, the save file is determined + * to be from Pokémon Yellow if this value is non-zero. This is reliable most of the + * time, but technically, if the trainer's Pikachu despises him enough for this value + * to be 0, this save file will be considered to be from Pokémon Red/Blue. + */ + bool yellow; + + /*! + * @brief The raw binary data for the save file. + * + * You should never need to edit this field, as the pointers described above should + * point to any areas of interest. + */ + uint8_t* raw; +} pksav_gen1_save_t; + +#ifdef __cplusplus +extern "C" { +#endif + +/*! + * @brief Determines whether the given buffer is from a valid Generation I save file. + * + * This is determining by checking the data's checksum. + * + * \param buffer buffer to be checked + * \param buffer_len length of the buffer passed in + * \param result_out whether or not the given buffer has a valid Generation I save file + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_buffer_is_gen1_save( + const uint8_t* buffer, + size_t buffer_len, + bool* result_out +); + +/*! + * @brief Determines whether the file at the given path is a valid Generation I save file. + * + * This is determined simply by checking the file's checksum. + * + * \param filepath path to the file to be checked + * \param result_out whether or not the given buffer has a valid Generation I save file + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_file_is_gen1_save( + const char* filepath, + bool* result_out +); + +/*! + * @brief Loads the save file at the given path into the given PKSav struct. + * + * Upon a failure state, the given pksav_gen1_save_t will be left in an undefined state. + * + * \param filepath path to the file to be loaded + * \param gen1_save PKSav struct in which to load file + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen1_save is NULL + * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs reading the file + * \returns ::PKSAV_ERROR_INVALID_SAVE if the given file is not a valid Generation I save file + */ +PKSAV_API pksav_error_t pksav_gen1_save_load( + const char* filepath, + pksav_gen1_save_t* gen1_save +); + +/*! + * @brief Saves a Generation I save file to the given path. + * + * Upon a failure state, the save file is not guaranteed to have been properly written. + * + * \param filepath where the save file should be written + * \param gen1_save the same to be written + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen1_save is NULL + * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs writing the file + */ +PKSAV_API pksav_error_t pksav_gen1_save_save( + const char* filepath, + pksav_gen1_save_t* gen1_save +); + +/*! + * @brief Frees memory allocated for a pksav_gen1_save_t. + * + * \param gen1_save save whose memory should be freed + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if gen1_save is NULL + */ +PKSAV_API pksav_error_t pksav_gen1_save_free( + pksav_gen1_save_t* gen1_save +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN1_SAVE_H */ diff --git a/libpksav/include_bak/pksav/gen1/text.h b/libpksav/include_bak/pksav/gen1/text.h new file mode 100644 index 0000000..4de91e6 --- /dev/null +++ b/libpksav/include_bak/pksav/gen1/text.h @@ -0,0 +1,68 @@ +/*! + * @file pksav/gen1/text.h + * @ingroup PKSav + * @brief Conversions between C strings and the string format used in Generation I games. + * + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN1_TEXT_H +#define PKSAV_GEN1_TEXT_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +//! Convert a string from Generation I format to a UTF-8 C string +/*! + * In Generation I games, strings are stored with a proprietary character + * map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_buffer Generation I string + * \param output_text output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + */ +PKSAV_API pksav_error_t pksav_text_from_gen1( + const uint8_t* input_buffer, + char* output_text, + size_t num_chars +); + +//! Convert a UTF-8 C string to Generation I format +/*! + * In Generation I games, strings are stored with a proprietary character + * map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_text C string to convert + * \param output_buffer output buffer in which to place Generation I string + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + */ +PKSAV_API pksav_error_t pksav_text_to_gen1( + const char* input_text, + uint8_t* output_buffer, + size_t num_chars +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN1_TEXT_H */ diff --git a/libpksav/include_bak/pksav/gen2.h b/libpksav/include_bak/pksav/gen2.h new file mode 100644 index 0000000..d3a488d --- /dev/null +++ b/libpksav/include_bak/pksav/gen2.h @@ -0,0 +1,32 @@ +/*! + * @file pksav/gen2.h + * @ingroup PKSav + * @brief Global Generation II include file. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_H +#define PKSAV_GEN2_H + +#include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include +#include +#include + +#endif /* PKSAV_GEN2_H */ diff --git a/libpksav/include_bak/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/gen2/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/gen2/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/gen2/CMakeLists.txt b/libpksav/include_bak/pksav/gen2/CMakeLists.txt new file mode 100644 index 0000000..1103255 --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/CMakeLists.txt @@ -0,0 +1,20 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen2_headers + items.h + pokemon.h + save.h + text.h + time.h +) + +INSTALL( + FILES ${pksav_gen2_headers} + DESTINATION ${INCLUDE_DIR}/pksav/gen2 + COMPONENT Headers +) diff --git a/libpksav/include_bak/pksav/gen2/Makefile b/libpksav/include_bak/pksav/gen2/Makefile new file mode 100644 index 0000000..ff2a0f3 --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen2//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen2/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/gen2/cmake_install.cmake b/libpksav/include_bak/pksav/gen2/cmake_install.cmake new file mode 100644 index 0000000..64f9ce3 --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/cmake_install.cmake @@ -0,0 +1,49 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen2 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen2" TYPE FILE FILES + "/Users/spencer/Projects/pksav/include/pksav/gen2/items.h" + "/Users/spencer/Projects/pksav/include/pksav/gen2/pokemon.h" + "/Users/spencer/Projects/pksav/include/pksav/gen2/save.h" + "/Users/spencer/Projects/pksav/include/pksav/gen2/text.h" + "/Users/spencer/Projects/pksav/include/pksav/gen2/time.h" + ) +endif() + diff --git a/libpksav/include_bak/pksav/gen2/items.h b/libpksav/include_bak/pksav/gen2/items.h new file mode 100644 index 0000000..f94be8b --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/items.h @@ -0,0 +1,138 @@ +/*! + * @file pksav/gen2/items.h + * @ingroup PKSav + * @brief Native formats for item storage in Generation II games. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_ITEMS_H +#define PKSAV_GEN2_ITEMS_H + +#include + +#pragma pack(push,1) + +//! Native representation of an item slot in Generation II. +typedef struct { + //! Item count (0-99). + uint8_t count; + //! Item index. + uint8_t index; +} pksav_gen2_item_t; + +/*! + * @brief Native representation of the TM/HM pocket in Generation II. + * + * This pocket does not store item indices, as there is a natural ordering to + * the set of items that go in this pocket. Instead, an index exists for each + * TM and HM, and the value of the index corresponds to the number of that item. + */ +typedef struct { + /*! + * @brief Number of each TM. + * + * Each index corresponds to the TM of that same number (offset by one), so + * for example, tm_count[35] contains the number of TM36 held in the bag. + */ + uint8_t tm_count[50]; + /*! + * @brief Number of each HM. + * + * Each index corresponds to the HM of that same number (offset by one), so + * for example, hm_count[3] contains the number of HM04 held in the bag. + * + * For HMs, this value should only be 0-1. + */ + uint8_t hm_count[7]; +} pksav_gen2_tmhm_pocket_t; + +/*! + * @brief Native representation of the trainer's item pocket in Generation II. + * + * All items in this list should be contiguous, and the amount should match + * the value in the count field. If the count value is too small, the game will + * ignore any later items, and if it is too large, whatever happens to be in + * memory will be parsed as items, leading to undefined behavior when used. + */ +typedef struct { + //! How many unique items are in the bag (0-20). + uint8_t count; + //! Item slots. + pksav_gen2_item_t items[20]; + //! End of the item list. + uint8_t terminator; +} pksav_gen2_item_pocket_t; + +/*! + * @brief Native representation of the trainer's key item pocket in Generation II. + * + * All items in this list should be contiguous, and the amount should match + * the value in the count field. If the count value is too small, the game will + * ignore any later items, and if it is too large, whatever happens to be in + * memory will be parsed as items, leading to undefined behavior when used. + */ +typedef struct { + //! How many unique items are in the bag (0-26). + uint8_t count; + //! Item slots. + pksav_gen2_item_t items[26]; + //! End of the item list. + uint8_t terminator; +} pksav_gen2_key_item_pocket_t; + +/*! + * @brief Native representation of the trainer's key ball pocket in Generation II. + * + * All items in this list should be contiguous, and the amount should match + * the value in the count field. If the count value is too small, the game will + * ignore any later items, and if it is too large, whatever happens to be in + * memory will be parsed as items, leading to undefined behavior when used. + */ +typedef struct { + //! How many unique items are in the bag (0-12). + uint8_t count; + //! Item slots. + pksav_gen2_item_t items[12]; + //! End of the item list. + uint8_t terminator; +} pksav_gen2_ball_pocket_t; + +/*! + * @brief Native representation of the trainer's item bag in Generation II. + * + * This struct is simply all four pockets, stored contiguously in memory. + */ +typedef struct { + //! TM/HM pocket. + pksav_gen2_tmhm_pocket_t tmhm_pocket; + //! Item pocket. + pksav_gen2_item_pocket_t item_pocket; + //! Key item pocket. + pksav_gen2_key_item_pocket_t key_item_pocket; + //! Ball pocket. + pksav_gen2_ball_pocket_t ball_pocket; +} pksav_gen2_item_bag_t; + +/*! + * @brief Native representation of the trainer's item PC. in Generation II. + * + * All items in this list should be contiguous, and the amount should match + * the value in the count field. If the count value is too small, the game will + * ignore any later items, and if it is too large, whatever happens to be in + * memory will be parsed as items, leading to undefined behavior when used. + */ +typedef struct { + //! How many unique items are in the PC (0-50). + uint8_t count; + //! Item slots. + pksav_gen2_item_t items[50]; + //! End of the item list. + uint8_t terminator; +} pksav_gen2_item_pc_t; + +#pragma pack(pop) + +#endif /* PKSAV_GEN2_ITEMS_H */ diff --git a/libpksav/include_bak/pksav/gen2/pokemon.h b/libpksav/include_bak/pksav/gen2/pokemon.h new file mode 100644 index 0000000..edfd331 --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/pokemon.h @@ -0,0 +1,385 @@ +/*! + * @file pksav/gen2/pokemon.h + * @ingroup PKSav + * @brief Native formats and convenience functions for Pokémon in Generation II games. + * + * Copyright (c) 2015-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_POKEMON_H +#define PKSAV_GEN2_POKEMON_H + +#include +#include + +#include +#include + +/*! + * @brief The mask for a move's PP in the PP field. + * + * Mask the value of one of the indices of pksav_gen2_pc_pokemon_t.move_pps to + * get the PP of that move. + */ +#define PKSAV_GEN2_MOVE_PP_MASK ((uint8_t)0x3F) + +/*! + * @brief The mask for the number of PP Ups used on a move (0-3). + * + * Mask the value of one of the indices of pksav_gen2_pc_pokemon_t.move_pps + * and shift it right by ::PKSAV_GEN2_MOVE_PP_UP_MASK to get the number of PP + * Ups used. + */ +#define PKSAV_GEN2_MOVE_PP_UP_MASK ((uint8_t)0xC0) + +/*! + * @brief The offset of the number of PP UPs used on a move. + * + * Mask the value of one of the indices of pksav_gen2_pc_pokemon_t.move_pps + * with ::PKSAV_GEN2_MOVE_PP_UP_OFFSET and shift it right by this to get the + * number of PP Ups used. + */ +#define PKSAV_GEN2_MOVE_PP_UP_OFFSET 6 + +/*! + * @brief The mask for the level at which a Pokémon was caught. + * + * Mask pksav_gen2_pc_pokemon_t.caught_data with this mask and shift it + * right by ::PKSAV_GEN2_LEVEL_CAUGHT_OFFSET to get the value. + */ +#define PKSAV_GEN2_LEVEL_CAUGHT_MASK ((uint16_t)0x3F00) + +/*! + * @brief The offset for the level at which a Pokémon was caught. + * + * Mask pksav_gen2_pc_pokemon_t.caught_data with ::PKSAV_GEN2_LEVEL_CAUGHT_MASK + * and shift it right by this offset to get the value. + */ +#define PKSAV_GEN2_LEVEL_CAUGHT_OFFSET 8 + +/*! + * @brief The mask for setting a Pokémon's original trainer's gender. + * + * Mask pksav_gen2_pc_pokemon_t.caught_data with this mask to set the trainer's + * gender to female. Unmask it to set the trainer's gender to male. + */ +#define PKSAV_GEN2_OT_GENDER_MASK ((uint16_t)0x0080) + +/*! + * @brief The mask for the index of the location at which the Pokémon was caught. + * + * Mask pksav_gen2_pc_pokemon_t.caught_data with this mask to get or set the + * location index. + */ +#define PKSAV_GEN2_LOCATION_MASK ((uint16_t)0x007F) + +#pragma pack(push,1) + +/*! + * @brief Native format for the persistent data of a Pokémon in Generation IIII. + * + * This data is available both when the Pokémon is in the trainer's party or in the + * PC. + */ +typedef struct { + /*! + * @brief Species index. + * + * This value is the same whether or not the Pokémon is in an egg. If this is + * the case, the value is reflected in pksav_gen2_pokemon_party_t.species or + * pksav_gen2_pokemon_box_t.species. + */ + uint8_t species; + /*! + * @brief Held item index. + * + * When a Generation I Pokémon is traded into a Generation II game, the + * pksav_gen2_pc_pokemon_t.catch_rate field is placed here. As such, there is + * a set held item corresponding to each species when trading up. + */ + uint8_t held_item; + /*! + * @brief Indices for each of this Pokémon's moves. + */ + uint8_t moves[4]; + /*! + * @brief The Pokémon's original trainer's ID (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ot_id; + /*! + * @brief The Pokémon's current total experience points (stored in Base-256). + * + * This value should be accessed with ::pksav_from_base256 (with a num_bytes + * value of 3) and set with ::pksav_to_base256. + */ + uint8_t exp[3]; + /*! + * @brief The Pokémon's HP EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_hp; + /*! + * @brief The Pokémon's Attack EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_atk; + /*! + * @brief The Pokémon's Defense EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_def; + /*! + * @brief The Pokémon's Speed EV stat (stored in big-endian). + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_spd; + /*! + * @brief The Pokémon's Special EV stat (stored in big-endian). + * + * The Special stat was removed in Generation II, but this field is kept in + * for compatibility with Generation I. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t ev_spcl; + /*! + * @brief The Pokémon's IV's, stored as a bitset. + * + * These values should be accessed with ::pksav_get_gb_IV and set + * with ::pksav_set_gb_IV. + */ + uint16_t iv_data; + /*! + * @brief The Pokémon's PPs and number of PP Ups used for each move. + * + * Mask an index with ::PKSAV_GEN2_MOVE_PP_MASK to get the move PP. + * + * Mask an index with ::PKSAV_GEN2_MOVE_PP_UP_MASK to get the number of + * PP Ups applied to the move. + */ + uint8_t move_pps[4]; + /*! + * @brief A Pokémon's friendship/happiness value. + * + * This value is used in certain in-game events and is used to determine the power + * of Return and Frustration. + */ + uint8_t friendship; + /*! + * @brief The Pokémon's Pokérus strain and duration. + * + * See for more details. + */ + uint8_t pokerus; + /*! + * @brief Data about where and when a Pokémon was caught. + * + * The bitfield is arranged as follows: + * * 0-6: location caught + * * 7: 0 if original trainer is male, 1 if original trainer is female + * * 8-13: level caught + * * 14-15: time caught + * * 1: 4:00 AM - 9:59 AM + * * 2: 10:00 AM - 5:59 PM + * * 3: 6:00 PM - 3:59 AM + * + * This data is only set in Crystal. Pokémon caught in Gold/Silver or traded up from + * Generation I will have this value set to 0. + */ + uint16_t caught_data; + /*! + * @brief The Pokémon's level. + */ + uint8_t level; +} pksav_gen2_pc_pokemon_t; + +/*! + * @brief Data generated when a Pokémon is added to a trainer's party in Generation III. + * + * All of this information is generated from values stored in + * pksav_gen2_pc_pokemon_t. + */ +typedef struct { + /*! + * @brief The Pokémon's status ailments, if any. + * + * The enum ::pksav_gb_condition_t contains all valid values for this field. + */ + uint8_t condition; + //! Unused. + uint8_t unused; + /*! + * @brief The Pokémon's current HP. + * + * This value should never be higher than pksav_gen2_pokemon_party_data_t.max_hp. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t current_hp; + /*! + * @brief The Pokémon's maximum HP. + * + * This value is calculated using the Pokémon's base HP stat, HP + * EV, and HP IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t max_hp; + /*! + * @brief The Pokémon's Attack. + * + * This value is calculated using the Pokémon's base Attack stat, Attack + * EV, and Attack IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t atk; + /*! + * @brief The Pokémon's Defense. + * + * This value is calculated using the Pokémon's base Defense stat, Defense + * EV, and Defense IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t def; + /*! + * @brief The Pokémon's Speed. + * + * This value is calculated using the Pokémon's base Speed stat, Speed + * EV, and Speed IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t spd; + /*! + * @brief The Pokémon's Special Attack. + * + * This value is calculated using the Pokémon's base Special Attack stat, + * Special EV, and Special IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t spatk; + /*! + * @brief The Pokémon's Special Defense. + * + * This value is calculated using the Pokémon's base Special Defense stat, + * Special EV, and Special IV. + * + * This value should be accessed and set with ::pksav_bigendian16. + */ + uint16_t spdef; +} pksav_gen2_pokemon_party_data_t; + +//! Native format for a Pokémon in the trainer's party in Generation III. +typedef struct { + /*! + * @brief PC data. + * + * This data is accessible whether the Pokémon is in the PC or party. + */ + pksav_gen2_pc_pokemon_t pc; + + /*! + * @brief Party data. + * + * This data is generated when the Pokémon is moved into the party. As + * all of it can be generated from the PC data, it is not stored until + * it needs to be used. + */ + pksav_gen2_pokemon_party_data_t party_data; +} pksav_gen2_party_pokemon_t; + +//! Native format for a trainer's Pokémon party in Generation II. +typedef struct { + //! The actual number of Pokémon in the party (0-6). + uint8_t count; + /*! + * @brief The species indices of the Pokémon in the party. + * + * When the party is viewed in-game, it is this value that determines + * what Pokémon is shown, not the pksav_gen2_pc_pokemon_t.species value. + * + * If this field is set to 0xFD, the Pokémon will be in an egg. Its field + * in pksav_gen2_pc_pokemon_t will correspond to its species when hatched. + * + * The final index of this field should always be set to 0xFF. + */ + uint8_t species[7]; + //! The actual Pokémon in the party. + pksav_gen2_party_pokemon_t party[6]; + /*! + * @brief The names of each Pokémon's original trainer. + * + * To access this value, you should use the function ::pksav_text_from_gen2 + * with a num_chars value of 10. + */ + uint8_t otnames[6][11]; + /*! + * @brief The nicknames of each Pokémon in the party. + * + * To access this value, you should use the function ::pksav_text_from_gen2 + * with a num_chars value of 10. + */ + uint8_t nicknames[6][11]; +} pksav_gen2_pokemon_party_t; + +//! Native format for a Pokémon PC box in Generation II. +typedef struct { + //! The actual number of Pokémon in the box (0-20). + uint8_t count; + /*! + * @brief The species indices of the Pokémon in the box. + * + * When the box is viewed in-game, it is this value that determines + * what Pokémon is showed, not the pksav_gen2_pc_pokemon_t.species value. + * + * If this field is set to 0xFD, the Pokémon will be in an egg. Its field + * in pksav_gen2_pc_pokemon_t will correspond to its species when hatched. + * + * The final index of this field should always be set to 0xFF. + */ + uint8_t species[21]; + //! The actual Pokémon in the box. + pksav_gen2_pc_pokemon_t entries[20]; + /*! + * @brief The names of each Pokémon's original trainer. + * + * To access this value, you should use the function ::pksav_text_from_gen2 + * with a num_chars value of 10. + */ + uint8_t otnames[20][11]; + /*! + * @brief The nicknames of each Pokémon in the box. + * + * To access this value, you should use the function ::pksav_text_from_gen2 + * with a num_chars value of 10. + */ + uint8_t nicknames[20][11]; + //! Padding. + uint8_t padding[2]; +} pksav_gen2_pokemon_box_t; + +//! List of Pokémon box names in Generation II. +typedef struct { + /*! + * @brief Each box name. + * + * To access a name, you should use the function ::pksav_text_from_gen2 + * with a num_chars value of 9. + */ + uint8_t names[14][9]; +} pksav_gen2_pokemon_box_names_t; + +#pragma pack(pop) + +#endif /* PKSAV_GEN2_POKEMON_H */ diff --git a/libpksav/include_bak/pksav/gen2/save.h b/libpksav/include_bak/pksav/gen2/save.h new file mode 100644 index 0000000..ffe8a24 --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/save.h @@ -0,0 +1,257 @@ +/*! + * @file pksav/gen2/save.h + * @ingroup PKSav + * @brief Functions for interacting with Generation II save files. + * + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_SAVE_H +#define PKSAV_GEN2_SAVE_H + +#include +#include + +#include +#include +#include +#include + +#include +#include + +#include +#include + +typedef enum { + PKSAV_GEN2_MALE = 0, + PKSAV_GEN2_FEMALE +} pksav_gen2_gender_t; + +typedef enum { + PKSAV_GEN2_GS = 0, + PKSAV_GEN2_CRYSTAL +} pksav_gen2_game_t; + +/*! + * @brief The primary PKSav struct for interacting with Generation II save files. + * + * After passing the struct into ::pksav_gen2_save_load, it will hold the binary + * data for the save file and provide pointers to all relevant offsets within the + * file. Accessing these pointers before calling ::pksav_gen2_save_load will result + * in undefined behavior. + * + * To save the save file's data to another location, pass the struct into + * ::pksav_gen2_save_save, along with a filepath. + * + * Once you are finished using the struct, pass it into ::pksav_gen2_save_free to + * free the memory allocated by ::pksav_gen2_save_load. + */ +typedef struct { + //! A pointer to the trainer's Pokémon party. + pksav_gen2_pokemon_party_t* pokemon_party; + + /*! + * @brief The number of the current Pokémon box (0-13). + * + * There are 14 Pokémon boxes, and this value (0-based) shows which one will be + * deposited and withdrawn from. + */ + uint8_t* current_pokemon_box_num; + + /*! + * @brief A pointer to the current Pokémon box. + * + * Pokémon are only deposited or withdrawn from this box, and its data is + * switched out when the current box is changed. + */ + pksav_gen2_pokemon_box_t* current_pokemon_box; + + //! A pointer to the Pokémon PC. + pksav_gen2_pokemon_box_t* pokemon_boxes[14]; + + //! A pointer to the Pokémon PC's box names. + pksav_gen2_pokemon_box_names_t* pokemon_box_names; + + //! A pointer to the trainer's item bag. + pksav_gen2_item_bag_t* item_bag; + + //! A pointer to the trainer's item PC. + pksav_gen2_item_pc_t* item_pc; + + /*! + * @brief A pointer to the list of Pokémon seen by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + */ + uint8_t* pokedex_seen; + /*! + * @brief A pointer to the list of Pokémon owned by the trainer. + * + * This list should be accessed with ::pksav_get_pokedex_bit and set with + * ::pksav_set_pokedex_bit. + */ + uint8_t* pokedex_owned; + + /*! + * @brief A pointer to the trainer's name. + * + * This value should be accessed with ::pksav_text_from_gen2 with a num_chars + * value of 7. + * + * This value should be set with ::pksav_text_to_gen2, with a num_chars + * num_chars value of 7. + */ + uint8_t* trainer_name; + + /*! + * @brief A pointer to the trainer's ID (stored in big-endian). + * + * This value should be accessed and modified with ::pksav_bigendian16. + */ + uint16_t* trainer_id; + + /*! + * @brief A pointer to the trainer's gender. + * + * As Crystal was the first game in the franchise to introduce a female player + * character, this value is set to NULL for Gold and Silver saves. + * + * For Crystal saves, valid values are ::PKSAV_GEN2_MALE or ::PKSAV_GEN2_FEMALE. + */ + uint8_t* trainer_gender; + + /*! + * @brief A pointer to how much money the trainer has (stored in BCD). + * + * This value should be accessed with ::pksav_from_bcd, with a num_bytes value + * of 3. It should be set with ::pksav_to_bcd, with a maximum value of 999999. + */ + uint8_t* money; + + /*! + * @brief A pointer to the trainer's name. + * + * This value should be accessed with ::pksav_text_from_gen2, with a num_chars + * value of 7. + * + * This value should be set with ::pksav_text_to_gen2 with a num_chars + * value of 7. + */ + uint8_t* rival_name; + + /*! + * @brief Whether daylight savings time is set. + * + * Valid values are 0 or 1. + */ + uint8_t* daylight_savings; + + //! A pointer to the amount of time this save file has been played. + pksav_gen2_time_t* time_played; + + //! Which Generation II save group this struct corresponds to. + pksav_gen2_game_t gen2_game; + + #ifndef __DOXYGEN__ + uint8_t* raw; + #endif +} pksav_gen2_save_t; + +#ifdef __cplusplus +extern "C" { +#endif + +/*! + * @brief Determines whether the given buffer is from a valid Generation II save file. + * + * This is determining by checking the data's size and checksums. The data checked differs + * between Gold/Silver and Crystal. + * + * \param buffer buffer to be checked + * \param buffer_len length of the buffer passed in + * \param crystal Whether to check Crystal's checksum locations + * \param result_out whether or not the given buffer has a valid Generation II save file + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_buffer_is_gen2_save( + const uint8_t* buffer, + size_t buffer_len, + bool crystal, + bool* result_out +); + +/*! + * @brief Determines whether the file at the given path is a valid Generation I save file. + * + * This is determined by checking the file's size and checksum. The data checked differs + * between Gold/Silver and Crystal. + * + * \param filepath path to the file to be checked + * \param crystal Whether to check Crystal's checksum locations + * \param result_out whether or not the given buffer has a valid Generation I save file + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_file_is_gen2_save( + const char* filepath, + bool crystal, + bool* result_out +); + +/*! + * @brief Loads the save file at the given path into the given PKSav struct. + * + * Upon a failure state, the given pksav_gen2_save_t will be left in an undefined state. + * + * \param filepath path to the file to be loaded + * \param gen2_save PKSav struct in which to load file + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen2_save is NULL + * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs reading the file + * \returns ::PKSAV_ERROR_INVALID_SAVE if the given file is not a valid Generation II save file + */ +PKSAV_API pksav_error_t pksav_gen2_save_load( + const char* filepath, + pksav_gen2_save_t* gen2_save +); + +/*! + * @brief Saves a Generation II save file to the given path. + * + * Upon a failure state, the save file is not guaranteed to have been properly written. + * + * \param filepath where the save file should be written + * \param gen2_save the same to be written + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if filepath or gen2_save is NULL + * \returns ::PKSAV_ERROR_FILE_IO if a problem occurs writing the file + */ +PKSAV_API pksav_error_t pksav_gen2_save_save( + const char* filepath, + pksav_gen2_save_t* gen2_save +); + +/*! + * @brief Frees memory allocated for a pksav_gen2_save_t. + * + * After this function is called, all pointer members of the given save file will + * be set to NULL. + * + * \param gen2_save save whose memory should be freed + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if gen2_save is NULL + */ +PKSAV_API pksav_error_t pksav_gen2_save_free( + pksav_gen2_save_t* gen2_save +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN2_SAVE_H */ diff --git a/libpksav/include_bak/pksav/gen2/text.h b/libpksav/include_bak/pksav/gen2/text.h new file mode 100644 index 0000000..735af6f --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/text.h @@ -0,0 +1,68 @@ +/*! + * @file pksav/gen2/text.h + * @ingroup PKSav + * @brief Conversions between C strings and the string format used in Generation II games. + * + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_TEXT_H +#define PKSAV_GEN2_TEXT_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +//! Convert a string from Generation II format to a UTF-8 C string +/*! + * In Generation II games, strings are stored with a proprietary character + * map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_buffer Generation II string + * \param output_text output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + */ +PKSAV_API pksav_error_t pksav_text_from_gen2( + const uint8_t* input_buffer, + char* output_text, + size_t num_chars +); + +//! Convert a UTF-8 C string to Generation II format +/*! + * In Generation II games, strings are stored with a proprietary character + * map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_text C string to convert + * \param output_buffer output buffer in which to place Generation II string + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + */ +PKSAV_API pksav_error_t pksav_text_to_gen2( + const char* input_text, + uint8_t* output_buffer, + size_t num_chars +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN2_TEXT_H */ diff --git a/libpksav/include_bak/pksav/gen2/time.h b/libpksav/include_bak/pksav/gen2/time.h new file mode 100644 index 0000000..412413f --- /dev/null +++ b/libpksav/include_bak/pksav/gen2/time.h @@ -0,0 +1,76 @@ +/*! + * @file pksav/gen2/time.h + * @ingroup PKSav + * @brief Time-related structs and functions in the Generation II games. + * + * Copyright (c) 2015-2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN2_TIME_H +#define PKSAV_GEN2_TIME_H + +#include +#include + +#include +#include + +#pragma pack(push,1) + +//! How much time has passed in a given save. +typedef struct { + //! Hours (0-23). + uint8_t hours; + //! Minutes (0-59). + uint8_t minutes; + //! Seconds (0-59). + uint8_t seconds; + //! Frames (0-59). + uint8_t frames; +} pksav_gen2_time_t; + +#pragma pack(pop) + +//! Valid values for time of day (Crystal only). +typedef enum { + //! No value set (Gold/Silver). + PKSAV_GEN2_NONE_SET = 0, + //! Morning (4:00-9:59). + PKSAV_GEN2_MORNING, + //! Day (10:00-17:59). + PKSAV_GEN2_DAY, + //! Night (18:00-3:59). + PKSAV_GEN2_NIGHT +} pksav_gen2_time_of_day; + +//! The mask for getting/setting the time of day in the pksav_gen2_pc_pokemon_t.caught_data field. +#define PKSAV_GEN2_TIME_OF_DAY_MASK ((uint16_t)0xC000) + +//! The offset of the time of day information in the pksav_gen2_pc_pokemon_t.caught_data field. +#define PKSAV_GEN2_TIME_OF_DAY_OFFSET 14 + +#ifdef __cplusplus +extern "C" { +#endif + +/*! + * @brief Set the given caught time field based on the given C time. + * + * \param time_in C time to convert + * \param caught_data + * \returns ::PKSAV_ERROR_NONE upon success + * \returns ::PKSAV_ERROR_NULL_POINTER if time_in or caught_data is NULL + */ + +PKSAV_API pksav_error_t pksav_gen2_set_caught_data_time_field( + const time_t* time_in, + uint16_t* caught_data +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN2_TIME_H */ diff --git a/libpksav/include_bak/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/gen4/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/gen4/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/gen4/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/gen4/CMakeLists.txt b/libpksav/include_bak/pksav/gen4/CMakeLists.txt new file mode 100644 index 0000000..3690d30 --- /dev/null +++ b/libpksav/include_bak/pksav/gen4/CMakeLists.txt @@ -0,0 +1,16 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen4_headers + text.h +) + +INSTALL( + FILES ${pksav_gen4_headers} + DESTINATION ${INCLUDE_DIR}/pksav/gen4 + COMPONENT Headers +) diff --git a/libpksav/include_bak/pksav/gen4/Makefile b/libpksav/include_bak/pksav/gen4/Makefile new file mode 100644 index 0000000..936426e --- /dev/null +++ b/libpksav/include_bak/pksav/gen4/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen4//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen4/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/gen4/cmake_install.cmake b/libpksav/include_bak/pksav/gen4/cmake_install.cmake new file mode 100644 index 0000000..c981ee4 --- /dev/null +++ b/libpksav/include_bak/pksav/gen4/cmake_install.cmake @@ -0,0 +1,43 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen4 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen4" TYPE FILE FILES "/Users/spencer/Projects/pksav/include/pksav/gen4/text.h") +endif() + diff --git a/libpksav/include_bak/pksav/gen4/text.h b/libpksav/include_bak/pksav/gen4/text.h new file mode 100644 index 0000000..6867774 --- /dev/null +++ b/libpksav/include_bak/pksav/gen4/text.h @@ -0,0 +1,104 @@ +/*! + * @file pksav/gen4/text.h + * @ingroup PKSav + * @brief Conversions between C strings and the string formats used in Generation IV games. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN4_TEXT_H +#define PKSAV_GEN4_TEXT_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +//! Convert a string from the given generation's format to a multi-byte C string +/*! + * In Generation IV, strings are stored in a proprietary character map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_buffer Generation IV string + * \param output_text output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + */ +PKSAV_API pksav_error_t pksav_text_from_gen4( + const uint16_t* input_buffer, + char* output_text, + size_t num_chars +); + +//! Convert a string from the given generation's format to a wide-character C string +/*! + * In Generation IV, strings are stored in a proprietary character map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_buffer Generation IV string + * \param output_text output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + */ +PKSAV_API pksav_error_t pksav_widetext_from_gen4( + const uint16_t* input_buffer, + wchar_t* output_text, + size_t num_chars +); + +//! Convert a multi-byte C string to a string in Generation IV's format +/*! + * In Generation IV, strings are stored in a proprietary character map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_text C string to convert + * \param output_buffer output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + */ +PKSAV_API pksav_error_t pksav_text_to_gen4( + const char* input_text, + uint16_t* output_buffer, + size_t num_chars +); + +//! Convert a wide-character C string to a string in Generation IV's format +/*! + * In Generation IV, strings are stored in a proprietary character map. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_text C string to convert + * \param output_buffer output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + */ +PKSAV_API pksav_error_t pksav_widetext_to_gen4( + const wchar_t* input_text, + uint16_t* output_buffer, + size_t num_chars +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN4_TEXT_H */ diff --git a/libpksav/include_bak/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/gen5/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/gen5/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/gen5/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/gen5/CMakeLists.txt b/libpksav/include_bak/pksav/gen5/CMakeLists.txt new file mode 100644 index 0000000..2b10c8c --- /dev/null +++ b/libpksav/include_bak/pksav/gen5/CMakeLists.txt @@ -0,0 +1,16 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen5_headers + text.h +) + +INSTALL( + FILES ${pksav_gen5_headers} + DESTINATION ${INCLUDE_DIR}/pksav/gen5 + COMPONENT Headers +) diff --git a/libpksav/include_bak/pksav/gen5/Makefile b/libpksav/include_bak/pksav/gen5/Makefile new file mode 100644 index 0000000..bdc2db5 --- /dev/null +++ b/libpksav/include_bak/pksav/gen5/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/gen5//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/gen5/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/gen5/cmake_install.cmake b/libpksav/include_bak/pksav/gen5/cmake_install.cmake new file mode 100644 index 0000000..fa9d443 --- /dev/null +++ b/libpksav/include_bak/pksav/gen5/cmake_install.cmake @@ -0,0 +1,43 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/gen5 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/gen5" TYPE FILE FILES "/Users/spencer/Projects/pksav/include/pksav/gen5/text.h") +endif() + diff --git a/libpksav/include_bak/pksav/gen5/text.h b/libpksav/include_bak/pksav/gen5/text.h new file mode 100644 index 0000000..d9ccd03 --- /dev/null +++ b/libpksav/include_bak/pksav/gen5/text.h @@ -0,0 +1,104 @@ +/*! + * @file pksav/gen5/text.h + * @ingroup PKSav + * @brief Conversions between C strings and the string formats used in Generation V games. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GEN5_TEXT_H +#define PKSAV_GEN5_TEXT_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +//! Convert a string from the given generation's format to a multi-byte C string +/*! + * In Generation V, strings are stored in Unicode. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_buffer Generation V string + * \param output_text output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + */ +PKSAV_API pksav_error_t pksav_text_from_gen5( + const uint16_t* input_buffer, + char* output_text, + size_t num_chars +); + +//! Convert a string from the given generation's format to a wide-character C string +/*! + * In Generation V, strings are stored in Unicode. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_buffer Generation V string + * \param output_text output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_buffer or output_text is NULL + */ +PKSAV_API pksav_error_t pksav_widetext_from_gen5( + const uint16_t* input_buffer, + wchar_t* output_text, + size_t num_chars +); + +//! Convert a multi-byte C string to a string in Generation V's format +/*! + * In Generation V, strings are stored in Unicode. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_text C string to convert + * \param output_buffer output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + */ +PKSAV_API pksav_error_t pksav_text_to_gen5( + const char* input_text, + uint16_t* output_buffer, + size_t num_chars +); + +//! Convert a wide-character C string to a string in Generation V's format +/*! + * In Generation V, strings are stored in Unicode. + * + * Both buffers passed into the function must be at least the length passed + * in the num_chars parameter, or it will result in undefined behavior. + * + * \param input_text C string to convert + * \param output_buffer output buffer in which to place converted text + * \param num_chars the number of characters to convert + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if input_text or output_buffer is NULL + */ +PKSAV_API pksav_error_t pksav_widetext_to_gen5( + const wchar_t* input_text, + uint16_t* output_buffer, + size_t num_chars +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN5_TEXT_H */ diff --git a/libpksav/include_bak/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/include_bak/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/include_bak/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/include_bak/pksav/math/CMakeFiles/progress.marks b/libpksav/include_bak/pksav/math/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/include_bak/pksav/math/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/include_bak/pksav/math/CMakeLists.txt b/libpksav/include_bak/pksav/math/CMakeLists.txt new file mode 100644 index 0000000..b206592 --- /dev/null +++ b/libpksav/include_bak/pksav/math/CMakeLists.txt @@ -0,0 +1,18 @@ +# +# Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_math_headers + base256.h + bcd.h + endian.h +) + +INSTALL( + FILES ${pksav_math_headers} + DESTINATION ${INCLUDE_DIR}/pksav/math + COMPONENT Headers +) diff --git a/libpksav/include_bak/pksav/math/Makefile b/libpksav/include_bak/pksav/math/Makefile new file mode 100644 index 0000000..103af57 --- /dev/null +++ b/libpksav/include_bak/pksav/math/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/include/pksav/math//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 include/pksav/math/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/include_bak/pksav/math/base256.h b/libpksav/include_bak/pksav/math/base256.h new file mode 100644 index 0000000..0a0b1e0 --- /dev/null +++ b/libpksav/include_bak/pksav/math/base256.h @@ -0,0 +1,56 @@ +/*! + * @file pksav/math/base256.h + * @ingroup PKSav + * @brief Conversions between Base-10 and Base-256 numbers. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_MATH_BASE256_H +#define PKSAV_MATH_BASE256_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +//! Convert a Base-256 number to Base-10. +/*! + * \param buffer where original Base-256 number is stored + * \param num_bytes number of bytes to convert + * \param result_out converted Base-10 number + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_from_base256( + const uint8_t* buffer, + size_t num_bytes, + uint32_t* result_out +); + +//! Convert a Base-10 number to Base-256. +/*! + * \param num Base-10 number to convert + * \param buffer_out where to store converted Base-256 number + * \param buffer_size size of the buffer_out parameter + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if buffer_out is NULL + */ +PKSAV_API pksav_error_t pksav_to_base256( + uint32_t num, + uint8_t* buffer_out, + size_t buffer_size +); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/libpksav/include_bak/pksav/math/bcd.h b/libpksav/include_bak/pksav/math/bcd.h new file mode 100644 index 0000000..f2cc4aa --- /dev/null +++ b/libpksav/include_bak/pksav/math/bcd.h @@ -0,0 +1,54 @@ +/*! + * @file pksav/math/bcd.h + * @ingroup PKSav + * @brief Conversions between Base-10 and binary-coded decimal (BCD) numbers. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_MATH_BCD_H +#define PKSAV_MATH_BCD_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +//! Convert a number stored in binary-coded decimal (BCD) to Base-10. +/*! + * \param buffer where BCD number is stored + * \param num_bytes number of bytes to convert + * \param result_out converted Base-10 number + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if buffer or result_out is NULL + */ +PKSAV_API pksav_error_t pksav_from_bcd( + const uint8_t* buffer, + size_t num_bytes, + uint32_t* result_out +); + +//! Convert a Base-10 number to binary-coded decimal (BCD). +/*! + * \param num Base-10 number to convert + * \param buffer_out where to place converted BCD number + * \returns PKSAV_ERROR_NONE upon success + * \returns PKSAV_ERROR_NULL_POINTER if buffer_out is NULL + */ +PKSAV_API pksav_error_t pksav_to_bcd( + uint32_t num, + uint8_t* buffer_out +); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/libpksav/include_bak/pksav/math/cmake_install.cmake b/libpksav/include_bak/pksav/math/cmake_install.cmake new file mode 100644 index 0000000..f1a6d73 --- /dev/null +++ b/libpksav/include_bak/pksav/math/cmake_install.cmake @@ -0,0 +1,47 @@ +# Install script for directory: /Users/spencer/Projects/pksav/include/pksav/math + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Headers" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/include/pksav/math" TYPE FILE FILES + "/Users/spencer/Projects/pksav/include/pksav/math/base256.h" + "/Users/spencer/Projects/pksav/include/pksav/math/bcd.h" + "/Users/spencer/Projects/pksav/include/pksav/math/endian.h" + ) +endif() + diff --git a/libpksav/include_bak/pksav/math/endian.h b/libpksav/include_bak/pksav/math/endian.h new file mode 100644 index 0000000..75f2af1 --- /dev/null +++ b/libpksav/include_bak/pksav/math/endian.h @@ -0,0 +1,118 @@ +/*! + * @file pksav/math/endian.h + * @ingroup PKSav + * @brief Endianness (byte-ordering) conversions. + * + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_MATH_ENDIAN_H +#define PKSAV_MATH_ENDIAN_H + +#include + +#include + +#ifndef __DOXYGEN__ +#if defined(PKSAV_PLATFORM_WIN32) || defined(PKSAV_PLATFORM_MINGW) +# include +# define PKSAV_BYTESWAP16(num) _byteswap_ushort(num) +# define PKSAV_BYTESWAP32(num) _byteswap_ulong(num) +#elif defined(PKSAV_PLATFORM_LINUX) +# include +# define PKSAV_BYTESWAP16(num) bswap_16(num) +# define PKSAV_BYTESWAP32(num) bswap_32(num) +#elif defined(PKSAV_PLATFORM_MACOS) +# include +# define PKSAV_BYTESWAP16(num) OSSwapInt16(num) +# define PKSAV_BYTESWAP32(num) OSSwapInt32(num) +#else +# define PKSAV_BYTESWAP16(num) (((num & 0xFF) << 8) | ((num & 0xFF00) >> 8)) +# define PKSAV_BYTESWAP32(num) ((PKSAV_BYTESWAP16((uint16_t)(num & 0xFFFF)) << 16) | \ + (PKSAV_BYTESWAP16((uint16_t)((num & 0xFFFF0000) >> 16)))) +#endif +#endif /* __DOXYGEN__ */ + +#ifdef __cplusplus +extern "C" { +#endif + +/*! + * @brief Swaps the endianness (byte ordering) of a 16-bit number. + * + * When possible, this function uses an optimized version of this + * operation provided by the operating system. + */ +static PKSAV_INLINE uint16_t pksav_byteswap16(uint16_t num) { + return PKSAV_BYTESWAP16(num); +} + +/*! + * @brief Swaps the endianness of a given 16-bit number to/from big-endian. + * + * On big-endian platforms, this simply returns the given number. + */ +static PKSAV_INLINE uint16_t pksav_bigendian16(uint16_t num) { +#if PKSAV_LITTLE_ENDIAN + return pksav_byteswap16(num); +#else + return num; +#endif +} + +/*! + * @brief Swaps the endianness of a given 16-bit number to/from little-endian. + * + * On little-endian platforms, this simply returns the given number. + */ +static PKSAV_INLINE uint16_t pksav_littleendian16(uint16_t num) { +#if PKSAV_LITTLE_ENDIAN + return num; +#else + return pksav_byteswap16(num); +#endif +} + +/*! + * @brief Swaps the endianness (byte ordering) of a 32-bit number. + * + * When possible, this function uses an optimized version of this + * operation provided by the operating system. + */ +static PKSAV_INLINE uint32_t pksav_byteswap32(uint32_t num) { + return PKSAV_BYTESWAP32(num); +} + +/*! + * @brief Swaps the endianness of a given 32-bit number to/from big-endian. + * + * On big-endian platforms, this simply returns the given number. + */ +static PKSAV_INLINE uint32_t pksav_bigendian32(uint32_t num) { +#if PKSAV_LITTLE_ENDIAN + return pksav_byteswap32(num); +#else + return num; +#endif +} + +/*! + * @brief Swaps the endianness of a given 32-bit number to/from little-endian. + * + * On little-endian platforms, this simply returns the given number. + */ +static PKSAV_INLINE uint32_t pksav_littleendian32(uint32_t num) { +#if PKSAV_LITTLE_ENDIAN + return num; +#else + return pksav_byteswap32(num); +#endif +} + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/libpksav/include_bak/pksav/version.h b/libpksav/include_bak/pksav/version.h new file mode 100644 index 0000000..f03ac2b --- /dev/null +++ b/libpksav/include_bak/pksav/version.h @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_VERSION_H +#define PKSAV_VERSION_H + +/*! + * @brief PKSav major version. + * + * This number is incremented with wide-reaching library changes. Two + * versions with differing major version numbers are virtually + * guaranteed to be incompatible. + */ +#define PKSAV_VERSION_MAJOR 1 + +/*! + * @brief PKSav minor version. + * + * This number is incremented with new feature support, usually the addition + * of a new generation of games or adding features to an existing component. + * Existing API is guaranteed to be compatible, but ABI may not be compatible. + */ +#define PKSAV_VERSION_MINOR 7 + +/*! + * @brief PKSav patch version. + * + * This number is incremented when a significant set of bugfixes is added + * without breaking ABI compatibility. + */ +#define PKSAV_VERSION_PATCH 5 + +//! A string literal representing PKSav's full version. +#define PKSAV_VERSION "1.7.5" + +/*! + * @brief An integer representation of PKSav's full version. + * + * This number is generated from version "X.Y.Z" as follows: + * + * (X * 1000000) + (Y * 1000) + Z + */ +#define PKSAV_VERSION_NUMBER 1007005 + +#endif /* PKSAV_VERSION_H */ diff --git a/libpksav/include_bak/pksav/version.h.in b/libpksav/include_bak/pksav/version.h.in new file mode 100644 index 0000000..af35a23 --- /dev/null +++ b/libpksav/include_bak/pksav/version.h.in @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_VERSION_H +#define PKSAV_VERSION_H + +/*! + * @brief PKSav major version. + * + * This number is incremented with wide-reaching library changes. Two + * versions with differing major version numbers are virtually + * guaranteed to be incompatible. + */ +#define PKSAV_VERSION_MAJOR @PKSAV_VERSION_MAJOR@ + +/*! + * @brief PKSav minor version. + * + * This number is incremented with new feature support, usually the addition + * of a new generation of games or adding features to an existing component. + * Existing API is guaranteed to be compatible, but ABI may not be compatible. + */ +#define PKSAV_VERSION_MINOR @PKSAV_VERSION_MINOR@ + +/*! + * @brief PKSav patch version. + * + * This number is incremented when a significant set of bugfixes is added + * without breaking ABI compatibility. + */ +#define PKSAV_VERSION_PATCH @PKSAV_VERSION_PATCH@ + +//! A string literal representing PKSav's full version. +#define PKSAV_VERSION "@PKSAV_VERSION@" + +/*! + * @brief An integer representation of PKSav's full version. + * + * This number is generated from version "X.Y.Z" as follows: + * + * (X * 1000000) + (Y * 1000) + Z + */ +#define PKSAV_VERSION_NUMBER @PKSAV_VERSION_NUMBER@ + +#endif /* PKSAV_VERSION_H */ diff --git a/libpksav/lib/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..6b79c97 --- /dev/null +++ b/libpksav/lib/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib/CMakeFiles/pksav.dir/DependInfo.cmake b/libpksav/lib/CMakeFiles/pksav.dir/DependInfo.cmake index ecf31ab..c593f74 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/DependInfo.cmake +++ b/libpksav/lib/CMakeFiles/pksav.dir/DependInfo.cmake @@ -8,28 +8,28 @@ set(CMAKE_DEPENDS_LANGUAGES # The set of dependency files which are needed: set(CMAKE_DEPENDS_DEPENDENCY_FILES - "/Users/spencer/Projects/pksav/lib/common/datetime.c" "lib/CMakeFiles/pksav.dir/common/datetime.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/datetime.c.o.d" - "/Users/spencer/Projects/pksav/lib/common/pokedex.c" "lib/CMakeFiles/pksav.dir/common/pokedex.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/pokedex.c.o.d" - "/Users/spencer/Projects/pksav/lib/common/prng.c" "lib/CMakeFiles/pksav.dir/common/prng.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/prng.c.o.d" - "/Users/spencer/Projects/pksav/lib/common/sha1.c" "lib/CMakeFiles/pksav.dir/common/sha1.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/sha1.c.o.d" - "/Users/spencer/Projects/pksav/lib/common/stats.c" "lib/CMakeFiles/pksav.dir/common/stats.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/stats.c.o.d" - "/Users/spencer/Projects/pksav/lib/common/text_common.c" "lib/CMakeFiles/pksav.dir/common/text_common.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/text_common.c.o.d" - "/Users/spencer/Projects/pksav/lib/common/xds_common.c" "lib/CMakeFiles/pksav.dir/common/xds_common.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/xds_common.c.o.d" - "/Users/spencer/Projects/pksav/lib/error.c" "lib/CMakeFiles/pksav.dir/error.c.o" "gcc" "lib/CMakeFiles/pksav.dir/error.c.o.d" - "/Users/spencer/Projects/pksav/lib/gba/checksum.c" "lib/CMakeFiles/pksav.dir/gba/checksum.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/checksum.c.o.d" - "/Users/spencer/Projects/pksav/lib/gba/crypt.c" "lib/CMakeFiles/pksav.dir/gba/crypt.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d" - "/Users/spencer/Projects/pksav/lib/gba/save.c" "lib/CMakeFiles/pksav.dir/gba/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/save.c.o.d" - "/Users/spencer/Projects/pksav/lib/gba/shuffle.c" "lib/CMakeFiles/pksav.dir/gba/shuffle.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/shuffle.c.o.d" - "/Users/spencer/Projects/pksav/lib/gba/text.c" "lib/CMakeFiles/pksav.dir/gba/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/text.c.o.d" - "/Users/spencer/Projects/pksav/lib/gen1/save.c" "lib/CMakeFiles/pksav.dir/gen1/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen1/save.c.o.d" - "/Users/spencer/Projects/pksav/lib/gen1/text.c" "lib/CMakeFiles/pksav.dir/gen1/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen1/text.c.o.d" - "/Users/spencer/Projects/pksav/lib/gen2/save.c" "lib/CMakeFiles/pksav.dir/gen2/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/save.c.o.d" - "/Users/spencer/Projects/pksav/lib/gen2/text.c" "lib/CMakeFiles/pksav.dir/gen2/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/text.c.o.d" - "/Users/spencer/Projects/pksav/lib/gen2/time.c" "lib/CMakeFiles/pksav.dir/gen2/time.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/time.c.o.d" - "/Users/spencer/Projects/pksav/lib/gen4/text.c" "lib/CMakeFiles/pksav.dir/gen4/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen4/text.c.o.d" - "/Users/spencer/Projects/pksav/lib/gen5/text.c" "lib/CMakeFiles/pksav.dir/gen5/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen5/text.c.o.d" - "/Users/spencer/Projects/pksav/lib/math/base256.c" "lib/CMakeFiles/pksav.dir/math/base256.c.o" "gcc" "lib/CMakeFiles/pksav.dir/math/base256.c.o.d" - "/Users/spencer/Projects/pksav/lib/math/bcd.c" "lib/CMakeFiles/pksav.dir/math/bcd.c.o" "gcc" "lib/CMakeFiles/pksav.dir/math/bcd.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/common/pokedex.c" "lib/CMakeFiles/pksav.dir/common/pokedex.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/pokedex.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/common/pokerus.c" "lib/CMakeFiles/pksav.dir/common/pokerus.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/pokerus.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/common/stats.c" "lib/CMakeFiles/pksav.dir/common/stats.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/stats.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/common/xds_common.c" "lib/CMakeFiles/pksav.dir/common/xds_common.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/xds_common.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/error.c" "lib/CMakeFiles/pksav.dir/error.c.o" "gcc" "lib/CMakeFiles/pksav.dir/error.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gba/checksum.c" "lib/CMakeFiles/pksav.dir/gba/checksum.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/checksum.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gba/crypt.c" "lib/CMakeFiles/pksav.dir/gba/crypt.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gba/pokedex.c" "lib/CMakeFiles/pksav.dir/gba/pokedex.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/pokedex.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gba/save.c" "lib/CMakeFiles/pksav.dir/gba/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/save.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gba/shuffle.c" "lib/CMakeFiles/pksav.dir/gba/shuffle.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/shuffle.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gba/text.c" "lib/CMakeFiles/pksav.dir/gba/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/text.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gen1/save.c" "lib/CMakeFiles/pksav.dir/gen1/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen1/save.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gen1/text.c" "lib/CMakeFiles/pksav.dir/gen1/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen1/text.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gen2/save.c" "lib/CMakeFiles/pksav.dir/gen2/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/save.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gen2/text.c" "lib/CMakeFiles/pksav.dir/gen2/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/text.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gen2/time.c" "lib/CMakeFiles/pksav.dir/gen2/time.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/time.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gen4/text.c" "lib/CMakeFiles/pksav.dir/gen4/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen4/text.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/gen5/text.c" "lib/CMakeFiles/pksav.dir/gen5/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen5/text.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/math/base256.c" "lib/CMakeFiles/pksav.dir/math/base256.c.o" "gcc" "lib/CMakeFiles/pksav.dir/math/base256.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/math/bcd.c" "lib/CMakeFiles/pksav.dir/math/bcd.c.o" "gcc" "lib/CMakeFiles/pksav.dir/math/bcd.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/util/fs.c" "lib/CMakeFiles/pksav.dir/util/fs.c.o" "gcc" "lib/CMakeFiles/pksav.dir/util/fs.c.o.d" + "/Users/spencer/Projects/pksav-sv/lib/util/text_common.c" "lib/CMakeFiles/pksav.dir/util/text_common.c.o" "gcc" "lib/CMakeFiles/pksav.dir/util/text_common.c.o.d" ) # Targets to which this target links which contain Fortran sources. diff --git a/libpksav/lib/CMakeFiles/pksav.dir/build.make b/libpksav/lib/CMakeFiles/pksav.dir/build.make index a63a973..90dc48e 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/build.make +++ b/libpksav/lib/CMakeFiles/pksav.dir/build.make @@ -53,10 +53,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv # Include any dependencies generated for this target. include lib/CMakeFiles/pksav.dir/depend.make @@ -72,320 +72,317 @@ include lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/error.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/error.c.o: lib/error.c lib/CMakeFiles/pksav.dir/error.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object lib/CMakeFiles/pksav.dir/error.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/error.c.o -MF CMakeFiles/pksav.dir/error.c.o.d -o CMakeFiles/pksav.dir/error.c.o -c /Users/spencer/Projects/pksav/lib/error.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object lib/CMakeFiles/pksav.dir/error.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/error.c.o -MF CMakeFiles/pksav.dir/error.c.o.d -o CMakeFiles/pksav.dir/error.c.o -c /Users/spencer/Projects/pksav-sv/lib/error.c lib/CMakeFiles/pksav.dir/error.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/error.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/error.c > CMakeFiles/pksav.dir/error.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/error.c > CMakeFiles/pksav.dir/error.c.i lib/CMakeFiles/pksav.dir/error.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/error.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/error.c -o CMakeFiles/pksav.dir/error.c.s - -lib/CMakeFiles/pksav.dir/common/datetime.c.o: lib/CMakeFiles/pksav.dir/flags.make -lib/CMakeFiles/pksav.dir/common/datetime.c.o: lib/common/datetime.c -lib/CMakeFiles/pksav.dir/common/datetime.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building C object lib/CMakeFiles/pksav.dir/common/datetime.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/datetime.c.o -MF CMakeFiles/pksav.dir/common/datetime.c.o.d -o CMakeFiles/pksav.dir/common/datetime.c.o -c /Users/spencer/Projects/pksav/lib/common/datetime.c - -lib/CMakeFiles/pksav.dir/common/datetime.c.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/datetime.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/datetime.c > CMakeFiles/pksav.dir/common/datetime.c.i - -lib/CMakeFiles/pksav.dir/common/datetime.c.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/datetime.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/datetime.c -o CMakeFiles/pksav.dir/common/datetime.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/error.c -o CMakeFiles/pksav.dir/error.c.s lib/CMakeFiles/pksav.dir/common/pokedex.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/common/pokedex.c.o: lib/common/pokedex.c lib/CMakeFiles/pksav.dir/common/pokedex.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building C object lib/CMakeFiles/pksav.dir/common/pokedex.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/pokedex.c.o -MF CMakeFiles/pksav.dir/common/pokedex.c.o.d -o CMakeFiles/pksav.dir/common/pokedex.c.o -c /Users/spencer/Projects/pksav/lib/common/pokedex.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building C object lib/CMakeFiles/pksav.dir/common/pokedex.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/pokedex.c.o -MF CMakeFiles/pksav.dir/common/pokedex.c.o.d -o CMakeFiles/pksav.dir/common/pokedex.c.o -c /Users/spencer/Projects/pksav-sv/lib/common/pokedex.c lib/CMakeFiles/pksav.dir/common/pokedex.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/pokedex.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/pokedex.c > CMakeFiles/pksav.dir/common/pokedex.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/common/pokedex.c > CMakeFiles/pksav.dir/common/pokedex.c.i lib/CMakeFiles/pksav.dir/common/pokedex.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/pokedex.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/pokedex.c -o CMakeFiles/pksav.dir/common/pokedex.c.s - -lib/CMakeFiles/pksav.dir/common/prng.c.o: lib/CMakeFiles/pksav.dir/flags.make -lib/CMakeFiles/pksav.dir/common/prng.c.o: lib/common/prng.c -lib/CMakeFiles/pksav.dir/common/prng.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building C object lib/CMakeFiles/pksav.dir/common/prng.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/prng.c.o -MF CMakeFiles/pksav.dir/common/prng.c.o.d -o CMakeFiles/pksav.dir/common/prng.c.o -c /Users/spencer/Projects/pksav/lib/common/prng.c - -lib/CMakeFiles/pksav.dir/common/prng.c.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/prng.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/prng.c > CMakeFiles/pksav.dir/common/prng.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/common/pokedex.c -o CMakeFiles/pksav.dir/common/pokedex.c.s -lib/CMakeFiles/pksav.dir/common/prng.c.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/prng.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/prng.c -o CMakeFiles/pksav.dir/common/prng.c.s +lib/CMakeFiles/pksav.dir/common/pokerus.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/pokerus.c.o: lib/common/pokerus.c +lib/CMakeFiles/pksav.dir/common/pokerus.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building C object lib/CMakeFiles/pksav.dir/common/pokerus.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/pokerus.c.o -MF CMakeFiles/pksav.dir/common/pokerus.c.o.d -o CMakeFiles/pksav.dir/common/pokerus.c.o -c /Users/spencer/Projects/pksav-sv/lib/common/pokerus.c -lib/CMakeFiles/pksav.dir/common/sha1.c.o: lib/CMakeFiles/pksav.dir/flags.make -lib/CMakeFiles/pksav.dir/common/sha1.c.o: lib/common/sha1.c -lib/CMakeFiles/pksav.dir/common/sha1.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building C object lib/CMakeFiles/pksav.dir/common/sha1.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/sha1.c.o -MF CMakeFiles/pksav.dir/common/sha1.c.o.d -o CMakeFiles/pksav.dir/common/sha1.c.o -c /Users/spencer/Projects/pksav/lib/common/sha1.c +lib/CMakeFiles/pksav.dir/common/pokerus.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/pokerus.c.i" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/common/pokerus.c > CMakeFiles/pksav.dir/common/pokerus.c.i -lib/CMakeFiles/pksav.dir/common/sha1.c.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/sha1.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/sha1.c > CMakeFiles/pksav.dir/common/sha1.c.i - -lib/CMakeFiles/pksav.dir/common/sha1.c.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/sha1.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/sha1.c -o CMakeFiles/pksav.dir/common/sha1.c.s +lib/CMakeFiles/pksav.dir/common/pokerus.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/pokerus.c.s" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/common/pokerus.c -o CMakeFiles/pksav.dir/common/pokerus.c.s lib/CMakeFiles/pksav.dir/common/stats.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/common/stats.c.o: lib/common/stats.c lib/CMakeFiles/pksav.dir/common/stats.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building C object lib/CMakeFiles/pksav.dir/common/stats.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/stats.c.o -MF CMakeFiles/pksav.dir/common/stats.c.o.d -o CMakeFiles/pksav.dir/common/stats.c.o -c /Users/spencer/Projects/pksav/lib/common/stats.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building C object lib/CMakeFiles/pksav.dir/common/stats.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/stats.c.o -MF CMakeFiles/pksav.dir/common/stats.c.o.d -o CMakeFiles/pksav.dir/common/stats.c.o -c /Users/spencer/Projects/pksav-sv/lib/common/stats.c lib/CMakeFiles/pksav.dir/common/stats.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/stats.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/stats.c > CMakeFiles/pksav.dir/common/stats.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/common/stats.c > CMakeFiles/pksav.dir/common/stats.c.i lib/CMakeFiles/pksav.dir/common/stats.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/stats.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/stats.c -o CMakeFiles/pksav.dir/common/stats.c.s - -lib/CMakeFiles/pksav.dir/common/text_common.c.o: lib/CMakeFiles/pksav.dir/flags.make -lib/CMakeFiles/pksav.dir/common/text_common.c.o: lib/common/text_common.c -lib/CMakeFiles/pksav.dir/common/text_common.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building C object lib/CMakeFiles/pksav.dir/common/text_common.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/text_common.c.o -MF CMakeFiles/pksav.dir/common/text_common.c.o.d -o CMakeFiles/pksav.dir/common/text_common.c.o -c /Users/spencer/Projects/pksav/lib/common/text_common.c - -lib/CMakeFiles/pksav.dir/common/text_common.c.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/text_common.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/text_common.c > CMakeFiles/pksav.dir/common/text_common.c.i - -lib/CMakeFiles/pksav.dir/common/text_common.c.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/text_common.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/text_common.c -o CMakeFiles/pksav.dir/common/text_common.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/common/stats.c -o CMakeFiles/pksav.dir/common/stats.c.s lib/CMakeFiles/pksav.dir/common/xds_common.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/common/xds_common.c.o: lib/common/xds_common.c lib/CMakeFiles/pksav.dir/common/xds_common.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Building C object lib/CMakeFiles/pksav.dir/common/xds_common.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/xds_common.c.o -MF CMakeFiles/pksav.dir/common/xds_common.c.o.d -o CMakeFiles/pksav.dir/common/xds_common.c.o -c /Users/spencer/Projects/pksav/lib/common/xds_common.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building C object lib/CMakeFiles/pksav.dir/common/xds_common.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/xds_common.c.o -MF CMakeFiles/pksav.dir/common/xds_common.c.o.d -o CMakeFiles/pksav.dir/common/xds_common.c.o -c /Users/spencer/Projects/pksav-sv/lib/common/xds_common.c lib/CMakeFiles/pksav.dir/common/xds_common.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/xds_common.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/xds_common.c > CMakeFiles/pksav.dir/common/xds_common.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/common/xds_common.c > CMakeFiles/pksav.dir/common/xds_common.c.i lib/CMakeFiles/pksav.dir/common/xds_common.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/xds_common.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/xds_common.c -o CMakeFiles/pksav.dir/common/xds_common.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/common/xds_common.c -o CMakeFiles/pksav.dir/common/xds_common.c.s lib/CMakeFiles/pksav.dir/math/base256.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/math/base256.c.o: lib/math/base256.c lib/CMakeFiles/pksav.dir/math/base256.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_9) "Building C object lib/CMakeFiles/pksav.dir/math/base256.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/math/base256.c.o -MF CMakeFiles/pksav.dir/math/base256.c.o.d -o CMakeFiles/pksav.dir/math/base256.c.o -c /Users/spencer/Projects/pksav/lib/math/base256.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building C object lib/CMakeFiles/pksav.dir/math/base256.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/math/base256.c.o -MF CMakeFiles/pksav.dir/math/base256.c.o.d -o CMakeFiles/pksav.dir/math/base256.c.o -c /Users/spencer/Projects/pksav-sv/lib/math/base256.c lib/CMakeFiles/pksav.dir/math/base256.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/math/base256.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/math/base256.c > CMakeFiles/pksav.dir/math/base256.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/math/base256.c > CMakeFiles/pksav.dir/math/base256.c.i lib/CMakeFiles/pksav.dir/math/base256.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/math/base256.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/math/base256.c -o CMakeFiles/pksav.dir/math/base256.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/math/base256.c -o CMakeFiles/pksav.dir/math/base256.c.s lib/CMakeFiles/pksav.dir/math/bcd.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/math/bcd.c.o: lib/math/bcd.c lib/CMakeFiles/pksav.dir/math/bcd.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_10) "Building C object lib/CMakeFiles/pksav.dir/math/bcd.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/math/bcd.c.o -MF CMakeFiles/pksav.dir/math/bcd.c.o.d -o CMakeFiles/pksav.dir/math/bcd.c.o -c /Users/spencer/Projects/pksav/lib/math/bcd.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building C object lib/CMakeFiles/pksav.dir/math/bcd.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/math/bcd.c.o -MF CMakeFiles/pksav.dir/math/bcd.c.o.d -o CMakeFiles/pksav.dir/math/bcd.c.o -c /Users/spencer/Projects/pksav-sv/lib/math/bcd.c lib/CMakeFiles/pksav.dir/math/bcd.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/math/bcd.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/math/bcd.c > CMakeFiles/pksav.dir/math/bcd.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/math/bcd.c > CMakeFiles/pksav.dir/math/bcd.c.i lib/CMakeFiles/pksav.dir/math/bcd.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/math/bcd.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/math/bcd.c -o CMakeFiles/pksav.dir/math/bcd.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/math/bcd.c -o CMakeFiles/pksav.dir/math/bcd.c.s lib/CMakeFiles/pksav.dir/gen1/save.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gen1/save.c.o: lib/gen1/save.c lib/CMakeFiles/pksav.dir/gen1/save.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_11) "Building C object lib/CMakeFiles/pksav.dir/gen1/save.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen1/save.c.o -MF CMakeFiles/pksav.dir/gen1/save.c.o.d -o CMakeFiles/pksav.dir/gen1/save.c.o -c /Users/spencer/Projects/pksav/lib/gen1/save.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Building C object lib/CMakeFiles/pksav.dir/gen1/save.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen1/save.c.o -MF CMakeFiles/pksav.dir/gen1/save.c.o.d -o CMakeFiles/pksav.dir/gen1/save.c.o -c /Users/spencer/Projects/pksav-sv/lib/gen1/save.c lib/CMakeFiles/pksav.dir/gen1/save.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen1/save.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen1/save.c > CMakeFiles/pksav.dir/gen1/save.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gen1/save.c > CMakeFiles/pksav.dir/gen1/save.c.i lib/CMakeFiles/pksav.dir/gen1/save.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen1/save.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen1/save.c -o CMakeFiles/pksav.dir/gen1/save.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gen1/save.c -o CMakeFiles/pksav.dir/gen1/save.c.s lib/CMakeFiles/pksav.dir/gen1/text.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gen1/text.c.o: lib/gen1/text.c lib/CMakeFiles/pksav.dir/gen1/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_12) "Building C object lib/CMakeFiles/pksav.dir/gen1/text.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen1/text.c.o -MF CMakeFiles/pksav.dir/gen1/text.c.o.d -o CMakeFiles/pksav.dir/gen1/text.c.o -c /Users/spencer/Projects/pksav/lib/gen1/text.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_9) "Building C object lib/CMakeFiles/pksav.dir/gen1/text.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen1/text.c.o -MF CMakeFiles/pksav.dir/gen1/text.c.o.d -o CMakeFiles/pksav.dir/gen1/text.c.o -c /Users/spencer/Projects/pksav-sv/lib/gen1/text.c lib/CMakeFiles/pksav.dir/gen1/text.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen1/text.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen1/text.c > CMakeFiles/pksav.dir/gen1/text.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gen1/text.c > CMakeFiles/pksav.dir/gen1/text.c.i lib/CMakeFiles/pksav.dir/gen1/text.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen1/text.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen1/text.c -o CMakeFiles/pksav.dir/gen1/text.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gen1/text.c -o CMakeFiles/pksav.dir/gen1/text.c.s lib/CMakeFiles/pksav.dir/gen2/save.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gen2/save.c.o: lib/gen2/save.c lib/CMakeFiles/pksav.dir/gen2/save.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_13) "Building C object lib/CMakeFiles/pksav.dir/gen2/save.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/save.c.o -MF CMakeFiles/pksav.dir/gen2/save.c.o.d -o CMakeFiles/pksav.dir/gen2/save.c.o -c /Users/spencer/Projects/pksav/lib/gen2/save.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_10) "Building C object lib/CMakeFiles/pksav.dir/gen2/save.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/save.c.o -MF CMakeFiles/pksav.dir/gen2/save.c.o.d -o CMakeFiles/pksav.dir/gen2/save.c.o -c /Users/spencer/Projects/pksav-sv/lib/gen2/save.c lib/CMakeFiles/pksav.dir/gen2/save.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen2/save.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen2/save.c > CMakeFiles/pksav.dir/gen2/save.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gen2/save.c > CMakeFiles/pksav.dir/gen2/save.c.i lib/CMakeFiles/pksav.dir/gen2/save.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen2/save.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen2/save.c -o CMakeFiles/pksav.dir/gen2/save.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gen2/save.c -o CMakeFiles/pksav.dir/gen2/save.c.s lib/CMakeFiles/pksav.dir/gen2/text.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gen2/text.c.o: lib/gen2/text.c lib/CMakeFiles/pksav.dir/gen2/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_14) "Building C object lib/CMakeFiles/pksav.dir/gen2/text.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/text.c.o -MF CMakeFiles/pksav.dir/gen2/text.c.o.d -o CMakeFiles/pksav.dir/gen2/text.c.o -c /Users/spencer/Projects/pksav/lib/gen2/text.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_11) "Building C object lib/CMakeFiles/pksav.dir/gen2/text.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/text.c.o -MF CMakeFiles/pksav.dir/gen2/text.c.o.d -o CMakeFiles/pksav.dir/gen2/text.c.o -c /Users/spencer/Projects/pksav-sv/lib/gen2/text.c lib/CMakeFiles/pksav.dir/gen2/text.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen2/text.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen2/text.c > CMakeFiles/pksav.dir/gen2/text.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gen2/text.c > CMakeFiles/pksav.dir/gen2/text.c.i lib/CMakeFiles/pksav.dir/gen2/text.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen2/text.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen2/text.c -o CMakeFiles/pksav.dir/gen2/text.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gen2/text.c -o CMakeFiles/pksav.dir/gen2/text.c.s lib/CMakeFiles/pksav.dir/gen2/time.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gen2/time.c.o: lib/gen2/time.c lib/CMakeFiles/pksav.dir/gen2/time.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_15) "Building C object lib/CMakeFiles/pksav.dir/gen2/time.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/time.c.o -MF CMakeFiles/pksav.dir/gen2/time.c.o.d -o CMakeFiles/pksav.dir/gen2/time.c.o -c /Users/spencer/Projects/pksav/lib/gen2/time.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_12) "Building C object lib/CMakeFiles/pksav.dir/gen2/time.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/time.c.o -MF CMakeFiles/pksav.dir/gen2/time.c.o.d -o CMakeFiles/pksav.dir/gen2/time.c.o -c /Users/spencer/Projects/pksav-sv/lib/gen2/time.c lib/CMakeFiles/pksav.dir/gen2/time.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen2/time.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen2/time.c > CMakeFiles/pksav.dir/gen2/time.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gen2/time.c > CMakeFiles/pksav.dir/gen2/time.c.i lib/CMakeFiles/pksav.dir/gen2/time.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen2/time.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen2/time.c -o CMakeFiles/pksav.dir/gen2/time.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gen2/time.c -o CMakeFiles/pksav.dir/gen2/time.c.s lib/CMakeFiles/pksav.dir/gba/checksum.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gba/checksum.c.o: lib/gba/checksum.c lib/CMakeFiles/pksav.dir/gba/checksum.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_16) "Building C object lib/CMakeFiles/pksav.dir/gba/checksum.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/checksum.c.o -MF CMakeFiles/pksav.dir/gba/checksum.c.o.d -o CMakeFiles/pksav.dir/gba/checksum.c.o -c /Users/spencer/Projects/pksav/lib/gba/checksum.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_13) "Building C object lib/CMakeFiles/pksav.dir/gba/checksum.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/checksum.c.o -MF CMakeFiles/pksav.dir/gba/checksum.c.o.d -o CMakeFiles/pksav.dir/gba/checksum.c.o -c /Users/spencer/Projects/pksav-sv/lib/gba/checksum.c lib/CMakeFiles/pksav.dir/gba/checksum.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/checksum.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/checksum.c > CMakeFiles/pksav.dir/gba/checksum.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gba/checksum.c > CMakeFiles/pksav.dir/gba/checksum.c.i lib/CMakeFiles/pksav.dir/gba/checksum.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/checksum.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/checksum.c -o CMakeFiles/pksav.dir/gba/checksum.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gba/checksum.c -o CMakeFiles/pksav.dir/gba/checksum.c.s lib/CMakeFiles/pksav.dir/gba/crypt.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gba/crypt.c.o: lib/gba/crypt.c lib/CMakeFiles/pksav.dir/gba/crypt.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_17) "Building C object lib/CMakeFiles/pksav.dir/gba/crypt.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/crypt.c.o -MF CMakeFiles/pksav.dir/gba/crypt.c.o.d -o CMakeFiles/pksav.dir/gba/crypt.c.o -c /Users/spencer/Projects/pksav/lib/gba/crypt.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_14) "Building C object lib/CMakeFiles/pksav.dir/gba/crypt.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/crypt.c.o -MF CMakeFiles/pksav.dir/gba/crypt.c.o.d -o CMakeFiles/pksav.dir/gba/crypt.c.o -c /Users/spencer/Projects/pksav-sv/lib/gba/crypt.c lib/CMakeFiles/pksav.dir/gba/crypt.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/crypt.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/crypt.c > CMakeFiles/pksav.dir/gba/crypt.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gba/crypt.c > CMakeFiles/pksav.dir/gba/crypt.c.i lib/CMakeFiles/pksav.dir/gba/crypt.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/crypt.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/crypt.c -o CMakeFiles/pksav.dir/gba/crypt.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gba/crypt.c -o CMakeFiles/pksav.dir/gba/crypt.c.s + +lib/CMakeFiles/pksav.dir/gba/pokedex.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gba/pokedex.c.o: lib/gba/pokedex.c +lib/CMakeFiles/pksav.dir/gba/pokedex.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_15) "Building C object lib/CMakeFiles/pksav.dir/gba/pokedex.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/pokedex.c.o -MF CMakeFiles/pksav.dir/gba/pokedex.c.o.d -o CMakeFiles/pksav.dir/gba/pokedex.c.o -c /Users/spencer/Projects/pksav-sv/lib/gba/pokedex.c + +lib/CMakeFiles/pksav.dir/gba/pokedex.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/pokedex.c.i" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gba/pokedex.c > CMakeFiles/pksav.dir/gba/pokedex.c.i + +lib/CMakeFiles/pksav.dir/gba/pokedex.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/pokedex.c.s" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gba/pokedex.c -o CMakeFiles/pksav.dir/gba/pokedex.c.s lib/CMakeFiles/pksav.dir/gba/save.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gba/save.c.o: lib/gba/save.c lib/CMakeFiles/pksav.dir/gba/save.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_18) "Building C object lib/CMakeFiles/pksav.dir/gba/save.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/save.c.o -MF CMakeFiles/pksav.dir/gba/save.c.o.d -o CMakeFiles/pksav.dir/gba/save.c.o -c /Users/spencer/Projects/pksav/lib/gba/save.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_16) "Building C object lib/CMakeFiles/pksav.dir/gba/save.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/save.c.o -MF CMakeFiles/pksav.dir/gba/save.c.o.d -o CMakeFiles/pksav.dir/gba/save.c.o -c /Users/spencer/Projects/pksav-sv/lib/gba/save.c lib/CMakeFiles/pksav.dir/gba/save.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/save.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/save.c > CMakeFiles/pksav.dir/gba/save.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gba/save.c > CMakeFiles/pksav.dir/gba/save.c.i lib/CMakeFiles/pksav.dir/gba/save.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/save.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/save.c -o CMakeFiles/pksav.dir/gba/save.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gba/save.c -o CMakeFiles/pksav.dir/gba/save.c.s lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: lib/gba/shuffle.c lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_19) "Building C object lib/CMakeFiles/pksav.dir/gba/shuffle.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/shuffle.c.o -MF CMakeFiles/pksav.dir/gba/shuffle.c.o.d -o CMakeFiles/pksav.dir/gba/shuffle.c.o -c /Users/spencer/Projects/pksav/lib/gba/shuffle.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_17) "Building C object lib/CMakeFiles/pksav.dir/gba/shuffle.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/shuffle.c.o -MF CMakeFiles/pksav.dir/gba/shuffle.c.o.d -o CMakeFiles/pksav.dir/gba/shuffle.c.o -c /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.c lib/CMakeFiles/pksav.dir/gba/shuffle.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/shuffle.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/shuffle.c > CMakeFiles/pksav.dir/gba/shuffle.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.c > CMakeFiles/pksav.dir/gba/shuffle.c.i lib/CMakeFiles/pksav.dir/gba/shuffle.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/shuffle.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/shuffle.c -o CMakeFiles/pksav.dir/gba/shuffle.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.c -o CMakeFiles/pksav.dir/gba/shuffle.c.s lib/CMakeFiles/pksav.dir/gba/text.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gba/text.c.o: lib/gba/text.c lib/CMakeFiles/pksav.dir/gba/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_20) "Building C object lib/CMakeFiles/pksav.dir/gba/text.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/text.c.o -MF CMakeFiles/pksav.dir/gba/text.c.o.d -o CMakeFiles/pksav.dir/gba/text.c.o -c /Users/spencer/Projects/pksav/lib/gba/text.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_18) "Building C object lib/CMakeFiles/pksav.dir/gba/text.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/text.c.o -MF CMakeFiles/pksav.dir/gba/text.c.o.d -o CMakeFiles/pksav.dir/gba/text.c.o -c /Users/spencer/Projects/pksav-sv/lib/gba/text.c lib/CMakeFiles/pksav.dir/gba/text.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/text.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/text.c > CMakeFiles/pksav.dir/gba/text.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gba/text.c > CMakeFiles/pksav.dir/gba/text.c.i lib/CMakeFiles/pksav.dir/gba/text.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/text.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/text.c -o CMakeFiles/pksav.dir/gba/text.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gba/text.c -o CMakeFiles/pksav.dir/gba/text.c.s lib/CMakeFiles/pksav.dir/gen4/text.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gen4/text.c.o: lib/gen4/text.c lib/CMakeFiles/pksav.dir/gen4/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_21) "Building C object lib/CMakeFiles/pksav.dir/gen4/text.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen4/text.c.o -MF CMakeFiles/pksav.dir/gen4/text.c.o.d -o CMakeFiles/pksav.dir/gen4/text.c.o -c /Users/spencer/Projects/pksav/lib/gen4/text.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_19) "Building C object lib/CMakeFiles/pksav.dir/gen4/text.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen4/text.c.o -MF CMakeFiles/pksav.dir/gen4/text.c.o.d -o CMakeFiles/pksav.dir/gen4/text.c.o -c /Users/spencer/Projects/pksav-sv/lib/gen4/text.c lib/CMakeFiles/pksav.dir/gen4/text.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen4/text.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen4/text.c > CMakeFiles/pksav.dir/gen4/text.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gen4/text.c > CMakeFiles/pksav.dir/gen4/text.c.i lib/CMakeFiles/pksav.dir/gen4/text.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen4/text.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen4/text.c -o CMakeFiles/pksav.dir/gen4/text.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gen4/text.c -o CMakeFiles/pksav.dir/gen4/text.c.s lib/CMakeFiles/pksav.dir/gen5/text.c.o: lib/CMakeFiles/pksav.dir/flags.make lib/CMakeFiles/pksav.dir/gen5/text.c.o: lib/gen5/text.c lib/CMakeFiles/pksav.dir/gen5/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_22) "Building C object lib/CMakeFiles/pksav.dir/gen5/text.c.o" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen5/text.c.o -MF CMakeFiles/pksav.dir/gen5/text.c.o.d -o CMakeFiles/pksav.dir/gen5/text.c.o -c /Users/spencer/Projects/pksav/lib/gen5/text.c + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_20) "Building C object lib/CMakeFiles/pksav.dir/gen5/text.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen5/text.c.o -MF CMakeFiles/pksav.dir/gen5/text.c.o.d -o CMakeFiles/pksav.dir/gen5/text.c.o -c /Users/spencer/Projects/pksav-sv/lib/gen5/text.c lib/CMakeFiles/pksav.dir/gen5/text.c.i: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen5/text.c.i" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen5/text.c > CMakeFiles/pksav.dir/gen5/text.c.i + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/gen5/text.c > CMakeFiles/pksav.dir/gen5/text.c.i lib/CMakeFiles/pksav.dir/gen5/text.c.s: cmake_force @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen5/text.c.s" - cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen5/text.c -o CMakeFiles/pksav.dir/gen5/text.c.s + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/gen5/text.c -o CMakeFiles/pksav.dir/gen5/text.c.s + +lib/CMakeFiles/pksav.dir/util/fs.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/util/fs.c.o: lib/util/fs.c +lib/CMakeFiles/pksav.dir/util/fs.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_21) "Building C object lib/CMakeFiles/pksav.dir/util/fs.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/util/fs.c.o -MF CMakeFiles/pksav.dir/util/fs.c.o.d -o CMakeFiles/pksav.dir/util/fs.c.o -c /Users/spencer/Projects/pksav-sv/lib/util/fs.c + +lib/CMakeFiles/pksav.dir/util/fs.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/util/fs.c.i" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/util/fs.c > CMakeFiles/pksav.dir/util/fs.c.i + +lib/CMakeFiles/pksav.dir/util/fs.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/util/fs.c.s" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/util/fs.c -o CMakeFiles/pksav.dir/util/fs.c.s + +lib/CMakeFiles/pksav.dir/util/text_common.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/util/text_common.c.o: lib/util/text_common.c +lib/CMakeFiles/pksav.dir/util/text_common.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_22) "Building C object lib/CMakeFiles/pksav.dir/util/text_common.c.o" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/util/text_common.c.o -MF CMakeFiles/pksav.dir/util/text_common.c.o.d -o CMakeFiles/pksav.dir/util/text_common.c.o -c /Users/spencer/Projects/pksav-sv/lib/util/text_common.c + +lib/CMakeFiles/pksav.dir/util/text_common.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/util/text_common.c.i" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav-sv/lib/util/text_common.c > CMakeFiles/pksav.dir/util/text_common.c.i + +lib/CMakeFiles/pksav.dir/util/text_common.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/util/text_common.c.s" + cd /Users/spencer/Projects/pksav-sv/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav-sv/lib/util/text_common.c -o CMakeFiles/pksav.dir/util/text_common.c.s # Object files for target pksav pksav_OBJECTS = \ "CMakeFiles/pksav.dir/error.c.o" \ -"CMakeFiles/pksav.dir/common/datetime.c.o" \ "CMakeFiles/pksav.dir/common/pokedex.c.o" \ -"CMakeFiles/pksav.dir/common/prng.c.o" \ -"CMakeFiles/pksav.dir/common/sha1.c.o" \ +"CMakeFiles/pksav.dir/common/pokerus.c.o" \ "CMakeFiles/pksav.dir/common/stats.c.o" \ -"CMakeFiles/pksav.dir/common/text_common.c.o" \ "CMakeFiles/pksav.dir/common/xds_common.c.o" \ "CMakeFiles/pksav.dir/math/base256.c.o" \ "CMakeFiles/pksav.dir/math/bcd.c.o" \ @@ -396,22 +393,22 @@ pksav_OBJECTS = \ "CMakeFiles/pksav.dir/gen2/time.c.o" \ "CMakeFiles/pksav.dir/gba/checksum.c.o" \ "CMakeFiles/pksav.dir/gba/crypt.c.o" \ +"CMakeFiles/pksav.dir/gba/pokedex.c.o" \ "CMakeFiles/pksav.dir/gba/save.c.o" \ "CMakeFiles/pksav.dir/gba/shuffle.c.o" \ "CMakeFiles/pksav.dir/gba/text.c.o" \ "CMakeFiles/pksav.dir/gen4/text.c.o" \ -"CMakeFiles/pksav.dir/gen5/text.c.o" +"CMakeFiles/pksav.dir/gen5/text.c.o" \ +"CMakeFiles/pksav.dir/util/fs.c.o" \ +"CMakeFiles/pksav.dir/util/text_common.c.o" # External object files for target pksav pksav_EXTERNAL_OBJECTS = lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/error.c.o -lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/datetime.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/pokedex.c.o -lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/prng.c.o -lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/sha1.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/pokerus.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/stats.c.o -lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/text_common.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/xds_common.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/math/base256.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/math/bcd.c.o @@ -422,25 +419,28 @@ lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen2/text.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen2/time.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/checksum.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/crypt.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/pokedex.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/save.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/shuffle.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/text.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen4/text.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen5/text.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/util/fs.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/util/text_common.c.o lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/build.make lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/link.txt - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --bold --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_23) "Linking C shared library libpksav.dylib" - cd /Users/spencer/Projects/pksav/lib && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/pksav.dir/link.txt --verbose=$(VERBOSE) + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --bold --progress-dir=/Users/spencer/Projects/pksav-sv/CMakeFiles --progress-num=$(CMAKE_PROGRESS_23) "Linking C shared library libpksav.dylib" + cd /Users/spencer/Projects/pksav-sv/lib && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/pksav.dir/link.txt --verbose=$(VERBOSE) # Rule to build all files generated by this target. lib/CMakeFiles/pksav.dir/build: lib/libpksav.dylib .PHONY : lib/CMakeFiles/pksav.dir/build lib/CMakeFiles/pksav.dir/clean: - cd /Users/spencer/Projects/pksav/lib && $(CMAKE_COMMAND) -P CMakeFiles/pksav.dir/cmake_clean.cmake + cd /Users/spencer/Projects/pksav-sv/lib && $(CMAKE_COMMAND) -P CMakeFiles/pksav.dir/cmake_clean.cmake .PHONY : lib/CMakeFiles/pksav.dir/clean lib/CMakeFiles/pksav.dir/depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /Users/spencer/Projects/pksav /Users/spencer/Projects/pksav/lib /Users/spencer/Projects/pksav /Users/spencer/Projects/pksav/lib /Users/spencer/Projects/pksav/lib/CMakeFiles/pksav.dir/DependInfo.cmake "--color=$(COLOR)" + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /Users/spencer/Projects/pksav-sv /Users/spencer/Projects/pksav-sv/lib /Users/spencer/Projects/pksav-sv /Users/spencer/Projects/pksav-sv/lib /Users/spencer/Projects/pksav-sv/lib/CMakeFiles/pksav.dir/DependInfo.cmake "--color=$(COLOR)" .PHONY : lib/CMakeFiles/pksav.dir/depend diff --git a/libpksav/lib/CMakeFiles/pksav.dir/cmake_clean.cmake b/libpksav/lib/CMakeFiles/pksav.dir/cmake_clean.cmake index abe2e62..6f9764c 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/cmake_clean.cmake +++ b/libpksav/lib/CMakeFiles/pksav.dir/cmake_clean.cmake @@ -1,16 +1,10 @@ file(REMOVE_RECURSE - "CMakeFiles/pksav.dir/common/datetime.c.o" - "CMakeFiles/pksav.dir/common/datetime.c.o.d" "CMakeFiles/pksav.dir/common/pokedex.c.o" "CMakeFiles/pksav.dir/common/pokedex.c.o.d" - "CMakeFiles/pksav.dir/common/prng.c.o" - "CMakeFiles/pksav.dir/common/prng.c.o.d" - "CMakeFiles/pksav.dir/common/sha1.c.o" - "CMakeFiles/pksav.dir/common/sha1.c.o.d" + "CMakeFiles/pksav.dir/common/pokerus.c.o" + "CMakeFiles/pksav.dir/common/pokerus.c.o.d" "CMakeFiles/pksav.dir/common/stats.c.o" "CMakeFiles/pksav.dir/common/stats.c.o.d" - "CMakeFiles/pksav.dir/common/text_common.c.o" - "CMakeFiles/pksav.dir/common/text_common.c.o.d" "CMakeFiles/pksav.dir/common/xds_common.c.o" "CMakeFiles/pksav.dir/common/xds_common.c.o.d" "CMakeFiles/pksav.dir/error.c.o" @@ -19,6 +13,8 @@ file(REMOVE_RECURSE "CMakeFiles/pksav.dir/gba/checksum.c.o.d" "CMakeFiles/pksav.dir/gba/crypt.c.o" "CMakeFiles/pksav.dir/gba/crypt.c.o.d" + "CMakeFiles/pksav.dir/gba/pokedex.c.o" + "CMakeFiles/pksav.dir/gba/pokedex.c.o.d" "CMakeFiles/pksav.dir/gba/save.c.o" "CMakeFiles/pksav.dir/gba/save.c.o.d" "CMakeFiles/pksav.dir/gba/shuffle.c.o" @@ -43,6 +39,10 @@ file(REMOVE_RECURSE "CMakeFiles/pksav.dir/math/base256.c.o.d" "CMakeFiles/pksav.dir/math/bcd.c.o" "CMakeFiles/pksav.dir/math/bcd.c.o.d" + "CMakeFiles/pksav.dir/util/fs.c.o" + "CMakeFiles/pksav.dir/util/fs.c.o.d" + "CMakeFiles/pksav.dir/util/text_common.c.o" + "CMakeFiles/pksav.dir/util/text_common.c.o.d" "libpksav.dylib" "libpksav.pdb" ) diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/datetime.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/datetime.c.o.d index 8b629c5..465dc9e 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/common/datetime.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/datetime.c.o.d @@ -1,8 +1,8 @@ lib/CMakeFiles/pksav.dir/common/datetime.c.o: \ - /Users/spencer/Projects/pksav/lib/common/datetime.c \ - /Users/spencer/Projects/pksav/include/pksav/common/datetime.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/lib/common/datetime.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/datetime.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/pokedex.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/pokedex.c.o.d index a4ec6bc..d41826d 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/common/pokedex.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/pokedex.c.o.d @@ -1,9 +1,7 @@ lib/CMakeFiles/pksav.dir/common/pokedex.c.o: \ - /Users/spencer/Projects/pksav/lib/common/pokedex.c \ - /Users/spencer/Projects/pksav/include/pksav/common/pokedex.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Users/spencer/Projects/pksav-sv/lib/common/pokedex.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/pokedex.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -31,7 +29,45 @@ lib/CMakeFiles/pksav.dir/common/pokedex.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o b/libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o new file mode 100644 index 0000000..61f307b Binary files /dev/null and b/libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o.d new file mode 100644 index 0000000..3635cdb --- /dev/null +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o.d @@ -0,0 +1,32 @@ +lib/CMakeFiles/pksav.dir/common/pokerus.c.o: \ + /Users/spencer/Projects/pksav-sv/lib/common/pokerus.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/pokerus.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/prng.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/prng.c.o.d index 042ca12..9aa8b0e 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/common/prng.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/prng.c.o.d @@ -1,8 +1,8 @@ lib/CMakeFiles/pksav.dir/common/prng.c.o: \ - /Users/spencer/Projects/pksav/lib/common/prng.c \ - /Users/spencer/Projects/pksav/include/pksav/common/prng.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/lib/common/prng.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/prng.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/sha1.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/sha1.c.o.d index 963d110..a882bfd 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/common/sha1.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/sha1.c.o.d @@ -1,6 +1,6 @@ lib/CMakeFiles/pksav.dir/common/sha1.c.o: \ - /Users/spencer/Projects/pksav/lib/common/sha1.c \ - /Users/spencer/Projects/pksav/lib/common/sha1.h \ + /Users/spencer/Projects/pksav-sv/lib/common/sha1.c \ + /Users/spencer/Projects/pksav-sv/lib/common/sha1.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o b/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o index d23865b..ab7f5d0 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o.d index d12520c..0d7b243 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/stats.c.o.d @@ -1,8 +1,7 @@ lib/CMakeFiles/pksav.dir/common/stats.c.o: \ - /Users/spencer/Projects/pksav/lib/common/stats.c \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/common/stats.h \ + /Users/spencer/Projects/pksav-sv/lib/common/stats.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -30,7 +29,44 @@ lib/CMakeFiles/pksav.dir/common/stats.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/stats.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/text_common.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/text_common.c.o.d index 3e68cec..d749d0f 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/common/text_common.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/text_common.c.o.d @@ -1,7 +1,7 @@ lib/CMakeFiles/pksav.dir/common/text_common.c.o: \ - /Users/spencer/Projects/pksav/lib/common/text_common.c \ - /Users/spencer/Projects/pksav/lib/common/text_common.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/lib/common/text_common.c \ + /Users/spencer/Projects/pksav-sv/lib/common/text_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o b/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o index 208cb43..54210cd 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o.d index bf383f4..c25506e 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/common/xds_common.c.o.d @@ -1,8 +1,7 @@ lib/CMakeFiles/pksav.dir/common/xds_common.c.o: \ - /Users/spencer/Projects/pksav/lib/common/xds_common.c \ - /Users/spencer/Projects/pksav/lib/common/xds_common.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/lib/common/xds_common.c \ + /Users/spencer/Projects/pksav-sv/lib/util/text_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -68,10 +67,35 @@ lib/CMakeFiles/pksav.dir/common/xds_common.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Users/spencer/Projects/pksav-sv/lib/common/xds_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.internal b/libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.internal new file mode 100644 index 0000000..c87de7f --- /dev/null +++ b/libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.internal @@ -0,0 +1,1410 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +lib/CMakeFiles/pksav.dir/common/pokedex.c.o + /Users/spencer/Projects/pksav-sv/lib/common/pokedex.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/pokedex.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + +lib/CMakeFiles/pksav.dir/common/stats.c.o + /Users/spencer/Projects/pksav-sv/lib/common/stats.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/stats.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + +lib/CMakeFiles/pksav.dir/common/xds_common.c.o + /Users/spencer/Projects/pksav-sv/lib/common/xds_common.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/lib/common/xds_common.h + +lib/CMakeFiles/pksav.dir/error.c.o + /Users/spencer/Projects/pksav-sv/lib/error.c + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + +lib/CMakeFiles/pksav.dir/gba/checksum.c.o + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save_structs.h + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.h + +lib/CMakeFiles/pksav.dir/gba/crypt.c.o + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save_structs.h + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.h + +lib/CMakeFiles/pksav.dir/gba/save.c.o + /Users/spencer/Projects/pksav-sv/lib/gba/save.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save_structs.h + /Users/spencer/Projects/pksav-sv/include/pksav/math/endian.h + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.h + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.h + /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.h + +lib/CMakeFiles/pksav.dir/gba/shuffle.c.o + /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save_structs.h + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.h + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.h + /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.h + +lib/CMakeFiles/pksav.dir/gba/text.c.o + /Users/spencer/Projects/pksav-sv/lib/gba/text.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gba/text.h + /Users/spencer/Projects/pksav-sv/lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen1/save.c.o + /Users/spencer/Projects/pksav-sv/lib/gen1/save.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/items.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/pokemon.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/save.h + +lib/CMakeFiles/pksav.dir/gen1/text.c.o + /Users/spencer/Projects/pksav-sv/lib/gen1/text.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/text.h + /Users/spencer/Projects/pksav-sv/lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen2/save.c.o + /Users/spencer/Projects/pksav-sv/lib/gen2/save.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/items.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/pokemon.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/save.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/text.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/time.h + /Users/spencer/Projects/pksav-sv/include/pksav/math/bcd.h + /Users/spencer/Projects/pksav-sv/include/pksav/math/endian.h + +lib/CMakeFiles/pksav.dir/gen2/text.c.o + /Users/spencer/Projects/pksav-sv/lib/gen2/text.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/text.h + /Users/spencer/Projects/pksav-sv/lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen2/time.c.o + /Users/spencer/Projects/pksav-sv/lib/gen2/time.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/time.h + +lib/CMakeFiles/pksav.dir/gen4/text.c.o + /Users/spencer/Projects/pksav-sv/lib/gen4/text.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen4/text.h + /Users/spencer/Projects/pksav-sv/lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen5/text.c.o + /Users/spencer/Projects/pksav-sv/lib/gen5/text.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen5/text.h + /Users/spencer/Projects/pksav-sv/lib/common/xds_common.h + +lib/CMakeFiles/pksav.dir/math/base256.c.o + /Users/spencer/Projects/pksav-sv/lib/math/base256.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/math/base256.h + +lib/CMakeFiles/pksav.dir/math/bcd.c.o + /Users/spencer/Projects/pksav-sv/lib/math/bcd.c + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h + /Users/spencer/Projects/pksav-sv/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/include/pksav/error.h + /Users/spencer/Projects/pksav-sv/include/pksav/math/bcd.h + diff --git a/libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.make b/libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.make index 156641e..0f8954f 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.make +++ b/libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.make @@ -1,2 +1,1720 @@ -# Empty compiler generated dependencies file for pksav. -# This may be replaced when dependencies are built. +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +lib/CMakeFiles/pksav.dir/common/pokedex.c.o: lib/common/pokedex.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/common/pokedex.h \ + include/pksav/config.h \ + include/pksav/error.h + +lib/CMakeFiles/pksav.dir/common/stats.c.o: lib/common/stats.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/common/stats.h \ + include/pksav/config.h \ + include/pksav/error.h + +lib/CMakeFiles/pksav.dir/common/xds_common.c.o: lib/common/xds_common.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + lib/common/xds_common.h + +lib/CMakeFiles/pksav.dir/error.c.o: lib/error.c \ + include/pksav/config.h \ + include/pksav/error.h + +lib/CMakeFiles/pksav.dir/gba/checksum.c.o: lib/gba/checksum.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/common/contest_stats.h \ + include/pksav/common/item.h \ + include/pksav/common/trainer_id.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gba/items.h \ + include/pksav/gba/pokemon.h \ + include/pksav/gba/save.h \ + include/pksav/gba/save_structs.h \ + lib/gba/checksum.h + +lib/CMakeFiles/pksav.dir/gba/crypt.c.o: lib/gba/crypt.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/common/contest_stats.h \ + include/pksav/common/item.h \ + include/pksav/common/trainer_id.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gba/items.h \ + include/pksav/gba/pokemon.h \ + include/pksav/gba/save.h \ + include/pksav/gba/save_structs.h \ + lib/gba/crypt.h + +lib/CMakeFiles/pksav.dir/gba/save.c.o: lib/gba/save.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/common/contest_stats.h \ + include/pksav/common/item.h \ + include/pksav/common/trainer_id.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gba/items.h \ + include/pksav/gba/pokemon.h \ + include/pksav/gba/save.h \ + include/pksav/gba/save_structs.h \ + include/pksav/math/endian.h \ + lib/gba/checksum.h \ + lib/gba/crypt.h \ + lib/gba/shuffle.h + +lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: lib/gba/shuffle.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/common/contest_stats.h \ + include/pksav/common/item.h \ + include/pksav/common/trainer_id.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gba/items.h \ + include/pksav/gba/pokemon.h \ + include/pksav/gba/save.h \ + include/pksav/gba/save_structs.h \ + lib/gba/checksum.h \ + lib/gba/crypt.h \ + lib/gba/shuffle.h + +lib/CMakeFiles/pksav.dir/gba/text.c.o: lib/gba/text.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gba/text.h \ + lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen1/save.c.o: lib/gen1/save.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gen1/items.h \ + include/pksav/gen1/pokemon.h \ + include/pksav/gen1/save.h + +lib/CMakeFiles/pksav.dir/gen1/text.c.o: lib/gen1/text.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gen1/text.h \ + lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen2/save.c.o: lib/gen2/save.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gen2/items.h \ + include/pksav/gen2/pokemon.h \ + include/pksav/gen2/save.h \ + include/pksav/gen2/text.h \ + include/pksav/gen2/time.h \ + include/pksav/math/bcd.h \ + include/pksav/math/endian.h + +lib/CMakeFiles/pksav.dir/gen2/text.c.o: lib/gen2/text.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gen2/text.h \ + lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen2/time.c.o: lib/gen2/time.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gen2/time.h + +lib/CMakeFiles/pksav.dir/gen4/text.c.o: lib/gen4/text.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gen4/text.h \ + lib/common/text_common.h + +lib/CMakeFiles/pksav.dir/gen5/text.c.o: lib/gen5/text.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/gen5/text.h \ + lib/common/xds_common.h + +lib/CMakeFiles/pksav.dir/math/base256.c.o: lib/math/base256.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/math/base256.h + +lib/CMakeFiles/pksav.dir/math/bcd.c.o: lib/math/bcd.c \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + include/pksav/config.h \ + include/pksav/error.h \ + include/pksav/math/bcd.h + + +include/pksav/math/base256.h: + +include/pksav/gen5/text.h: + +lib/gen5/text.c: + +lib/gen4/text.c: + +lib/gen2/time.c: + +lib/gen2/text.c: + +include/pksav/gen2/text.h: + +include/pksav/gen2/pokemon.h: + +include/pksav/gen2/items.h: + +lib/gen2/save.c: + +include/pksav/gen2/save.h: + +include/pksav/gen1/save.h: + +include/pksav/gen1/pokemon.h: + +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h: + +include/pksav/math/bcd.h: + +lib/common/text_common.h: + +include/pksav/gba/text.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h: + +lib/gba/shuffle.c: + +lib/gba/shuffle.h: + +include/pksav/gen1/items.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h: + +lib/gba/save.c: + +include/pksav/gba/save.h: + +include/pksav/gba/pokemon.h: + +include/pksav/common/trainer_id.h: + +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h: + +lib/gba/checksum.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h: + +include/pksav/common/item.h: + +lib/error.c: + +lib/math/base256.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h: + +lib/gba/crypt.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h: + +lib/gba/crypt.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h: + +lib/gba/text.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h: + +lib/common/xds_common.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h: + +lib/gen1/save.c: + +include/pksav/common/stats.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h: + +include/pksav/gba/save_structs.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h: + +include/pksav/config.h: + +include/pksav/error.h: + +include/pksav/gen1/text.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h: + +include/pksav/common/pokedex.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h: + +include/pksav/gba/items.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h: + +include/pksav/math/endian.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h: + +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h: + +include/pksav/gen4/text.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h: + +lib/common/stats.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h: + +include/pksav/gen2/time.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h: + +lib/common/xds_common.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h: + +lib/math/bcd.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h: + +lib/common/pokedex.c: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h: + +include/pksav/common/contest_stats.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h: + +lib/gen1/text.c: + +lib/gba/checksum.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h: + +/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h: diff --git a/libpksav/lib/CMakeFiles/pksav.dir/error.c.o b/libpksav/lib/CMakeFiles/pksav.dir/error.c.o index ff05359..3090ace 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/error.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/error.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/error.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/error.c.o.d index 9f69b13..cb06b9f 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/error.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/error.c.o.d @@ -1,4 +1,69 @@ lib/CMakeFiles/pksav.dir/error.c.o: \ - /Users/spencer/Projects/pksav/lib/error.c \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h + /Users/spencer/Projects/pksav-sv/lib/error.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/flags.make b/libpksav/lib/CMakeFiles/pksav.dir/flags.make index bcfc931..94a06f9 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/flags.make +++ b/libpksav/lib/CMakeFiles/pksav.dir/flags.make @@ -4,7 +4,7 @@ # compile C with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc C_DEFINES = -DPKSAV_DLL_EXPORTS -Dpksav_EXPORTS -C_INCLUDES = -I/Users/spencer/Projects/pksav/include +C_INCLUDES = -I/Users/spencer/Projects/pksav-sv/lib -I/Users/spencer/Projects/pksav-sv/include C_FLAGSarm64 = -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC @@ -12,18 +12,12 @@ C_FLAGS = -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/De # Custom flags: lib/CMakeFiles/pksav.dir/error.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -# Custom flags: lib/CMakeFiles/pksav.dir/common/datetime.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden - # Custom flags: lib/CMakeFiles/pksav.dir/common/pokedex.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -# Custom flags: lib/CMakeFiles/pksav.dir/common/prng.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden - -# Custom flags: lib/CMakeFiles/pksav.dir/common/sha1.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden +# Custom flags: lib/CMakeFiles/pksav.dir/common/pokerus.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden # Custom flags: lib/CMakeFiles/pksav.dir/common/stats.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -# Custom flags: lib/CMakeFiles/pksav.dir/common/text_common.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden - # Custom flags: lib/CMakeFiles/pksav.dir/common/xds_common.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden # Custom flags: lib/CMakeFiles/pksav.dir/math/base256.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden @@ -44,6 +38,8 @@ C_FLAGS = -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/De # Custom flags: lib/CMakeFiles/pksav.dir/gba/crypt.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden +# Custom flags: lib/CMakeFiles/pksav.dir/gba/pokedex.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + # Custom flags: lib/CMakeFiles/pksav.dir/gba/save.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden # Custom flags: lib/CMakeFiles/pksav.dir/gba/shuffle.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden @@ -54,3 +50,7 @@ C_FLAGS = -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/De # Custom flags: lib/CMakeFiles/pksav.dir/gen5/text.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden +# Custom flags: lib/CMakeFiles/pksav.dir/util/fs.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/util/text_common.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o index 9522dc3..76b1c40 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o.d index fef6b53..640ad9a 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gba/checksum.c.o.d @@ -1,9 +1,12 @@ lib/CMakeFiles/pksav.dir/gba/checksum.c.o: \ - /Users/spencer/Projects/pksav/lib/gba/checksum.c \ - /Users/spencer/Projects/pksav/lib/gba/checksum.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ - /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.c \ + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/save_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/sections_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/battle_tower.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -31,13 +34,21 @@ lib/CMakeFiles/pksav.dir/gba/checksum.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ - /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ - /Users/spencer/Projects/pksav/include/pksav/common/item.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/ribbons.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/daycare.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/mail.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/map.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokedex.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/roamer.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ @@ -75,4 +86,5 @@ lib/CMakeFiles/pksav.dir/gba/checksum.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o index e1683f0..bdfe78b 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d index ca6c33e..adb60d5 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d @@ -1,8 +1,8 @@ lib/CMakeFiles/pksav.dir/gba/crypt.c.o: \ - /Users/spencer/Projects/pksav/lib/gba/crypt.c \ - /Users/spencer/Projects/pksav/lib/gba/crypt.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ - /Users/spencer/Projects/pksav/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.c \ + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -30,14 +30,22 @@ lib/CMakeFiles/pksav.dir/gba/crypt.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ - /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/ribbons.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/daycare.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/mail.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/map.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokedex.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/roamer.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ @@ -76,6 +84,10 @@ lib/CMakeFiles/pksav.dir/gba/crypt.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/save_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/sections_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/battle_tower.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o new file mode 100644 index 0000000..cd6495f Binary files /dev/null and b/libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o.d new file mode 100644 index 0000000..af4ea0c --- /dev/null +++ b/libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o.d @@ -0,0 +1,36 @@ +lib/CMakeFiles/pksav.dir/gba/pokedex.c.o: \ + /Users/spencer/Projects/pksav-sv/lib/gba/pokedex.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/pokedex.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokedex.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o index b77e709..bf1ad1c 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o.d index a5b7de3..307f96c 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gba/save.c.o.d @@ -1,9 +1,12 @@ lib/CMakeFiles/pksav.dir/gba/save.c.o: \ - /Users/spencer/Projects/pksav/lib/gba/save.c \ - /Users/spencer/Projects/pksav/lib/gba/checksum.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ - /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/save.c \ + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/save_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/sections_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/battle_tower.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -31,13 +34,21 @@ lib/CMakeFiles/pksav.dir/gba/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ - /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ - /Users/spencer/Projects/pksav/include/pksav/common/item.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/ribbons.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/daycare.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/mail.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/map.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokedex.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/roamer.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ @@ -76,16 +87,17 @@ lib/CMakeFiles/pksav.dir/gba/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ - /Users/spencer/Projects/pksav/lib/gba/crypt.h \ - /Users/spencer/Projects/pksav/lib/gba/shuffle.h \ - /Users/spencer/Projects/pksav/include/pksav/math/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.h \ + /Users/spencer/Projects/pksav-sv/lib/util/fs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/math/endian.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o index 50db8e1..b4bf70f 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o.d index 2d3b9cc..7d12f9a 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gba/shuffle.c.o.d @@ -1,9 +1,12 @@ lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: \ - /Users/spencer/Projects/pksav/lib/gba/shuffle.c \ - /Users/spencer/Projects/pksav/lib/gba/checksum.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ - /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.c \ + /Users/spencer/Projects/pksav-sv/lib/gba/checksum.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/save_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/sections_internal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/battle_tower.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/contest_stats.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -31,13 +34,21 @@ lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ - /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ - /Users/spencer/Projects/pksav/include/pksav/common/item.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/ribbons.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/daycare.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/mail.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/map.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/pokedex.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/roamer.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ @@ -76,8 +87,9 @@ lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ - /Users/spencer/Projects/pksav/lib/gba/crypt.h \ - /Users/spencer/Projects/pksav/lib/gba/shuffle.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/crypt.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/shuffle.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o index 7d9dfb6..2770ce1 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o.d index db45cca..37d2236 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gba/text.c.o.d @@ -1,19 +1,39 @@ lib/CMakeFiles/pksav.dir/gba/text.c.o: \ - /Users/spencer/Projects/pksav/lib/gba/text.c \ - /Users/spencer/Projects/pksav/lib/gba/../common/text_common.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Users/spencer/Projects/pksav-sv/lib/gba/text.c \ + /Users/spencer/Projects/pksav-sv/lib/util/text_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ @@ -25,18 +45,6 @@ lib/CMakeFiles/pksav.dir/gba/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ @@ -44,14 +52,6 @@ lib/CMakeFiles/pksav.dir/gba/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ @@ -90,8 +90,9 @@ lib/CMakeFiles/pksav.dir/gba/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ - /Users/spencer/Projects/pksav/include/pksav/gba/text.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gba/text.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o index 5051181..f2cf0d2 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o.d index 8fcd878..0455beb 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gen1/save.c.o.d @@ -1,9 +1,11 @@ lib/CMakeFiles/pksav.dir/gen1/save.c.o: \ - /Users/spencer/Projects/pksav/lib/gen1/save.c \ - /Users/spencer/Projects/pksav/include/pksav/gen1/save.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/gen1/items.h \ + /Users/spencer/Projects/pksav-sv/lib/gen1/save.c \ + /Users/spencer/Projects/pksav-sv/lib/gen1/save_internal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -15,9 +17,6 @@ lib/CMakeFiles/pksav.dir/gen1/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ @@ -31,8 +30,6 @@ lib/CMakeFiles/pksav.dir/gen1/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ - /Users/spencer/Projects/pksav/include/pksav/gen1/pokemon.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ @@ -71,6 +68,19 @@ lib/CMakeFiles/pksav.dir/gen1/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Users/spencer/Projects/pksav-sv/lib/util/fs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/save.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/pokedex.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/badges.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/daycare_data.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/pokemon.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/items.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ @@ -85,18 +95,4 @@ lib/CMakeFiles/pksav.dir/gen1/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o index 5b4c56e..bb77f09 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o.d index 7ad3bf3..67471c2 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gen1/text.c.o.d @@ -1,19 +1,39 @@ lib/CMakeFiles/pksav.dir/gen1/text.c.o: \ - /Users/spencer/Projects/pksav/lib/gen1/text.c \ - /Users/spencer/Projects/pksav/lib/gen1/../common/text_common.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Users/spencer/Projects/pksav-sv/lib/gen1/text.c \ + /Users/spencer/Projects/pksav-sv/lib/util/text_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ @@ -25,18 +45,6 @@ lib/CMakeFiles/pksav.dir/gen1/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ @@ -44,14 +52,6 @@ lib/CMakeFiles/pksav.dir/gen1/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ @@ -90,8 +90,9 @@ lib/CMakeFiles/pksav.dir/gen1/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ - /Users/spencer/Projects/pksav/include/pksav/gen1/text.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen1/text.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o index e99ffe6..8bc2b45 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o.d index a41ccf2..c6b92bd 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gen2/save.c.o.d @@ -1,9 +1,8 @@ lib/CMakeFiles/pksav.dir/gen2/save.c.o: \ - /Users/spencer/Projects/pksav/lib/gen2/save.c \ - /Users/spencer/Projects/pksav/include/pksav/gen2/save.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/gen2/items.h \ + /Users/spencer/Projects/pksav-sv/lib/gen2/save.c \ + /Users/spencer/Projects/pksav-sv/lib/gen2/save_internal.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/save.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -31,7 +30,14 @@ lib/CMakeFiles/pksav.dir/gen2/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ - /Users/spencer/Projects/pksav/include/pksav/gen2/pokemon.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/constants.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/daycare_data.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/pokemon.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/items.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ @@ -42,7 +48,7 @@ lib/CMakeFiles/pksav.dir/gen2/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ - /Users/spencer/Projects/pksav/include/pksav/gen2/text.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ @@ -75,11 +81,10 @@ lib/CMakeFiles/pksav.dir/gen2/save.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ - /Users/spencer/Projects/pksav/include/pksav/gen2/time.h \ - /Users/spencer/Projects/pksav/include/pksav/math/bcd.h \ - /Users/spencer/Projects/pksav/include/pksav/math/endian.h \ + /Users/spencer/Projects/pksav-sv/lib/util/fs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/math/endian.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o index 5e9098f..c733203 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o.d index 3cecd60..aaddf6b 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gen2/text.c.o.d @@ -1,19 +1,39 @@ lib/CMakeFiles/pksav.dir/gen2/text.c.o: \ - /Users/spencer/Projects/pksav/lib/gen2/text.c \ - /Users/spencer/Projects/pksav/lib/gen2/../common/text_common.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Users/spencer/Projects/pksav-sv/lib/gen2/text.c \ + /Users/spencer/Projects/pksav-sv/lib/util/text_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ @@ -25,18 +45,6 @@ lib/CMakeFiles/pksav.dir/gen2/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ @@ -44,14 +52,6 @@ lib/CMakeFiles/pksav.dir/gen2/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ @@ -90,8 +90,9 @@ lib/CMakeFiles/pksav.dir/gen2/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ - /Users/spencer/Projects/pksav/include/pksav/gen2/text.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/text.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen2/time.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gen2/time.c.o.d index 42c02c2..ef76533 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gen2/time.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gen2/time.c.o.d @@ -1,8 +1,7 @@ lib/CMakeFiles/pksav.dir/gen2/time.c.o: \ - /Users/spencer/Projects/pksav/lib/gen2/time.c \ - /Users/spencer/Projects/pksav/include/pksav/gen2/time.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/lib/gen2/time.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen2/time.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -30,6 +29,7 @@ lib/CMakeFiles/pksav.dir/gen2/time.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o index 6b58287..e5a6e99 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o.d index f209473..57787bf 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gen4/text.c.o.d @@ -1,19 +1,39 @@ lib/CMakeFiles/pksav.dir/gen4/text.c.o: \ - /Users/spencer/Projects/pksav/lib/gen4/text.c \ - /Users/spencer/Projects/pksav/lib/gen4/../common/text_common.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Users/spencer/Projects/pksav-sv/lib/gen4/text.c \ + /Users/spencer/Projects/pksav-sv/lib/util/text_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ @@ -25,18 +45,6 @@ lib/CMakeFiles/pksav.dir/gen4/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ @@ -44,14 +52,6 @@ lib/CMakeFiles/pksav.dir/gen4/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ @@ -90,12 +90,30 @@ lib/CMakeFiles/pksav.dir/gen4/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ - /Users/spencer/Projects/pksav/include/pksav/gen4/text.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/gen4/text.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o b/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o index 815e0c8..7654cba 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o.d index 383e84d..ee427ae 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/gen5/text.c.o.d @@ -1,8 +1,8 @@ lib/CMakeFiles/pksav.dir/gen5/text.c.o: \ - /Users/spencer/Projects/pksav/lib/gen5/text.c \ - /Users/spencer/Projects/pksav/lib/gen5/../common/xds_common.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav-sv/lib/gen5/text.c \ + /Users/spencer/Projects/pksav-sv/lib/common/xds_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -68,4 +68,4 @@ lib/CMakeFiles/pksav.dir/gen5/text.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ - /Users/spencer/Projects/pksav/include/pksav/gen5/text.h + /Users/spencer/Projects/pksav-sv/include/pksav/gen5/text.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/link.txt b/libpksav/lib/CMakeFiles/pksav.dir/link.txt index 9568c2b..c4f4b8f 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/link.txt +++ b/libpksav/lib/CMakeFiles/pksav.dir/link.txt @@ -1 +1 @@ -/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -dynamiclib -Wl,-headerpad_max_install_names -o libpksav.dylib -install_name /Users/spencer/Projects/pksav/lib/libpksav.dylib CMakeFiles/pksav.dir/error.c.o CMakeFiles/pksav.dir/common/datetime.c.o CMakeFiles/pksav.dir/common/pokedex.c.o CMakeFiles/pksav.dir/common/prng.c.o CMakeFiles/pksav.dir/common/sha1.c.o CMakeFiles/pksav.dir/common/stats.c.o CMakeFiles/pksav.dir/common/text_common.c.o CMakeFiles/pksav.dir/common/xds_common.c.o CMakeFiles/pksav.dir/math/base256.c.o CMakeFiles/pksav.dir/math/bcd.c.o CMakeFiles/pksav.dir/gen1/save.c.o CMakeFiles/pksav.dir/gen1/text.c.o CMakeFiles/pksav.dir/gen2/save.c.o CMakeFiles/pksav.dir/gen2/text.c.o CMakeFiles/pksav.dir/gen2/time.c.o CMakeFiles/pksav.dir/gba/checksum.c.o CMakeFiles/pksav.dir/gba/crypt.c.o CMakeFiles/pksav.dir/gba/save.c.o CMakeFiles/pksav.dir/gba/shuffle.c.o CMakeFiles/pksav.dir/gba/text.c.o CMakeFiles/pksav.dir/gen4/text.c.o CMakeFiles/pksav.dir/gen5/text.c.o -lm +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -dynamiclib -Wl,-headerpad_max_install_names -o libpksav.dylib -install_name /Users/spencer/Projects/pksav-sv/lib/libpksav.dylib CMakeFiles/pksav.dir/error.c.o CMakeFiles/pksav.dir/common/pokedex.c.o CMakeFiles/pksav.dir/common/pokerus.c.o CMakeFiles/pksav.dir/common/stats.c.o CMakeFiles/pksav.dir/common/xds_common.c.o CMakeFiles/pksav.dir/math/base256.c.o CMakeFiles/pksav.dir/math/bcd.c.o CMakeFiles/pksav.dir/gen1/save.c.o CMakeFiles/pksav.dir/gen1/text.c.o CMakeFiles/pksav.dir/gen2/save.c.o CMakeFiles/pksav.dir/gen2/text.c.o CMakeFiles/pksav.dir/gen2/time.c.o CMakeFiles/pksav.dir/gba/checksum.c.o CMakeFiles/pksav.dir/gba/crypt.c.o CMakeFiles/pksav.dir/gba/pokedex.c.o CMakeFiles/pksav.dir/gba/save.c.o CMakeFiles/pksav.dir/gba/shuffle.c.o CMakeFiles/pksav.dir/gba/text.c.o CMakeFiles/pksav.dir/gen4/text.c.o CMakeFiles/pksav.dir/gen5/text.c.o CMakeFiles/pksav.dir/util/fs.c.o CMakeFiles/pksav.dir/util/text_common.c.o -lm diff --git a/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o b/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o index 67f5bfb..8a8c0f9 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o.d index 8e5fbb0..192a22c 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/math/base256.c.o.d @@ -1,8 +1,7 @@ lib/CMakeFiles/pksav.dir/math/base256.c.o: \ - /Users/spencer/Projects/pksav/lib/math/base256.c \ - /Users/spencer/Projects/pksav/include/pksav/math/base256.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/lib/math/base256.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/math/base256.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -30,6 +29,7 @@ lib/CMakeFiles/pksav.dir/math/base256.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o b/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o index 2e35648..bf93fd3 100644 Binary files a/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o and b/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o.d index d7d0c0a..4d25940 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o.d +++ b/libpksav/lib/CMakeFiles/pksav.dir/math/bcd.c.o.d @@ -1,8 +1,7 @@ lib/CMakeFiles/pksav.dir/math/bcd.c.o: \ - /Users/spencer/Projects/pksav/lib/math/bcd.c \ - /Users/spencer/Projects/pksav/include/pksav/math/bcd.h \ - /Users/spencer/Projects/pksav/include/pksav/config.h \ - /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/lib/math/bcd.c \ + /Users/spencer/Projects/pksav-sv/include/pksav/math/bcd.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ @@ -30,6 +29,7 @@ lib/CMakeFiles/pksav.dir/math/bcd.c.o: \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/progress.make b/libpksav/lib/CMakeFiles/pksav.dir/progress.make index 5366b1d..0ec8f5a 100644 --- a/libpksav/lib/CMakeFiles/pksav.dir/progress.make +++ b/libpksav/lib/CMakeFiles/pksav.dir/progress.make @@ -1,24 +1,24 @@ -CMAKE_PROGRESS_1 = 14 -CMAKE_PROGRESS_2 = 15 -CMAKE_PROGRESS_3 = 16 -CMAKE_PROGRESS_4 = 17 -CMAKE_PROGRESS_5 = 18 -CMAKE_PROGRESS_6 = 19 -CMAKE_PROGRESS_7 = 20 -CMAKE_PROGRESS_8 = 21 -CMAKE_PROGRESS_9 = 22 -CMAKE_PROGRESS_10 = 23 -CMAKE_PROGRESS_11 = 24 -CMAKE_PROGRESS_12 = 25 -CMAKE_PROGRESS_13 = 26 -CMAKE_PROGRESS_14 = 27 -CMAKE_PROGRESS_15 = 28 -CMAKE_PROGRESS_16 = 29 -CMAKE_PROGRESS_17 = 30 -CMAKE_PROGRESS_18 = 31 -CMAKE_PROGRESS_19 = 32 -CMAKE_PROGRESS_20 = 33 -CMAKE_PROGRESS_21 = 34 -CMAKE_PROGRESS_22 = 35 -CMAKE_PROGRESS_23 = 36 +CMAKE_PROGRESS_1 = 18 +CMAKE_PROGRESS_2 = 19 +CMAKE_PROGRESS_3 = 20 +CMAKE_PROGRESS_4 = 21 +CMAKE_PROGRESS_5 = 22 +CMAKE_PROGRESS_6 = 23 +CMAKE_PROGRESS_7 = 24 +CMAKE_PROGRESS_8 = 25 +CMAKE_PROGRESS_9 = 26 +CMAKE_PROGRESS_10 = 27 +CMAKE_PROGRESS_11 = 28 +CMAKE_PROGRESS_12 = 29 +CMAKE_PROGRESS_13 = 30 +CMAKE_PROGRESS_14 = 31 +CMAKE_PROGRESS_15 = 32 +CMAKE_PROGRESS_16 = 33 +CMAKE_PROGRESS_17 = 34 +CMAKE_PROGRESS_18 = 35 +CMAKE_PROGRESS_19 = 36 +CMAKE_PROGRESS_20 = 37 +CMAKE_PROGRESS_21 = 38 +CMAKE_PROGRESS_22 = 39 +CMAKE_PROGRESS_23 = 40 diff --git a/libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o b/libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o new file mode 100644 index 0000000..23ef3ae Binary files /dev/null and b/libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o.d new file mode 100644 index 0000000..98324a0 --- /dev/null +++ b/libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o.d @@ -0,0 +1,86 @@ +lib/CMakeFiles/pksav.dir/util/fs.c.o: \ + /Users/spencer/Projects/pksav-sv/lib/util/fs.c \ + /Users/spencer/Projects/pksav-sv/lib/util/fs.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/error.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/assert.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o b/libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o new file mode 100644 index 0000000..cdbf51a Binary files /dev/null and b/libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o differ diff --git a/libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o.d b/libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o.d new file mode 100644 index 0000000..bea92cd --- /dev/null +++ b/libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o.d @@ -0,0 +1,106 @@ +lib/CMakeFiles/pksav.dir/util/text_common.c.o: \ + /Users/spencer/Projects/pksav-sv/lib/util/text_common.c \ + /Users/spencer/Projects/pksav-sv/lib/util/text_common.h \ + /Users/spencer/Projects/pksav-sv/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/locale.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_locale.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib/CMakeLists.txt b/libpksav/lib/CMakeLists.txt index 5784038..2851c06 100644 --- a/libpksav/lib/CMakeLists.txt +++ b/libpksav/lib/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +# Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) @@ -8,6 +8,8 @@ INCLUDE(StaticAnalysisTools) INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} ${PKSAV_SOURCE_DIR}/include ${PKSAV_BINARY_DIR}/include ) @@ -19,11 +21,14 @@ ADD_SUBDIRECTORY(gen4) ADD_SUBDIRECTORY(gen5) ADD_SUBDIRECTORY(common) +ADD_SUBDIRECTORY(crypto) ADD_SUBDIRECTORY(math) +ADD_SUBDIRECTORY(util) SET(pksav_c_sources error.c ${pksav_common_sources} + ${pksav_crypto_sources} ${pksav_math_sources} ${pksav_gen1_sources} ${pksav_gen2_sources} @@ -31,6 +36,7 @@ SET(pksav_c_sources ${pksav_gcn_sources} ${pksav_gen4_sources} ${pksav_gen5_sources} + ${pksav_util_sources} ) SET_SOURCE_FILES_PROPERTIES(${pksav_c_sources} diff --git a/libpksav/lib/Makefile b/libpksav/lib/Makefile index 298168f..d659504 100644 --- a/libpksav/lib/Makefile +++ b/libpksav/lib/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/clean .PHONY : clean # The main clean target @@ -158,22 +158,22 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Convenience name for target. lib/CMakeFiles/pksav.dir/rule: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/CMakeFiles/pksav.dir/rule + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/CMakeFiles/pksav.dir/rule .PHONY : lib/CMakeFiles/pksav.dir/rule # Convenience name for target. @@ -182,39 +182,15 @@ pksav: lib/CMakeFiles/pksav.dir/rule # fast build rule for target. pksav/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/build + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/build .PHONY : pksav/fast -common/datetime.o: common/datetime.c.o -.PHONY : common/datetime.o - -# target to build an object file -common/datetime.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/datetime.c.o -.PHONY : common/datetime.c.o - -common/datetime.i: common/datetime.c.i -.PHONY : common/datetime.i - -# target to preprocess a source file -common/datetime.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/datetime.c.i -.PHONY : common/datetime.c.i - -common/datetime.s: common/datetime.c.s -.PHONY : common/datetime.s - -# target to generate assembly for a file -common/datetime.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/datetime.c.s -.PHONY : common/datetime.c.s - common/pokedex.o: common/pokedex.c.o .PHONY : common/pokedex.o # target to build an object file common/pokedex.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.o .PHONY : common/pokedex.c.o common/pokedex.i: common/pokedex.c.i @@ -222,7 +198,7 @@ common/pokedex.i: common/pokedex.c.i # target to preprocess a source file common/pokedex.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.i .PHONY : common/pokedex.c.i common/pokedex.s: common/pokedex.c.s @@ -230,63 +206,39 @@ common/pokedex.s: common/pokedex.c.s # target to generate assembly for a file common/pokedex.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.s .PHONY : common/pokedex.c.s -common/prng.o: common/prng.c.o -.PHONY : common/prng.o +common/pokerus.o: common/pokerus.c.o +.PHONY : common/pokerus.o # target to build an object file -common/prng.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/prng.c.o -.PHONY : common/prng.c.o +common/pokerus.c.o: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokerus.c.o +.PHONY : common/pokerus.c.o -common/prng.i: common/prng.c.i -.PHONY : common/prng.i +common/pokerus.i: common/pokerus.c.i +.PHONY : common/pokerus.i # target to preprocess a source file -common/prng.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/prng.c.i -.PHONY : common/prng.c.i +common/pokerus.c.i: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokerus.c.i +.PHONY : common/pokerus.c.i -common/prng.s: common/prng.c.s -.PHONY : common/prng.s +common/pokerus.s: common/pokerus.c.s +.PHONY : common/pokerus.s # target to generate assembly for a file -common/prng.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/prng.c.s -.PHONY : common/prng.c.s - -common/sha1.o: common/sha1.c.o -.PHONY : common/sha1.o - -# target to build an object file -common/sha1.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/sha1.c.o -.PHONY : common/sha1.c.o - -common/sha1.i: common/sha1.c.i -.PHONY : common/sha1.i - -# target to preprocess a source file -common/sha1.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/sha1.c.i -.PHONY : common/sha1.c.i - -common/sha1.s: common/sha1.c.s -.PHONY : common/sha1.s - -# target to generate assembly for a file -common/sha1.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/sha1.c.s -.PHONY : common/sha1.c.s +common/pokerus.c.s: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokerus.c.s +.PHONY : common/pokerus.c.s common/stats.o: common/stats.c.o .PHONY : common/stats.o # target to build an object file common/stats.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.o .PHONY : common/stats.c.o common/stats.i: common/stats.c.i @@ -294,7 +246,7 @@ common/stats.i: common/stats.c.i # target to preprocess a source file common/stats.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.i .PHONY : common/stats.c.i common/stats.s: common/stats.c.s @@ -302,39 +254,15 @@ common/stats.s: common/stats.c.s # target to generate assembly for a file common/stats.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.s .PHONY : common/stats.c.s -common/text_common.o: common/text_common.c.o -.PHONY : common/text_common.o - -# target to build an object file -common/text_common.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/text_common.c.o -.PHONY : common/text_common.c.o - -common/text_common.i: common/text_common.c.i -.PHONY : common/text_common.i - -# target to preprocess a source file -common/text_common.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/text_common.c.i -.PHONY : common/text_common.c.i - -common/text_common.s: common/text_common.c.s -.PHONY : common/text_common.s - -# target to generate assembly for a file -common/text_common.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/text_common.c.s -.PHONY : common/text_common.c.s - common/xds_common.o: common/xds_common.c.o .PHONY : common/xds_common.o # target to build an object file common/xds_common.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.o .PHONY : common/xds_common.c.o common/xds_common.i: common/xds_common.c.i @@ -342,7 +270,7 @@ common/xds_common.i: common/xds_common.c.i # target to preprocess a source file common/xds_common.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.i .PHONY : common/xds_common.c.i common/xds_common.s: common/xds_common.c.s @@ -350,7 +278,7 @@ common/xds_common.s: common/xds_common.c.s # target to generate assembly for a file common/xds_common.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.s .PHONY : common/xds_common.c.s error.o: error.c.o @@ -358,7 +286,7 @@ error.o: error.c.o # target to build an object file error.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.o .PHONY : error.c.o error.i: error.c.i @@ -366,7 +294,7 @@ error.i: error.c.i # target to preprocess a source file error.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.i .PHONY : error.c.i error.s: error.c.s @@ -374,7 +302,7 @@ error.s: error.c.s # target to generate assembly for a file error.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.s .PHONY : error.c.s gba/checksum.o: gba/checksum.c.o @@ -382,7 +310,7 @@ gba/checksum.o: gba/checksum.c.o # target to build an object file gba/checksum.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.o .PHONY : gba/checksum.c.o gba/checksum.i: gba/checksum.c.i @@ -390,7 +318,7 @@ gba/checksum.i: gba/checksum.c.i # target to preprocess a source file gba/checksum.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.i .PHONY : gba/checksum.c.i gba/checksum.s: gba/checksum.c.s @@ -398,7 +326,7 @@ gba/checksum.s: gba/checksum.c.s # target to generate assembly for a file gba/checksum.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.s .PHONY : gba/checksum.c.s gba/crypt.o: gba/crypt.c.o @@ -406,7 +334,7 @@ gba/crypt.o: gba/crypt.c.o # target to build an object file gba/crypt.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.o .PHONY : gba/crypt.c.o gba/crypt.i: gba/crypt.c.i @@ -414,7 +342,7 @@ gba/crypt.i: gba/crypt.c.i # target to preprocess a source file gba/crypt.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.i .PHONY : gba/crypt.c.i gba/crypt.s: gba/crypt.c.s @@ -422,15 +350,39 @@ gba/crypt.s: gba/crypt.c.s # target to generate assembly for a file gba/crypt.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.s .PHONY : gba/crypt.c.s +gba/pokedex.o: gba/pokedex.c.o +.PHONY : gba/pokedex.o + +# target to build an object file +gba/pokedex.c.o: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/pokedex.c.o +.PHONY : gba/pokedex.c.o + +gba/pokedex.i: gba/pokedex.c.i +.PHONY : gba/pokedex.i + +# target to preprocess a source file +gba/pokedex.c.i: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/pokedex.c.i +.PHONY : gba/pokedex.c.i + +gba/pokedex.s: gba/pokedex.c.s +.PHONY : gba/pokedex.s + +# target to generate assembly for a file +gba/pokedex.c.s: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/pokedex.c.s +.PHONY : gba/pokedex.c.s + gba/save.o: gba/save.c.o .PHONY : gba/save.o # target to build an object file gba/save.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.o .PHONY : gba/save.c.o gba/save.i: gba/save.c.i @@ -438,7 +390,7 @@ gba/save.i: gba/save.c.i # target to preprocess a source file gba/save.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.i .PHONY : gba/save.c.i gba/save.s: gba/save.c.s @@ -446,7 +398,7 @@ gba/save.s: gba/save.c.s # target to generate assembly for a file gba/save.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.s .PHONY : gba/save.c.s gba/shuffle.o: gba/shuffle.c.o @@ -454,7 +406,7 @@ gba/shuffle.o: gba/shuffle.c.o # target to build an object file gba/shuffle.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.o .PHONY : gba/shuffle.c.o gba/shuffle.i: gba/shuffle.c.i @@ -462,7 +414,7 @@ gba/shuffle.i: gba/shuffle.c.i # target to preprocess a source file gba/shuffle.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.i .PHONY : gba/shuffle.c.i gba/shuffle.s: gba/shuffle.c.s @@ -470,7 +422,7 @@ gba/shuffle.s: gba/shuffle.c.s # target to generate assembly for a file gba/shuffle.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.s .PHONY : gba/shuffle.c.s gba/text.o: gba/text.c.o @@ -478,7 +430,7 @@ gba/text.o: gba/text.c.o # target to build an object file gba/text.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.o .PHONY : gba/text.c.o gba/text.i: gba/text.c.i @@ -486,7 +438,7 @@ gba/text.i: gba/text.c.i # target to preprocess a source file gba/text.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.i .PHONY : gba/text.c.i gba/text.s: gba/text.c.s @@ -494,7 +446,7 @@ gba/text.s: gba/text.c.s # target to generate assembly for a file gba/text.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.s .PHONY : gba/text.c.s gen1/save.o: gen1/save.c.o @@ -502,7 +454,7 @@ gen1/save.o: gen1/save.c.o # target to build an object file gen1/save.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.o .PHONY : gen1/save.c.o gen1/save.i: gen1/save.c.i @@ -510,7 +462,7 @@ gen1/save.i: gen1/save.c.i # target to preprocess a source file gen1/save.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.i .PHONY : gen1/save.c.i gen1/save.s: gen1/save.c.s @@ -518,7 +470,7 @@ gen1/save.s: gen1/save.c.s # target to generate assembly for a file gen1/save.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.s .PHONY : gen1/save.c.s gen1/text.o: gen1/text.c.o @@ -526,7 +478,7 @@ gen1/text.o: gen1/text.c.o # target to build an object file gen1/text.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.o .PHONY : gen1/text.c.o gen1/text.i: gen1/text.c.i @@ -534,7 +486,7 @@ gen1/text.i: gen1/text.c.i # target to preprocess a source file gen1/text.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.i .PHONY : gen1/text.c.i gen1/text.s: gen1/text.c.s @@ -542,7 +494,7 @@ gen1/text.s: gen1/text.c.s # target to generate assembly for a file gen1/text.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.s .PHONY : gen1/text.c.s gen2/save.o: gen2/save.c.o @@ -550,7 +502,7 @@ gen2/save.o: gen2/save.c.o # target to build an object file gen2/save.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.o .PHONY : gen2/save.c.o gen2/save.i: gen2/save.c.i @@ -558,7 +510,7 @@ gen2/save.i: gen2/save.c.i # target to preprocess a source file gen2/save.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.i .PHONY : gen2/save.c.i gen2/save.s: gen2/save.c.s @@ -566,7 +518,7 @@ gen2/save.s: gen2/save.c.s # target to generate assembly for a file gen2/save.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.s .PHONY : gen2/save.c.s gen2/text.o: gen2/text.c.o @@ -574,7 +526,7 @@ gen2/text.o: gen2/text.c.o # target to build an object file gen2/text.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.o .PHONY : gen2/text.c.o gen2/text.i: gen2/text.c.i @@ -582,7 +534,7 @@ gen2/text.i: gen2/text.c.i # target to preprocess a source file gen2/text.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.i .PHONY : gen2/text.c.i gen2/text.s: gen2/text.c.s @@ -590,7 +542,7 @@ gen2/text.s: gen2/text.c.s # target to generate assembly for a file gen2/text.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.s .PHONY : gen2/text.c.s gen2/time.o: gen2/time.c.o @@ -598,7 +550,7 @@ gen2/time.o: gen2/time.c.o # target to build an object file gen2/time.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.o .PHONY : gen2/time.c.o gen2/time.i: gen2/time.c.i @@ -606,7 +558,7 @@ gen2/time.i: gen2/time.c.i # target to preprocess a source file gen2/time.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.i .PHONY : gen2/time.c.i gen2/time.s: gen2/time.c.s @@ -614,7 +566,7 @@ gen2/time.s: gen2/time.c.s # target to generate assembly for a file gen2/time.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.s .PHONY : gen2/time.c.s gen4/text.o: gen4/text.c.o @@ -622,7 +574,7 @@ gen4/text.o: gen4/text.c.o # target to build an object file gen4/text.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.o .PHONY : gen4/text.c.o gen4/text.i: gen4/text.c.i @@ -630,7 +582,7 @@ gen4/text.i: gen4/text.c.i # target to preprocess a source file gen4/text.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.i .PHONY : gen4/text.c.i gen4/text.s: gen4/text.c.s @@ -638,7 +590,7 @@ gen4/text.s: gen4/text.c.s # target to generate assembly for a file gen4/text.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.s .PHONY : gen4/text.c.s gen5/text.o: gen5/text.c.o @@ -646,7 +598,7 @@ gen5/text.o: gen5/text.c.o # target to build an object file gen5/text.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.o .PHONY : gen5/text.c.o gen5/text.i: gen5/text.c.i @@ -654,7 +606,7 @@ gen5/text.i: gen5/text.c.i # target to preprocess a source file gen5/text.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.i .PHONY : gen5/text.c.i gen5/text.s: gen5/text.c.s @@ -662,7 +614,7 @@ gen5/text.s: gen5/text.c.s # target to generate assembly for a file gen5/text.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.s .PHONY : gen5/text.c.s math/base256.o: math/base256.c.o @@ -670,7 +622,7 @@ math/base256.o: math/base256.c.o # target to build an object file math/base256.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.o .PHONY : math/base256.c.o math/base256.i: math/base256.c.i @@ -678,7 +630,7 @@ math/base256.i: math/base256.c.i # target to preprocess a source file math/base256.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.i .PHONY : math/base256.c.i math/base256.s: math/base256.c.s @@ -686,7 +638,7 @@ math/base256.s: math/base256.c.s # target to generate assembly for a file math/base256.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.s .PHONY : math/base256.c.s math/bcd.o: math/bcd.c.o @@ -694,7 +646,7 @@ math/bcd.o: math/bcd.c.o # target to build an object file math/bcd.c.o: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.o + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.o .PHONY : math/bcd.c.o math/bcd.i: math/bcd.c.i @@ -702,7 +654,7 @@ math/bcd.i: math/bcd.c.i # target to preprocess a source file math/bcd.c.i: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.i + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.i .PHONY : math/bcd.c.i math/bcd.s: math/bcd.c.s @@ -710,9 +662,57 @@ math/bcd.s: math/bcd.c.s # target to generate assembly for a file math/bcd.c.s: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.s + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.s .PHONY : math/bcd.c.s +util/fs.o: util/fs.c.o +.PHONY : util/fs.o + +# target to build an object file +util/fs.c.o: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/util/fs.c.o +.PHONY : util/fs.c.o + +util/fs.i: util/fs.c.i +.PHONY : util/fs.i + +# target to preprocess a source file +util/fs.c.i: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/util/fs.c.i +.PHONY : util/fs.c.i + +util/fs.s: util/fs.c.s +.PHONY : util/fs.s + +# target to generate assembly for a file +util/fs.c.s: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/util/fs.c.s +.PHONY : util/fs.c.s + +util/text_common.o: util/text_common.c.o +.PHONY : util/text_common.o + +# target to build an object file +util/text_common.c.o: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/util/text_common.c.o +.PHONY : util/text_common.c.o + +util/text_common.i: util/text_common.c.i +.PHONY : util/text_common.i + +# target to preprocess a source file +util/text_common.c.i: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/util/text_common.c.i +.PHONY : util/text_common.c.i + +util/text_common.s: util/text_common.c.s +.PHONY : util/text_common.s + +# target to generate assembly for a file +util/text_common.c.s: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/util/text_common.c.s +.PHONY : util/text_common.c.s + # Help Target help: @echo "The following are some of the valid targets for this Makefile:" @@ -727,24 +727,15 @@ help: @echo "... rebuild_cache" @echo "... test" @echo "... pksav" - @echo "... common/datetime.o" - @echo "... common/datetime.i" - @echo "... common/datetime.s" @echo "... common/pokedex.o" @echo "... common/pokedex.i" @echo "... common/pokedex.s" - @echo "... common/prng.o" - @echo "... common/prng.i" - @echo "... common/prng.s" - @echo "... common/sha1.o" - @echo "... common/sha1.i" - @echo "... common/sha1.s" + @echo "... common/pokerus.o" + @echo "... common/pokerus.i" + @echo "... common/pokerus.s" @echo "... common/stats.o" @echo "... common/stats.i" @echo "... common/stats.s" - @echo "... common/text_common.o" - @echo "... common/text_common.i" - @echo "... common/text_common.s" @echo "... common/xds_common.o" @echo "... common/xds_common.i" @echo "... common/xds_common.s" @@ -757,6 +748,9 @@ help: @echo "... gba/crypt.o" @echo "... gba/crypt.i" @echo "... gba/crypt.s" + @echo "... gba/pokedex.o" + @echo "... gba/pokedex.i" + @echo "... gba/pokedex.s" @echo "... gba/save.o" @echo "... gba/save.i" @echo "... gba/save.s" @@ -793,6 +787,12 @@ help: @echo "... math/bcd.o" @echo "... math/bcd.i" @echo "... math/bcd.s" + @echo "... util/fs.o" + @echo "... util/fs.i" + @echo "... util/fs.s" + @echo "... util/text_common.o" + @echo "... util/text_common.i" + @echo "... util/text_common.s" .PHONY : help @@ -804,6 +804,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/cmake_install.cmake b/libpksav/lib/cmake_install.cmake index b013bd1..f6a3345 100644 --- a/libpksav/lib/cmake_install.cmake +++ b/libpksav/lib/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) @@ -38,7 +38,7 @@ if(NOT DEFINED CMAKE_OBJDUMP) endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Libraries" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/Users/spencer/Projects/pksav/lib/libpksav.dylib") + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/Users/spencer/Projects/pksav-sv/lib/libpksav.dylib") if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libpksav.dylib" AND NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libpksav.dylib") execute_process(COMMAND "/usr/bin/install_name_tool" @@ -54,18 +54,20 @@ if(CMAKE_INSTALL_COMPONENT STREQUAL "Libraries" OR NOT CMAKE_INSTALL_COMPONENT) endif() if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) - file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/Users/spencer/Projects/pksav/lib/pksav.pc") + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/Users/spencer/Projects/pksav-sv/lib/pksav.pc") endif() if(NOT CMAKE_INSTALL_LOCAL_ONLY) # Include the install script for each subdirectory. - include("/Users/spencer/Projects/pksav/lib/gen1/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/lib/gen2/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/lib/gba/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/lib/gen4/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/lib/gen5/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/lib/common/cmake_install.cmake") - include("/Users/spencer/Projects/pksav/lib/math/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/gen1/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/gen2/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/gba/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/gen4/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/gen5/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/common/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/crypto/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/math/cmake_install.cmake") + include("/Users/spencer/Projects/pksav-sv/lib/util/cmake_install.cmake") endif() diff --git a/libpksav/lib/common/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/common/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/lib/common/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/lib/common/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/lib/common/CMakeLists.txt b/libpksav/lib/common/CMakeLists.txt index c0e713f..0a16422 100644 --- a/libpksav/lib/common/CMakeLists.txt +++ b/libpksav/lib/common/CMakeLists.txt @@ -1,16 +1,13 @@ # -# Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +# Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) # SET(pksav_common_sources - ${CMAKE_CURRENT_SOURCE_DIR}/datetime.c ${CMAKE_CURRENT_SOURCE_DIR}/pokedex.c - ${CMAKE_CURRENT_SOURCE_DIR}/prng.c - ${CMAKE_CURRENT_SOURCE_DIR}/sha1.c + ${CMAKE_CURRENT_SOURCE_DIR}/pokerus.c ${CMAKE_CURRENT_SOURCE_DIR}/stats.c - ${CMAKE_CURRENT_SOURCE_DIR}/text_common.c ${CMAKE_CURRENT_SOURCE_DIR}/xds_common.c PARENT_SCOPE) diff --git a/libpksav/lib/common/Makefile b/libpksav/lib/common/Makefile index 2dc1d20..0f48dd4 100644 --- a/libpksav/lib/common/Makefile +++ b/libpksav/lib/common/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/common//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/common//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/common/cmake_install.cmake b/libpksav/lib/common/cmake_install.cmake index 82bb590..2bca68c 100644 --- a/libpksav/lib/common/cmake_install.cmake +++ b/libpksav/lib/common/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib/common +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/common # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) diff --git a/libpksav/lib/common/pokedex.c b/libpksav/lib/common/pokedex.c index 3334bea..b1e7837 100644 --- a/libpksav/lib/common/pokedex.c +++ b/libpksav/lib/common/pokedex.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -7,48 +7,61 @@ #include +#include #include +#include -static PKSAV_INLINE void _pksav_get_pokedex_bit_pos( +static inline void _pksav_get_pokedex_bit_pos( uint16_t pokedex_num, - uint8_t* index, - uint8_t* mask -) { - *index = (uint8_t)((pokedex_num-1)/8); - *mask = (uint8_t)(pow(2.0, ((pokedex_num-1)%8))); + uint8_t* p_index, + uint8_t* p_mask +) +{ + assert(p_index != NULL); + assert(p_mask != NULL); + + *p_index = (uint8_t)((pokedex_num-1)/8); + *p_mask = (uint8_t)(pow(2.0, ((pokedex_num-1)%8))); } -pksav_error_t pksav_get_pokedex_bit( - const uint8_t* raw, +enum pksav_error pksav_get_pokedex_bit( + const uint8_t* p_buffer, uint16_t pokedex_num, - bool* result_out -) { - if(!raw || !result_out) { + bool* p_result_out +) +{ + if(!p_buffer || !p_result_out) + { return PKSAV_ERROR_NULL_POINTER; } uint8_t index, mask; _pksav_get_pokedex_bit_pos(pokedex_num, &index, &mask); - *result_out = (bool)(raw[index] & mask); + *p_result_out = (bool)(p_buffer[index] & mask); return PKSAV_ERROR_NONE; } -pksav_error_t pksav_set_pokedex_bit( - uint8_t* raw, +enum pksav_error pksav_set_pokedex_bit( + uint8_t* p_buffer, uint16_t pokedex_num, bool set -) { - if(!raw) { +) +{ + if(!p_buffer) + { return PKSAV_ERROR_NULL_POINTER; } uint8_t index, mask; _pksav_get_pokedex_bit_pos(pokedex_num, &index, &mask); - if(set) { - raw[index] |= mask; - } else { - raw[index] &= ~mask; + if(set) + { + p_buffer[index] |= mask; + } + else + { + p_buffer[index] &= ~mask; } return PKSAV_ERROR_NONE; diff --git a/libpksav/lib/common/pokerus.c b/libpksav/lib/common/pokerus.c new file mode 100644 index 0000000..6344335 --- /dev/null +++ b/libpksav/lib/common/pokerus.c @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +enum pksav_error pksav_pokerus_get_strain( + const uint8_t* p_pokerus, + enum pksav_pokerus_strain* p_strain_out +) +{ + if(!p_pokerus || !p_strain_out) + { + return PKSAV_ERROR_NULL_POINTER; + } + + *p_strain_out = (enum pksav_pokerus_strain)((((*p_pokerus) & PKSAV_POKERUS_STRAIN_MASK) >> 4) % 4); + + return PKSAV_ERROR_NONE; +} + +enum pksav_error pksav_pokerus_set_strain( + uint8_t* p_pokerus, + enum pksav_pokerus_strain strain +) +{ + if(!p_pokerus) + { + return PKSAV_ERROR_NULL_POINTER; + } + + *p_pokerus = (strain << 4) | ((strain % 4) + 1); + + return PKSAV_ERROR_NONE; +} + +enum pksav_error pksav_pokerus_get_duration( + const uint8_t* p_pokerus, + uint8_t* p_duration_out +) +{ + if(!p_pokerus || !p_duration_out) + { + return PKSAV_ERROR_NULL_POINTER; + } + + *p_duration_out = ((*p_pokerus) & PKSAV_POKERUS_DURATION_MASK); + + return PKSAV_ERROR_NONE; +} + +enum pksav_error pksav_pokerus_set_duration( + uint8_t* p_pokerus, + uint8_t duration +) +{ + if(!p_pokerus) + { + return PKSAV_ERROR_NULL_POINTER; + } + if(duration > 15) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + + *p_pokerus &= ~PKSAV_POKERUS_DURATION_MASK; + *p_pokerus |= duration; + + // Adjust the strain if the duration is incompatible. + if(duration >= 12) + { + *p_pokerus &= ~PKSAV_POKERUS_STRAIN_MASK; + *p_pokerus |= ((duration % 4) << 4); + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib/common/prng.h b/libpksav/lib/common/prng.h new file mode 100644 index 0000000..e562d7d --- /dev/null +++ b/libpksav/lib/common/prng.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_PRNG_H +#define PKSAV_COMMON_PRNG_H + +#include +#include + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct pksav_lcrng +{ + uint32_t seed; +}; + +static inline enum pksav_error pksav_lcrng_next( + struct pksav_lcrng* p_lcrng, + uint32_t* p_next_value +) +{ + if(!p_lcrng) + { + return PKSAV_ERROR_NULL_POINTER; + } + if(!p_next_value) + { + return PKSAV_ERROR_NULL_POINTER; + } + + p_lcrng->seed = (0x41C64E6D * p_lcrng->seed) + 0x6073; + *p_next_value = p_lcrng->seed; + + return PKSAV_ERROR_NONE; +} + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_COMMON_PRNG_H */ diff --git a/libpksav/lib/common/stats.c b/libpksav/lib/common/stats.c index a5a8a74..382f90e 100644 --- a/libpksav/lib/common/stats.c +++ b/libpksav/lib/common/stats.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -9,193 +9,255 @@ #include +#include #include -#define PKSAV_GB_ATK_IV_MASK ((uint16_t)0xF000) -#define PKSAV_GB_DEF_IV_MASK ((uint16_t)0x0F00) -#define PKSAV_GB_SPD_IV_MASK ((uint16_t)0x00F0) -#define PKSAV_GB_SPCL_IV_MASK ((uint16_t)0x000F) +#define PKSAV_GB_ATK_IV_MASK ((uint16_t)0xF000) +#define PKSAV_GB_ATK_IV_OFFSET (12) -pksav_error_t pksav_get_gb_IV( - const uint16_t* raw, - pksav_battle_stat_t stat, - uint8_t* IV_out -) { - if(!raw || !IV_out) { - return PKSAV_ERROR_NULL_POINTER; - } +#define PKSAV_GB_ATK_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_GB_ATK_IV_MASK) >> PKSAV_GB_ATK_IV_OFFSET)) - switch(stat) { - case PKSAV_STAT_HP: { - uint8_t atk, def, spd, spcl; - (void)pksav_get_gb_IV(raw, PKSAV_STAT_ATTACK, &atk); - (void)pksav_get_gb_IV(raw, PKSAV_STAT_DEFENSE, &def); - (void)pksav_get_gb_IV(raw, PKSAV_STAT_SPEED, &spd); - (void)pksav_get_gb_IV(raw, PKSAV_STAT_SPECIAL, &spcl); - *IV_out = ((atk & 0x01) << 3) | ((def & 0x01) << 2) - | ((spd & 0x01) << 1) | (spcl & 0x01); - break; - } +#define PKSAV_GB_DEF_IV_MASK ((uint16_t)0x0F00) +#define PKSAV_GB_DEF_IV_OFFSET (8) - case PKSAV_STAT_ATTACK: - *IV_out = ((*raw) & PKSAV_GB_ATK_IV_MASK) >> 12; - break; +#define PKSAV_GB_DEF_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_GB_DEF_IV_MASK) >> PKSAV_GB_DEF_IV_OFFSET)) - case PKSAV_STAT_DEFENSE: - *IV_out = ((*raw) & PKSAV_GB_DEF_IV_MASK) >> 8; - break; +#define PKSAV_GB_SPD_IV_MASK ((uint16_t)0x00F0) +#define PKSAV_GB_SPD_IV_OFFSET (4) - case PKSAV_STAT_SPEED: - *IV_out = ((*raw) & PKSAV_GB_SPD_IV_MASK) >> 4; - break; +#define PKSAV_GB_SPD_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_GB_SPD_IV_MASK) >> PKSAV_GB_SPD_IV_OFFSET)) - case PKSAV_STAT_SPATK: - case PKSAV_STAT_SPDEF: - case PKSAV_STAT_SPECIAL: - *IV_out = (*raw) & PKSAV_GB_SPCL_IV_MASK; - break; +#define PKSAV_GB_SPCL_IV_MASK ((uint16_t)0x000F) - default: - return PKSAV_ERROR_INVALID_STAT; +#define PKSAV_GB_SPCL_IV(raw) \ + ((uint8_t)((raw) & PKSAV_GB_SPCL_IV_MASK)) + +enum pksav_error pksav_get_gb_IVs( + const uint16_t* p_raw_IV, + uint8_t* IVs_out, + size_t IV_buffer_size +) +{ + if(!p_raw_IV || !IVs_out) + { + return PKSAV_ERROR_NULL_POINTER; + } + + if(IV_buffer_size > PKSAV_GB_IV_ATTACK) + { + IVs_out[PKSAV_GB_IV_ATTACK] = PKSAV_GB_ATK_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_GB_IV_DEFENSE) + { + IVs_out[PKSAV_GB_IV_DEFENSE] = PKSAV_GB_DEF_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_GB_IV_SPEED) + { + IVs_out[PKSAV_GB_IV_SPEED] = PKSAV_GB_SPD_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_GB_IV_SPECIAL) + { + IVs_out[PKSAV_GB_IV_SPECIAL] = PKSAV_GB_SPCL_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_GB_IV_HP) + { + IVs_out[PKSAV_GB_IV_HP] = (IVs_out[PKSAV_GB_IV_SPECIAL] & 0x01) + | ((IVs_out[PKSAV_GB_IV_SPEED] & 0x01) << 1) + | ((IVs_out[PKSAV_GB_IV_DEFENSE] & 0x01) << 2) + | ((IVs_out[PKSAV_GB_IV_ATTACK] & 0x01) << 3); } return PKSAV_ERROR_NONE; } -pksav_error_t pksav_set_gb_IV( - uint16_t* raw, - pksav_battle_stat_t stat, - uint8_t new_IV -) { - if(!raw) { +enum pksav_error pksav_set_gb_IV( + enum pksav_gb_IV stat, + uint8_t IV_value, + uint16_t* p_raw_IV +) +{ + if(!p_raw_IV) + { return PKSAV_ERROR_NULL_POINTER; } - - if(new_IV > 15) { + if((stat < PKSAV_GB_IV_ATTACK) || (stat > PKSAV_GB_IV_HP)) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + if(IV_value > PKSAV_MAX_GB_IV) + { return PKSAV_ERROR_PARAM_OUT_OF_RANGE; } - switch(stat) { - case PKSAV_STAT_HP: - *raw = (((*raw) & 0xEEEE) | ((new_IV & 0x08) << 9) - | ((new_IV & 0x04) << 6) - | ((new_IV & 0x02) << 3) - | (new_IV & 0x01)); + switch(stat) + { + case PKSAV_GB_IV_ATTACK: + (*p_raw_IV) &= ~PKSAV_GB_ATK_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_GB_ATK_IV_OFFSET); break; - case PKSAV_STAT_ATTACK: - *raw = ((*raw) & ~PKSAV_GB_ATK_IV_MASK) | (new_IV << 12); + case PKSAV_GB_IV_DEFENSE: + (*p_raw_IV) &= ~PKSAV_GB_DEF_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_GB_DEF_IV_OFFSET); break; - case PKSAV_STAT_DEFENSE: - *raw = ((*raw) & ~PKSAV_GB_DEF_IV_MASK) | (new_IV << 8); + case PKSAV_GB_IV_SPEED: + (*p_raw_IV) &= ~PKSAV_GB_SPD_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_GB_SPD_IV_OFFSET); break; - case PKSAV_STAT_SPEED: - *raw = ((*raw) & ~PKSAV_GB_SPD_IV_MASK) | (new_IV << 4); + case PKSAV_GB_IV_SPECIAL: + (*p_raw_IV) &= ~PKSAV_GB_SPCL_IV_MASK; + (*p_raw_IV) |= IV_value; break; - case PKSAV_STAT_SPATK: - case PKSAV_STAT_SPDEF: - case PKSAV_STAT_SPECIAL: - *raw = ((*raw) & ~PKSAV_GB_SPCL_IV_MASK) | new_IV; + case PKSAV_GB_IV_HP: + (*p_raw_IV) = ((*p_raw_IV) & 0xEEEE) + | ((IV_value & 0x08) << 9) + | ((IV_value & 0x04) << 6) + | ((IV_value & 0x02) << 3) + | (IV_value & 0x01); break; + // This should have been caught by the input validation above. default: - return PKSAV_ERROR_INVALID_STAT; + assert(0); } return PKSAV_ERROR_NONE; } -#define PKSAV_HP_IV_MASK ((uint32_t)0x1F) +#define PKSAV_HP_IV_MASK ((uint32_t)0x1F) + +#define PKSAV_HP_IV(raw) \ + ((uint8_t)((raw) & PKSAV_HP_IV_MASK)) + #define PKSAV_ATK_IV_MASK ((uint32_t)0x3E0) +#define PKSAV_ATK_IV_OFFSET (5) + +#define PKSAV_ATK_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_ATK_IV_MASK) >> PKSAV_ATK_IV_OFFSET)) + #define PKSAV_DEF_IV_MASK ((uint32_t)0x7C00) +#define PKSAV_DEF_IV_OFFSET (10) + +#define PKSAV_DEF_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_DEF_IV_MASK) >> PKSAV_DEF_IV_OFFSET)) + #define PKSAV_SPD_IV_MASK ((uint32_t)0xF8000) -#define PKSAV_SPATK_IV_MASK ((uint32_t)0x1F00000) -#define PKSAV_SPDEF_IV_MASK ((uint32_t)0x3E000000) - -pksav_error_t pksav_get_IV( - const uint32_t* raw, - pksav_battle_stat_t stat, - uint8_t* IV_out -) { - if(!raw || !IV_out) { - return PKSAV_ERROR_NULL_POINTER; - } +#define PKSAV_SPD_IV_OFFSET (15) - switch(stat) { - case PKSAV_STAT_HP: - *IV_out = (*raw) & PKSAV_HP_IV_MASK; - break; +#define PKSAV_SPD_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_SPD_IV_MASK) >> PKSAV_SPD_IV_OFFSET)) - case PKSAV_STAT_ATTACK: - *IV_out = ((*raw) & PKSAV_ATK_IV_MASK) >> 5; - break; +#define PKSAV_SPATK_IV_MASK ((uint32_t)0x1F00000) +#define PKSAV_SPATK_IV_OFFSET (20) - case PKSAV_STAT_DEFENSE: - *IV_out = ((*raw) & PKSAV_DEF_IV_MASK) >> 10; - break; +#define PKSAV_SPATK_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_SPATK_IV_MASK) >> PKSAV_SPATK_IV_OFFSET)) - case PKSAV_STAT_SPEED: - *IV_out = ((*raw) & PKSAV_SPD_IV_MASK) >> 15; - break; +#define PKSAV_SPDEF_IV_MASK ((uint32_t)0x3E000000) +#define PKSAV_SPDEF_IV_OFFSET (25) - case PKSAV_STAT_SPATK: - *IV_out = ((*raw) & PKSAV_SPATK_IV_MASK) >> 20; - break; +#define PKSAV_SPDEF_IV(raw) \ + ((uint8_t)(((raw) & PKSAV_SPDEF_IV_MASK) >> PKSAV_SPDEF_IV_OFFSET)) - case PKSAV_STAT_SPDEF: - *IV_out = ((*raw) & PKSAV_SPDEF_IV_MASK) >> 25; - break; +enum pksav_error pksav_get_IVs( + const uint32_t* p_raw_IV, + uint8_t* IVs_out, + size_t IV_buffer_size +) +{ + if(!p_raw_IV || !IVs_out) + { + return PKSAV_ERROR_NULL_POINTER; + } - default: - return PKSAV_ERROR_INVALID_STAT; + if(IV_buffer_size > PKSAV_IV_ATTACK) + { + IVs_out[PKSAV_IV_ATTACK] = PKSAV_ATK_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_IV_DEFENSE) + { + IVs_out[PKSAV_IV_DEFENSE] = PKSAV_DEF_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_IV_SPEED) + { + IVs_out[PKSAV_IV_SPEED] = PKSAV_SPD_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_IV_SPATK) + { + IVs_out[PKSAV_IV_SPATK] = PKSAV_SPATK_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_IV_SPDEF) + { + IVs_out[PKSAV_IV_SPDEF] = PKSAV_SPDEF_IV((*p_raw_IV)); + } + if(IV_buffer_size > PKSAV_IV_HP) + { + IVs_out[PKSAV_IV_HP] = PKSAV_HP_IV((*p_raw_IV)); } return PKSAV_ERROR_NONE; } -pksav_error_t pksav_set_IV( - uint32_t* raw, - pksav_battle_stat_t stat, - uint8_t new_IV -) { - if(!raw) { +enum pksav_error pksav_set_IV( + enum pksav_IV stat, + uint8_t IV_value, + uint32_t* p_raw_IV +) +{ + if(!p_raw_IV) + { return PKSAV_ERROR_NULL_POINTER; } - - if(new_IV > 31) { + if((stat < PKSAV_IV_ATTACK) || (stat > PKSAV_IV_HP)) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + if(IV_value > PKSAV_MAX_IV) + { return PKSAV_ERROR_PARAM_OUT_OF_RANGE; } - switch(stat) { - case PKSAV_STAT_HP: - *raw = ((*raw) & ~PKSAV_HP_IV_MASK) | new_IV; + switch(stat) + { + case PKSAV_IV_ATTACK: + (*p_raw_IV) &= ~PKSAV_ATK_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_ATK_IV_OFFSET); break; - case PKSAV_STAT_ATTACK: - *raw = ((*raw) & ~PKSAV_ATK_IV_MASK) | (new_IV << 5); + case PKSAV_IV_DEFENSE: + (*p_raw_IV) &= ~PKSAV_DEF_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_DEF_IV_OFFSET); break; - case PKSAV_STAT_DEFENSE: - *raw = ((*raw) & ~PKSAV_DEF_IV_MASK) | (new_IV << 10); + case PKSAV_IV_SPEED: + (*p_raw_IV) &= ~PKSAV_SPD_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_SPD_IV_OFFSET); break; - case PKSAV_STAT_SPEED: - *raw = ((*raw) & ~PKSAV_SPD_IV_MASK) | (new_IV << 15); + case PKSAV_IV_SPATK: + (*p_raw_IV) &= ~PKSAV_SPATK_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_SPATK_IV_OFFSET); break; - case PKSAV_STAT_SPATK: - *raw = ((*raw) & ~PKSAV_SPATK_IV_MASK) | (new_IV << 20); + case PKSAV_IV_SPDEF: + (*p_raw_IV) &= ~PKSAV_SPDEF_IV_MASK; + (*p_raw_IV) |= (IV_value << PKSAV_SPDEF_IV_OFFSET); break; - case PKSAV_STAT_SPDEF: - *raw = ((*raw) & ~PKSAV_SPDEF_IV_MASK) | (new_IV << 25); + case PKSAV_IV_HP: + (*p_raw_IV) &= ~PKSAV_HP_IV_MASK; + (*p_raw_IV) |= IV_value; break; + // This should have been caught by the input validation above. default: - return PKSAV_ERROR_INVALID_STAT; + assert(0); } return PKSAV_ERROR_NONE; diff --git a/libpksav/lib/common/xds_common.c b/libpksav/lib/common/xds_common.c index af2e1cd..b3485be 100644 --- a/libpksav/lib/common/xds_common.c +++ b/libpksav/lib/common/xds_common.c @@ -1,98 +1,112 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ -#include "xds_common.h" +#include "util/text_common.h" +#include "common/xds_common.h" +#include #include #define PKSAV_XDS_TERMINATOR 0xFFFF -pksav_error_t _pksav_text_from_xds( - const uint16_t* input_buffer, - char* output_text, +static enum pksav_error _pksav_xds_import_widetext( + const uint16_t* p_input_buffer, + wchar_t* p_output_widetext, size_t num_chars -) { - if(!input_buffer || !output_text) { - return PKSAV_ERROR_NULL_POINTER; - } +) +{ + assert(p_input_buffer != NULL); + assert(p_output_widetext != NULL); - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - _pksav_widetext_from_xds( - input_buffer, widetext, num_chars - ); + memset(p_output_widetext, 0, sizeof(wchar_t)*num_chars); - memset(output_text, 0, num_chars); - wcstombs(output_text, widetext, num_chars); - free(widetext); + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_buffer[char_index] == PKSAV_XDS_TERMINATOR) + { + break; + } + else + { + p_output_widetext[char_index] = (wchar_t)p_input_buffer[char_index]; + } + } return PKSAV_ERROR_NONE; } -pksav_error_t _pksav_widetext_from_xds( - const uint16_t* input_buffer, - wchar_t* output_text, +static enum pksav_error _pksav_xds_export_widetext( + const wchar_t* p_input_widetext, + uint16_t* p_output_buffer, size_t num_chars -) { - if(!input_buffer || !output_text) { - return PKSAV_ERROR_NULL_POINTER; - } +) +{ + assert(p_input_widetext != NULL); + assert(p_output_buffer != NULL); - memset(output_text, 0, sizeof(wchar_t)*num_chars); + memset(p_output_buffer, 0xFF, sizeof(uint16_t)*num_chars); - for(size_t i = 0; i < num_chars; ++i) { - if(input_buffer[i] == PKSAV_XDS_TERMINATOR) { + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_widetext[char_index] == 0) + { break; - } else { - output_text[i] = input_buffer[i]; + } + else + { + p_output_buffer[char_index] = (uint16_t)p_input_widetext[char_index]; } } return PKSAV_ERROR_NONE; } -pksav_error_t _pksav_text_to_xds( - const char* input_text, - uint16_t* output_buffer, +enum pksav_error pksav_xds_import_text( + const uint16_t* p_input_buffer, + char* p_output_text, size_t num_chars -) { - if(!input_text || !output_buffer) { +) +{ + if(!p_input_buffer || !p_output_text) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - mbstowcs(widetext, input_text, num_chars); - - _pksav_widetext_to_xds( - widetext, output_buffer, num_chars + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_xds_import_widetext( + p_input_buffer, p_widetext, num_chars ); - free(widetext); + memset(p_output_text, 0, num_chars); + pksav_wcstombs(p_output_text, p_widetext, num_chars); + free(p_widetext); return PKSAV_ERROR_NONE; } -pksav_error_t _pksav_widetext_to_xds( - const wchar_t* input_text, - uint16_t* output_buffer, +enum pksav_error pksav_xds_export_text( + const char* p_input_text, + uint16_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { +) +{ + if(!p_input_text || !p_output_buffer) + { return PKSAV_ERROR_NULL_POINTER; } - memset(output_buffer, 0xFF, sizeof(wchar_t)*num_chars); + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(p_widetext, p_input_text, num_chars); - for(size_t i = 0; i < num_chars; ++i) { - if(input_text[i] == 0) { - break; - } else { - output_buffer[i] = (uint16_t)input_text[i]; - } - } + _pksav_xds_export_widetext( + p_widetext, p_output_buffer, num_chars + ); + + free(p_widetext); return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/common/xds_common.h b/libpksav/lib/common/xds_common.h index 57bada0..ba2f75e 100644 --- a/libpksav/lib/common/xds_common.h +++ b/libpksav/lib/common/xds_common.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -12,38 +12,17 @@ #include #include -/* - * Functions shared between Nintendo DS and Nintendo 3DS games. These - * functions will not be built if support for at least one of these - * is not built. - */ - //! Convert a string from in-game Unicode to a multi-byte C string. -pksav_error_t _pksav_text_from_xds( - const uint16_t* input_buffer, - char* output_text, - size_t num_chars -); - - -//! Convert a string from in-game Unicode to a wide-character C string. -pksav_error_t _pksav_widetext_from_xds( - const uint16_t* input_buffer, - wchar_t* output_text, +enum pksav_error pksav_xds_import_text( + const uint16_t* p_input_buffer, + char* p_output_text, size_t num_chars ); //! Convert a multi-byte C string to in-game Unicode. -pksav_error_t _pksav_text_to_xds( - const char* input_text, - uint16_t* output_buffer, - size_t num_chars -); - -//! Convert a wide-character C string to in-game Unicode. -pksav_error_t _pksav_widetext_to_xds( - const wchar_t* input_text, - uint16_t* output_buffer, +enum pksav_error pksav_xds_export_text( + const char* p_input_text, + uint16_t* p_output_buffer, size_t num_chars ); diff --git a/libpksav/lib/crypto/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/crypto/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..6b79c97 --- /dev/null +++ b/libpksav/lib/crypto/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib/crypto/CMakeFiles/progress.marks b/libpksav/lib/crypto/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib/crypto/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib/crypto/CMakeLists.txt b/libpksav/lib/crypto/CMakeLists.txt new file mode 100644 index 0000000..1fa3e95 --- /dev/null +++ b/libpksav/lib/crypto/CMakeLists.txt @@ -0,0 +1,10 @@ +# +# Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +#SET(pksav_crypto_sources +# ${CMAKE_CURRENT_SOURCE_DIR}/sha1.c +#PARENT_SCOPE) diff --git a/libpksav/lib/crypto/Makefile b/libpksav/lib/crypto/Makefile new file mode 100644 index 0000000..5864a95 --- /dev/null +++ b/libpksav/lib/crypto/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/crypto//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/crypto/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/crypto/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/crypto/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/crypto/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib/crypto/cmake_install.cmake b/libpksav/lib/crypto/cmake_install.cmake new file mode 100644 index 0000000..bb6c19f --- /dev/null +++ b/libpksav/lib/crypto/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/crypto + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib/common/sha1.c b/libpksav/lib/crypto/sha1.c similarity index 100% rename from libpksav/lib/common/sha1.c rename to libpksav/lib/crypto/sha1.c diff --git a/libpksav/lib/common/sha1.h b/libpksav/lib/crypto/sha1.h similarity index 100% rename from libpksav/lib/common/sha1.h rename to libpksav/lib/crypto/sha1.h diff --git a/libpksav/lib/error.c b/libpksav/lib/error.c index b53e502..e4246b1 100644 --- a/libpksav/lib/error.c +++ b/libpksav/lib/error.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -7,7 +7,10 @@ #include -static const char* pksav_error_strs[] = { +#include + +static const char* PKSAV_ERROR_STRS[] = +{ "No error", "File I/O error", "Parameter out of range", @@ -15,9 +18,18 @@ static const char* pksav_error_strs[] = { "Invalid save file", "Null pointer passed as parameter" }; +static const size_t NUM_ERRORS = + sizeof(PKSAV_ERROR_STRS)/sizeof(PKSAV_ERROR_STRS[0]); const char* pksav_strerror( - pksav_error_t error_code -) { - return pksav_error_strs[error_code]; + enum pksav_error error_code +) +{ + const char* ret = NULL; + if(((int)error_code >= 0) && ((size_t)error_code < NUM_ERRORS)) + { + ret = PKSAV_ERROR_STRS[error_code]; + } + + return ret; } diff --git a/libpksav/lib/gba/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/gba/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/lib/gba/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/lib/gba/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/lib/gba/CMakeLists.txt b/libpksav/lib/gba/CMakeLists.txt index ab7d105..35c0c94 100644 --- a/libpksav/lib/gba/CMakeLists.txt +++ b/libpksav/lib/gba/CMakeLists.txt @@ -1,5 +1,5 @@ # -# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) @@ -8,6 +8,7 @@ SET(pksav_gba_sources ${CMAKE_CURRENT_SOURCE_DIR}/checksum.c ${CMAKE_CURRENT_SOURCE_DIR}/crypt.c + ${CMAKE_CURRENT_SOURCE_DIR}/pokedex.c ${CMAKE_CURRENT_SOURCE_DIR}/save.c ${CMAKE_CURRENT_SOURCE_DIR}/shuffle.c ${CMAKE_CURRENT_SOURCE_DIR}/text.c diff --git a/libpksav/lib/gba/Makefile b/libpksav/lib/gba/Makefile index 32a7b95..bd3523f 100644 --- a/libpksav/lib/gba/Makefile +++ b/libpksav/lib/gba/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gba//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/gba//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/gba/battle_tower.h b/libpksav/lib/gba/battle_tower.h new file mode 100644 index 0000000..9c76d03 --- /dev/null +++ b/libpksav/lib/gba/battle_tower.h @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_BATTLE_TOWER_H +#define PKSAV_GBA_BATTLE_TOWER_H + +#include +#include +#include +#include + +#include + +// TODO: see which can be consolidated and what needs to be in a union +// before making public + +#define PKSAV_GBA_BATTLE_TOWER_PARTY_SIZE (3) + +#pragma pack(push,1) + +struct pksav_gba_rs_battle_tower_pokemon +{ + uint16_t species; + uint16_t held_item; + uint16_t moves[PKSAV_GBA_POKEMON_NUM_MOVES]; + uint8_t level; + uint8_t pp_up; + uint8_t ev_hp; + uint8_t ev_atk; + uint8_t ev_def; + uint8_t ev_spd; + uint8_t ev_spatk; + uint8_t ev_spdef; + union pksav_trainer_id id; + uint32_t iv_ability; + uint32_t personality; + uint8_t nickname[PKSAV_GBA_POKEMON_NICKNAME_LENGTH + 1]; + uint8_t friendship; +}; + +struct pksav_gba_rs_battle_tower_trainer +{ + uint8_t trainer_class; + uint8_t name[PKSAV_GBA_TRAINER_NAME_LENGTH + 1]; + uint8_t flags; + uint8_t filler[2]; + uint16_t greeting[6]; +}; + +struct pksav_gba_rs_battle_tower_record +{ + uint8_t battle_tower_level_type; // 0 = level 50, 1 = level 100 (TODO: enum) + uint8_t trainer_class; + uint16_t win_streak; + uint8_t name[PKSAV_GBA_TRAINER_NAME_LENGTH + 1]; + union pksav_trainer_id id; + uint16_t greeting[6]; + struct pksav_gba_rs_battle_tower_pokemon party[PKSAV_GBA_BATTLE_TOWER_PARTY_SIZE]; + uint32_t checksum; +}; + +struct pksav_gba_rs_battle_tower_ereader_trainer +{ + uint8_t unknown; + uint8_t trainer_class; + uint16_t win_streak; + uint8_t name[PKSAV_GBA_TRAINER_NAME_LENGTH + 1]; + union pksav_trainer_id id; + uint16_t greeting[6]; + uint16_t farewell_player_lost[6]; + uint16_t farewell_player_won[6]; + struct pksav_gba_rs_battle_tower_pokemon party[PKSAV_GBA_BATTLE_TOWER_PARTY_SIZE]; + uint32_t checksum; +}; + +struct pksav_gba_rs_battle_tower_data +{ + struct pksav_gba_rs_battle_tower_record player_record; + struct pksav_gba_rs_battle_tower_record records[5]; + uint16_t first_party_pokemon_species; + uint16_t defeated_by_pokemon_species; + uint8_t defeated_by_trainer_name[PKSAV_GBA_TRAINER_NAME_LENGTH + 1]; + uint8_t first_party_pokemon_nickname[PKSAV_GBA_POKEMON_NICKNAME_LENGTH + 1]; + struct pksav_gba_rs_battle_tower_ereader_trainer ereader_trainer; + uint8_t battle_tower_level_type; // 0 = level 50, 1 = level 100 + uint8_t battle_outcome; + uint8_t unknown1[2]; + uint16_t current_challenge_battle_num[2]; + uint16_t current_streak_challenges_num[2]; + uint16_t record_win_streaks[2]; + uint8_t battle_tower_trainer_id; + uint8_t selected_party_pokemon[PKSAV_GBA_BATTLE_TOWER_PARTY_SIZE]; + uint16_t prize_item; + uint8_t unknown2[6]; + uint16_t total_battle_tower_wins; + uint16_t best_battle_tower_win_streak; + uint16_t current_win_streaks[2]; + uint8_t last_streak_level_type; + uint8_t unknown[0x317]; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_BATTLE_TOWER_H */ diff --git a/libpksav/lib/gba/checksum.c b/libpksav/lib/gba/checksum.c index 02290bd..96dfd53 100644 --- a/libpksav/lib/gba/checksum.c +++ b/libpksav/lib/gba/checksum.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -7,28 +7,65 @@ #include "checksum.h" -uint16_t pksav_get_gba_pokemon_checksum( - const pksav_gba_pc_pokemon_t* gba_pokemon -) { - uint16_t ret = 0; +#include "save_internal.h" + +#include + +uint16_t pksav_gba_get_pokemon_checksum( + const struct pksav_gba_pc_pokemon* p_gba_pokemon +) +{ + assert(p_gba_pokemon != NULL); - for(uint8_t i = 0; i < (sizeof(pksav_gba_pokemon_blocks_t)/2); i++) { - ret += gba_pokemon->blocks.blocks16[i]; + union pksav_gba_pokemon_blocks_internal* p_gba_pokemon_internal_blocks = + (union pksav_gba_pokemon_blocks_internal*)&p_gba_pokemon->blocks; + + uint16_t ret = 0; + for(size_t index = 0; + index < (sizeof(union pksav_gba_pokemon_blocks_internal)/2); + ++index) + { + ret += p_gba_pokemon_internal_blocks->blocks16[index]; } return ret; } -uint16_t pksav_get_gba_section_checksum( - const pksav_gba_save_section_t* section, - uint8_t section_num -) { +uint16_t pksav_gba_get_section_checksum( + const struct pksav_gba_save_section* p_section, + size_t section_num +) +{ + assert(p_section != NULL); + assert(section_num < PKSAV_GBA_NUM_SAVE_SECTIONS); + uint32_t checksum = 0; - uint16_t* checksum_ptr = (uint16_t*)&checksum; + uint16_t* p_checksum = (uint16_t*)&checksum; - for(int i = 0; i < (pksav_gba_section_sizes[section_num]/4); i++) { - checksum += section->data32[i]; + for(size_t index = 0; + index < (pksav_gba_section_sizes[section_num]/4); + ++index) + { + checksum += p_section->data32[index]; } - return (checksum_ptr[0] + checksum_ptr[1]); + return (p_checksum[0] + p_checksum[1]); +} + +void pksav_gba_set_section_checksums( + union pksav_gba_save_slot* p_sections +) +{ + assert(p_sections != NULL); + + for(size_t section_index = 0; + section_index < PKSAV_GBA_NUM_SAVE_SECTIONS; + ++section_index) + { + p_sections->sections_arr[section_index].footer.checksum = + pksav_gba_get_section_checksum( + &p_sections->sections_arr[section_index], + section_index + ); + } } diff --git a/libpksav/lib/gba/checksum.h b/libpksav/lib/gba/checksum.h index 0695206..9a977b3 100644 --- a/libpksav/lib/gba/checksum.h +++ b/libpksav/lib/gba/checksum.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -8,36 +8,45 @@ #ifndef PKSAV_GBA_CHECKSUM_H #define PKSAV_GBA_CHECKSUM_H +#include "gba/save_internal.h" + #include #include #include +#include #include -uint16_t pksav_get_gba_pokemon_checksum( - const pksav_gba_pc_pokemon_t* gba_pokemon +#ifdef __cplusplus +extern "C" { +#endif + +// Expose this to allow third-party libraries to do memory comparisons. +PKSAV_API uint16_t pksav_gba_get_pokemon_checksum( + const struct pksav_gba_pc_pokemon* p_gba_pokemon ); -static PKSAV_INLINE void pksav_set_gba_pokemon_checksum( - pksav_gba_pc_pokemon_t* gba_pokemon -) { - gba_pokemon->checksum = pksav_get_gba_pokemon_checksum(gba_pokemon); +static inline void pksav_gba_set_pokemon_checksum( + struct pksav_gba_pc_pokemon* p_gba_pokemon +) +{ + assert(p_gba_pokemon != NULL); + + p_gba_pokemon->checksum = pksav_gba_get_pokemon_checksum(p_gba_pokemon); } -uint16_t pksav_get_gba_section_checksum( - const pksav_gba_save_section_t* section, - uint8_t section_num +uint16_t pksav_gba_get_section_checksum( + const struct pksav_gba_save_section* p_section, + size_t section_num +); + +void pksav_gba_set_section_checksums( + union pksav_gba_save_slot* p_sections ); -static PKSAV_INLINE void pksav_set_gba_section_checksums( - pksav_gba_save_slot_t* sections -) { - for(uint8_t i = 0; i < 14; ++i) { - sections->sections_arr[i].footer.checksum = pksav_get_gba_section_checksum( - §ions->sections_arr[i], i - ); - } +#ifdef __cplusplus } +#endif #endif /* PKSAV_GBA_CHECKSUM_H */ diff --git a/libpksav/lib/gba/cmake_install.cmake b/libpksav/lib/gba/cmake_install.cmake index 52148b4..0458823 100644 --- a/libpksav/lib/gba/cmake_install.cmake +++ b/libpksav/lib/gba/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib/gba +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/gba # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) diff --git a/libpksav/lib/gba/crypt.c b/libpksav/lib/gba/crypt.c index 70fbb2f..36f07ac 100644 --- a/libpksav/lib/gba/crypt.c +++ b/libpksav/lib/gba/crypt.c @@ -1,15 +1,20 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ -#include "crypt.h" +#include "gba/crypt.h" +#include "gba/save_internal.h" +#include + +#include #include -static const uint8_t gba_block_orders[24][4] = { +static const size_t GBA_BLOCK_ORDERS[24][4] = +{ /* A E G M */ /* GAEM */ {1, 2, 0, 3}, /* GAME */ {1, 3, 0, 2}, @@ -38,58 +43,110 @@ static const uint8_t gba_block_orders[24][4] = { }; void pksav_gba_crypt_pokemon( - pksav_gba_pc_pokemon_t* gba_pokemon, - bool encrypt -) { - uint32_t security_key = gba_pokemon->ot_id.id ^ gba_pokemon->personality; - for(uint8_t i = 0; i < 12; ++i) { - gba_pokemon->blocks.blocks32[i] ^= security_key; + struct pksav_gba_pc_pokemon* p_gba_pokemon, + bool should_encrypt +) +{ + assert(p_gba_pokemon != NULL); + + union pksav_gba_pokemon_blocks_internal* p_gba_pokemon_internal_blocks = + (union pksav_gba_pokemon_blocks_internal*)&p_gba_pokemon->blocks; + + uint32_t security_key = p_gba_pokemon->ot_id.id + ^ p_gba_pokemon->personality; + + for(size_t index = 0; + index < (PKSAV_GBA_POKEMON_ALL_BLOCKS_SIZE_BYTES/4); + ++index) + { + p_gba_pokemon_internal_blocks->blocks32[index] ^= security_key; } - int index = gba_pokemon->personality % 24; - int attacks_index = gba_block_orders[index][0]; - int effort_index = gba_block_orders[index][1]; - int growth_index = gba_block_orders[index][2]; - int misc_index = gba_block_orders[index][3]; + size_t index = p_gba_pokemon->personality % 24; + size_t attacks_index = GBA_BLOCK_ORDERS[index][0]; + size_t effort_index = GBA_BLOCK_ORDERS[index][1]; + size_t growth_index = GBA_BLOCK_ORDERS[index][2]; + size_t misc_index = GBA_BLOCK_ORDERS[index][3]; - pksav_gba_pokemon_blocks_t blocks; - if(encrypt) { - memcpy(&blocks.blocks[growth_index], &gba_pokemon->blocks.growth, sizeof(pksav_gba_pokemon_growth_t)); - memcpy(&blocks.blocks[attacks_index], &gba_pokemon->blocks.attacks, sizeof(pksav_gba_pokemon_attacks_t)); - memcpy(&blocks.blocks[effort_index], &gba_pokemon->blocks.effort, sizeof(pksav_gba_pokemon_effort_t)); - memcpy(&blocks.blocks[misc_index], &gba_pokemon->blocks.misc, sizeof(pksav_gba_pokemon_misc_t)); - } else { - memcpy(&blocks.growth, &gba_pokemon->blocks.blocks[growth_index], sizeof(pksav_gba_pokemon_growth_t)); - memcpy(&blocks.attacks, &gba_pokemon->blocks.blocks[attacks_index], sizeof(pksav_gba_pokemon_attacks_t)); - memcpy(&blocks.effort, &gba_pokemon->blocks.blocks[effort_index], sizeof(pksav_gba_pokemon_effort_t)); - memcpy(&blocks.misc, &gba_pokemon->blocks.blocks[misc_index], sizeof(pksav_gba_pokemon_misc_t)); + union pksav_gba_pokemon_blocks_internal new_blocks_internal; + if(should_encrypt) + { + memcpy( + &new_blocks_internal.blocks[growth_index], + &p_gba_pokemon->blocks.growth, + sizeof(struct pksav_gba_pokemon_growth_block) + ); + memcpy( + &new_blocks_internal.blocks[attacks_index], + &p_gba_pokemon->blocks.attacks, + sizeof(struct pksav_gba_pokemon_attacks_block) + ); + memcpy( + &new_blocks_internal.blocks[effort_index], + &p_gba_pokemon->blocks.effort, + sizeof(struct pksav_gba_pokemon_effort_block) + ); + memcpy( + &new_blocks_internal.blocks[misc_index], + &p_gba_pokemon->blocks.misc, + sizeof(struct pksav_gba_pokemon_misc_block) + ); + } + else + { + memcpy( + &new_blocks_internal.by_name.growth, + &p_gba_pokemon_internal_blocks->blocks[growth_index], + sizeof(struct pksav_gba_pokemon_growth_block) + ); + memcpy( + &new_blocks_internal.by_name.attacks, + &p_gba_pokemon_internal_blocks->blocks[attacks_index], + sizeof(struct pksav_gba_pokemon_attacks_block) + ); + memcpy( + &new_blocks_internal.by_name.effort, + &p_gba_pokemon_internal_blocks->blocks[effort_index], + sizeof(struct pksav_gba_pokemon_effort_block) + ); + memcpy( + &new_blocks_internal.by_name.misc, + &p_gba_pokemon_internal_blocks->blocks[misc_index], + sizeof(struct pksav_gba_pokemon_misc_block) + ); } - gba_pokemon->blocks = blocks; + p_gba_pokemon->blocks = new_blocks_internal.by_name; } void pksav_gba_save_crypt_items( - pksav_gba_item_storage_t* item_storage, + union pksav_gba_item_bag* p_gba_item_bag, uint32_t security_key, - pksav_gba_game_t gba_game -) { - pksav_item_t* items = (pksav_item_t*)item_storage; - uint8_t num_items = 0; - switch(gba_game) { - case PKSAV_GBA_RS: - num_items = sizeof(pksav_rs_item_storage_t) / sizeof(pksav_item_t); + enum pksav_gba_save_type save_type +) +{ + assert(p_gba_item_bag != NULL); + assert(save_type >= PKSAV_GBA_SAVE_TYPE_RS); + assert(save_type <= PKSAV_GBA_SAVE_TYPE_FRLG); + + struct pksav_item* p_items = (struct pksav_item*)p_gba_item_bag; + size_t num_items = 0; + switch(save_type) + { + case PKSAV_GBA_SAVE_TYPE_RS: + num_items = sizeof(struct pksav_gba_rs_item_bag) / sizeof(struct pksav_item); break; - case PKSAV_GBA_EMERALD: - num_items = sizeof(pksav_emerald_item_storage_t) / sizeof(pksav_item_t); + case PKSAV_GBA_SAVE_TYPE_EMERALD: + num_items = sizeof(struct pksav_gba_emerald_item_bag) / sizeof(struct pksav_item); break; default: - num_items = sizeof(pksav_frlg_item_storage_t) / sizeof(pksav_item_t); + num_items = sizeof(struct pksav_gba_frlg_item_bag) / sizeof(struct pksav_item); break; } - // Skip Item PC, which has 50 items in all games - for(uint8_t i = 50; i < num_items; ++i) { - items[i].count ^= (uint16_t)(security_key & 0xFFFF); + for(size_t item_index = 0; item_index < num_items; ++item_index) + { + p_items[item_index].count ^= (uint16_t)(security_key & 0xFFFF); } } diff --git a/libpksav/lib/gba/crypt.h b/libpksav/lib/gba/crypt.h index 4c88771..bf16891 100644 --- a/libpksav/lib/gba/crypt.h +++ b/libpksav/lib/gba/crypt.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -16,14 +16,14 @@ #include void pksav_gba_crypt_pokemon( - pksav_gba_pc_pokemon_t* gba_pokemon, - bool encrypt + struct pksav_gba_pc_pokemon* p_gba_pokemon, + bool should_encrypt ); void pksav_gba_save_crypt_items( - pksav_gba_item_storage_t* gba_item_storage, + union pksav_gba_item_bag* p_gba_item_bag, uint32_t security_key, - pksav_gba_game_t gba_game + enum pksav_gba_save_type save_type ); #endif /* PKSAV_GBA_CRYPT_H */ diff --git a/libpksav/lib/gba/pokedex.c b/libpksav/lib/gba/pokedex.c new file mode 100644 index 0000000..9d7cf5e --- /dev/null +++ b/libpksav/lib/gba/pokedex.c @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +#include + +enum pksav_error pksav_gba_pokedex_set_has_seen( + struct pksav_gba_pokedex* p_gba_pokedex, + uint16_t pokedex_num, + bool has_seen +) +{ + if(!p_gba_pokedex) + { + return PKSAV_ERROR_NULL_POINTER; + } + if(pokedex_num > 386) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + + enum pksav_error error = PKSAV_ERROR_NONE; + + error = pksav_set_pokedex_bit( + p_gba_pokedex->p_seenA, + pokedex_num, + has_seen + ); + if(!error) + { + error = pksav_set_pokedex_bit( + p_gba_pokedex->p_seenB, + pokedex_num, + has_seen + ); + if(!error) + { + error = pksav_set_pokedex_bit( + p_gba_pokedex->p_seenC, + pokedex_num, + has_seen + ); + } + } + + return error; +} + +enum pksav_error pksav_gba_pokedex_set_national_pokedex_unlocked( + struct pksav_gba_pokedex* p_gba_pokedex, + enum pksav_gba_save_type save_type, + bool is_unlocked +) +{ + if(!p_gba_pokedex) + { + return PKSAV_ERROR_NULL_POINTER; + } + if((save_type < PKSAV_GBA_SAVE_TYPE_NONE) || (save_type > PKSAV_GBA_SAVE_TYPE_FRLG)) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + + if(is_unlocked) + { + *p_gba_pokedex->p_nat_pokedex_unlockedB |= + PKSAV_GBA_NAT_POKEDEX_UNLOCKED_B_FLAG; + + if(save_type == PKSAV_GBA_SAVE_TYPE_FRLG) + { + *p_gba_pokedex->p_frlg_nat_pokedex_unlockedA |= + PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_A_FLAG; + *p_gba_pokedex->p_nat_pokedex_unlockedC |= + PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_C_FLAG; + } + else + { + *p_gba_pokedex->p_rse_nat_pokedex_unlockedA |= + PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_A_FLAG; + *p_gba_pokedex->p_nat_pokedex_unlockedC |= + PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_C_FLAG; + } + } + else + { + *p_gba_pokedex->p_nat_pokedex_unlockedB &= + ~PKSAV_GBA_NAT_POKEDEX_UNLOCKED_B_FLAG; + + if(save_type == PKSAV_GBA_SAVE_TYPE_FRLG) + { + *p_gba_pokedex->p_frlg_nat_pokedex_unlockedA &= + ~PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_A_FLAG; + *p_gba_pokedex->p_nat_pokedex_unlockedC &= + ~PKSAV_GBA_FRLG_NAT_POKEDEX_UNLOCKED_C_FLAG; + } + else + { + *p_gba_pokedex->p_rse_nat_pokedex_unlockedA &= + ~PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_A_FLAG; + *p_gba_pokedex->p_nat_pokedex_unlockedC &= + ~PKSAV_GBA_RSE_NAT_POKEDEX_UNLOCKED_C_FLAG; + } + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib/gba/save.c b/libpksav/lib/gba/save.c index b89652d..47d9b0c 100644 --- a/libpksav/lib/gba/save.c +++ b/libpksav/lib/gba/save.c @@ -7,8 +7,11 @@ #include "checksum.h" #include "crypt.h" +#include "save_internal.h" #include "shuffle.h" +#include "util/fs.h" + #include #include @@ -17,502 +20,665 @@ #include -#include - -#define SECURITY_KEY1(sections,game) (sections)->section0.data32[pksav_gba_section0_offsets[PKSAV_GBA_SECURITY_KEY1][game]/4] -#define SECURITY_KEY2(sections,game) (sections)->section0.data32[pksav_gba_section0_offsets[PKSAV_GBA_SECURITY_KEY2][game]/4] -#define SAVE_INDEX(sections) pksav_littleendian32((sections)->section0.footer.save_index) - -#define SECTION0_DATA8(sections,game,offset) \ - (sections)->section0.data8[pksav_gba_section0_offsets[offset][game]] - -#define SECTION0_DATA16(sections,game,offset) \ - (sections)->section0.data16[pksav_gba_section0_offsets[offset][game]/2] - -#define SECTION0_DATA32(sections,game,offset) \ - (sections)->section0.data32[pksav_gba_section0_offsets[offset][game]/4] - -#define SECTION1_DATA8(sections,game,offset) \ - (sections)->section1.data8[pksav_gba_section1_offsets[offset][game]] - -#define SECTION1_DATA16(sections,game,offset) \ - (sections)->section1.data16[pksav_gba_section1_offsets[offset][game]/2] - -#define SECTION1_DATA32(sections,game,offset) \ - (sections)->section1.data32[pksav_gba_section1_offsets[offset][game]/4] - -#define SECTION2_DATA8(sections,game,offset) \ - (sections)->section2.data8[pksav_gba_section2_offsets[offset][game]] +#include -#define SECTION2_DATA16(sections,game,offset) \ - (sections)->section2.data16[pksav_gba_section2_offsets[offset][game]/2] +union pksav_gba_save_slot* pksav_gba_get_active_save_slot_ptr( + uint8_t* p_buffer, + size_t buffer_len +) +{ + assert(p_buffer != NULL); -#define SECTION2_DATA32(sections,game,offset) \ - (sections)->section2.data32[pksav_gba_section2_offsets[offset][game]/4] + union pksav_gba_save_slot* p_active_save_slot = NULL; -#define SECTION4_DATA8(sections,game,offset) \ - (sections)->section4.data8[pksav_gba_section4_offsets[offset][game]] + if(buffer_len >= PKSAV_GBA_SAVE_SLOT_SIZE*2) + { + union pksav_gba_save_slot* save_slots = (union pksav_gba_save_slot*)p_buffer; + uint32_t save_index1 = pksav_littleendian32( + save_slots[0].section0.footer.save_index + ); + uint32_t save_index2 = pksav_littleendian32( + save_slots[1].section0.footer.save_index + ); -#define SECTION4_DATA32(sections,game,offset) \ - (sections)->section4.data32[pksav_gba_section4_offsets[offset][game]/4] + if(save_index1 > save_index2) + { + p_active_save_slot = &save_slots[0]; + } + else + { + p_active_save_slot = &save_slots[1]; + } + } + else if(buffer_len >= PKSAV_GBA_SAVE_SLOT_SIZE) + { + p_active_save_slot = (union pksav_gba_save_slot*)p_buffer; + } -/* - * Offsets - */ + return p_active_save_slot; +} -#define PKSAV_GBA_SMALL_SAVE_SIZE 0x10000 -#define PKSAV_GBA_SAVE_SIZE 0x20000 - -#define PKSAV_GBA_VALIDATION 0x08012025 - -typedef enum { - PKSAV_GBA_SAVE_A = 0x0000, - PKSAV_GBA_SAVE_B = 0xE000 -} pksav_gba_save_offset_t; - -typedef enum { - PKSAV_GBA_NAT_POKEDEX_A = 0, - PKSAV_GBA_POKEDEX_OWNED, - PKSAV_GBA_POKEDEX_SEEN_A, - PKSAV_GBA_GAME_CODE, - PKSAV_GBA_SECURITY_KEY1, - PKSAV_GBA_SECURITY_KEY2 -} pksav_gba_section0_field_t; - -static const uint16_t pksav_gba_section0_offsets[][4] = { - {0x0019,0x0019,0x001B}, // National Pokédex A - {0x0028,0x0028,0x0028}, // Pokédex Owned - {0x005C,0x005C,0x005C}, // Pokédex Seen A - {0x00AC,0x00AC,0x00AC}, // Game Code - {0x00AC,0x00AC,0x0AF8}, // Security Key 1 - {0x00AC,0x01F4,0x0F20} // Security Key 2 -}; - -typedef enum { - PKSAV_GBA_POKEMON_PARTY = 0, - PKSAV_GBA_MONEY, - PKSAV_GBA_CASINO_COINS, - PKSAV_GBA_ITEM_STORAGE, - PKSAV_GBA_POKEDEX_SEEN_B -} pksav_gba_section1_field_t; - -static const uint16_t pksav_gba_section1_offsets[][4] = { - {0x0234,0x0234,0x0034}, // Pokémon Party - {0x0490,0x0490,0x0290}, // Money - {0x0494,0x0494,0x0294}, // Casino Coins - {0x0498,0x0498,0x0298}, // Item Storage - {0x0938,0x0988,0x0788} // Pokédex Seen B -}; - -typedef enum { - PKSAV_GBA_NAT_POKEDEX_B = 0, - PKSAV_GBA_NAT_POKEDEX_C -} pksav_gba_section2_field_t; - -static const uint16_t pksav_gba_section2_offsets[][4] = { - {0x03A6,0x0402,0x0068}, // National Pokédex B - {0x044C,0x04A8,0x011C} // National Pokédex C -}; - -typedef enum { - PKSAV_GBA_POKEDEX_SEEN_C = 0, - PKSAV_GBA_FRLG_RIVAL_NAME -} pksav_gba_section4_field_t; - -static const uint16_t pksav_gba_section4_offsets[][4] = { - {0x0C0C,0x0CA4,0x0B98}, // Pokédex Seen C - {0x0000,0x0000,0x0BCC} // Rival Name (FR/LG only) -}; - -pksav_error_t pksav_buffer_is_gba_save( +enum pksav_error pksav_gba_get_buffer_save_type( const uint8_t* buffer, size_t buffer_len, - pksav_gba_game_t gba_game, - bool* result_out -) { - if(!buffer || !result_out) { + enum pksav_gba_save_type* p_save_type_out +) +{ + if(!buffer || !p_save_type_out) + { return PKSAV_ERROR_NULL_POINTER; } - if(buffer_len < PKSAV_GBA_SMALL_SAVE_SIZE) { - *result_out = false; - return PKSAV_ERROR_NONE; - } - - /* - * If the save is not a small save, we need to find the most recent save slot first. - * - * Once the proper save slot has been found, it needs to be unshuffled. Sadly, that - * means more memory allocation. - */ - const pksav_gba_save_slot_t* sections_pair = (const pksav_gba_save_slot_t*)buffer; - const pksav_gba_save_slot_t* save_slot; - if(buffer_len < PKSAV_GBA_SAVE_SIZE) { - save_slot = sections_pair; - } else if(SAVE_INDEX(§ions_pair[0]) > SAVE_INDEX(§ions_pair[1])) { - save_slot = §ions_pair[0]; - } else { - save_slot = §ions_pair[1]; - } + enum pksav_error error = PKSAV_ERROR_NONE; - // Make sure the section IDs are valid to avoid a crash. - for(size_t section_index = 0; section_index < 14; ++section_index) + *p_save_type_out = PKSAV_GBA_SAVE_TYPE_NONE; + const union pksav_gba_save_slot* p_save_slot = pksav_gba_get_active_save_slot_ptr( + (uint8_t*)buffer, + buffer_len + ); + if(p_save_slot != NULL) { - if(save_slot->sections_arr[section_index].footer.section_id > 13) + // At this point, we know the buffer is large enough to be a save, so + // now to validate the sections. + + // Make sure the section IDs are valid before using them as array + // indices to avoid a crash. + bool is_save_valid = true; + + for(size_t section_index = 0; + (section_index < PKSAV_GBA_NUM_SAVE_SECTIONS) && is_save_valid; + ++section_index) { - *result_out = false; - return PKSAV_ERROR_NONE; + const struct pksav_gba_section_footer* p_section_footer = + &p_save_slot->sections_arr[section_index].footer; + + if((p_section_footer->section_id > (PKSAV_GBA_NUM_SAVE_SECTIONS-1)) || + (pksav_littleendian32(p_section_footer->validation) != PKSAV_GBA_VALIDATION_MAGIC)) + { + is_save_valid = false; + } } - } - pksav_gba_save_slot_t unshuffled; - uint8_t section_nums[14]; - pksav_gba_save_unshuffle_sections( - save_slot, - &unshuffled, - section_nums - ); + if(is_save_valid) + { + union pksav_gba_save_slot unshuffled_save_slots; + uint8_t section_nums[14] = {0}; // Unused + pksav_gba_save_unshuffle_sections( + p_save_slot, + &unshuffled_save_slots, + section_nums + ); + + const uint32_t rs_game_code = 0; + const uint32_t frlg_game_code = 1; + + /* + * For Ruby/Sapphire and FireRed/LeafGreen, check for validation by + * checking for a known game code and comparing the two security + * keys. For Emerald, there is no game code, so just compare the + * security keys. To avoid false positives, search in a specific + * order. + */ + static const enum pksav_gba_save_type save_types_to_search[3] = + { + PKSAV_GBA_SAVE_TYPE_RS, + PKSAV_GBA_SAVE_TYPE_FRLG, + PKSAV_GBA_SAVE_TYPE_EMERALD + }; + static const size_t num_save_types = + sizeof(save_types_to_search)/sizeof(save_types_to_search[0]); + + is_save_valid = false; + for(size_t save_type_index = 0; + (save_type_index < num_save_types) && !is_save_valid; + ++save_type_index) + { + enum pksav_gba_save_type save_type = save_types_to_search[save_type_index]; + + const size_t security_key1_offset = + PKSAV_GBA_SAVE_SECTION0_OFFSETS[save_type-1][PKSAV_GBA_SECURITY_KEY1]; + const size_t security_key2_offset = + PKSAV_GBA_SAVE_SECTION0_OFFSETS[save_type-1][PKSAV_GBA_SECURITY_KEY2]; + + // Ignore endianness for the security keys since we're not actually + // using the value, just checking equality. + const uint32_t security_key1 = unshuffled_save_slots.section0.data32[ + security_key1_offset/4 + ]; + const uint32_t security_key2 = unshuffled_save_slots.section0.data32[ + security_key2_offset/4 + ]; + + is_save_valid = (security_key1 == security_key2); + if(save_type != PKSAV_GBA_SAVE_TYPE_EMERALD) + { + const size_t game_code_offset = + PKSAV_GBA_SAVE_SECTION0_OFFSETS[save_type-1][PKSAV_GBA_GAME_CODE]; + + const uint32_t game_code = pksav_littleendian32( + unshuffled_save_slots.section0.data32[ + game_code_offset/4 + ] + ); - uint32_t game_code = pksav_littleendian32(SECTION0_DATA32((&unshuffled), gba_game, PKSAV_GBA_GAME_CODE)); - uint32_t security_key1 = pksav_littleendian32(SECURITY_KEY1((&unshuffled), gba_game)); - uint32_t security_key2 = pksav_littleendian32(SECURITY_KEY2((&unshuffled), gba_game)); + const uint32_t expected_game_code = (save_type == PKSAV_GBA_SAVE_TYPE_RS) + ? rs_game_code : frlg_game_code; - if(gba_game == PKSAV_GBA_RS) { - *result_out = (game_code == 0) && (security_key1 == security_key2); - } else if(gba_game == PKSAV_GBA_FRLG) { - *result_out = (game_code == 1) && (security_key1 == security_key2); - } else { - *result_out = (security_key1 == security_key2); + is_save_valid &= (game_code == expected_game_code); + } + + if(is_save_valid) + { + *p_save_type_out = save_type; + } + } + } } - return PKSAV_ERROR_NONE; + return error; } -pksav_error_t pksav_file_is_gba_save( - const char* filepath, - pksav_gba_game_t gba_game, - bool* result_out -) { - if(!filepath || !result_out) { +enum pksav_error pksav_gba_get_file_save_type( + const char* p_filepath, + enum pksav_gba_save_type* p_save_type_out +) +{ + if(!p_filepath || !p_save_type_out) + { return PKSAV_ERROR_NULL_POINTER; } - FILE* gba_save = fopen(filepath, "rb"); - if(!gba_save) { - *result_out = false; - return PKSAV_ERROR_FILE_IO; - } + enum pksav_error error = PKSAV_ERROR_NONE; - fseek(gba_save, 0, SEEK_END); - size_t filesize = ftell(gba_save); - - if(filesize < PKSAV_GBA_SMALL_SAVE_SIZE) { - fclose(gba_save); - return false; - } - - uint8_t* gba_save_data = calloc(filesize, 1); - fseek(gba_save, 0, SEEK_SET); - size_t num_read = fread((void*)gba_save_data, 1, filesize, gba_save); - fclose(gba_save); - - bool ret = false; - if(num_read == filesize) { - pksav_buffer_is_gba_save( - gba_save_data, - filesize, - gba_game, - &ret - ); + uint8_t* p_file_buffer = NULL; + size_t buffer_len = 0; + error = pksav_fs_read_file_to_buffer( + p_filepath, + &p_file_buffer, + &buffer_len + ); + if(!error) + { + assert(p_file_buffer != NULL); + + enum pksav_gba_save_type save_type = PKSAV_GBA_SAVE_TYPE_NONE; + error = pksav_gba_get_buffer_save_type( + p_file_buffer, + buffer_len, + &save_type + ); + free(p_file_buffer); + + // Only return a result upon success. + if(!error) + { + *p_save_type_out = save_type; + } } - free(gba_save_data); - *result_out = ret; - return PKSAV_ERROR_NONE; + return error; } -// Assumes all dynamically allocated memory has already been allocated -static void _pksav_gba_save_set_pointers( - pksav_gba_save_t* gba_save -) { - // Find the most recent save slot - const pksav_gba_save_slot_t* sections_pair = (const pksav_gba_save_slot_t*)gba_save->raw; - const pksav_gba_save_slot_t* most_recent; - - if(gba_save->small_save) { - most_recent = sections_pair; - gba_save->from_first_slot = true; - } else { - if(SAVE_INDEX(§ions_pair[0]) > SAVE_INDEX(§ions_pair[1])) { - most_recent = §ions_pair[0]; - gba_save->from_first_slot = true; - } else { - most_recent = §ions_pair[1]; - gba_save->from_first_slot = false; - } +static void _pksav_gba_set_save_pointers( + struct pksav_gba_save* p_gba_save, + uint8_t* buffer, + size_t buffer_len, + bool should_alloc_internal +) +{ + assert(p_gba_save != NULL); + assert(p_gba_save->save_type >= PKSAV_GBA_SAVE_TYPE_RS); + assert(p_gba_save->save_type <= PKSAV_GBA_SAVE_TYPE_FRLG); + assert(buffer != NULL); + + // Offsets + const size_t* p_section0_offsets = PKSAV_GBA_SAVE_SECTION0_OFFSETS[p_gba_save->save_type-1]; + const size_t* p_section1_offsets = PKSAV_GBA_SAVE_SECTION1_OFFSETS[p_gba_save->save_type-1]; + const size_t* p_section2_offsets = PKSAV_GBA_SAVE_SECTION2_OFFSETS[p_gba_save->save_type-1]; + const size_t* p_section4_offsets = PKSAV_GBA_SAVE_SECTION4_OFFSETS[p_gba_save->save_type-1]; + + // At this point, we should know the save is valid, so we should be able + // to get valid sections. + union pksav_gba_save_slot* p_save_slot = pksav_gba_get_active_save_slot_ptr( + buffer, + buffer_len + ); + assert(p_save_slot != NULL); + + // Internal + if(should_alloc_internal) + { + p_gba_save->p_internal = calloc(sizeof(struct pksav_gba_save_internal), 1); } - // Set pointers + struct pksav_gba_save_internal* p_internal = p_gba_save->p_internal; + p_internal->p_raw_save = buffer; + p_internal->save_len = buffer_len; + p_internal->is_save_from_first_slot = ((uint8_t*)p_save_slot == buffer); + pksav_gba_save_unshuffle_sections( - most_recent, - gba_save->unshuffled, - gba_save->shuffled_section_nums + p_save_slot, + &p_internal->unshuffled_save_slot, + p_internal->shuffled_section_nums ); - gba_save->trainer_info = &gba_save->unshuffled->trainer_info; - if(gba_save->gba_game == PKSAV_GBA_FRLG) { - gba_save->rival_name = &SECTION4_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_FRLG_RIVAL_NAME - ); - } else { - gba_save->rival_name = NULL; - } - gba_save->pokemon_party = (pksav_gba_pokemon_party_t*)&SECTION1_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_POKEMON_PARTY - ); - for(uint8_t i = 0; i < 6; ++i) { + + // Pointers to relevant sections + struct pksav_gba_save_section* p_section0 = &p_internal->unshuffled_save_slot.section0; + struct pksav_gba_player_info_internal* p_player_info_internal = + (struct pksav_gba_player_info_internal*)p_section0; + + struct pksav_gba_save_section* p_section1 = &p_internal->unshuffled_save_slot.section1; + struct pksav_gba_save_section* p_section2 = &p_internal->unshuffled_save_slot.section2; + struct pksav_gba_save_section* p_section4 = &p_internal->unshuffled_save_slot.section4; + + // Security key, used in decryption + p_internal->p_security_key = &p_section0->data32[ + p_section0_offsets[PKSAV_GBA_SECURITY_KEY1]/4 + ]; + + // Time played + p_gba_save->p_time_played = &p_player_info_internal->time_played; + + // Options + struct pksav_gba_options* p_options = &p_gba_save->options; + + p_options->p_button_mode = &p_section0->data8[ + p_section0_offsets[PKSAV_GBA_OPTIONS_BUTTON_MODE] + ]; + p_options->p_text_options = &p_section0->data8[ + p_section0_offsets[PKSAV_GBA_OPTIONS_TEXT] + ]; + p_options->p_sound_battle_options = &p_section0->data8[ + p_section0_offsets[PKSAV_GBA_OPTIONS_SOUND_BATTLE] + ]; + + // Pokémon storage + struct pksav_gba_pokemon_storage* p_pokemon_storage = &p_gba_save->pokemon_storage; + + p_pokemon_storage->p_party = (struct pksav_gba_pokemon_party*)( + &p_section1->data8[p_section1_offsets[PKSAV_GBA_POKEMON_PARTY]] + ); + for(size_t party_index = 0; + party_index < PKSAV_GBA_PARTY_NUM_POKEMON; + ++party_index) + { pksav_gba_crypt_pokemon( - &gba_save->pokemon_party->party[i].pc, - false + &p_pokemon_storage->p_party->party[party_index].pc_data, + false // should_encrypt ); } pksav_gba_save_load_pokemon_pc( - gba_save->unshuffled, - gba_save->pokemon_pc + &p_internal->unshuffled_save_slot, + &p_internal->consolidated_pokemon_pc ); + p_pokemon_storage->p_pc = &p_internal->consolidated_pokemon_pc; + + // TODO: confirm crypting happens in daycare + p_pokemon_storage->p_daycare = (union pksav_gba_daycare*)( + &p_section4->data8[p_section4_offsets[PKSAV_GBA_DAYCARE]] + ); + for(size_t daycare_index = 0; + daycare_index < PKSAV_GBA_DAYCARE_NUM_POKEMON; + ++daycare_index) + { + if(p_gba_save->save_type == PKSAV_GBA_SAVE_TYPE_RS) + { + pksav_gba_crypt_pokemon( + &p_pokemon_storage->p_daycare->rs.pokemon[daycare_index], + false // should_encrypt + ); + } + else + { + pksav_gba_crypt_pokemon( + &p_pokemon_storage->p_daycare->emerald_frlg.pokemon[daycare_index].pokemon, + false // should_encrypt + ); + } + } - gba_save->item_storage = (pksav_gba_item_storage_t*)&SECTION1_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_ITEM_STORAGE - ); + // Item storage + struct pksav_gba_item_storage* p_item_storage = &p_gba_save->item_storage; + + p_item_storage->p_bag = (union pksav_gba_item_bag*)( + &p_section1->data8[p_section1_offsets[PKSAV_GBA_ITEM_BAG]] + ); pksav_gba_save_crypt_items( - gba_save->item_storage, - SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game), - gba_save->gba_game + p_item_storage->p_bag, + *p_internal->p_security_key, + p_gba_save->save_type ); - gba_save->money = &SECTION1_DATA32( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_MONEY - ); - *gba_save->money ^= SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game); - - gba_save->casino_coins = &SECTION1_DATA16( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_CASINO_COINS - ); - *gba_save->casino_coins ^= (uint16_t)(SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game) & 0xFFFF); - - gba_save->pokedex_owned = &SECTION0_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_POKEDEX_OWNED - ); - - gba_save->pokedex_seenA = &SECTION0_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_POKEDEX_SEEN_A - ); - - gba_save->pokedex_seenB = &SECTION1_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_POKEDEX_SEEN_B - ); - - gba_save->pokedex_seenC = &SECTION4_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_POKEDEX_SEEN_C - ); - - if(gba_save->gba_game == PKSAV_GBA_FRLG) { - gba_save->rse_nat_pokedex_unlockedA = NULL; - - gba_save->frlg_nat_pokedex_unlockedA = &SECTION0_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_NAT_POKEDEX_A - ); - } else { - gba_save->rse_nat_pokedex_unlockedA = &SECTION0_DATA16( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_NAT_POKEDEX_A - ); - gba_save->frlg_nat_pokedex_unlockedA = NULL; - } - - gba_save->nat_pokedex_unlockedB = &SECTION2_DATA8( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_NAT_POKEDEX_B - ); - - gba_save->nat_pokedex_unlockedC = &SECTION2_DATA16( - gba_save->unshuffled, - gba_save->gba_game, - PKSAV_GBA_NAT_POKEDEX_C - ); -} + p_item_storage->p_pc = (struct pksav_gba_item_pc*)( + &p_section1->data8[p_section1_offsets[PKSAV_GBA_ITEM_PC]] + ); + + p_item_storage->p_registered_item = &p_section1->data16[ + p_section1_offsets[PKSAV_GBA_REGISTERED_ITEM]/2 + ]; + + // Pokédex + struct pksav_gba_pokedex* p_pokedex = &p_gba_save->pokedex; + + p_pokedex->p_seenA = &p_section0->data8[ + p_section0_offsets[PKSAV_GBA_POKEDEX_SEEN_A] + ]; + p_pokedex->p_seenB = &p_section1->data8[ + p_section1_offsets[PKSAV_GBA_POKEDEX_SEEN_B] + ]; + p_pokedex->p_seenC = &p_section4->data8[ + p_section4_offsets[PKSAV_GBA_POKEDEX_SEEN_C] + ]; + p_pokedex->p_owned = &p_section0->data8[ + p_section0_offsets[PKSAV_GBA_POKEDEX_OWNED] + ]; + + if(p_gba_save->save_type == PKSAV_GBA_SAVE_TYPE_FRLG) + { + p_pokedex->p_frlg_nat_pokedex_unlockedA = + &p_section0->data8[p_section0_offsets[PKSAV_GBA_NAT_POKEDEX_UNLOCKED_A]]; -pksav_error_t pksav_gba_save_load( - const char* filepath, - pksav_gba_save_t* gba_save -) { - if(!filepath || !gba_save) { - return PKSAV_ERROR_NULL_POINTER; + p_pokedex->p_rse_nat_pokedex_unlockedA = NULL; } + else + { + p_pokedex->p_rse_nat_pokedex_unlockedA = + &p_section0->data16[p_section0_offsets[PKSAV_GBA_NAT_POKEDEX_UNLOCKED_A]/2]; - // Read the file and make sure it's valid - FILE* gba_save_file = fopen(filepath, "rb"); - if(!gba_save_file) { - return PKSAV_ERROR_FILE_IO; + p_pokedex->p_frlg_nat_pokedex_unlockedA = NULL; } - fseek(gba_save_file, 0, SEEK_END); - size_t filesize = ftell(gba_save_file); + p_pokedex->p_nat_pokedex_unlockedB = + &p_section2->data8[p_section2_offsets[PKSAV_GBA_NAT_POKEDEX_UNLOCKED_B]]; + + p_pokedex->p_nat_pokedex_unlockedC = + &p_section2->data16[p_section2_offsets[PKSAV_GBA_NAT_POKEDEX_UNLOCKED_C]/2]; + + // Trainer Info + struct pksav_gba_player_info* p_player_info = &p_gba_save->player_info; - if(filesize < PKSAV_GBA_SMALL_SAVE_SIZE) { - fclose(gba_save_file); - return PKSAV_ERROR_INVALID_SAVE; + p_player_info->p_id = &p_player_info_internal->id; + p_player_info->p_name = p_player_info_internal->name; + p_player_info->p_gender = &p_player_info_internal->gender; + + p_player_info->p_money = &p_section1->data32[ + p_section1_offsets[PKSAV_GBA_MONEY]/4 + ]; + *p_player_info->p_money ^= *p_internal->p_security_key; + + // Misc Fields + struct pksav_gba_misc_fields* p_misc_fields = &p_gba_save->misc_fields; + + p_misc_fields->p_casino_coins = &p_section1->data16[ + p_section1_offsets[PKSAV_GBA_CASINO_COINS]/2 + ]; + *p_misc_fields->p_casino_coins ^= (*p_internal->p_security_key & 0xFFFF); + + // TODO: roamer, once offset determined + + // Ruby/Sapphire-specific fields + //struct pksav_gba_rs_fields* p_rs_fields = &p_misc_fields->rs_fields; + + // Emerald-specific fields + //struct pksav_gba_emerald_fields* p_emerald_fields = &p_misc_fields->emerald_fields; + + // FireRed/LeafGreen-specific fields + struct pksav_gba_frlg_fields* p_frlg_fields = &p_misc_fields->frlg_fields; + if(p_gba_save->save_type == PKSAV_GBA_SAVE_TYPE_FRLG) + { + p_frlg_fields->p_rival_name = &p_section4->data8[ + p_section4_offsets[PKSAV_GBA_FRLG_RIVAL_NAME] + ]; + } + else + { + p_frlg_fields->p_rival_name = NULL; } +} - gba_save->raw = calloc(filesize, 1); - fseek(gba_save_file, 0, SEEK_SET); - size_t num_read = fread((void*)gba_save->raw, 1, filesize, gba_save_file); - fclose(gba_save_file); - if(num_read != filesize) { - return PKSAV_ERROR_FILE_IO; +static enum pksav_error _pksav_gba_load_save_from_buffer( + uint8_t* p_buffer, + size_t buffer_len, + bool is_buffer_ours, + struct pksav_gba_save* p_gba_save_out +) +{ + assert(p_buffer != NULL); + assert(p_gba_save_out != NULL); + + enum pksav_error error = PKSAV_ERROR_NONE; + + enum pksav_gba_save_type save_type = PKSAV_GBA_SAVE_TYPE_NONE; + error = pksav_gba_get_buffer_save_type( + p_buffer, + buffer_len, + &save_type + ); + if(!error) + { + if(save_type != PKSAV_GBA_SAVE_TYPE_NONE) + { + p_gba_save_out->save_type = save_type; + _pksav_gba_set_save_pointers( + p_gba_save_out, + p_buffer, + buffer_len, + true // should_alloc_internal + ); + + // Internal + struct pksav_gba_save_internal* p_internal = p_gba_save_out->p_internal; + p_internal->is_buffer_ours = is_buffer_ours; + } + else + { + error = PKSAV_ERROR_INVALID_SAVE; + } } - gba_save->small_save = (filesize < PKSAV_GBA_SAVE_SIZE); + return error; +} - // Detect what kind of save this is - bool found = false; - for(pksav_gba_game_t i = PKSAV_GBA_RS; i <= PKSAV_GBA_FRLG; ++i) { - pksav_buffer_is_gba_save( - gba_save->raw, - filesize, - i, - &found - ); - if(found) { - gba_save->gba_game = i; - break; - } +enum pksav_error pksav_gba_load_save_from_buffer( + uint8_t* p_buffer, + size_t buffer_len, + struct pksav_gba_save* p_gba_save_out +) +{ + if(!p_buffer || !p_gba_save_out) + { + return PKSAV_ERROR_NULL_POINTER; } - if(!found) { - free(gba_save->raw); - return PKSAV_ERROR_INVALID_SAVE; + return _pksav_gba_load_save_from_buffer( + p_buffer, + buffer_len, + false, // is_buffer_ours + p_gba_save_out + ); +} + +enum pksav_error pksav_gba_load_save_from_file( + const char* p_filepath, + struct pksav_gba_save* p_gba_save_out +) +{ + if(!p_filepath || !p_gba_save_out) + { + return PKSAV_ERROR_NULL_POINTER; } - // Allocate memory as needed and set pointers - gba_save->unshuffled = calloc(sizeof(pksav_gba_save_slot_t), 1); - gba_save->pokemon_pc = calloc(sizeof(pksav_gba_pokemon_pc_t), 1); - _pksav_gba_save_set_pointers( - gba_save - ); + enum pksav_error error = PKSAV_ERROR_NONE; - return PKSAV_ERROR_NONE; + uint8_t* p_file_buffer = NULL; + size_t buffer_len = 0; + error = pksav_fs_read_file_to_buffer( + p_filepath, + &p_file_buffer, + &buffer_len + ); + + if(!error) + { + error = _pksav_gba_load_save_from_buffer( + p_file_buffer, + buffer_len, + true, // is_buffer_ours + p_gba_save_out + ); + if(error) + { + // We made this buffer, so it's on us to free it if there's + // an error. + free(p_file_buffer); + } + } + + return error; } -pksav_error_t pksav_gba_save_save( - const char* filepath, - pksav_gba_save_t* gba_save -) { - if(!filepath || !gba_save) { +enum pksav_error pksav_gba_save_save( + const char* p_filepath, + struct pksav_gba_save* p_gba_save +) +{ + if(!p_filepath || !p_gba_save) + { return PKSAV_ERROR_NULL_POINTER; } - // Make sure we can write to this file - FILE* gba_save_file = fopen(filepath, "wb"); - if(!gba_save_file) { - return PKSAV_ERROR_FILE_IO; - } + enum pksav_error error = PKSAV_ERROR_NONE; - *gba_save->money ^= SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game); - *gba_save->casino_coins ^= (uint16_t)(SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game) & 0xFFFF); + struct pksav_gba_save_internal* p_internal = p_gba_save->p_internal; + // Item Storage pksav_gba_save_crypt_items( - gba_save->item_storage, - SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game), - gba_save->gba_game - ); - - pksav_gba_save_save_pokemon_pc( - gba_save->pokemon_pc, - gba_save->unshuffled + p_gba_save->item_storage.p_bag, + *p_internal->p_security_key, + p_gba_save->save_type ); - for(uint8_t i = 0; i < 6; ++i) { + // Pokémon Storage + for(size_t party_index = 0; + party_index < PKSAV_GBA_PARTY_NUM_POKEMON; + ++party_index) + { pksav_gba_crypt_pokemon( - &gba_save->pokemon_party->party[i].pc, - true + &p_gba_save->pokemon_storage.p_party->party[party_index].pc_data, + true // should_encrypt ); } - // Find the least recent save slot, increment the save index, save into that - uint32_t save_index = pksav_littleendian32(SAVE_INDEX(gba_save->unshuffled) + 1); - for(uint8_t i = 0; i < 14; ++i) { - gba_save->unshuffled->sections_arr[i].footer.save_index = save_index; + pksav_gba_save_save_pokemon_pc( + &p_internal->consolidated_pokemon_pc, + &p_internal->unshuffled_save_slot + ); + + // TODO: confirm crypting happens in daycare + for(size_t daycare_index = 0; + daycare_index < PKSAV_GBA_DAYCARE_NUM_POKEMON; + ++daycare_index) + { + if(p_gba_save->save_type == PKSAV_GBA_SAVE_TYPE_RS) + { + pksav_gba_crypt_pokemon( + &p_gba_save->pokemon_storage.p_daycare->rs.pokemon[daycare_index], + true // should_encrypt + ); + } + else + { + pksav_gba_crypt_pokemon( + &p_gba_save->pokemon_storage.p_daycare->emerald_frlg.pokemon[daycare_index].pokemon, + true // should_encrypt + ); + } } - pksav_gba_save_slot_t* save_into = NULL; - if(!gba_save->small_save) { - pksav_gba_save_slot_t* sections_pair = (pksav_gba_save_slot_t*)gba_save->raw; - save_into = gba_save->from_first_slot ? §ions_pair[1] : §ions_pair[0]; - gba_save->from_first_slot = !gba_save->from_first_slot; - } else { - save_into = (pksav_gba_save_slot_t*)gba_save->raw; + // Trainer Info + *p_gba_save->player_info.p_money ^= *p_internal->p_security_key; + + // Misc Fields + *p_gba_save->misc_fields.p_casino_coins ^= (*p_internal->p_security_key & 0xFFFF); + + // Save into the less recent save slot if the save file is large enough + // for two slots. + union pksav_gba_save_slot* p_raw_sections = (union pksav_gba_save_slot*)( + p_internal->p_raw_save + ); + union pksav_gba_save_slot* p_output_save_slot = NULL; + if(p_internal->save_len >= PKSAV_GBA_SAVE_SLOT_SIZE*2) + { + p_output_save_slot = p_internal->is_save_from_first_slot ? &p_raw_sections[1] + : &p_raw_sections[0]; + } + else + { + p_output_save_slot = &p_raw_sections[0]; } - pksav_set_gba_section_checksums( - gba_save->unshuffled - ); + + pksav_gba_set_section_checksums(&p_internal->unshuffled_save_slot); pksav_gba_save_shuffle_sections( - gba_save->unshuffled, - save_into, - gba_save->shuffled_section_nums + &p_internal->unshuffled_save_slot, + p_output_save_slot, + p_internal->shuffled_section_nums ); - // With everything saved to the new slot, reload it - _pksav_gba_save_set_pointers( - gba_save - ); + // Increment the save index of the new save index. + uint32_t save_index = pksav_littleendian32( + p_output_save_slot->section0.footer.save_index + ); + ++save_index; - // Write to file - fwrite( - (void*)gba_save->raw, - 1, - (gba_save->small_save ? PKSAV_GBA_SMALL_SAVE_SIZE : PKSAV_GBA_SAVE_SIZE), - gba_save_file - ); + for(size_t section_index = 0; + section_index < PKSAV_GBA_NUM_SAVE_SECTIONS; + ++section_index) + { + p_output_save_slot->sections_arr[section_index].footer.save_index = + pksav_littleendian32(save_index); + } - fclose(gba_save_file); + error = pksav_fs_write_buffer_to_file( + p_filepath, + p_internal->p_raw_save, + p_internal->save_len + ); - return PKSAV_ERROR_NONE; + if(!error) + { + // With everything saved to the new slot, reset the pointers. + _pksav_gba_set_save_pointers( + p_gba_save, + p_internal->p_raw_save, + p_internal->save_len, + false // should_alloc_internal + ); + } + + return error; } -pksav_error_t pksav_gba_save_free( - pksav_gba_save_t* gba_save -) { - if(!gba_save) { +enum pksav_error pksav_gba_free_save( + struct pksav_gba_save* p_gba_save +) +{ + if(!p_gba_save) + { return PKSAV_ERROR_NULL_POINTER; } - free(gba_save->pokemon_pc); - free(gba_save->unshuffled); - free(gba_save->raw); + struct pksav_gba_save_internal* p_internal = p_gba_save->p_internal; + if(p_internal->is_buffer_ours) + { + free(p_internal->p_raw_save); + } + free(p_internal); + + // Everything else is a pointer or an enum with a default value of 0, + // so this one memset should be fine. + memset(p_gba_save, 0, sizeof(*p_gba_save)); return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/gba/save_internal.h b/libpksav/lib/gba/save_internal.h new file mode 100644 index 0000000..f441087 --- /dev/null +++ b/libpksav/lib/gba/save_internal.h @@ -0,0 +1,291 @@ +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_SAVE_INTERNAL_H +#define PKSAV_GBA_SAVE_INTERNAL_H + +#include "sections_internal.h" + +#include +#include +#include + +#include +#include + +#pragma pack(push,1) + +#define PKSAV_GBA_NUM_SAVE_SECTIONS (14) + +/*! + * This union allows the data to be parsed in multiple ways, which is useful for + * unshuffling and decryption. + */ + +#define PKSAV_GBA_POKEMON_ALL_BLOCKS_SIZE_BYTES (48) + +union pksav_gba_pokemon_blocks_internal +{ + uint8_t blocks8[PKSAV_GBA_POKEMON_ALL_BLOCKS_SIZE_BYTES]; + uint16_t blocks16[PKSAV_GBA_POKEMON_ALL_BLOCKS_SIZE_BYTES/2]; + uint32_t blocks32[PKSAV_GBA_POKEMON_ALL_BLOCKS_SIZE_BYTES/4]; + uint8_t blocks[4][PKSAV_GBA_POKEMON_ALL_BLOCKS_SIZE_BYTES/4]; + struct pksav_gba_pokemon_blocks by_name; +}; + +/* + * The footer to all sections in a Game Boy Advance save. + * + * This contains some of the mean used to verify a save file, as + * well as information about the save file itself. + * + * This struct should never need to directly be accessed by the + * user, as the functions defined in take care + * of all internal storage details. + */ +struct pksav_gba_section_footer +{ + /* + * Which save section this section corresponds to. + * + * In a save file, the 14 sections are shuffled, and PKSav uses this + * value to unshuffle them. + */ + uint8_t section_id; + /* + * Padding to keep the size of the struct even. + * + * No relevant data is stored here. + */ + uint8_t padding; + // The checksum for the given section. + uint16_t checksum; + // A magic number used to confirm that the given file is a valid save. + uint32_t validation; + /* + * The save number corresponding to this save slot. + * + * Each save file contains to save slots. Every time the game is saved, it + * alternates which slot is used and increments the save index in the new + * slot. PKSav emulates this behavior. + */ + uint32_t save_index; +}; + +/* + * Representation of a Game Boy Advance save section. + * + * Each section is 3968 bytes, and each save slot is made of 14 of these sections. + */ + +#define PKSAV_GBA_SAVE_SECTION_SIZE_BYTES (3968) + +struct pksav_gba_save_section +{ + // A convenience union allowing the data to be accessed 1 byte or 4 bytes at a time. + union + { + // Access the data one byte at a time. + uint8_t data8[PKSAV_GBA_SAVE_SECTION_SIZE_BYTES]; + // Access the data in 2-byte chunks. + uint16_t data16[PKSAV_GBA_SAVE_SECTION_SIZE_BYTES/2]; + // Access the data in 4-byte chunks. + uint32_t data32[PKSAV_GBA_SAVE_SECTION_SIZE_BYTES/4]; + }; + /* + * Padding to make the size of the struct a power of 2. + * + * No relevant data is stored here. + */ + uint8_t padding[116]; + // The section's footer. + struct pksav_gba_section_footer footer; +}; + +/* + * The internal storage of a save slot in a Game Boy Advance save file. + * + * Each save slot has 14 sections, which when unshuffled, provide common offsets + * for different structs. + * + * Each save file has two slots, and the game alternates which slot it saves to. + * + * PKSav stores this as a union, allowing the data to be accessed in various ways. + */ +union pksav_gba_save_slot +{ + // Access individual bytes in the save slot. + uint8_t data[sizeof(struct pksav_gba_save_section)*PKSAV_GBA_NUM_SAVE_SECTIONS]; + // Access sections as an array. + struct pksav_gba_save_section sections_arr[PKSAV_GBA_NUM_SAVE_SECTIONS]; + struct + { + // Section 0 (trainer info). + union + { + // Access the data as a normal section. + struct pksav_gba_save_section section0; + // Access the data as a trainer info struct. + struct pksav_gba_player_info_internal player_info; + }; + // Section 1 (team/items). + struct pksav_gba_save_section section1; + // Section 2. + struct pksav_gba_save_section section2; + // Section 3. + struct pksav_gba_save_section section3; + // Section 4 (rival info). + struct pksav_gba_save_section section4; + // Section 5. + struct pksav_gba_save_section section5; + // Section 6. + struct pksav_gba_save_section section6; + // Section 7. + struct pksav_gba_save_section section7; + // Section 8. + struct pksav_gba_save_section section8; + // Section 9. + struct pksav_gba_save_section section9; + // Section 10. + struct pksav_gba_save_section section10; + // Section 11. + struct pksav_gba_save_section section11; + // Section 12. + struct pksav_gba_save_section section12; + // Section 13. + struct pksav_gba_save_section section13; + }; +}; + +#pragma pack(pop) + +#define PKSAV_GBA_SAVE_SLOT_SIZE (0xE000) + +struct pksav_gba_save_internal +{ + uint8_t* p_raw_save; + + // There are multiple storage formats, so we can't just use our + // "minimum size" #define. + size_t save_len; + + bool is_save_from_first_slot; + union pksav_gba_save_slot unshuffled_save_slot; + uint8_t shuffled_section_nums[PKSAV_GBA_NUM_SAVE_SECTIONS]; + + struct pksav_gba_pokemon_pc consolidated_pokemon_pc; + uint32_t* p_security_key; + + struct pksav_gba_pokedex_internal* p_pokedex_internal; + + bool is_buffer_ours; +}; + +// Each footer has a field that must equal this value to be considered valid. +#define PKSAV_GBA_VALIDATION_MAGIC (0x08012025) + +// How many bytes in each section are read for the checksum +static const size_t pksav_gba_section_sizes[PKSAV_GBA_NUM_SAVE_SECTIONS] = +{ + 3884,3968,3968,3968,3848,3968,3968, + 3968,3968,3968,3968,3968,3968,2000 +}; + +/* + * Offsets + */ + +enum pksav_gba_section0_field +{ + PKSAV_GBA_OPTIONS_BUTTON_MODE = 0, + PKSAV_GBA_OPTIONS_TEXT, + PKSAV_GBA_OPTIONS_SOUND_BATTLE, + PKSAV_GBA_NAT_POKEDEX_UNLOCKED_A, + PKSAV_GBA_POKEDEX_OWNED, + PKSAV_GBA_POKEDEX_SEEN_A, + PKSAV_GBA_LOCAL_TIME_OFFSET, + PKSAV_GBA_LAST_BERRY_TREE_UPDATE, + PKSAV_GBA_GAME_CODE, + PKSAV_GBA_SECURITY_KEY1, + PKSAV_GBA_SECURITY_KEY2, + + PKSAV_GBA_NUM_SECTION0_OFFSETS +}; + +static const size_t PKSAV_GBA_SAVE_SECTION0_OFFSETS[][PKSAV_GBA_NUM_SECTION0_OFFSETS] = +{ + {0x0013,0x0014,0x0015,0x0019,0x0028,0x005C,0x0098,0x00A0,0x00AC,0x00AC,0x00AC}, + {0x0013,0x0014,0x0015,0x0019,0x0028,0x005C,0x0098,0x00A0,0x00AC,0x00AC,0x01F4}, + {0x0013,0x0014,0x0015,0x001B,0x0028,0x005C,0x0098,0x00A0,0x00AC,0x0AF8,0x0F20} +}; + +enum pksav_gba_section1_field +{ + PKSAV_GBA_PLAYER_LOCATION_INFO = 0, + PKSAV_GBA_POKEMON_PARTY, + PKSAV_GBA_MONEY, + PKSAV_GBA_CASINO_COINS, + PKSAV_GBA_REGISTERED_ITEM, + PKSAV_GBA_ITEM_PC, + PKSAV_GBA_ITEM_BAG, + PKSAV_GBA_POKEDEX_SEEN_B, + + PKSAV_GBA_NUM_SECTION1_OFFSETS +}; + +static const size_t PKSAV_GBA_SAVE_SECTION1_OFFSETS[][PKSAV_GBA_NUM_SECTION1_OFFSETS] = +{ + {0x0000,0x0234,0x0490,0x0494,0x0496,0x0498,0x0560,0x0938}, + {0x0000,0x0234,0x0490,0x0494,0x0496,0x0498,0x0560,0x0988}, + {0x0000,0x0034,0x0290,0x0294,0x0296,0x0298,0x0310,0x0788} +}; + +enum pksav_gba_section2_field +{ + PKSAV_GBA_NAT_POKEDEX_UNLOCKED_B = 0, + PKSAV_GBA_NAT_POKEDEX_UNLOCKED_C, + + PKSAV_GBA_NUM_SECTION2_OFFSETS +}; + +static const size_t PKSAV_GBA_SAVE_SECTION2_OFFSETS[][PKSAV_GBA_NUM_SECTION2_OFFSETS] = +{ + {0x03A6,0x044C}, + {0x0402,0x04A8}, + {0x0068,0x011C} +}; + +enum pksav_gba_section4_field +{ + PKSAV_GBA_DAYCARE = 0, + PKSAV_GBA_POKEDEX_SEEN_C, + PKSAV_GBA_FRLG_RIVAL_NAME, + + PKSAV_GBA_NUM_SECTION4_OFFSETS +}; + +// TODO: verify daycare positions +static const size_t PKSAV_GBA_SAVE_SECTION4_OFFSETS[][PKSAV_GBA_NUM_SECTION4_OFFSETS] = +{ + {0x00A1,0x0C0C,0x0000}, + {0x01A1,0x0CA4,0x0000}, + {0x01B1,0x0B98,0x0BCC} +}; + +#ifdef __cplusplus +extern "C" { +#endif + +union pksav_gba_save_slot* _pksav_gba_get_active_save_slot_ptr( + uint8_t* buffer, + size_t buffer_len +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GBA_SAVE_INTERNAL_H */ diff --git a/libpksav/lib/gba/sections_internal.h b/libpksav/lib/gba/sections_internal.h new file mode 100644 index 0000000..140f661 --- /dev/null +++ b/libpksav/lib/gba/sections_internal.h @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_GBA_BLOCKS_INTERNAL_H +#define PKSAV_GBA_BLOCKS_INTERNAL_H + +#include "battle_tower.h" + +#include +#include +#include +#include +#include +#include +#include + +#include + +// Structs will be stored here in order to properly populate the struct and +// will be moved public as needed. + +#pragma pack(push,1) + +#define PKSAV_GBA_NUM_POKEDEX_SLOTS 412 +#define PKSAV_GBA_POKEDEX_BUFFER_SIZE_BYTES ((PKSAV_GBA_NUM_POKEDEX_SLOTS / 8) + 1) + +struct pksav_gba_player_info_internal +{ + uint8_t name[PKSAV_GBA_TRAINER_NAME_LENGTH]; + uint8_t terminator; + uint8_t gender; + uint8_t special_save_warp; + union pksav_trainer_id id; + struct pksav_gba_time time_played; +}; + +struct pksav_gba_pokedex_internal +{ + uint8_t pokedex_order; + uint8_t unknown1; + uint8_t national_pokedex_unlocked; + uint8_t unknown2; + uint8_t first_unown_seen_personality; + uint8_t first_spinda_seen_personality; + uint8_t unknown3; + + uint8_t seen[PKSAV_GBA_POKEDEX_BUFFER_SIZE_BYTES]; + uint8_t owned[PKSAV_GBA_POKEDEX_BUFFER_SIZE_BYTES]; +}; + +struct pksav_gba_rs_secret_base_record +{ + uint8_t secret_base_id; + uint8_t trainer_gender_misc; + uint8_t trainer_name[PKSAV_GBA_TRAINER_NAME_LENGTH]; // TODO: does this have a terminator? + uint16_t field_e; + uint8_t fields[2]; + uint8_t decorations[16]; + uint8_t decoration_positions[6]; + uint32_t party_personalities[PKSAV_GBA_PARTY_NUM_POKEMON]; + uint16_t party_moves[PKSAV_GBA_PARTY_NUM_POKEMON * PKSAV_GBA_POKEMON_NUM_MOVES]; + uint16_t party_species[PKSAV_GBA_PARTY_NUM_POKEMON]; + uint16_t party_held_items[PKSAV_GBA_PARTY_NUM_POKEMON]; + uint8_t party_levels[PKSAV_GBA_PARTY_NUM_POKEMON]; + uint8_t party_EVs[PKSAV_GBA_PARTY_NUM_POKEMON]; +}; + +struct pksav_gba_rs_berry_tree +{ + uint8_t berry_id; + uint8_t stage; // TODO: bitfield enum + uint16_t minutes_until_next_stage; + uint8_t berry_yield; + uint8_t stats; // TODO: bitfield enum +}; + +struct pksav_gba_rs_player_room_decorations +{ + uint8_t decorations[12]; + uint8_t positions[12]; + uint8_t chairs[10]; + uint8_t plants[10]; + uint8_t ornaments[10]; + uint8_t maps[10]; + uint8_t posters[10]; + uint8_t dolls[10]; + uint8_t cushions[10]; +}; + +#pragma pack(pop) + +#endif /* PKSAV_GBA_BLOCKS_INTERNAL_H */ diff --git a/libpksav/lib/gba/shuffle.c b/libpksav/lib/gba/shuffle.c index b3c4e43..5ef06cf 100644 --- a/libpksav/lib/gba/shuffle.c +++ b/libpksav/lib/gba/shuffle.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -7,26 +7,97 @@ #include "checksum.h" #include "crypt.h" +#include "save_internal.h" #include "shuffle.h" +#include + +#include #include +void pksav_gba_save_unshuffle_sections( + const union pksav_gba_save_slot* save_slot_in, + union pksav_gba_save_slot* save_slot_out, + uint8_t* section_nums_out +) +{ + assert(save_slot_in != NULL); + assert(save_slot_out != NULL); + assert(section_nums_out != NULL); + + for(size_t section_index = 0; + section_index < PKSAV_GBA_NUM_SAVE_SECTIONS; + ++section_index) + { + uint8_t section_id = save_slot_in->sections_arr[section_index].footer.section_id; + save_slot_out->sections_arr[section_id] = save_slot_in->sections_arr[section_index]; + + // Cache the original positions. + section_nums_out[section_index] = section_id; + } +} + +void pksav_gba_save_shuffle_sections( + const union pksav_gba_save_slot* save_slot_in, + union pksav_gba_save_slot* save_slot_out, + const uint8_t* p_section_nums +) +{ + assert(save_slot_in != NULL); + assert(save_slot_out != NULL); + assert(p_section_nums != NULL); + + for(size_t section_index = 0; + section_index < PKSAV_GBA_NUM_SAVE_SECTIONS; + ++section_index) + { + assert(p_section_nums[section_index] < PKSAV_GBA_NUM_SAVE_SECTIONS); + + save_slot_out->sections_arr[section_index] = + save_slot_in->sections_arr[p_section_nums[section_index]]; + } +} + void pksav_gba_save_load_pokemon_pc( - const pksav_gba_save_slot_t* gba_save_slot, - pksav_gba_pokemon_pc_t* pokemon_pc_out -) { - // Copy data from sections into contiguous data structure - uint8_t* dst_ptr = (uint8_t*)pokemon_pc_out; - for(uint8_t i = 5; i <= 13; ++i) { - memcpy(dst_ptr, gba_save_slot->sections_arr[i].data8, pksav_gba_section_sizes[i]); - dst_ptr += pksav_gba_section_sizes[i]; + const union pksav_gba_save_slot* gba_save_slot, + struct pksav_gba_pokemon_pc* pokemon_pc_out +) +{ + assert(gba_save_slot != NULL); + assert(pokemon_pc_out != NULL); + + memset( + pokemon_pc_out, + 0, + sizeof(*pokemon_pc_out) + ); + + // Copy data from sections into contiguous data structure. + uint8_t* p_dst = (uint8_t*)pokemon_pc_out; + for(size_t section_index = 5; + section_index <= 13; + ++section_index) + { + memcpy( + p_dst, + gba_save_slot->sections_arr[section_index].data8, + pksav_gba_section_sizes[section_index] + ); + + p_dst += pksav_gba_section_sizes[section_index]; } - // Decrypt Pokémon - for(uint8_t i = 0; i < 14; ++i) { - for(uint8_t j = 0; j < 30; ++j) { + // Decrypt Pokémon. + for(size_t box_index = 0; + box_index < PKSAV_GBA_NUM_POKEMON_BOXES; + ++box_index) + { + for(size_t pokemon_index = 0; + pokemon_index < PKSAV_GBA_BOX_NUM_POKEMON; + ++pokemon_index) + { pksav_gba_crypt_pokemon( - &pokemon_pc_out->boxes[i].entries[j], + &pokemon_pc_out->boxes[box_index].entries[pokemon_index], false ); } @@ -34,30 +105,43 @@ void pksav_gba_save_load_pokemon_pc( } void pksav_gba_save_save_pokemon_pc( - pksav_gba_pokemon_pc_t* pokemon_pc, - pksav_gba_save_slot_t* gba_save_slot_out -) { - // Set Pokémon checksum and encrypt - for(uint8_t i = 0; i < 14; ++i) { - for(uint8_t j = 0; j < 30; ++j) { - pksav_set_gba_pokemon_checksum( - &pokemon_pc->boxes[i].entries[j] + struct pksav_gba_pokemon_pc* p_pokemon_pc, + union pksav_gba_save_slot* gba_save_slot_out +) +{ + assert(p_pokemon_pc != NULL); + assert(gba_save_slot_out != NULL); + + // Set Pokémon checksum and encrypt. + for(size_t box_index = 0; + box_index < PKSAV_GBA_NUM_POKEMON_BOXES; + ++box_index) + { + for(uint8_t pokemon_index = 0; + pokemon_index < PKSAV_GBA_BOX_NUM_POKEMON; + ++pokemon_index) + { + pksav_gba_set_pokemon_checksum( + &p_pokemon_pc->boxes[box_index].entries[pokemon_index] ); pksav_gba_crypt_pokemon( - &pokemon_pc->boxes[i].entries[j], + &p_pokemon_pc->boxes[box_index].entries[pokemon_index], true ); } } - // Copy contiguous data structure back into sections - uint8_t* src_ptr = (uint8_t*)pokemon_pc; - for(uint8_t i = 5; i <= 13; ++i) { + // Copy contiguous data structure back into sections. + uint8_t* p_src = (uint8_t*)p_pokemon_pc; + for(size_t section_index = 5; + section_index <= 13; + ++section_index) + { memcpy( - gba_save_slot_out->sections_arr[i].data8, - src_ptr, - pksav_gba_section_sizes[i] + gba_save_slot_out->sections_arr[section_index].data8, + p_src, + pksav_gba_section_sizes[section_index] ); - src_ptr += pksav_gba_section_sizes[i]; + p_src += pksav_gba_section_sizes[section_index]; } } diff --git a/libpksav/lib/gba/shuffle.h b/libpksav/lib/gba/shuffle.h index 37d31d3..b5ed1eb 100644 --- a/libpksav/lib/gba/shuffle.h +++ b/libpksav/lib/gba/shuffle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -8,44 +8,33 @@ #ifndef PKSAV_GBA_SHUFFLE_H #define PKSAV_GBA_SHUFFLE_H +#include "gba/save_internal.h" + #include #include -#include #include -static PKSAV_INLINE void pksav_gba_save_unshuffle_sections( - const pksav_gba_save_slot_t* save_slot_in, - pksav_gba_save_slot_t* save_slot_out, - uint8_t section_nums[14] -) { - for(uint8_t i = 0; i < 14; ++i) { - uint8_t section_id = save_slot_in->sections_arr[i].footer.section_id; - save_slot_out->sections_arr[section_id] = save_slot_in->sections_arr[i]; - - // Cache the original positions - section_nums[i] = section_id; - } -} - -static PKSAV_INLINE void pksav_gba_save_shuffle_sections( - const pksav_gba_save_slot_t* save_slot_in, - pksav_gba_save_slot_t* save_slot_out, - const uint8_t section_nums[14] -) { - for(uint8_t i = 0; i < 14; ++i) { - save_slot_out->sections_arr[i] = save_slot_in->sections_arr[section_nums[i]]; - } -} +void pksav_gba_save_unshuffle_sections( + const union pksav_gba_save_slot* save_slot_in, + union pksav_gba_save_slot* save_slot_out, + uint8_t* section_nums_out +); + +void pksav_gba_save_shuffle_sections( + const union pksav_gba_save_slot* save_slot_in, + union pksav_gba_save_slot* save_slot_out, + const uint8_t* p_section_nums +); void pksav_gba_save_load_pokemon_pc( - const pksav_gba_save_slot_t* gba_save_slot, - pksav_gba_pokemon_pc_t* pokemon_pc_out + const union pksav_gba_save_slot* gba_save_slot, + struct pksav_gba_pokemon_pc* pokemon_pc_out ); void pksav_gba_save_save_pokemon_pc( - pksav_gba_pokemon_pc_t* pokemon_pc, - pksav_gba_save_slot_t* gba_save_slot_out + struct pksav_gba_pokemon_pc* p_pokemon_pc, + union pksav_gba_save_slot* gba_save_slot_out ); #endif /* PKSAV_GBA_SHUFFLE_H */ diff --git a/libpksav/lib/gba/text.c b/libpksav/lib/gba/text.c index db2b09d..a59f977 100644 --- a/libpksav/lib/gba/text.c +++ b/libpksav/lib/gba/text.c @@ -1,14 +1,15 @@ /* - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ -#include "../common/text_common.h" +#include "util/text_common.h" #include +#include #include #define PKSAV_GBA_LAST_CHAR 0xF9 // Just control characters past here @@ -30,7 +31,8 @@ * Any application displaying this text will need to graphically substitute in these characters. */ -static const wchar_t pksav_gba_char_map[] = { +static const wchar_t PKSAV_GBA_CHAR_MAP[] = +{ 0x0020,0x00C0,0x00C1,0x00C2,0x00C7,0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x3053,0x00CD,0x00CE,0x00D2,0x00D3,0x00D4, 0x0152,0x00D9,0x00DA,0x00DB,0x00D1,0x1E9E,0x00E0,0x00E1,0x306D,0x00E7,0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x307E, 0x00EE,0x00EF,0x00F2,0x00F3,0x00F4,0x0152,0x00F9,0x00FA,0x00FB,0x00F1,0x00BA,0x00AA,0x003F,0x0026,0x002B,0x3042, @@ -48,90 +50,108 @@ static const wchar_t pksav_gba_char_map[] = { 0x006C,0x006D,0x006E,0x006F,0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,0x0078,0x0079,0x007A,0x25B6, 0x003A,0x00C4,0x00D6,0x00DC,0x00E4,0x00F6,0x00F6,0x2B06,0x2B07,0x2B05,'\0','\0','\0','\0','\n','\0' }; +static const size_t PKSAV_GBA_CHAR_MAP_SIZE = + sizeof(PKSAV_GBA_CHAR_MAP)/sizeof(PKSAV_GBA_CHAR_MAP[0]); -static pksav_error_t _pksav_widetext_from_gba( - const uint8_t* input_buffer, - wchar_t* output_text, +static enum pksav_error _pksav_gba_import_widetext( + const uint8_t* p_input_buffer, + wchar_t* p_output_widetext, size_t num_chars -) { - if(!input_buffer || !output_text) { - return PKSAV_ERROR_NULL_POINTER; - } +) +{ + assert(p_input_buffer != NULL); + assert(p_output_widetext != NULL); - memset(output_text, 0, sizeof(wchar_t)*num_chars); + memset(p_output_widetext, 0, sizeof(wchar_t)*num_chars); - for(size_t i = 0; i < num_chars; ++i) { - if(input_buffer[i] > PKSAV_GBA_LAST_CHAR) { + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_buffer[char_index] > PKSAV_GBA_LAST_CHAR) + { break; - } else { - output_text[i] = pksav_gba_char_map[input_buffer[i]]; + } + else + { + p_output_widetext[char_index] = PKSAV_GBA_CHAR_MAP[p_input_buffer[char_index]]; } } return PKSAV_ERROR_NONE; } -static pksav_error_t _pksav_widetext_to_gba( - const wchar_t* input_text, - uint8_t* output_buffer, +static enum pksav_error _pksav_gba_export_widetext( + const wchar_t* p_input_widetext, + uint8_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { - return PKSAV_ERROR_NULL_POINTER; - } - - memset(output_buffer, PKSAV_GBA_TERMINATOR, num_chars); - - for(size_t i = 0; i < num_chars; ++i) { - ssize_t index = wchar_map_index(pksav_gba_char_map, 256, input_text[i]); - if(index == -1) { +) +{ + assert(p_input_widetext != NULL); + assert(p_output_buffer != NULL); + + memset(p_output_buffer, PKSAV_GBA_TERMINATOR, num_chars); + + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + ssize_t map_index = wchar_map_index( + PKSAV_GBA_CHAR_MAP, + PKSAV_GBA_CHAR_MAP_SIZE, + p_input_widetext[char_index] + ); + if(map_index != -1) + { + p_output_buffer[char_index] = (uint8_t)map_index; + } + else + { break; - } else { - output_buffer[i] = (uint8_t)index; } } return PKSAV_ERROR_NONE; } -pksav_error_t pksav_text_from_gba( - const uint8_t* input_buffer, - char* output_text, +enum pksav_error pksav_gba_import_text( + const uint8_t* p_input_buffer, + char* p_output_text, size_t num_chars -) { - if(!input_buffer || !output_text) { +) +{ + if(!p_input_buffer || !p_output_text) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - _pksav_widetext_from_gba( - input_buffer, widetext, num_chars + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_gba_import_widetext( + p_input_buffer, p_widetext, num_chars ); - memset(output_text, 0, num_chars); - pksav_wcstombs(output_text, widetext, num_chars); - free(widetext); + memset(p_output_text, 0, num_chars); + pksav_wcstombs(p_output_text, p_widetext, num_chars); + free(p_widetext); return PKSAV_ERROR_NONE; } -pksav_error_t pksav_text_to_gba( - const char* input_text, - uint8_t* output_buffer, +enum pksav_error pksav_gba_export_text( + const char* p_input_text, + uint8_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { +) +{ + if(!p_input_text || !p_output_buffer) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - pksav_mbstowcs(widetext, input_text, num_chars); + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(p_widetext, p_input_text, num_chars); - _pksav_widetext_to_gba( - widetext, output_buffer, num_chars + _pksav_gba_export_widetext( + p_widetext, p_output_buffer, num_chars ); - free(widetext); + free(p_widetext); return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/gen1/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/gen1/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/lib/gen1/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/lib/gen1/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/lib/gen1/Makefile b/libpksav/lib/gen1/Makefile index 533c772..2a3a821 100644 --- a/libpksav/lib/gen1/Makefile +++ b/libpksav/lib/gen1/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen1//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/gen1//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/gen1/cmake_install.cmake b/libpksav/lib/gen1/cmake_install.cmake index c46e141..996c58e 100644 --- a/libpksav/lib/gen1/cmake_install.cmake +++ b/libpksav/lib/gen1/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib/gen1 +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/gen1 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) diff --git a/libpksav/lib/gen1/save.c b/libpksav/lib/gen1/save.c index a429384..fdaffe3 100644 --- a/libpksav/lib/gen1/save.c +++ b/libpksav/lib/gen1/save.c @@ -1,230 +1,386 @@ /* - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ +#include "gen1/save_internal.h" +#include "util/fs.h" + +#include #include +#include +#include #include #include -#include - -#define PKSAV_GEN1_SAVE_SIZE 0x8000 - -// Offsets in a Generation I save -typedef enum { - PKSAV_GEN1_PLAYER_NAME = 0x2598, - PKSAV_GEN1_POKEDEX_OWNED = 0x25A3, - PKSAV_GEN1_POKEDEX_SEEN = 0x25B6, - PKSAV_GEN1_ITEM_BAG = 0x25C9, - PKSAV_GEN1_MONEY = 0x25F3, - PKSAV_GEN1_RIVAL_NAME = 0x25F6, - PKSAV_GEN1_OPTIONS = 0x2601, - PKSAV_GEN1_BADGES = 0x2602, - PKSAV_GEN1_PLAYER_ID = 0x2605, - PKSAV_GEN1_PIKACHU_FRIENDSHIP = 0x271C, - PKSAV_GEN1_ITEM_PC = 0x27E6, - PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM = 0x284C, - PKSAV_GEN1_CASINO_COINS = 0x2850, - PKSAV_GEN1_TIME_PLAYED = 0x2CED, - PKSAV_GEN1_POKEMON_PARTY = 0x2F2C, - PKSAV_GEN1_CURRENT_POKEMON_BOX = 0x30C0, - PKSAV_GEN1_CHECKSUM = 0x3523, - PKSAV_GEN1_POKEMON_PC_FIRST_HALF = 0x4000, - PKSAV_GEN1_POKEMON_PC_SECOND_HALF = 0x6000 -} pksav_gen1_save_offset_t; - -static uint8_t _pksav_get_gen1_save_checksum( - const uint8_t* data -) { - uint8_t checksum = 255; - for(uint16_t i = 0x2598; i < PKSAV_GEN1_CHECKSUM; ++i) { - checksum -= data[i]; - } - - return checksum; -} -pksav_error_t pksav_buffer_is_gen1_save( - const uint8_t* data, +enum pksav_error pksav_gen1_get_buffer_save_type( + const uint8_t* p_buffer, size_t buffer_len, - bool* result_out -) { - if(!data || !result_out) { + enum pksav_gen1_save_type* p_save_type_out +) +{ + if(!p_buffer || !p_save_type_out) + { return PKSAV_ERROR_NULL_POINTER; } - if(buffer_len < PKSAV_GEN1_SAVE_SIZE) { - *result_out = false; - return PKSAV_ERROR_NONE; + enum pksav_error error = PKSAV_ERROR_NONE; + + *p_save_type_out = PKSAV_GEN1_SAVE_TYPE_NONE; + + if(buffer_len >= PKSAV_GEN1_SAVE_SIZE) + { + uint8_t buffer_checksum = p_buffer[PKSAV_GEN1_CHECKSUM]; + uint8_t calculated_checksum = pksav_gen1_get_save_checksum(p_buffer); + if(buffer_checksum == calculated_checksum) + { + /* + * In Yellow, this area of the save stores information about + * Pikachu's position on the screen, animation frame numbers, etc. + * In theory, there is no valid state in Yellow in which this + * entire buffer is zeroed out, as even when creating a new save, + * Pikachu's friendship is initialized to 90. So this should be + * a safe way to differentiate Red/Blue from Yellow. + */ + static const size_t YELLOW_PIKACHU_BUFFER_START = 0x26DC; + static const size_t YELLOW_PIKACHU_BUFFER_END = 0x275C; + + *p_save_type_out = PKSAV_GEN1_SAVE_TYPE_RED_BLUE; + for(size_t buffer_index = YELLOW_PIKACHU_BUFFER_START; + buffer_index < YELLOW_PIKACHU_BUFFER_END; + ++buffer_index) + { + if(p_buffer[buffer_index] > 0) + { + *p_save_type_out = PKSAV_GEN1_SAVE_TYPE_YELLOW; + break; + } + } + } } - uint8_t checksum = data[PKSAV_GEN1_CHECKSUM]; - uint8_t actual_checksum = _pksav_get_gen1_save_checksum(data); - *result_out = (checksum == actual_checksum); - - return PKSAV_ERROR_NONE; + return error; } -pksav_error_t pksav_file_is_gen1_save( - const char* filepath, - bool* result_out -) { - if(!filepath || !result_out) { +enum pksav_error pksav_gen1_get_file_save_type( + const char* p_filepath, + enum pksav_gen1_save_type* p_save_type_out +) +{ + if(!p_filepath || !p_save_type_out) + { return PKSAV_ERROR_NULL_POINTER; } - FILE* gen1_save = fopen(filepath, "rb"); - if(!gen1_save) { - *result_out = false; - return PKSAV_ERROR_FILE_IO; + enum pksav_error error = PKSAV_ERROR_NONE; + + uint8_t* p_file_buffer = NULL; + size_t buffer_len = 0; + error = pksav_fs_read_file_to_buffer( + p_filepath, + &p_file_buffer, + &buffer_len + ); + if(!error) + { + assert(p_file_buffer != NULL); + + enum pksav_gen1_save_type save_type = PKSAV_GEN1_SAVE_TYPE_NONE; + error = pksav_gen1_get_buffer_save_type( + p_file_buffer, + buffer_len, + &save_type + ); + free(p_file_buffer); + + // Only return a result upon success. + if(!error) + { + *p_save_type_out = save_type; + } } - fseek(gen1_save, 0, SEEK_END); + return error; +} - if(ftell(gen1_save) < PKSAV_GEN1_SAVE_SIZE) { - fclose(gen1_save); - *result_out = false; - return PKSAV_ERROR_NONE; +static void _pksav_gen1_set_save_pointers( + struct pksav_gen1_save* p_gen1_save, + uint8_t* p_file_buffer +) +{ + assert(p_gen1_save != NULL); + assert(p_file_buffer != NULL); + + // TODO: clean up alignment after field name length changes + + // Item storage + struct pksav_gen1_item_storage* p_item_storage = &p_gen1_save->item_storage; + + p_item_storage->p_item_bag = (struct pksav_gen1_item_bag*)( + &p_file_buffer[PKSAV_GEN1_ITEM_BAG] + ); + p_item_storage->p_item_pc = (struct pksav_gen1_item_pc*)( + &p_file_buffer[PKSAV_GEN1_ITEM_PC] + ); + + // Pokémon storage + struct pksav_gen1_pokemon_storage* p_pokemon_storage = &p_gen1_save->pokemon_storage; + + p_pokemon_storage->p_party = (struct pksav_gen1_pokemon_party*)( + &p_file_buffer[PKSAV_GEN1_POKEMON_PARTY] + ); + + for(size_t box_index = 0; box_index < 6; ++box_index) + { + size_t offset = PKSAV_GEN1_POKEMON_PC_FIRST_HALF + + (sizeof(struct pksav_gen1_pokemon_box) * box_index); + + p_pokemon_storage->pp_boxes[box_index] = (struct pksav_gen1_pokemon_box*)( + &p_file_buffer[offset] + ); + } + for(size_t box_index = 6; box_index < 12; ++box_index) + { + size_t offset = PKSAV_GEN1_POKEMON_PC_SECOND_HALF + + (sizeof(struct pksav_gen1_pokemon_box) * (box_index - 6)); + + p_pokemon_storage->pp_boxes[box_index] = (struct pksav_gen1_pokemon_box*)( + &p_file_buffer[offset] + ); } - uint8_t* gen1_save_data = calloc(PKSAV_GEN1_SAVE_SIZE, 1); - fseek(gen1_save, 0, SEEK_SET); - size_t num_read = fread((void*)gen1_save_data, 1, PKSAV_GEN1_SAVE_SIZE, gen1_save); - fclose(gen1_save); + p_pokemon_storage->p_current_box_num = &p_file_buffer[PKSAV_GEN1_CURRENT_BOX_NUM]; + p_pokemon_storage->p_current_box = (struct pksav_gen1_pokemon_box*)( + &p_file_buffer[PKSAV_GEN1_CURRENT_BOX] + ); - bool ret = false; - if(num_read == PKSAV_GEN1_SAVE_SIZE) { - pksav_error_t status = pksav_buffer_is_gen1_save( - gen1_save_data, - PKSAV_GEN1_SAVE_SIZE, - &ret - ); - if(status) { - free(gen1_save_data); - return status; - } + // Pokédex lists + struct pksav_gen1_pokedex_lists* p_pokedex_lists = &p_gen1_save->pokedex_lists; + + p_pokedex_lists->p_seen = &p_file_buffer[PKSAV_GEN1_POKEDEX_SEEN]; + p_pokedex_lists->p_owned = &p_file_buffer[PKSAV_GEN1_POKEDEX_OWNED]; + + // Trainer info + struct pksav_gen1_trainer_info* p_trainer_info = &p_gen1_save->trainer_info; + + p_trainer_info->p_id = (uint16_t*)&p_file_buffer[PKSAV_GEN1_PLAYER_ID]; + p_trainer_info->p_name = &p_file_buffer[PKSAV_GEN1_PLAYER_NAME]; + p_trainer_info->p_money = &p_file_buffer[PKSAV_GEN1_MONEY]; + p_trainer_info->p_badges = &p_file_buffer[PKSAV_GEN1_BADGES]; + + // Daycare (TODO: are other fields stored in save?) + struct pksav_gen1_daycare* p_daycare = &p_gen1_save->daycare; + + p_daycare->p_daycare_data = (struct pksav_gen1_daycare_data*)( + &p_file_buffer[PKSAV_GEN1_DAYCARE_DATA] + ); + + // Misc + struct pksav_gen1_misc_fields* p_misc_fields = &p_gen1_save->misc_fields; + + p_misc_fields->p_rival_name = &p_file_buffer[PKSAV_GEN1_RIVAL_NAME]; + p_misc_fields->p_casino_coins = &p_file_buffer[PKSAV_GEN1_CASINO_COINS]; + + if(p_gen1_save->save_type == PKSAV_GEN1_SAVE_TYPE_YELLOW) + { + p_misc_fields->p_pikachu_friendship = &p_file_buffer[PKSAV_GEN1_PIKACHU_FRIENDSHIP]; + } + else + { + p_misc_fields->p_pikachu_friendship = NULL; } - free(gen1_save_data); - *result_out = ret; - return PKSAV_ERROR_NONE; + p_gen1_save->p_time_played = (struct pksav_gen1_time*)( + &p_file_buffer[PKSAV_GEN1_TIME_PLAYED] + ); + p_gen1_save->p_options = &p_file_buffer[PKSAV_GEN1_OPTIONS]; + + // Internal + p_gen1_save->p_internal = calloc(sizeof(struct pksav_gen1_save_internal), 1); + struct pksav_gen1_save_internal* p_internal = p_gen1_save->p_internal; + p_internal->p_raw_save = p_file_buffer; + p_internal->p_checksum = &p_file_buffer[PKSAV_GEN1_CHECKSUM]; } -pksav_error_t pksav_gen1_save_load( - const char* filepath, - pksav_gen1_save_t* gen1_save -) { - if(!filepath || !gen1_save) { - return PKSAV_ERROR_NULL_POINTER; +static enum pksav_error _pksav_gen1_load_save_from_buffer( + uint8_t* buffer, + size_t buffer_len, + bool is_buffer_ours, + struct pksav_gen1_save* gen1_save_out +) +{ + assert(gen1_save_out != NULL); + assert(buffer != NULL); + + enum pksav_error error = PKSAV_ERROR_NONE; + + enum pksav_gen1_save_type save_type = PKSAV_GEN1_SAVE_TYPE_NONE; + error = pksav_gen1_get_buffer_save_type( + buffer, + buffer_len, + &save_type + ); + if(!error && (save_type != PKSAV_GEN1_SAVE_TYPE_NONE)) + { + if(save_type != PKSAV_GEN1_SAVE_TYPE_NONE) + { + gen1_save_out->save_type = save_type; + _pksav_gen1_set_save_pointers( + gen1_save_out, + buffer + ); + + // Internal + struct pksav_gen1_save_internal* p_internal = gen1_save_out->p_internal; + p_internal->is_buffer_ours = is_buffer_ours; + } + else + { + error = PKSAV_ERROR_INVALID_SAVE; + } } - // Read the file and make sure it's valid - FILE* gen1_save_file = fopen(filepath, "rb"); - if(!gen1_save_file) { - return PKSAV_ERROR_FILE_IO; + return error; +} + +enum pksav_error pksav_gen1_load_save_from_buffer( + uint8_t* buffer, + size_t buffer_len, + struct pksav_gen1_save* gen1_save_out +) +{ + if(!buffer || !gen1_save_out) + { + return PKSAV_ERROR_NULL_POINTER; } - fseek(gen1_save_file, 0, SEEK_END); + return _pksav_gen1_load_save_from_buffer( + buffer, + buffer_len, + false, // is_buffer_ours + gen1_save_out + ); +} - if(ftell(gen1_save_file) < PKSAV_GEN1_SAVE_SIZE) { - fclose(gen1_save_file); - return PKSAV_ERROR_INVALID_SAVE; +enum pksav_error pksav_gen1_load_save_from_file( + const char* filepath, + struct pksav_gen1_save* gen1_save_out +) +{ + if(!filepath || !gen1_save_out) + { + return PKSAV_ERROR_NULL_POINTER; } - gen1_save->raw = calloc(PKSAV_GEN1_SAVE_SIZE, 1); - fseek(gen1_save_file, 0, SEEK_SET); - size_t num_read = fread((void*)gen1_save->raw, 1, PKSAV_GEN1_SAVE_SIZE, gen1_save_file); - fclose(gen1_save_file); - if(num_read != PKSAV_GEN1_SAVE_SIZE) { - return PKSAV_ERROR_FILE_IO; + enum pksav_error error = PKSAV_ERROR_NONE; + + uint8_t* buffer = NULL; + size_t buffer_len = 0; + error = pksav_fs_read_file_to_buffer( + filepath, + &buffer, + &buffer_len + ); + + if(!error) + { + error = _pksav_gen1_load_save_from_buffer( + buffer, + buffer_len, + true, // is_buffer_ours + gen1_save_out + ); + if(error) + { + // We made this buffer, so it's on us to free it if there's + // an error. + free(buffer); + } } - bool buffer_is_valid = false; - pksav_buffer_is_gen1_save( - gen1_save->raw, - PKSAV_GEN1_SAVE_SIZE, - &buffer_is_valid - ); + return error; +} - if(!buffer_is_valid) { - free(gen1_save->raw); - return PKSAV_ERROR_INVALID_SAVE; +enum pksav_error pksav_gen1_save_save( + const char* filepath, + struct pksav_gen1_save* p_gen1_save +) +{ + if(!filepath || !p_gen1_save) + { + return PKSAV_ERROR_NULL_POINTER; } - /* - * Check if this save is for the Yellow version. The only way to check this is to check the - * Pikachu Friendship field, which isn't used in Red/Blue. This is usually fine but will fail - * if the trainer's Pikachu despises the trainer enough to have a friendship value of 0, which - * is unlikely but technically possible. - */ - gen1_save->yellow = (gen1_save->raw[PKSAV_GEN1_PIKACHU_FRIENDSHIP] > 0); - - // Set pointers - gen1_save->pokemon_party = (pksav_gen1_pokemon_party_t*)&gen1_save->raw[PKSAV_GEN1_POKEMON_PARTY]; + enum pksav_error error = PKSAV_ERROR_NONE; - gen1_save->current_pokemon_box_num = &gen1_save->raw[PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM]; - gen1_save->current_pokemon_box = (pksav_gen1_pokemon_box_t*)&gen1_save->raw[PKSAV_GEN1_CURRENT_POKEMON_BOX]; + struct pksav_gen1_save_internal* p_internal = p_gen1_save->p_internal; - for(uint8_t i = 0; i < 6; ++i) { - uint16_t offset = PKSAV_GEN1_POKEMON_PC_FIRST_HALF + (sizeof(pksav_gen1_pokemon_box_t)*i); - gen1_save->pokemon_boxes[i] = (pksav_gen1_pokemon_box_t*)&gen1_save->raw[offset]; - } - for(uint8_t i = 6; i < 12; ++i) { - uint16_t offset = PKSAV_GEN1_POKEMON_PC_SECOND_HALF + (sizeof(pksav_gen1_pokemon_box_t)*(i-6)); - gen1_save->pokemon_boxes[i] = (pksav_gen1_pokemon_box_t*)&gen1_save->raw[offset]; - } + *p_internal->p_checksum = pksav_gen1_get_save_checksum( + p_internal->p_raw_save + ); - gen1_save->pokedex_seen = &gen1_save->raw[PKSAV_GEN1_POKEDEX_SEEN]; - gen1_save->pokedex_owned = &gen1_save->raw[PKSAV_GEN1_POKEDEX_OWNED]; - gen1_save->item_bag = (pksav_gen1_item_bag_t*)&gen1_save->raw[PKSAV_GEN1_ITEM_BAG]; - gen1_save->item_pc = (pksav_gen1_item_pc_t*)&gen1_save->raw[PKSAV_GEN1_ITEM_PC]; - gen1_save->time_played = (pksav_gen1_time_t*)&gen1_save->raw[PKSAV_GEN1_TIME_PLAYED]; - gen1_save->money = &gen1_save->raw[PKSAV_GEN1_MONEY]; - gen1_save->casino_coins = &gen1_save->raw[PKSAV_GEN1_CASINO_COINS]; - gen1_save->trainer_id = (uint16_t*)&gen1_save->raw[PKSAV_GEN1_PLAYER_ID]; - gen1_save->trainer_name = &gen1_save->raw[PKSAV_GEN1_PLAYER_NAME]; - gen1_save->rival_name = &gen1_save->raw[PKSAV_GEN1_RIVAL_NAME]; - gen1_save->badges = &gen1_save->raw[PKSAV_GEN1_BADGES]; - gen1_save->pikachu_friendship = &gen1_save->raw[PKSAV_GEN1_PIKACHU_FRIENDSHIP]; + error = pksav_fs_write_buffer_to_file( + filepath, + p_internal->p_raw_save, + PKSAV_GEN1_SAVE_SIZE + ); - return PKSAV_ERROR_NONE; + return error; } -pksav_error_t pksav_gen1_save_save( - const char* filepath, - pksav_gen1_save_t* gen1_save -) { - if(!filepath || !gen1_save) { +enum pksav_error pksav_gen1_free_save( + struct pksav_gen1_save* p_gen1_save +) +{ + if(!p_gen1_save) + { return PKSAV_ERROR_NULL_POINTER; } - // Make sure we can write to this file - FILE* gen1_save_file = fopen(filepath, "wb"); - if(!gen1_save_file) { - return PKSAV_ERROR_FILE_IO; + struct pksav_gen1_save_internal* p_internal = p_gen1_save->p_internal; + if(p_internal->is_buffer_ours) + { + free(p_internal->p_raw_save); } + free(p_internal); - // Set checksum - gen1_save->raw[PKSAV_GEN1_CHECKSUM] = _pksav_get_gen1_save_checksum(gen1_save->raw); - - // Write to file - fwrite((void*)gen1_save->raw, 1, PKSAV_GEN1_SAVE_SIZE, gen1_save_file); - fclose(gen1_save_file); + // Everything else is a pointer or an enum with a default value of 0, + // so this one memset should be fine. + memset(p_gen1_save, 0, sizeof(*p_gen1_save)); return PKSAV_ERROR_NONE; } -pksav_error_t pksav_gen1_save_free( - pksav_gen1_save_t* gen1_save -) { - if(!gen1_save || !gen1_save->raw) { +enum pksav_error pksav_gen1_pokemon_storage_set_current_box( + struct pksav_gen1_pokemon_storage* p_gen1_pokemon_storage, + uint8_t new_current_box_num +) +{ + if(!p_gen1_pokemon_storage) + { return PKSAV_ERROR_NULL_POINTER; } + if(new_current_box_num >= PKSAV_GEN1_NUM_POKEMON_BOXES) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + + uint8_t* p_current_box_num = p_gen1_pokemon_storage->p_current_box_num; + struct pksav_gen1_pokemon_box* p_current_box = p_gen1_pokemon_storage->p_current_box; + struct pksav_gen1_pokemon_box** pp_boxes = p_gen1_pokemon_storage->pp_boxes; + + uint8_t current_box_num = *p_current_box_num + & PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM_MASK; + + *pp_boxes[current_box_num] = *p_current_box; + + *p_current_box_num &= ~PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM_MASK; + *p_current_box_num |= new_current_box_num; - free(gen1_save->raw); + *p_current_box = *pp_boxes[new_current_box_num]; return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/gen1/save_internal.h b/libpksav/lib/gen1/save_internal.h new file mode 100644 index 0000000..f9a2bf3 --- /dev/null +++ b/libpksav/lib/gen1/save_internal.h @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#ifndef PKSAV_GEN1_SAVE_INTERNAL_H +#define PKSAV_GEN1_SAVE_INTERNAL_H + +#include +#include +#include +#include + +struct pksav_gen1_save_internal +{ + uint8_t* p_raw_save; + uint8_t* p_checksum; + + bool is_buffer_ours; +}; + +// Offsets in a Generation I save +enum pksav_gen1_save_offset +{ + PKSAV_GEN1_PLAYER_NAME = 0x2598, + + PKSAV_GEN1_POKEDEX_OWNED = 0x25A3, + PKSAV_GEN1_POKEDEX_SEEN = 0x25B6, + PKSAV_GEN1_ITEM_BAG = 0x25C9, + PKSAV_GEN1_MONEY = 0x25F3, + PKSAV_GEN1_RIVAL_NAME = 0x25F6, + PKSAV_GEN1_OPTIONS = 0x2601, + PKSAV_GEN1_BADGES = 0x2602, + PKSAV_GEN1_PLAYER_ID = 0x2605, + PKSAV_GEN1_PIKACHU_FRIENDSHIP = 0x271C, + PKSAV_GEN1_ITEM_PC = 0x27E6, + PKSAV_GEN1_CURRENT_BOX_NUM = 0x284C, + PKSAV_GEN1_CASINO_COINS = 0x2850, + PKSAV_GEN1_TIME_PLAYED = 0x2CED, + PKSAV_GEN1_DAYCARE_DATA = 0x2CF4, + // Sprite data here + PKSAV_GEN1_POKEMON_PARTY = 0x2F2C, + PKSAV_GEN1_CURRENT_BOX = 0x30C0, + // Tileset type here + + PKSAV_GEN1_CHECKSUM = 0x3523, + PKSAV_GEN1_POKEMON_PC_FIRST_HALF = 0x4000, + PKSAV_GEN1_POKEMON_PC_SECOND_HALF = 0x6000 +}; + +#ifdef __cplusplus +extern "C" { +#endif + +static inline uint8_t pksav_gen1_get_save_checksum( + const uint8_t* p_buffer +) +{ + assert(p_buffer != NULL); + + uint8_t checksum = 255; + for(size_t buffer_index = PKSAV_GEN1_PLAYER_NAME; + buffer_index < PKSAV_GEN1_CHECKSUM; + ++buffer_index) + { + checksum -= p_buffer[buffer_index]; + } + + return checksum; +} + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN1_SAVE_INTERNAL_H */ diff --git a/libpksav/lib/gen1/text.c b/libpksav/lib/gen1/text.c index 4d97df3..8ab955b 100644 --- a/libpksav/lib/gen1/text.c +++ b/libpksav/lib/gen1/text.c @@ -1,18 +1,19 @@ /* - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ -#include "../common/text_common.h" +#include "util/text_common.h" #include +#include #include -#define PKSAV_GEN1_TERMINATOR 0x50 -#define PKSAV_GEN1_SPACE 0x7F +#define PKSAV_GEN1_TEXT_SPACE (0x7F) +#define ASCII_SPACE (0x20) /* * Character map for Generation I @@ -22,8 +23,11 @@ * There are no Unicode values for the "PK" and "MN" in-game characters, so we will use the * "<" and ">" characters, as they are not used in-game. Any application displaying this text * will need to graphically substitute in these characters. + * + * TODO: publicize */ -static const wchar_t pksav_gen1_char_map[] = { +static const wchar_t PKSAV_GEN1_CHAR_MAP[] = +{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, @@ -41,50 +45,66 @@ static const wchar_t pksav_gen1_char_map[] = { 0x27,0x3C,0x3E,0x2D,0x00,0x00,0x3F,0x21,0x2E,0x00,0x00,0x00,0x00,0x00,0x00,0x2642, 0x00,0xD7,0x00,0x2F,0x2C,0x2640,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39 }; +static const size_t PKSAV_GEN1_CHAR_MAP_SIZE = + sizeof(PKSAV_GEN1_CHAR_MAP)/sizeof(PKSAV_GEN1_CHAR_MAP[0]); - -static pksav_error_t _pksav_widetext_from_gen1( - const uint8_t* input_buffer, - wchar_t* output_text, +static enum pksav_error _pksav_gen1_import_widetext( + const uint8_t* p_input_buffer, + wchar_t* p_output_widetext, size_t num_chars -) { - if(!input_buffer || !output_text) { - return PKSAV_ERROR_NULL_POINTER; - } - - memset(output_text, 0, sizeof(wchar_t)*num_chars); - - for(size_t i = 0; i < num_chars; ++i) { - if(input_buffer[i] == PKSAV_GEN1_TERMINATOR) { +) +{ + assert(p_input_buffer != NULL); + assert(p_output_widetext != NULL); + + memset(p_output_widetext, 0, sizeof(wchar_t)*num_chars); + + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_buffer[char_index] != PKSAV_GEN1_TEXT_TERMINATOR) + { + p_output_widetext[char_index] = PKSAV_GEN1_CHAR_MAP[p_input_buffer[char_index]]; + } + else + { break; - } else { - output_text[i] = pksav_gen1_char_map[input_buffer[i]]; } } return PKSAV_ERROR_NONE; } -static pksav_error_t _pksav_widetext_to_gen1( - const wchar_t* input_text, - uint8_t* output_buffer, +static enum pksav_error _pksav_gen1_export_widetext( + const wchar_t* p_input_widetext, + uint8_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { - return PKSAV_ERROR_NULL_POINTER; - } - - memset(output_buffer, PKSAV_GEN1_TERMINATOR, num_chars); - - for(size_t i = 0; i < num_chars; ++i) { - if(input_text[i] == 0x20) { - output_buffer[i] = PKSAV_GEN1_SPACE; - } else { - ssize_t index = wchar_map_index(pksav_gen1_char_map, 256, input_text[i]); - if(index == -1) { +) +{ + assert(p_input_widetext != NULL); + assert(p_output_buffer != NULL); + + memset(p_output_buffer, PKSAV_GEN1_TEXT_TERMINATOR, num_chars); + + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_widetext[char_index] == ASCII_SPACE) + { + p_output_buffer[char_index] = PKSAV_GEN1_TEXT_SPACE; + } + else + { + ssize_t map_index = wchar_map_index( + PKSAV_GEN1_CHAR_MAP, + PKSAV_GEN1_CHAR_MAP_SIZE, + p_input_widetext[char_index] + ); + if(map_index != -1) + { + p_output_buffer[char_index] = (uint8_t)map_index; + } + else + { break; - } else { - output_buffer[i] = (uint8_t)index; } } } @@ -92,44 +112,48 @@ static pksav_error_t _pksav_widetext_to_gen1( return PKSAV_ERROR_NONE; } -pksav_error_t pksav_text_from_gen1( - const uint8_t* input_buffer, - char* output_text, +enum pksav_error pksav_gen1_import_text( + const uint8_t* p_input_buffer, + char* p_output_text, size_t num_chars -) { - if(!input_buffer || !output_text) { +) +{ + if(!p_input_buffer || !p_output_text) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - _pksav_widetext_from_gen1( - input_buffer, widetext, num_chars + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_gen1_import_widetext( + p_input_buffer, p_widetext, num_chars ); - memset(output_text, 0, num_chars); - pksav_wcstombs(output_text, widetext, num_chars); - free(widetext); + memset(p_output_text, 0, num_chars); + pksav_wcstombs(p_output_text, p_widetext, num_chars); + free(p_widetext); return PKSAV_ERROR_NONE; } -pksav_error_t pksav_text_to_gen1( +enum pksav_error pksav_gen1_export_text( const char* input_text, - uint8_t* output_buffer, + uint8_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { +) +{ + if(!input_text || !p_output_buffer) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - pksav_mbstowcs(widetext, input_text, num_chars); + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(p_widetext, input_text, num_chars); - _pksav_widetext_to_gen1( - widetext, output_buffer, num_chars + _pksav_gen1_export_widetext( + p_widetext, p_output_buffer, num_chars ); - free(widetext); + free(p_widetext); return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/gen2/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/gen2/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/lib/gen2/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/lib/gen2/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/lib/gen2/Makefile b/libpksav/lib/gen2/Makefile index 2f9afd3..90f66e4 100644 --- a/libpksav/lib/gen2/Makefile +++ b/libpksav/lib/gen2/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen2//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/gen2//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/gen2/cmake_install.cmake b/libpksav/lib/gen2/cmake_install.cmake index 5031f21..bf80aad 100644 --- a/libpksav/lib/gen2/cmake_install.cmake +++ b/libpksav/lib/gen2/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib/gen2 +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/gen2 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) diff --git a/libpksav/lib/gen2/save.c b/libpksav/lib/gen2/save.c index ddc80ca..41111e5 100644 --- a/libpksav/lib/gen2/save.c +++ b/libpksav/lib/gen2/save.c @@ -5,373 +5,507 @@ * or copy at http://opensource.org/licenses/MIT) */ +#include "gen2/save_internal.h" +#include "util/fs.h" + +#include #include +#include + +#include #include #include #include -#define PKSAV_GS_CHECKSUM1 0x2D69 -#define PKSAV_GS_CHECKSUM2 0x7E6D - -#define PKSAV_CRYSTAL_CHECKSUM1 0x2D02 -#define PKSAV_CRYSTAL_CHECKSUM2 0x1F0D - -#define PKSAV_GEN2_SAVE_SIZE 0x8000 - -#define PKSAV_GEN2_DATA(save,offset) save->raw[pksav_gen2_offsets[offset][save->gen2_game]] - -typedef enum { - PKSAV_GEN2_PLAYER_ID = 0, - PKSAV_GEN2_PLAYER_NAME, - PKSAV_GEN2_RIVAL_NAME, - PKSAV_GEN2_DAYLIGHT_SAVINGS, - PKSAV_GEN2_TIME_PLAYED, - PKSAV_GEN2_PLAYER_PALETTE, - PKSAV_GEN2_MONEY, - PKSAV_GEN2_ITEM_BAG, - PKSAV_GEN2_ITEM_PC, - PKSAV_GEN2_CURRENT_POKEMON_BOX_NUM, - PKSAV_GEN2_PC_BOX_NAMES, - PKSAV_GEN2_POKEMON_PARTY, - PKSAV_GEN2_POKEDEX_OWNED, - PKSAV_GEN2_POKEDEX_SEEN, - PKSAV_GEN2_CURRENT_POKEMON_BOX, - PKSAV_GEN2_PLAYER_GENDER, - PKSAV_GEN2_POKEMON_PC_FIRST_HALF, - PKSAV_GEN2_POKEMON_PC_SECOND_HALF, - PKSAV_GEN2_CHECKSUM1, - PKSAV_GEN2_CHECKSUM2 -} pksav_gen2_field_t; - -static const uint16_t pksav_gen2_offsets[21][2] = { - {0x2009,0x2009}, // Player ID - {0x200B,0x200B}, // Player name - {0x2021,0x2021}, // Rival name - {0x2037,0x2037}, // Daylight savings - {0x2053,0x2054}, // Time played - {0x206B,0x206A}, // Player palette - {0x23DB,0x23DB}, // Money - {0x23E6,0x23E7}, // Item bag - {0x247E,0x247F}, // Item PC - {0x2724,0x2700}, // Current Pokemon box number - {0x2727,0x2703}, // PC box names - {0x288A,0x2865}, // Pokemon party - {0x2A4C,0x2A27}, // Pokedex owned - {0x2A6C,0x2A47}, // Pokedex seen - {0x2D6C,0x2D10}, // Current Pokemon box list - {0x3E3D,0x3E3D}, // Player gender (Crystal only) - {0x4000,0x4000}, // Pokemon PC (first half) - {0x6000,0x6000}, // Pokemon PC (second half) - {0x2D69,0x2D0D}, // Checksum 1 - {0x7E6D,0x1F0D} // Checksum 2 -}; - -typedef struct { - uint16_t first; - uint16_t second; -} pksav_gen2_checksums_t; - -static void _pksav_gen2_get_save_checksums( - bool crystal, - const uint8_t* data, - pksav_gen2_checksums_t* checksums_out -) { - checksums_out->first = 0; - checksums_out->second = 0; - - if(crystal) { - // Checksum 1 - for(uint16_t i = 0x2009; i <= 0x2B82; ++i) { - checksums_out->first += data[i]; - } +void pksav_gen2_get_save_checksums( + enum pksav_gen2_save_type save_type, + const uint8_t* p_buffer, + uint16_t* p_checksum1_out, + uint16_t* p_checksum2_out +) +{ + assert(p_buffer != NULL); + assert(p_checksum1_out != NULL); + assert(p_checksum2_out != NULL); + + *p_checksum1_out = 0; + *p_checksum2_out = 0; + + switch(save_type) + { + case PKSAV_GEN2_SAVE_TYPE_GS: + for(size_t buffer_index = 0x2009; buffer_index <= 0x2D68; ++buffer_index) + { + *p_checksum1_out += p_buffer[buffer_index]; + } + + for(size_t buffer_index = 0x0C6B; buffer_index <= 0x17EC; ++buffer_index) + { + *p_checksum2_out += p_buffer[buffer_index]; + } + for(size_t buffer_index = 0x3D96; buffer_index <= 0x3F3F; ++buffer_index) + { + *p_checksum2_out += p_buffer[buffer_index]; + } + for(size_t buffer_index = 0x7E39; buffer_index <= 0x7E6C; ++buffer_index) + { + *p_checksum2_out += p_buffer[buffer_index]; + } + break; + + case PKSAV_GEN2_SAVE_TYPE_CRYSTAL: + for(size_t buffer_index = 0x2009; buffer_index <= 0x2B82; ++buffer_index) + { + *p_checksum1_out += p_buffer[buffer_index]; + } + + for(size_t buffer_index = 0x1209; buffer_index <= 0x1D82; ++buffer_index) + { + *p_checksum2_out += p_buffer[buffer_index]; + } + break; + + default: + assert(false); + } - // Checksum 2 - for(uint16_t i = 0x1209; i <= 0x1D82; ++i) { - checksums_out->second += data[i]; - } - } else { - // Checksum 1 - for(uint16_t i = 0x2009; i <= 0x2D68; ++i) { - checksums_out->first += data[i]; - } + *p_checksum1_out = pksav_littleendian16(*p_checksum1_out); + *p_checksum2_out = pksav_littleendian16(*p_checksum2_out); +} - // Checksum 2 - for(uint16_t i = 0x0C6B; i <= 0x17EC; ++i) { - checksums_out->second += data[i]; - } - for(uint16_t i = 0x3D96; i <= 0x3F3F; ++i) { - checksums_out->second += data[i]; - } - for(uint16_t i = 0x7E39; i <= 0x7E6C; ++i) { - checksums_out->second += data[i]; +enum pksav_error pksav_gen2_get_buffer_save_type( + const uint8_t* p_buffer, + size_t buffer_len, + enum pksav_gen2_save_type* p_save_type_out +) +{ + if(!p_buffer || !p_save_type_out) + { + return PKSAV_ERROR_NULL_POINTER; + } + + enum pksav_error error = PKSAV_ERROR_NONE; + + *p_save_type_out = PKSAV_GEN2_SAVE_TYPE_NONE; + if(buffer_len >= PKSAV_GEN2_SAVE_SIZE) + { + bool is_type_found = false; + for(enum pksav_gen2_save_type save_type = PKSAV_GEN2_SAVE_TYPE_GS; + (save_type <= PKSAV_GEN2_SAVE_TYPE_CRYSTAL) && !is_type_found; + ++save_type) + { + uint16_t buffer_checksum1 = 0; + uint16_t buffer_checksum2 = 0; + pksav_gen2_get_save_checksums( + save_type, + p_buffer, + &buffer_checksum1, + &buffer_checksum2 + ); + + size_t checksum1_index = 0; + size_t checksum2_index = 0; + switch(save_type) + { + case PKSAV_GEN2_SAVE_TYPE_GS: + checksum1_index = PKSAV_GS_CHECKSUM1; + checksum2_index = PKSAV_GS_CHECKSUM2; + break; + + case PKSAV_GEN2_SAVE_TYPE_CRYSTAL: + checksum1_index = PKSAV_CRYSTAL_CHECKSUM1; + checksum2_index = PKSAV_CRYSTAL_CHECKSUM2; + break; + + default: + assert(false); + } + + const uint16_t* p_checksum1 = (const uint16_t*)&p_buffer[checksum1_index]; + const uint16_t* p_checksum2 = (const uint16_t*)&p_buffer[checksum2_index]; + + uint16_t checksum1 = pksav_littleendian16(*p_checksum1); + uint16_t checksum2 = pksav_littleendian16(*p_checksum2); + + switch(save_type) + { + case PKSAV_GEN2_SAVE_TYPE_GS: + is_type_found = (checksum1 == buffer_checksum1) && + (checksum2 == buffer_checksum2); + break; + + /* + * From what I've seen, valid Crystal saves don't always have both + * checksums set correctly. + */ + case PKSAV_GEN2_SAVE_TYPE_CRYSTAL: + is_type_found = (checksum1 == buffer_checksum1) || + (checksum2 == buffer_checksum2); + break; + + default: + assert(false); + } + + if(is_type_found) + { + *p_save_type_out = save_type; + } } } - checksums_out->first = pksav_littleendian16(checksums_out->first); - checksums_out->second = pksav_littleendian16(checksums_out->second); + return error; } -static void _pksav_gen2_set_save_checksums( - bool crystal, - uint8_t* data -) { - uint16_t checksum1_index = crystal ? PKSAV_CRYSTAL_CHECKSUM1 - : PKSAV_GS_CHECKSUM1; - uint16_t checksum2_index = crystal ? PKSAV_CRYSTAL_CHECKSUM2 - : PKSAV_GS_CHECKSUM2; +enum pksav_error pksav_gen2_get_file_save_type( + const char* p_filepath, + enum pksav_gen2_save_type* p_save_type_out +) +{ + if(!p_filepath || !p_save_type_out) + { + return PKSAV_ERROR_NULL_POINTER; + } - pksav_gen2_checksums_t checksums; - _pksav_gen2_get_save_checksums(crystal, data, &checksums); + enum pksav_error error = PKSAV_ERROR_NONE; + + uint8_t* p_file_buffer = NULL; + size_t buffer_len = 0; + error = pksav_fs_read_file_to_buffer( + p_filepath, + &p_file_buffer, + &buffer_len + ); + if(!error) + { + assert(p_file_buffer != NULL); + + enum pksav_gen2_save_type save_type = PKSAV_GEN2_SAVE_TYPE_NONE; + error = pksav_gen2_get_buffer_save_type( + p_file_buffer, + buffer_len, + &save_type + ); + free(p_file_buffer); + + // Only return a result upon success. + if(!error) + { + *p_save_type_out = save_type; + } + } - *((uint16_t*)&data[checksum1_index]) = pksav_littleendian16(checksums.first); - *((uint16_t*)&data[checksum2_index]) = pksav_littleendian16(checksums.second); + return error; } -pksav_error_t pksav_buffer_is_gen2_save( - const uint8_t* buffer, - size_t buffer_len, - bool crystal, - bool* result_out -) { - if(!buffer || !result_out) { - return PKSAV_ERROR_NULL_POINTER; +static void _pksav_gen2_set_save_pointers( + struct pksav_gen2_save* p_gen2_save, + uint8_t* p_buffer +) +{ + assert(p_gen2_save != NULL); + assert(p_buffer != NULL); + + const size_t* p_offsets = NULL; + + // Internal + p_gen2_save->p_internal = calloc(sizeof(struct pksav_gen2_save_internal), 1); + struct pksav_gen2_save_internal* p_internal = p_gen2_save->p_internal; + p_internal->p_raw_save = p_buffer; + switch(p_gen2_save->save_type) + { + case PKSAV_GEN2_SAVE_TYPE_GS: + p_offsets = GS_OFFSETS; + break; + + case PKSAV_GEN2_SAVE_TYPE_CRYSTAL: + p_offsets = CRYSTAL_OFFSETS; + break; + + default: + assert(false); } - if(buffer_len < PKSAV_GEN2_SAVE_SIZE) { - *result_out = false; - return PKSAV_ERROR_NONE; - } + assert(p_offsets != NULL); - uint16_t checksum1_index = crystal ? PKSAV_CRYSTAL_CHECKSUM1 - : PKSAV_GS_CHECKSUM1; - uint16_t checksum2_index = crystal ? PKSAV_CRYSTAL_CHECKSUM2 - : PKSAV_GS_CHECKSUM2; + p_internal->p_checksum1 = (uint16_t*)&p_buffer[ + p_offsets[PKSAV_GEN2_CHECKSUM1] + ]; - pksav_gen2_checksums_t checksums; - _pksav_gen2_get_save_checksums(crystal, buffer, &checksums); + p_internal->p_checksum2 = (uint16_t*)&p_buffer[ + p_offsets[PKSAV_GEN2_CHECKSUM2] + ]; - uint16_t actual_checksum1 = pksav_littleendian16( - *((uint16_t*)&buffer[checksum1_index]) - ); - uint16_t actual_checksum2 = pksav_littleendian16( - *((uint16_t*)&buffer[checksum2_index]) + // Options + struct pksav_gen2_options* p_options = &p_gen2_save->options; + + p_options->p_misc_options = &p_buffer[p_offsets[PKSAV_GEN2_OPTIONS]]; + p_options->p_textbox_frame_index = &p_buffer[p_offsets[PKSAV_GEN2_TEXTBOX_FRAME_INDEX]]; + p_options->p_gbprinter_brightness = &p_buffer[p_offsets[PKSAV_GEN2_GBPRINTER_BRIGHTNESS]]; + p_options->p_menu_account = &p_buffer[p_offsets[PKSAV_GEN2_MENU_ACCOUNT]]; + + // Save time + struct pksav_gen2_save_time* p_save_time = &p_gen2_save->save_time; + + p_save_time->p_time_played = (struct pksav_gen2_time*)( + &p_buffer[p_offsets[PKSAV_GEN2_TIME_PLAYED]] + ); + p_save_time->p_daylight_savings = &p_buffer[p_offsets[PKSAV_GEN2_DAYLIGHT_SAVINGS]]; + + // Item storage + struct pksav_gen2_item_storage* p_item_storage = &p_gen2_save->item_storage; + + p_item_storage->p_item_bag = (struct pksav_gen2_item_bag*)( + &p_buffer[p_offsets[PKSAV_GEN2_ITEM_BAG]] + ); + p_item_storage->p_item_pc = (struct pksav_gen2_item_pc*)( + &p_buffer[p_offsets[PKSAV_GEN2_ITEM_PC]] ); + p_item_storage->p_registered_item_index = &p_buffer[p_offsets[PKSAV_GEN2_REGISTERED_ITEM]]; + p_item_storage->p_registered_item_info = &p_buffer[p_offsets[PKSAV_GEN2_REGISTERED_ITEM_INFO]]; - /* - * From what I've seen, valid Crystal saves don't always have both - * checksums set correctly. - */ - *result_out = crystal ? (checksums.first == actual_checksum1 || - checksums.second == actual_checksum2) - : (checksums.first == actual_checksum1 && - checksums.second == actual_checksum2); - return PKSAV_ERROR_NONE; -} + // Pokémon storage + struct pksav_gen2_pokemon_storage* p_pokemon_storage = &p_gen2_save->pokemon_storage; -pksav_error_t pksav_file_is_gen2_save( - const char* filepath, - bool crystal, - bool* result_out -) { - if(!filepath || !result_out) { - return PKSAV_ERROR_NULL_POINTER; - } + p_pokemon_storage->p_party = (struct pksav_gen2_pokemon_party*)( + &p_buffer[p_offsets[PKSAV_GEN2_POKEMON_PARTY]] + ); - FILE* gen2_save = fopen(filepath, "rb"); - if(!gen2_save) { - *result_out = false; - return PKSAV_ERROR_FILE_IO; - } + for(size_t box_index = 0; box_index < 7; ++box_index) + { + size_t offset = p_offsets[PKSAV_GEN2_POKEMON_PC_FIRST_HALF] + + (sizeof(struct pksav_gen2_pokemon_box) * box_index); - fseek(gen2_save, 0, SEEK_END); + p_pokemon_storage->pp_boxes[box_index] = (struct pksav_gen2_pokemon_box*)( + &p_buffer[offset] + ); + } + for(size_t box_index = 7; box_index < 14; ++box_index) + { + size_t offset = p_offsets[PKSAV_GEN2_POKEMON_PC_SECOND_HALF] + + (sizeof(struct pksav_gen2_pokemon_box) * (box_index - 7)); + + p_pokemon_storage->pp_boxes[box_index] = (struct pksav_gen2_pokemon_box*)( + &p_buffer[offset] + ); + } - if(ftell(gen2_save) < PKSAV_GEN2_SAVE_SIZE) { - fclose(gen2_save); - *result_out = false; - return PKSAV_ERROR_NONE; + p_pokemon_storage->p_box_names = (struct pksav_gen2_pokemon_box_names*)( + &p_buffer[p_offsets[PKSAV_GEN2_PC_BOX_NAMES]] + ); + p_pokemon_storage->p_current_box_num = &p_buffer[ + p_offsets[PKSAV_GEN2_CURRENT_BOX_NUM] + ]; + p_pokemon_storage->p_current_box = (struct pksav_gen2_pokemon_box*)( + &p_buffer[p_offsets[PKSAV_GEN2_CURRENT_BOX]] + ); + + // Pokédex lists + struct pksav_gen2_pokedex_lists* p_pokedex_lists = &p_gen2_save->pokedex_lists; + + p_pokedex_lists->p_seen = &p_buffer[p_offsets[PKSAV_GEN2_POKEDEX_SEEN]]; + p_pokedex_lists->p_owned = &p_buffer[p_offsets[PKSAV_GEN2_POKEDEX_OWNED]]; + + // Trainer info + struct pksav_gen2_trainer_info* p_trainer_info = &p_gen2_save->trainer_info; + + p_trainer_info->p_id = (uint16_t*)&p_buffer[p_offsets[PKSAV_GEN2_PLAYER_ID]]; + p_trainer_info->p_name = &p_buffer[p_offsets[PKSAV_GEN2_PLAYER_NAME]]; + if(p_gen2_save->save_type == PKSAV_GEN2_SAVE_TYPE_CRYSTAL) + { + p_trainer_info->p_gender = &p_buffer[p_offsets[PKSAV_GEN2_PLAYER_GENDER]]; } + else + { + p_trainer_info->p_gender = NULL; + } + p_trainer_info->p_palette = &p_buffer[p_offsets[PKSAV_GEN2_PLAYER_PALETTE]]; + p_trainer_info->p_money = &p_buffer[p_offsets[PKSAV_GEN2_MONEY]]; + p_trainer_info->p_johto_badges = &p_buffer[p_offsets[PKSAV_GEN2_JOHTO_BADGES]]; + p_trainer_info->p_kanto_badges = &p_buffer[p_offsets[PKSAV_GEN2_KANTO_BADGES]]; + + // Misc + struct pksav_gen2_misc_fields* p_misc_fields = &p_gen2_save->misc_fields; + + p_misc_fields->p_rival_name = &p_buffer[p_offsets[PKSAV_GEN2_RIVAL_NAME]]; + p_misc_fields->p_money_with_mom = &p_buffer[p_offsets[PKSAV_GEN2_MONEY_WITH_MOM]]; + p_misc_fields->p_mom_money_policy = &p_buffer[p_offsets[PKSAV_GEN2_MOM_MONEY_POLICY]]; + p_misc_fields->p_casino_coins = &p_buffer[p_offsets[PKSAV_GEN2_CASINO_COINS]]; +} - uint8_t* gen2_save_data = calloc(PKSAV_GEN2_SAVE_SIZE, 1); - fseek(gen2_save, 0, SEEK_SET); - size_t num_read = fread((void*)gen2_save_data, 1, PKSAV_GEN2_SAVE_SIZE, gen2_save); - fclose(gen2_save); - - bool ret = false; - pksav_error_t error_code = PKSAV_ERROR_NONE; - if(num_read == PKSAV_GEN2_SAVE_SIZE) { - error_code = pksav_buffer_is_gen2_save( - gen2_save_data, - PKSAV_GEN2_SAVE_SIZE, - crystal, - &ret - ); - if(error_code) { - free(gen2_save_data); - return error_code; +static enum pksav_error _pksav_gen2_load_save_from_buffer( + uint8_t* p_buffer, + size_t buffer_len, + bool is_buffer_ours, + struct pksav_gen2_save* p_gen2_save_out +) +{ + assert(p_gen2_save_out != NULL); + assert(p_buffer != NULL); + + enum pksav_error error = PKSAV_ERROR_NONE; + + enum pksav_gen2_save_type save_type = PKSAV_GEN2_SAVE_TYPE_NONE; + error = pksav_gen2_get_buffer_save_type( + p_buffer, + buffer_len, + &save_type + ); + if(!error && (save_type != PKSAV_GEN2_SAVE_TYPE_NONE)) + { + if(save_type != PKSAV_GEN2_SAVE_TYPE_NONE) + { + p_gen2_save_out->save_type = save_type; + _pksav_gen2_set_save_pointers( + p_gen2_save_out, + p_buffer + ); + + // Internal + struct pksav_gen2_save_internal* p_internal = p_gen2_save_out->p_internal; + p_internal->is_buffer_ours = is_buffer_ours; + } + else + { + error = PKSAV_ERROR_INVALID_SAVE; } } - *result_out = ret; - free(gen2_save_data); - return PKSAV_ERROR_NONE; + return error; } -pksav_error_t pksav_gen2_save_load( - const char* filepath, - pksav_gen2_save_t* gen2_save -) { - if(!filepath || !gen2_save) { +enum pksav_error pksav_gen2_load_save_from_buffer( + uint8_t* p_buffer, + size_t buffer_len, + struct pksav_gen2_save* p_gen2_save_out +) +{ + if(!p_buffer || !p_gen2_save_out) + { return PKSAV_ERROR_NULL_POINTER; } - // Read the file and make sure it's valid - FILE* gen2_save_file = fopen(filepath, "rb"); - if(!gen2_save_file) { - return PKSAV_ERROR_FILE_IO; - } - - fseek(gen2_save_file, 0, SEEK_END); + return _pksav_gen2_load_save_from_buffer( + p_buffer, + buffer_len, + false, // is_buffer_ours + p_gen2_save_out + ); +} - if(ftell(gen2_save_file) < PKSAV_GEN2_SAVE_SIZE) { - fclose(gen2_save_file); - return PKSAV_ERROR_INVALID_SAVE; +enum pksav_error pksav_gen2_load_save_from_file( + const char* p_filepath, + struct pksav_gen2_save* p_gen2_save_out +) +{ + if(!p_filepath || !p_gen2_save_out) + { + return PKSAV_ERROR_NULL_POINTER; } - gen2_save->raw = calloc(PKSAV_GEN2_SAVE_SIZE, 1); - fseek(gen2_save_file, 0, SEEK_SET); - size_t num_read = fread((void*)gen2_save->raw, 1, PKSAV_GEN2_SAVE_SIZE, gen2_save_file); - fclose(gen2_save_file); - if(num_read != PKSAV_GEN2_SAVE_SIZE) { - return PKSAV_ERROR_FILE_IO; + enum pksav_error error = PKSAV_ERROR_NONE; + + uint8_t* p_file_buffer = NULL; + size_t buffer_len = 0; + error = pksav_fs_read_file_to_buffer( + p_filepath, + &p_file_buffer, + &buffer_len + ); + + if(!error) + { + error = _pksav_gen2_load_save_from_buffer( + p_file_buffer, + buffer_len, + true, // is_buffer_ours + p_gen2_save_out + ); + if(error) + { + // We made this buffer, so it's on us to free it if there's + // an error. + free(p_file_buffer); + } } - pksav_error_t error_code = PKSAV_ERROR_NONE; - bool is_valid = false; - - error_code = pksav_buffer_is_gen2_save( - gen2_save->raw, - PKSAV_GEN2_SAVE_SIZE, - false, - &is_valid - ); - if(error_code) { - free(gen2_save->raw); - return error_code; - } else if(is_valid) { - gen2_save->gen2_game = PKSAV_GEN2_GS; - } + return error; +} - if(!is_valid) { - error_code = pksav_buffer_is_gen2_save( - gen2_save->raw, - PKSAV_GEN2_SAVE_SIZE, - true, - &is_valid - ); - if(error_code) { - free(gen2_save->raw); - return error_code; - } else if(is_valid) { - gen2_save->gen2_game = PKSAV_GEN2_CRYSTAL; - } else { - free(gen2_save->raw); - return PKSAV_ERROR_INVALID_SAVE; - } +enum pksav_error pksav_gen2_save_save( + const char* p_filepath, + struct pksav_gen2_save* p_gen2_save +) +{ + if(!p_filepath || !p_gen2_save) + { + return PKSAV_ERROR_NULL_POINTER; } - // Set pointers - gen2_save->pokemon_party = (pksav_gen2_pokemon_party_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_POKEMON_PARTY); - gen2_save->current_pokemon_box_num = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_CURRENT_POKEMON_BOX_NUM); - gen2_save->current_pokemon_box = (pksav_gen2_pokemon_box_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_CURRENT_POKEMON_BOX); + enum pksav_error error = PKSAV_ERROR_NONE; - for(uint8_t i = 0; i < 7; ++i) { - uint16_t offset = pksav_gen2_offsets[PKSAV_GEN2_POKEMON_PC_FIRST_HALF][0] + (sizeof(pksav_gen2_pokemon_box_t)*i); - gen2_save->pokemon_boxes[i] = (pksav_gen2_pokemon_box_t*)&gen2_save->raw[offset]; - } - for(uint8_t i = 7; i < 14; ++i) { - uint16_t offset = pksav_gen2_offsets[PKSAV_GEN2_POKEMON_PC_SECOND_HALF][0] + (sizeof(pksav_gen2_pokemon_box_t)*(i-7)); - gen2_save->pokemon_boxes[i] = (pksav_gen2_pokemon_box_t*)&gen2_save->raw[offset]; - } + struct pksav_gen2_save_internal* p_internal = p_gen2_save->p_internal; + pksav_gen2_get_save_checksums( + p_gen2_save->save_type, + p_internal->p_raw_save, + p_internal->p_checksum1, + p_internal->p_checksum2 + ); - gen2_save->pokemon_box_names = (pksav_gen2_pokemon_box_names_t*)&PKSAV_GEN2_DATA(gen2_save, PKSAV_GEN2_PC_BOX_NAMES); - gen2_save->item_bag = (pksav_gen2_item_bag_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_ITEM_BAG); - gen2_save->item_pc = (pksav_gen2_item_pc_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_ITEM_PC); - gen2_save->pokedex_seen = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_POKEDEX_SEEN); - gen2_save->pokedex_owned = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_POKEDEX_OWNED); - gen2_save->daylight_savings = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_DAYLIGHT_SAVINGS); - gen2_save->time_played = (pksav_gen2_time_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_TIME_PLAYED); - gen2_save->money = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_MONEY); - gen2_save->trainer_id = (uint16_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_PLAYER_ID); - gen2_save->trainer_name = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_PLAYER_NAME); - gen2_save->rival_name = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_RIVAL_NAME); - - if(gen2_save->gen2_game == PKSAV_GEN2_CRYSTAL) { - gen2_save->trainer_gender = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_PLAYER_GENDER); - } else { - gen2_save->trainer_gender = NULL; - } + error = pksav_fs_write_buffer_to_file( + p_filepath, + p_internal->p_raw_save, + PKSAV_GEN2_SAVE_SIZE + ); - return PKSAV_ERROR_NONE; + return error; } -pksav_error_t pksav_gen2_save_save( - const char* filepath, - pksav_gen2_save_t* gen2_save -) { - if(!filepath || !gen2_save) { +enum pksav_error pksav_gen2_free_save( + struct pksav_gen2_save* p_gen2_save +) +{ + if(!p_gen2_save) + { return PKSAV_ERROR_NULL_POINTER; } - // Make sure we can write to this file - FILE* gen2_save_file = fopen(filepath, "wb"); - if(!gen2_save_file) { - return PKSAV_ERROR_FILE_IO; + struct pksav_gen2_save_internal* p_internal = p_gen2_save->p_internal; + if(p_internal->is_buffer_ours) + { + free(p_internal->p_raw_save); } + free(p_internal); - // Set checksum - _pksav_gen2_set_save_checksums( - (gen2_save->gen2_game == PKSAV_GEN2_CRYSTAL), - gen2_save->raw - ); - - // Write to file - fwrite((void*)gen2_save->raw, 1, PKSAV_GEN2_SAVE_SIZE, gen2_save_file); - fclose(gen2_save_file); + // Everything else is a pointer or an enum with a default value of 0, + // so this one memset should be fine. + memset(p_gen2_save, 0, sizeof(*p_gen2_save)); return PKSAV_ERROR_NONE; } -pksav_error_t pksav_gen2_save_free( - pksav_gen2_save_t* gen2_save -) { - if(!gen2_save || !gen2_save->raw) { +enum pksav_error pksav_gen2_pokemon_storage_set_current_box( + struct pksav_gen2_pokemon_storage* p_gen2_pokemon_storage, + uint8_t new_current_box_num +) +{ + if(!p_gen2_pokemon_storage) + { return PKSAV_ERROR_NULL_POINTER; } + if(new_current_box_num >= PKSAV_GEN2_NUM_POKEMON_BOXES) + { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } - // Free dynamically allocated memory - free(gen2_save->raw); + uint8_t* p_current_box_num = p_gen2_pokemon_storage->p_current_box_num; + struct pksav_gen2_pokemon_box* p_current_box = p_gen2_pokemon_storage->p_current_box; + struct pksav_gen2_pokemon_box** pp_boxes = p_gen2_pokemon_storage->pp_boxes; - // Set all pointer members to NULL - gen2_save->pokemon_party = NULL; - gen2_save->current_pokemon_box_num = NULL; - gen2_save->current_pokemon_box = NULL; - for(int i = 0; i < 14; ++i) { - gen2_save->pokemon_boxes[i] = NULL; - } - gen2_save->pokemon_box_names = NULL; - gen2_save->item_bag = NULL; - gen2_save->item_pc = NULL; - gen2_save->pokedex_seen = NULL; - gen2_save->pokedex_owned = NULL; - gen2_save->trainer_name = NULL; - gen2_save->trainer_id = NULL; - gen2_save->trainer_gender = NULL; - gen2_save->money = NULL; - gen2_save->rival_name = NULL; - gen2_save->daylight_savings = NULL; - gen2_save->time_played = NULL; - gen2_save->raw = NULL; + *pp_boxes[*p_current_box_num] = *p_current_box; + *p_current_box_num = new_current_box_num; + *p_current_box = *pp_boxes[new_current_box_num]; return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/gen2/save_internal.h b/libpksav/lib/gen2/save_internal.h new file mode 100644 index 0000000..1c408b7 --- /dev/null +++ b/libpksav/lib/gen2/save_internal.h @@ -0,0 +1,154 @@ +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#ifndef PKSAV_GEN2_SAVE_INTERNAL_H +#define PKSAV_GEN2_SAVE_INTERNAL_H + +#include + +#include + +#define PKSAV_GS_CHECKSUM1 (0x2D69) +#define PKSAV_GS_CHECKSUM2 (0x7E6D) + +#define PKSAV_CRYSTAL_CHECKSUM1 (0x2D02) +#define PKSAV_CRYSTAL_CHECKSUM2 (0x1F0D) + +struct pksav_gen2_save_internal +{ + uint8_t* p_raw_save; + + uint16_t* p_checksum1; + uint16_t* p_checksum2; + + bool is_buffer_ours; +}; + +enum pksav_gen2_field +{ + PKSAV_GEN2_DAYCARE_DATA = 0, + PKSAV_GEN2_OPTIONS, + PKSAV_GEN2_TEXTBOX_FRAME_INDEX, + PKSAV_GEN2_GBPRINTER_BRIGHTNESS, + PKSAV_GEN2_MENU_ACCOUNT, + PKSAV_GEN2_PLAYER_ID, + PKSAV_GEN2_PLAYER_NAME, + PKSAV_GEN2_RIVAL_NAME, + PKSAV_GEN2_DAYLIGHT_SAVINGS, + PKSAV_GEN2_TIME_PLAYED, + PKSAV_GEN2_PLAYER_PALETTE, + PKSAV_GEN2_MONEY, + PKSAV_GEN2_MONEY_WITH_MOM, + PKSAV_GEN2_MOM_MONEY_POLICY, + PKSAV_GEN2_CASINO_COINS, + PKSAV_GEN2_JOHTO_BADGES, + PKSAV_GEN2_KANTO_BADGES, + PKSAV_GEN2_ITEM_BAG, + PKSAV_GEN2_ITEM_PC, + PKSAV_GEN2_REGISTERED_ITEM_INFO, + PKSAV_GEN2_REGISTERED_ITEM, + PKSAV_GEN2_CURRENT_BOX_NUM, + PKSAV_GEN2_PC_BOX_NAMES, + PKSAV_GEN2_POKEMON_PARTY, + PKSAV_GEN2_POKEDEX_OWNED, + PKSAV_GEN2_POKEDEX_SEEN, + PKSAV_GEN2_CURRENT_BOX, + PKSAV_GEN2_PLAYER_GENDER, + PKSAV_GEN2_POKEMON_PC_FIRST_HALF, + PKSAV_GEN2_POKEMON_PC_SECOND_HALF, + PKSAV_GEN2_CHECKSUM1, + PKSAV_GEN2_CHECKSUM2 +}; + +static const size_t GS_OFFSETS[] = +{ + 0x1306, // Daycare data + 0x2000, // Options + 0x2002, // Text box frame index + 0x2004, // Game Boy Printer brightness + 0x2005, // Menu account + 0x2009, // Player ID + 0x200B, // Player name + 0x2021, // Rival name + 0x2037, // Daylight savings + 0x2054, // Time played + 0x206B, // Player palette + 0x23DB, // Money + 0x23DE, // Mom's money + 0x23E1, // Mom's money policy + 0x23E2, // Casino coins + 0x23E4, // Johto badges + 0x23E5, // Kanto badges + 0x23E6, // Item bag + 0x247E, // Item PC + 0x24E8, // Registered item info + 0x24E7, // Registered item index + 0x2724, // Current Pokemon box number + 0x2727, // PC box names + 0x288A, // Pokemon party + 0x2A4C, // Pokedex owned + 0x2A6C, // Pokedex seen + 0x2D6C, // Current Pokemon box list + 0x3E3D, // Player gender (Crystal only) + 0x4000, // Pokemon PC (first half) + 0x6000, // Pokemon PC (second half) + 0x2D69, // Checksum 1 + 0x7E6D // Checksum 2 +}; + +static const size_t CRYSTAL_OFFSETS[] = +{ + 0x1C82, // Daycare data + 0x2000, // Options + 0x2002, // Text box frame index + 0x2004, // Game Boy Printer brightness + 0x2005, // Menu account + 0x2009, // Player ID + 0x200B, // Player name + 0x2021, // Rival name + 0x2037, // Daylight savings + 0x2054, // Time played + 0x206A, // Player palette + 0x23DC, // Money + 0x23DF, // Mom's money + 0x23E2, // Mom's money policy + 0x23E3, // Casino coins + 0x23E5, // Johto badges + 0x23E6, // Kanto badges + 0x23E7, // Item bag + 0x247F, // Item PC + 0x24E9, // Registered item info + 0x24E8, // Registered item index + 0x2700, // Current Pokemon box number + 0x2703, // PC box names + 0x2865, // Pokemon party + 0x2A27, // Pokedex owned + 0x2A47, // Pokedex seen + 0x2D10, // Current Pokemon box list + 0x3E3D, // Player gender (Crystal only) + 0x4000, // Pokemon PC (first half) + 0x6000, // Pokemon PC (second half) + 0x2D0D, // Checksum 1 + 0x1F0D // Checksum 2 +}; + +#ifdef __cplusplus +extern "C" { +#endif + +void pksav_gen2_get_save_checksums( + enum pksav_gen2_save_type save_type, + const uint8_t* p_buffer, + uint16_t* p_checksum1_out, + uint16_t* p_checksum2_out +); + +#ifdef __cplusplus +} +#endif + +#endif /* PKSAV_GEN2_SAVE_INTERNAL_H */ diff --git a/libpksav/lib/gen2/text.c b/libpksav/lib/gen2/text.c index 868eff6..c1a8988 100644 --- a/libpksav/lib/gen2/text.c +++ b/libpksav/lib/gen2/text.c @@ -1,18 +1,19 @@ /* - * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ -#include "../common/text_common.h" +#include "util/text_common.h" #include +#include #include -#define PKSAV_GEN2_TERMINATOR 0x50 -#define PKSAV_GEN2_SPACE 0x7F +#define PKSAV_GEN2_TEXT_SPACE (0x7F) +#define ASCII_SPACE (0x20) /* * Character map for Generation II @@ -23,7 +24,8 @@ * "<" and ">" characters, as they are not used in-game. Any application displaying this text * will need to graphically substitute in these characters. */ -static const wchar_t pksav_gen2_char_map[] = { +static const wchar_t PKSAV_GEN2_CHAR_MAP[] = +{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, @@ -41,49 +43,66 @@ static const wchar_t pksav_gen2_char_map[] = { 0x27,0x3C,0x3E,0x2D,0x00,0x00,0x3F,0x21,0x2E,0x00,0xE9,0x00,0x00,0x00,0x00,0x2642, 0x00,0xD7,0x00,0x2F,0x2C,0x2640,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39 }; +static const size_t PKSAV_GEN2_CHAR_MAP_SIZE = + sizeof(PKSAV_GEN2_CHAR_MAP)/sizeof(PKSAV_GEN2_CHAR_MAP[0]); -static pksav_error_t _pksav_widetext_from_gen2( - const uint8_t* input_buffer, - wchar_t* output_text, +static enum pksav_error _pksav_gen2_import_widetext( + const uint8_t* p_input_buffer, + wchar_t* p_output_widetext, size_t num_chars -) { - if(!input_buffer || !output_text) { - return PKSAV_ERROR_NULL_POINTER; - } +) +{ + assert(p_input_buffer != NULL); + assert(p_output_widetext != NULL); - memset(output_text, 0, sizeof(wchar_t)*num_chars); + memset(p_output_widetext, 0, sizeof(wchar_t)*num_chars); - for(size_t i = 0; i < num_chars; ++i) { - if(input_buffer[i] == PKSAV_GEN2_TERMINATOR) { + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_buffer[char_index] == PKSAV_GEN2_TEXT_TERMINATOR) + { break; - } else { - output_text[i] = pksav_gen2_char_map[input_buffer[i]]; + } + else + { + p_output_widetext[char_index] = PKSAV_GEN2_CHAR_MAP[p_input_buffer[char_index]]; } } return PKSAV_ERROR_NONE; } -static pksav_error_t _pksav_widetext_to_gen2( - const wchar_t* input_text, - uint8_t* output_buffer, +static enum pksav_error _pksav_gen2_export_widetext( + const wchar_t* p_input_widetext, + uint8_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { - return PKSAV_ERROR_NULL_POINTER; - } - - memset(output_buffer, PKSAV_GEN2_TERMINATOR, num_chars); - - for(size_t i = 0; i < num_chars; ++i) { - if(input_text[i] == 0x20) { - output_buffer[i] = PKSAV_GEN2_SPACE; - } else { - ssize_t index = wchar_map_index(pksav_gen2_char_map, 256, input_text[i]); - if(index == -1) { +) +{ + assert(p_input_widetext != NULL); + assert(p_output_buffer != NULL); + + memset(p_output_buffer, PKSAV_GEN2_TEXT_TERMINATOR, num_chars); + + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_widetext[char_index] == ASCII_SPACE) + { + p_output_buffer[char_index] = PKSAV_GEN2_TEXT_SPACE; + } + else + { + ssize_t map_index = wchar_map_index( + PKSAV_GEN2_CHAR_MAP, + PKSAV_GEN2_CHAR_MAP_SIZE, + p_input_widetext[char_index] + ); + if(map_index != -1) + { + p_output_buffer[char_index] = (uint8_t)map_index; + } + else + { break; - } else { - output_buffer[i] = (uint8_t)index; } } } @@ -91,44 +110,48 @@ static pksav_error_t _pksav_widetext_to_gen2( return PKSAV_ERROR_NONE; } -pksav_error_t pksav_text_from_gen2( - const uint8_t* input_buffer, - char* output_text, +enum pksav_error pksav_gen2_import_text( + const uint8_t* p_input_buffer, + char* p_output_text, size_t num_chars -) { - if(!input_buffer || !output_text) { +) +{ + if(!p_input_buffer || !p_output_text) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - _pksav_widetext_from_gen2( - input_buffer, widetext, num_chars + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_gen2_import_widetext( + p_input_buffer, p_widetext, num_chars ); - memset(output_text, 0, num_chars); - pksav_wcstombs(output_text, widetext, num_chars); - free(widetext); + memset(p_output_text, 0, num_chars); + pksav_wcstombs(p_output_text, p_widetext, num_chars); + free(p_widetext); return PKSAV_ERROR_NONE; } -pksav_error_t pksav_text_to_gen2( - const char* input_text, - uint8_t* output_buffer, +enum pksav_error pksav_gen2_export_text( + const char* p_input_text, + uint8_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { +) +{ + if(!p_input_text || !p_output_buffer) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - pksav_mbstowcs(widetext, input_text, num_chars); + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(p_widetext, p_input_text, num_chars); - _pksav_widetext_to_gen2( - widetext, output_buffer, num_chars + _pksav_gen2_export_widetext( + p_widetext, p_output_buffer, num_chars ); - free(widetext); + free(p_widetext); return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/gen2/time.c b/libpksav/lib/gen2/time.c index ef82cf8..43d6d73 100644 --- a/libpksav/lib/gen2/time.c +++ b/libpksav/lib/gen2/time.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -7,23 +7,30 @@ #include -pksav_error_t pksav_gen2_set_caught_data_time_field( - const time_t* time_in, - uint16_t* caught_data -) { - if(!time_in || !caught_data) { +enum pksav_error pksav_gen2_set_caught_data_time_field( + const time_t* p_ctime, + uint16_t* p_caught_data +) +{ + if(!p_ctime || !p_caught_data) + { return PKSAV_ERROR_NULL_POINTER; } - (*caught_data) &= ~PKSAV_GEN2_TIME_OF_DAY_MASK; + (*p_caught_data) &= ~PKSAV_GEN2_TIME_OF_DAY_MASK; - struct tm* gmtm = localtime(time_in); - if(gmtm->tm_hour >= 2 && gmtm->tm_hour <= 8) { - (*caught_data) |= (PKSAV_GEN2_MORNING << PKSAV_GEN2_TIME_OF_DAY_OFFSET); - } else if(gmtm->tm_hour >= 9 && gmtm->tm_hour <= 16) { - (*caught_data) |= (PKSAV_GEN2_DAY << PKSAV_GEN2_TIME_OF_DAY_OFFSET); - } else { - (*caught_data) |= (PKSAV_GEN2_NIGHT << PKSAV_GEN2_TIME_OF_DAY_OFFSET); + struct tm* p_tm = localtime(p_ctime); + if((p_tm->tm_hour >= 2) && (p_tm->tm_hour <= 8)) + { + (*p_caught_data) |= (PKSAV_GEN2_MORNING << PKSAV_GEN2_TIME_OF_DAY_OFFSET); + } + else if((p_tm->tm_hour >= 9) && (p_tm->tm_hour <= 16)) + { + (*p_caught_data) |= (PKSAV_GEN2_DAY << PKSAV_GEN2_TIME_OF_DAY_OFFSET); + } + else + { + (*p_caught_data) |= (PKSAV_GEN2_NIGHT << PKSAV_GEN2_TIME_OF_DAY_OFFSET); } return PKSAV_ERROR_NONE; diff --git a/libpksav/lib/gen4/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/gen4/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/lib/gen4/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/lib/gen4/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/lib/gen4/Makefile b/libpksav/lib/gen4/Makefile index b7a3701..2dddc13 100644 --- a/libpksav/lib/gen4/Makefile +++ b/libpksav/lib/gen4/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen4//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/gen4//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/gen4/cmake_install.cmake b/libpksav/lib/gen4/cmake_install.cmake index 74bdb01..afbac4e 100644 --- a/libpksav/lib/gen4/cmake_install.cmake +++ b/libpksav/lib/gen4/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib/gen4 +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/gen4 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) diff --git a/libpksav/lib/gen4/text.c b/libpksav/lib/gen4/text.c index 497229c..73dd5f5 100644 --- a/libpksav/lib/gen4/text.c +++ b/libpksav/lib/gen4/text.c @@ -1,15 +1,17 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ -#include "../common/text_common.h" +#include "util/text_common.h" #include +#include #include +#include #define PKSAV_GEN4_TERMINATOR 0xFFFF @@ -18,7 +20,8 @@ * * Source: https://github.com/Chase-san/PokeLib/blob/master/lib/PokeText.cpp */ -static const wchar_t pksav_gen4_char_map1[] = { //0x0000, +static const wchar_t PKSAV_GEN4_CHAR_MAP1[] = // 0x0000, +{ 0x0000,0x3000,0x3041,0x3042,0x3043,0x3044,0x3045,0x3046,0x3047,0x3048,0x3049,0x304A,0x304B,0x304C,0x304D,0x304E, 0x304F,0x3050,0x3051,0x3052,0x3053,0x3054,0x3055,0x3056,0x3057,0x3058,0x3059,0x305A,0x305B,0x305C,0x305D,0x305E, 0x305F,0x3060,0x3061,0x3062,0x3063,0x3064,0x3065,0x3066,0x3067,0x3068,0x3069,0x306A,0x306B,0x306C,0x306D,0x306E, @@ -33,7 +36,7 @@ static const wchar_t pksav_gen4_char_map1[] = { //0x0000, 0xFF25,0xFF26,0xFF27,0xFF28,0xFF29,0xFF2A,0xFF2B,0xFF2C,0xFF2D,0xFF2E,0xFF2F,0xFF30,0xFF31,0xFF32,0xFF33,0xFF34, 0xFF35,0xFF36,0xFF37,0xFF38,0xFF39,0xFF3A,0xFF41,0xFF42,0xFF43,0xFF44,0xFF45,0xFF46,0xFF47,0xFF48,0xFF49,0xFF4A, 0xFF4B,0xFF4C,0xFF4D,0xFF4E,0xFF4F,0xFF50,0xFF51,0xFF52,0xFF53,0xFF54,0xFF55,0xFF56,0xFF57,0xFF58,0xFF59,0xFF5A, - 0x0000, //Missing ### + 0x0000, // Missing ### 0xFF01,0xFF1F,0x3001,0x3002,0x22EF,0x30FB,0xFF0F,0x300C,0x300D,0x300E,0x300F,0xFF08,0xFF09,0x329A,0x329B,0xFF0B, 0xFF0D,0x2297,0x2298,0xFF1D,0xFF5A,0xFF1A,0xFF1B,0xFF0E,0xFF0C,0x2664,0x2667,0x2661,0x2662,0x2606,0x25CE,0x25CB, 0x25A1,0x25B3,0x25C7,0xFF20,0x266B,0xFF05,0x263C,0x2614,0x2630,0x2744,0x260B,0x2654,0x2655,0x260A,0x2934,0x2935, @@ -52,8 +55,10 @@ static const wchar_t pksav_gen4_char_map1[] = { //0x0000, 0x266A,0x0025,0x2600,0x2601,0x2602,0x2603,0x263A,0x265A,0x265B,0x2639,0x2197,0x2198,0x263D,0x0020,0x2074,0x20A7, 0x20A6,0x00B0,0x005F,0xFF3F, }; +static const size_t PKSAV_GEN4_CHAR_MAP1_SIZE = sizeof(PKSAV_GEN4_CHAR_MAP1)/sizeof(wchar_t); -static const wchar_t pksav_gen4_char_map2[] = { +static const wchar_t PKSAV_GEN4_CHAR_MAP2[] = +{ 0xAC00,0xAC01,0xAC04,0xAC07,0xAC08,0xAC09,0xAC0A,0xAC10,0xAC11,0xAC12,0xAC13,0xAC14,0xAC15,0xAC16,0xAC17,0xAC19, 0xAC1A,0xAC1B,0xAC1C,0xAC1D,0xAC20,0xAC24,0xAC2C,0xAC2D,0xAC2F,0xAC30,0xAC31,0xAC38,0xAC39,0xAC3C,0xAC40,0xAC4B, 0xAC4D,0xAC54,0xAC58,0xAC5C,0xAC70,0xAC71,0xAC74,0xAC77,0xAC78,0xAC7A,0xAC80,0xAC81,0xAC83,0xAC84,0xAC85,0xAC86, @@ -205,90 +210,121 @@ static const wchar_t pksav_gen4_char_map2[] = { 0x1112,0x1161,0x1162,0x1163,0x1164,0x1165,0x1166,0x1167,0x1168,0x1169,0x116D,0x116E,0x1172,0x1173,0x1175,0xB894, 0xC330,0xC3BC,0xC4D4,0xCB2C, }; +static const size_t PKSAV_GEN4_CHAR_MAP2_SIZE = sizeof(PKSAV_GEN4_CHAR_MAP2)/sizeof(wchar_t); -pksav_error_t pksav_text_from_gen4( - const uint16_t* input_buffer, - char* output_text, +static enum pksav_error _pksav_gen4_import_widetext( + const uint16_t* p_input_buffer, + wchar_t* p_output_widetext, size_t num_chars -) { - if(!input_buffer || !output_text) { - return PKSAV_ERROR_NULL_POINTER; - } +) +{ + assert(p_input_buffer != NULL); + assert(p_output_widetext != NULL); - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - pksav_widetext_from_gen4( - input_buffer, widetext, num_chars - ); + memset(p_output_widetext, 0, sizeof(wchar_t)*num_chars); - memset(output_text, 0, num_chars); - wcstombs(output_text, widetext, num_chars); - free(widetext); + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + if(p_input_buffer[char_index] < 0x400) + { + p_output_widetext[char_index] = PKSAV_GEN4_CHAR_MAP1[p_input_buffer[char_index]]; + } + else if(p_input_buffer[char_index] <= PKSAV_GEN4_CHAR_MAP2_SIZE) + { + p_output_widetext[char_index] = PKSAV_GEN4_CHAR_MAP2[p_input_buffer[char_index]]; + } + else + { + break; + } + } return PKSAV_ERROR_NONE; } -pksav_error_t pksav_widetext_from_gen4( - const uint16_t* input_buffer, - wchar_t* output_text, +static enum pksav_error _pksav_gen4_export_widetext( + const wchar_t* p_input_widetext, + uint16_t* p_output_buffer, size_t num_chars -) { - if(!input_buffer || !output_text) { - return PKSAV_ERROR_NULL_POINTER; - } +) +{ + assert(p_input_widetext != NULL); + assert(p_output_buffer != NULL); - memset(output_text, 0, sizeof(wchar_t)*num_chars); + memset(p_output_buffer, 0xFF, sizeof(uint16_t)*num_chars); - for(size_t i = 0; i < num_chars; ++i) { - if(input_buffer[i] < 0x400) { - output_text[i] = pksav_gen4_char_map1[input_buffer[i]]; + for(size_t char_index = 0; char_index < num_chars; ++char_index) + { + ssize_t index = wchar_map_index( + PKSAV_GEN4_CHAR_MAP1, + PKSAV_GEN4_CHAR_MAP1_SIZE, + p_input_widetext[char_index] + ); + if(index == -1) + { + index = wchar_map_index( + PKSAV_GEN4_CHAR_MAP2, + PKSAV_GEN4_CHAR_MAP2_SIZE, + p_input_widetext[char_index] + ); + if(index == -1) + { + break; + } + else + { + p_output_buffer[char_index] = (uint16_t)index; + } } else { - output_text[i] = pksav_gen4_char_map2[input_buffer[i]]; + p_output_buffer[char_index] = (uint16_t)index; } } return PKSAV_ERROR_NONE; } -pksav_error_t pksav_text_to_gen4( - const char* input_text, - uint16_t* output_buffer, +enum pksav_error pksav_gen4_import_text( + const uint16_t* p_input_buffer, + char* p_output_text, size_t num_chars -) { - if(!input_text || !output_buffer) { +) +{ + if(!p_input_buffer || !p_output_text) + { return PKSAV_ERROR_NULL_POINTER; } - wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); - mbstowcs(widetext, input_text, num_chars); - - pksav_widetext_to_gen4( - widetext, output_buffer, num_chars + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_gen4_import_widetext( + p_input_buffer, p_widetext, num_chars ); - free(widetext); + memset(p_output_text, 0, num_chars); + pksav_wcstombs(p_output_text, p_widetext, num_chars); + free(p_widetext); return PKSAV_ERROR_NONE; } -pksav_error_t pksav_widetext_to_gen4( - const wchar_t* input_text, - uint16_t* output_buffer, +enum pksav_error pksav_gen4_export_text( + const char* p_input_text, + uint16_t* p_output_buffer, size_t num_chars -) { - if(!input_text || !output_buffer) { +) +{ + if(!p_input_text || !p_output_buffer) + { return PKSAV_ERROR_NULL_POINTER; } - memset(output_buffer, 0xFF, sizeof(wchar_t)*num_chars); + wchar_t* p_widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(p_widetext, p_input_text, num_chars); - for(size_t i = 0; i < num_chars; ++i) { - ssize_t index = wchar_map_index(pksav_gen4_char_map2, 485, input_text[i]); - if(index == -1) { - break; - } else { - output_buffer[i] = (uint16_t)index; - } - } + _pksav_gen4_export_widetext( + p_widetext, p_output_buffer, num_chars + ); + + free(p_widetext); return PKSAV_ERROR_NONE; } diff --git a/libpksav/lib/gen5/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/gen5/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/lib/gen5/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/lib/gen5/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/lib/gen5/Makefile b/libpksav/lib/gen5/Makefile index 784c465..ad230a9 100644 --- a/libpksav/lib/gen5/Makefile +++ b/libpksav/lib/gen5/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen5//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/gen5//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/gen5/cmake_install.cmake b/libpksav/lib/gen5/cmake_install.cmake index fff0b7c..00ad2f9 100644 --- a/libpksav/lib/gen5/cmake_install.cmake +++ b/libpksav/lib/gen5/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib/gen5 +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/gen5 # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) diff --git a/libpksav/lib/gen5/text.c b/libpksav/lib/gen5/text.c index e1cd990..48051a9 100644 --- a/libpksav/lib/gen5/text.c +++ b/libpksav/lib/gen5/text.c @@ -1,58 +1,36 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ -#include "../common/xds_common.h" +#include "common/xds_common.h" #include -pksav_error_t pksav_text_from_gen5( - const uint16_t* input_buffer, - char* output_text, +enum pksav_error pksav_gen5_import_text( + const uint16_t* p_input_buffer, + char* p_output_text, size_t num_chars -) { - return _pksav_text_from_xds( - input_buffer, - output_text, - num_chars - ); +) +{ + return pksav_xds_import_text( + p_input_buffer, + p_output_text, + num_chars + ); } -pksav_error_t pksav_widetext_from_gen5( - const uint16_t* input_buffer, - wchar_t* output_text, +enum pksav_error pksav_gen5_export_text( + const char* p_input_text, + uint16_t* p_output_buffer, size_t num_chars -) { - return _pksav_widetext_from_xds( - input_buffer, - output_text, - num_chars - ); -} - -pksav_error_t pksav_text_to_gen5( - const char* input_text, - uint16_t* output_buffer, - size_t num_chars -) { - return _pksav_text_to_xds( - input_text, - output_buffer, - num_chars - ); -} - -pksav_error_t pksav_widetext_to_gen5( - const wchar_t* input_text, - uint16_t* output_buffer, - size_t num_chars -) { - return _pksav_widetext_to_xds( - input_text, - output_buffer, - num_chars - ); +) +{ + return pksav_xds_export_text( + p_input_text, + p_output_buffer, + num_chars + ); } diff --git a/libpksav/lib/libpksav.dylib b/libpksav/lib/libpksav.dylib index c4fd3c2..d8b7725 100755 Binary files a/libpksav/lib/libpksav.dylib and b/libpksav/lib/libpksav.dylib differ diff --git a/libpksav/lib/math/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/math/CMakeFiles/CMakeDirectoryInformation.cmake index ae19f46..6b79c97 100644 --- a/libpksav/lib/math/CMakeFiles/CMakeDirectoryInformation.cmake +++ b/libpksav/lib/math/CMakeFiles/CMakeDirectoryInformation.cmake @@ -2,8 +2,8 @@ # Generated by "Unix Makefiles" Generator, CMake Version 3.27 # Relative path conversion top directories. -set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") -set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") # Force unix paths in dependencies. set(CMAKE_FORCE_UNIX_PATHS 1) diff --git a/libpksav/lib/math/Makefile b/libpksav/lib/math/Makefile index 59f811e..ca5dab2 100644 --- a/libpksav/lib/math/Makefile +++ b/libpksav/lib/math/Makefile @@ -57,10 +57,10 @@ RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f EQUALS = = # The top-level source directory on which CMake was run. -CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv # The top-level build directory on which CMake was run. -CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv #============================================================================= # Targets provided globally by CMake. @@ -142,14 +142,14 @@ install/strip/fast: preinstall/fast # The main all target all: cmake_check_build_system - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/math//CMakeFiles/progress.marks - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/all - $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/math//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 .PHONY : all # The main clean target clean: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/clean + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/clean .PHONY : clean # The main clean target @@ -158,17 +158,17 @@ clean/fast: clean # Prepare targets for installation. preinstall: all - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/preinstall .PHONY : preinstall # Prepare targets for installation. preinstall/fast: - cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/preinstall + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/preinstall .PHONY : preinstall/fast # clear depends depend: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 .PHONY : depend # Help Target @@ -195,6 +195,6 @@ help: # No rule that depends on this can have commands that come from listfiles # because they might be regenerated. cmake_check_build_system: - cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 .PHONY : cmake_check_build_system diff --git a/libpksav/lib/math/base256.c b/libpksav/lib/math/base256.c index 66fbe13..23c36ed 100644 --- a/libpksav/lib/math/base256.c +++ b/libpksav/lib/math/base256.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -20,41 +20,48 @@ # pragma warning(disable: 4552) // expected operator with side effect #endif -pksav_error_t pksav_from_base256( - const uint8_t* buffer, +enum pksav_error pksav_import_base256( + const uint8_t* p_buffer, size_t num_bytes, - uint32_t* result_out -) { - if(!buffer || !result_out) { + size_t* p_result_out +) +{ + if(!p_buffer || !p_result_out) + { return PKSAV_ERROR_NULL_POINTER; } - *result_out = 0; + *p_result_out = 0; float exp = 0.0; - for(ssize_t i = (ssize_t)(num_bytes-1); i >= 0; --i) { - (*result_out) += buffer[i] * (uint32_t)(pow(256.0f, exp++)); + for(ssize_t index = (ssize_t)(num_bytes-1); index >= 0; --index) + { + (*p_result_out) += p_buffer[index] * (size_t)(pow(256.0f, exp++)); } return PKSAV_ERROR_NONE; } -pksav_error_t pksav_to_base256( - uint32_t num, - uint8_t* buffer_out, +enum pksav_error pksav_export_base256( + size_t num, + uint8_t* p_buffer_out, size_t buffer_size -) { - if(!buffer_out) { +) +{ + if(!p_buffer_out) + { return PKSAV_ERROR_NULL_POINTER; } - memset(buffer_out, 0, buffer_size); + memset(p_buffer_out, 0, buffer_size); float exp = 1.0f; - buffer_out[buffer_size-1] = (uint8_t)(num % 256); - for(ssize_t i = (ssize_t)(buffer_size-2); i >= 0; --i) { - num -= buffer_out[i+1]; - buffer_out[i] = (uint8_t)((uint32_t)(num / pow(256,exp)) % (uint32_t)(pow(256,exp))); + p_buffer_out[buffer_size-1] = (uint8_t)(num % 256); + for(ssize_t index = (ssize_t)(buffer_size-2); index >= 0; --index) + { + num -= p_buffer_out[index+1]; + p_buffer_out[index] = (uint8_t)((size_t)(num / pow(256,exp)) + % (size_t)(pow(256,exp))); ++exp; } diff --git a/libpksav/lib/math/bcd.c b/libpksav/lib/math/bcd.c index 97b2ea4..29c97f8 100644 --- a/libpksav/lib/math/bcd.c +++ b/libpksav/lib/math/bcd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * Copyright (c) 2016,2018 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) @@ -21,51 +21,80 @@ # pragma warning(disable: 4552) // expected operator with side effect #endif -pksav_error_t pksav_from_bcd( - const uint8_t* buffer, +enum pksav_error pksav_import_bcd( + const uint8_t* p_buffer, size_t num_bytes, - uint32_t* result_out -) { - if(!buffer || !result_out) { + size_t* p_result_out +) +{ + if(!p_buffer || !p_result_out) + { return PKSAV_ERROR_NULL_POINTER; } - uint32_t mult = 100; + *p_result_out = 0; - (*result_out) = (buffer[num_bytes-1] & 0x0F) + ((buffer[num_bytes-1] >> 4) * 10); - for(ssize_t i = (ssize_t)(num_bytes-2); i >= 0; i--) { - (*result_out) += ((buffer[i] & 0x0F) * mult); - mult *= 10; - (*result_out) += ((buffer[i] >> 4) * mult); - mult *= 10; + // Allocate a larger buffer than theoretically necessary. Practically, + // this function will only be called with small buffers, so this allocation + // will typically be on the scale of bytes anyway. + const size_t temp_buffer_size = num_bytes * 3; + char* p_temp_buffer = calloc(temp_buffer_size, 1); + + for(size_t index = 0; index < num_bytes; ++index) + { + uint8_t num1 = (p_buffer[index] & 0xF0) >> 4; + uint8_t num2 = p_buffer[index] & 0xF; + + if(num1 < 0xA) + { + p_temp_buffer[strlen(p_temp_buffer)] = (char)(num1 + '0'); + if(num2 < 0xA) + { + p_temp_buffer[strlen(p_temp_buffer)] = (char)(num2 + '0'); + } + } + else + { + break; + } } + *p_result_out = strtoul(p_temp_buffer, NULL, 10); + free(p_temp_buffer); + return PKSAV_ERROR_NONE; } -pksav_error_t pksav_to_bcd( - uint32_t num, - uint8_t* buffer_out -) { - if(!buffer_out) { +enum pksav_error pksav_export_bcd( + size_t num, + uint8_t* p_buffer_out, + size_t num_bytes +) +{ + if(!p_buffer_out) + { return PKSAV_ERROR_NULL_POINTER; } - // Find the number of needed bytes - uint32_t log10_num = (uint32_t)log10((double)num); - size_t num_bytes = (size_t)((log10_num + 1) / 2); - if(log10_num % 2 == 0) { - ++num_bytes; + memset(p_buffer_out, 0xFF, num_bytes); + + // Find the actual number of needed bytes. + size_t log10_num = (size_t)log10((double)num); + size_t num_needed_bytes = (size_t)((log10_num + 1) / 2); + if((log10_num % 2) == 0) + { + ++num_needed_bytes; } - memset(buffer_out, 0, num_bytes); - size_t mult = 100; + size_t actual_num_bytes = (num_bytes < num_needed_bytes) ? num_bytes + : num_needed_bytes; + + for(ssize_t index = (actual_num_bytes-1); index >= 0; --index) + { + p_buffer_out[index] = (uint8_t)(num % 10); + p_buffer_out[index] |= ((uint8_t)((num / 10) % 10) << 4); - buffer_out[num_bytes-1] = (((num % 100) / 10) << 4) | (num % 10); - for(ssize_t i = (ssize_t)(num_bytes-2); i >= 0; i--) { - buffer_out[i] = (uint8_t)((((num % (mult*100)) / (mult*10)) << 4) | - ((num % (mult*10)) / mult)); - mult *= 100; + num /= 100; } return PKSAV_ERROR_NONE; diff --git a/libpksav/lib/math/cmake_install.cmake b/libpksav/lib/math/cmake_install.cmake index 5bafaa6..a523555 100644 --- a/libpksav/lib/math/cmake_install.cmake +++ b/libpksav/lib/math/cmake_install.cmake @@ -1,4 +1,4 @@ -# Install script for directory: /Users/spencer/Projects/pksav/lib/math +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/math # Set the install prefix if(NOT DEFINED CMAKE_INSTALL_PREFIX) diff --git a/libpksav/lib/pksav.pc b/libpksav/lib/pksav.pc index 5926ab5..18c3e0b 100644 --- a/libpksav/lib/pksav.pc +++ b/libpksav/lib/pksav.pc @@ -1,7 +1,7 @@ prefix=/usr/local exec_prefix=${prefix} -libdir=${exec_prefix}/ -includedir=${prefix}/ +libdir=${exec_prefix}/lib +includedir=${prefix}/include Name: pksav Description: Minimal Pokémon save editing library diff --git a/libpksav/lib/util/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib/util/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..6b79c97 --- /dev/null +++ b/libpksav/lib/util/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav-sv") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav-sv") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib/util/CMakeFiles/progress.marks b/libpksav/lib/util/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib/util/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib/util/CMakeLists.txt b/libpksav/lib/util/CMakeLists.txt new file mode 100644 index 0000000..58e0371 --- /dev/null +++ b/libpksav/lib/util/CMakeLists.txt @@ -0,0 +1,16 @@ +# +# Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/text_common.h.in + ${CMAKE_CURRENT_BINARY_DIR}/text_common.h +@ONLY) + +SET(pksav_util_sources + ${CMAKE_CURRENT_SOURCE_DIR}/fs.c + ${CMAKE_CURRENT_SOURCE_DIR}/text_common.c +PARENT_SCOPE) diff --git a/libpksav/lib/util/Makefile b/libpksav/lib/util/Makefile new file mode 100644 index 0000000..e420e20 --- /dev/null +++ b/libpksav/lib/util/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav-sv + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav-sv + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles /Users/spencer/Projects/pksav-sv/lib/util//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/util/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav-sv/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/util/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/util/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav-sv && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/util/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav-sv && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib/util/cmake_install.cmake b/libpksav/lib/util/cmake_install.cmake new file mode 100644 index 0000000..995928e --- /dev/null +++ b/libpksav/lib/util/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav-sv/lib/util + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib/util/fs.c b/libpksav/lib/util/fs.c new file mode 100644 index 0000000..1cd4561 --- /dev/null +++ b/libpksav/lib/util/fs.c @@ -0,0 +1,166 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "fs.h" + +#include +#include +#include + +enum pksav_error pksav_fs_filesize( + const char* filepath, + size_t* filesize_out +) +{ + assert(filepath != NULL); + assert(filesize_out != NULL); + + enum pksav_error error = PKSAV_ERROR_NONE; + + FILE* input_file = fopen(filepath, "rb"); + if(input_file) + { + if(fseek(input_file, 0, SEEK_END)) + { + error = PKSAV_ERROR_FILE_IO; + } + else + { + long int ftell_output = ftell(input_file); + if(ftell_output >= 0) + { + if(fclose(input_file)) + { + error = PKSAV_ERROR_FILE_IO; + } + else + { + *filesize_out = (size_t)ftell_output; + } + } + else + { + error = PKSAV_ERROR_FILE_IO; + + // This is already an error state, but try and close if + // possible. + fclose(input_file); + } + } + } + else + { + error = PKSAV_ERROR_FILE_IO; + } + + return error; +} + +enum pksav_error pksav_fs_read_file_to_buffer( + const char* filepath, + uint8_t** buffer_ptr, + size_t* buffer_len_out +) +{ + assert(filepath != NULL); + assert(buffer_ptr != NULL); + assert(buffer_len_out != NULL); + + enum pksav_error error = PKSAV_ERROR_NONE; + + size_t filesize = 0; + + error = pksav_fs_filesize(filepath, &filesize); + if(!error) + { + FILE* input_file = fopen(filepath, "rb"); + if(input_file) + { + void* file_contents = calloc(filesize, 1); + if(file_contents) + { + size_t num_read = fread(file_contents, 1, filesize, input_file); + if(num_read == filesize) + { + *buffer_ptr = file_contents; + *buffer_len_out = filesize; + } + else + { + error = PKSAV_ERROR_FILE_IO; + } + + if(fclose(input_file)) + { + // Even if error was already set to this, the result + // is the same. + error = PKSAV_ERROR_FILE_IO; + } + } + else + { + // TODO: internal error instead? + error = PKSAV_ERROR_FILE_IO; + + // This is already an error state, but try and close if + // possible. + fclose(input_file); + } + } + else + { + error = PKSAV_ERROR_FILE_IO; + } + } + + return error; +} + +enum pksav_error pksav_fs_write_buffer_to_file( + const char* filepath, + const uint8_t* buffer, + size_t buffer_len +) +{ + assert(filepath != NULL); + assert(buffer != NULL); + assert(buffer_len > 0); + + enum pksav_error error = PKSAV_ERROR_NONE; + + FILE* output_file = fopen(filepath, "wb"); + if(output_file) + { + size_t num_written = fwrite( + buffer, + 1, + buffer_len, + output_file + ); + if(num_written == buffer_len) + { + if(fclose(output_file)) + { + error = PKSAV_ERROR_FILE_IO; + } + } + else + { + error = PKSAV_ERROR_FILE_IO; + + // This is already an error state, but try and close if + // possible. + fclose(output_file); + } + } + else + { + error = PKSAV_ERROR_FILE_IO; + } + + return error; +} diff --git a/libpksav/lib/util/fs.h b/libpksav/lib/util/fs.h new file mode 100644 index 0000000..915a956 --- /dev/null +++ b/libpksav/lib/util/fs.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#ifndef PKSAV_UTIL_FS_H +#define PKSAV_UTIL_FS_H + +#include + +#include +#include + +enum pksav_error pksav_fs_filesize( + const char* filepath, + size_t* filesize_out +); + +enum pksav_error pksav_fs_read_file_to_buffer( + const char* filepath, + uint8_t** buffer_ptr, + size_t* buffer_len_out +); + +enum pksav_error pksav_fs_write_buffer_to_file( + const char* filepath, + const uint8_t* buffer, + size_t buffer_len +); + +#endif /* PKSAV_UTIL_FS_H */ diff --git a/libpksav/lib/util/text_common.c b/libpksav/lib/util/text_common.c new file mode 100644 index 0000000..0b45776 --- /dev/null +++ b/libpksav/lib/util/text_common.c @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "util/text_common.h" + +#include +#include +#include + +#if defined(PKSAV_PLATFORM_MINGW) || defined(PKSAV_PLATFORM_WIN32) + +#include + +void pksav_mbstowcs( + wchar_t* p_output, + const char* p_input, + size_t num_chars +) +{ + MultiByteToWideChar( + CP_UTF8, + 0, + p_input, + -1, + p_output, + (int)num_chars + ); +} + +void pksav_wcstombs( + char* p_output, + const wchar_t* p_input, + size_t num_chars +) +{ + WideCharToMultiByte( + CP_UTF8, + 0, + p_input, + -1, + p_output, + (int)num_chars, + NULL, + NULL + ); +} + +#else + +void pksav_mbstowcs( + wchar_t* p_output, + const char* p_input, + size_t num_chars +) +{ + char* p_old_locale = setlocale(LC_CTYPE, NULL); + setlocale(LC_CTYPE, "en_US.utf8"); + mbstowcs(p_output, p_input, num_chars); + if(p_old_locale) + { + (void)setlocale(LC_CTYPE, p_old_locale); + } +} + +void pksav_wcstombs( + char* p_output, + const wchar_t* p_input, + size_t num_chars +) +{ + char* p_old_locale = setlocale(LC_CTYPE, NULL); + setlocale(LC_CTYPE, "en_US.utf8"); + wcstombs(p_output, p_input, num_chars); + if(p_old_locale) + { + (void)setlocale(LC_CTYPE, p_old_locale); + } +} + +#endif + +// C equivalent of std::distance +ssize_t wchar_map_index( + const wchar_t* p_char_map, + size_t char_map_size, + wchar_t to_find +) +{ + for(size_t char_index = 0; + char_index < char_map_size; + ++char_index) + { + if(p_char_map[char_index] == to_find) + { + return char_index; + } + } + return -1; +} + diff --git a/libpksav/lib/util/text_common.h b/libpksav/lib/util/text_common.h new file mode 100644 index 0000000..2a1f2d1 --- /dev/null +++ b/libpksav/lib/util/text_common.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_UTIL_TEXT_COMMON_H +#define PKSAV_UTIL_TEXT_COMMON_H + +#include + +#include + +#define HAVE_UNISTD_H 1 + +#ifdef HAVE_UNISTD_H +#include +#endif + +void pksav_mbstowcs( + wchar_t* p_output, + const char* p_input, + size_t num_chars +); + +void pksav_wcstombs( + char* p_output, + const wchar_t* p_input, + size_t num_chars +); + +ssize_t wchar_map_index( + const wchar_t* p_char_map, + size_t char_map_size, + wchar_t to_find +); + +#endif /* PKSAV_UTIL_TEXT_COMMON_H */ diff --git a/libpksav/lib/util/text_common.h.in b/libpksav/lib/util/text_common.h.in new file mode 100644 index 0000000..ce0e544 --- /dev/null +++ b/libpksav/lib/util/text_common.h.in @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_UTIL_TEXT_COMMON_H +#define PKSAV_UTIL_TEXT_COMMON_H + +#include + +#include + +#cmakedefine HAVE_UNISTD_H 1 + +#ifdef HAVE_UNISTD_H +#include +#endif + +void pksav_mbstowcs( + wchar_t* p_output, + const char* p_input, + size_t num_chars +); + +void pksav_wcstombs( + char* p_output, + const wchar_t* p_input, + size_t num_chars +); + +ssize_t wchar_map_index( + const wchar_t* p_char_map, + size_t char_map_size, + wchar_t to_find +); + +#endif /* PKSAV_UTIL_TEXT_COMMON_H */ diff --git a/libpksav/lib/CMakeCache.txt b/libpksav/lib_bak/CMakeCache.txt similarity index 100% rename from libpksav/lib/CMakeCache.txt rename to libpksav/lib_bak/CMakeCache.txt diff --git a/libpksav/lib/CMakeFiles/3.27.4/CMakeCCompiler.cmake b/libpksav/lib_bak/CMakeFiles/3.27.4/CMakeCCompiler.cmake similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CMakeCCompiler.cmake rename to libpksav/lib_bak/CMakeFiles/3.27.4/CMakeCCompiler.cmake diff --git a/libpksav/lib/CMakeFiles/3.27.4/CMakeCXXCompiler.cmake b/libpksav/lib_bak/CMakeFiles/3.27.4/CMakeCXXCompiler.cmake similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CMakeCXXCompiler.cmake rename to libpksav/lib_bak/CMakeFiles/3.27.4/CMakeCXXCompiler.cmake diff --git a/libpksav/lib/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_C.bin b/libpksav/lib_bak/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_C.bin similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_C.bin rename to libpksav/lib_bak/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_C.bin diff --git a/libpksav/lib/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_CXX.bin b/libpksav/lib_bak/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_CXX.bin similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_CXX.bin rename to libpksav/lib_bak/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_CXX.bin diff --git a/libpksav/lib/CMakeFiles/3.27.4/CMakeSystem.cmake b/libpksav/lib_bak/CMakeFiles/3.27.4/CMakeSystem.cmake similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CMakeSystem.cmake rename to libpksav/lib_bak/CMakeFiles/3.27.4/CMakeSystem.cmake diff --git a/libpksav/lib/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.c b/libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.c similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.c rename to libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.c diff --git a/libpksav/lib/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.o b/libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.o similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.o rename to libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.o diff --git a/libpksav/lib/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.cpp b/libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.cpp similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.cpp rename to libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.cpp diff --git a/libpksav/lib/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.o b/libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.o similarity index 100% rename from libpksav/lib/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.o rename to libpksav/lib_bak/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.o diff --git a/libpksav/lib/CMakeFiles/CMakeConfigureLog.yaml b/libpksav/lib_bak/CMakeFiles/CMakeConfigureLog.yaml similarity index 100% rename from libpksav/lib/CMakeFiles/CMakeConfigureLog.yaml rename to libpksav/lib_bak/CMakeFiles/CMakeConfigureLog.yaml diff --git a/libpksav/lib/CMakeFiles/cmake.check_cache b/libpksav/lib_bak/CMakeFiles/cmake.check_cache similarity index 100% rename from libpksav/lib/CMakeFiles/cmake.check_cache rename to libpksav/lib_bak/CMakeFiles/cmake.check_cache diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/DependInfo.cmake b/libpksav/lib_bak/CMakeFiles/pksav.dir/DependInfo.cmake new file mode 100644 index 0000000..ecf31ab --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/DependInfo.cmake @@ -0,0 +1,40 @@ + +# Consider dependencies only in project. +set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF) + +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + ) + +# The set of dependency files which are needed: +set(CMAKE_DEPENDS_DEPENDENCY_FILES + "/Users/spencer/Projects/pksav/lib/common/datetime.c" "lib/CMakeFiles/pksav.dir/common/datetime.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/datetime.c.o.d" + "/Users/spencer/Projects/pksav/lib/common/pokedex.c" "lib/CMakeFiles/pksav.dir/common/pokedex.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/pokedex.c.o.d" + "/Users/spencer/Projects/pksav/lib/common/prng.c" "lib/CMakeFiles/pksav.dir/common/prng.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/prng.c.o.d" + "/Users/spencer/Projects/pksav/lib/common/sha1.c" "lib/CMakeFiles/pksav.dir/common/sha1.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/sha1.c.o.d" + "/Users/spencer/Projects/pksav/lib/common/stats.c" "lib/CMakeFiles/pksav.dir/common/stats.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/stats.c.o.d" + "/Users/spencer/Projects/pksav/lib/common/text_common.c" "lib/CMakeFiles/pksav.dir/common/text_common.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/text_common.c.o.d" + "/Users/spencer/Projects/pksav/lib/common/xds_common.c" "lib/CMakeFiles/pksav.dir/common/xds_common.c.o" "gcc" "lib/CMakeFiles/pksav.dir/common/xds_common.c.o.d" + "/Users/spencer/Projects/pksav/lib/error.c" "lib/CMakeFiles/pksav.dir/error.c.o" "gcc" "lib/CMakeFiles/pksav.dir/error.c.o.d" + "/Users/spencer/Projects/pksav/lib/gba/checksum.c" "lib/CMakeFiles/pksav.dir/gba/checksum.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/checksum.c.o.d" + "/Users/spencer/Projects/pksav/lib/gba/crypt.c" "lib/CMakeFiles/pksav.dir/gba/crypt.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d" + "/Users/spencer/Projects/pksav/lib/gba/save.c" "lib/CMakeFiles/pksav.dir/gba/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/save.c.o.d" + "/Users/spencer/Projects/pksav/lib/gba/shuffle.c" "lib/CMakeFiles/pksav.dir/gba/shuffle.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/shuffle.c.o.d" + "/Users/spencer/Projects/pksav/lib/gba/text.c" "lib/CMakeFiles/pksav.dir/gba/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gba/text.c.o.d" + "/Users/spencer/Projects/pksav/lib/gen1/save.c" "lib/CMakeFiles/pksav.dir/gen1/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen1/save.c.o.d" + "/Users/spencer/Projects/pksav/lib/gen1/text.c" "lib/CMakeFiles/pksav.dir/gen1/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen1/text.c.o.d" + "/Users/spencer/Projects/pksav/lib/gen2/save.c" "lib/CMakeFiles/pksav.dir/gen2/save.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/save.c.o.d" + "/Users/spencer/Projects/pksav/lib/gen2/text.c" "lib/CMakeFiles/pksav.dir/gen2/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/text.c.o.d" + "/Users/spencer/Projects/pksav/lib/gen2/time.c" "lib/CMakeFiles/pksav.dir/gen2/time.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen2/time.c.o.d" + "/Users/spencer/Projects/pksav/lib/gen4/text.c" "lib/CMakeFiles/pksav.dir/gen4/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen4/text.c.o.d" + "/Users/spencer/Projects/pksav/lib/gen5/text.c" "lib/CMakeFiles/pksav.dir/gen5/text.c.o" "gcc" "lib/CMakeFiles/pksav.dir/gen5/text.c.o.d" + "/Users/spencer/Projects/pksav/lib/math/base256.c" "lib/CMakeFiles/pksav.dir/math/base256.c.o" "gcc" "lib/CMakeFiles/pksav.dir/math/base256.c.o.d" + "/Users/spencer/Projects/pksav/lib/math/bcd.c" "lib/CMakeFiles/pksav.dir/math/bcd.c.o" "gcc" "lib/CMakeFiles/pksav.dir/math/bcd.c.o.d" + ) + +# Targets to which this target links which contain Fortran sources. +set(CMAKE_Fortran_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/build.make b/libpksav/lib_bak/CMakeFiles/pksav.dir/build.make new file mode 100644 index 0000000..a63a973 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/build.make @@ -0,0 +1,446 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +# Include any dependencies generated for this target. +include lib/CMakeFiles/pksav.dir/depend.make +# Include any dependencies generated by the compiler for this target. +include lib/CMakeFiles/pksav.dir/compiler_depend.make + +# Include the progress variables for this target. +include lib/CMakeFiles/pksav.dir/progress.make + +# Include the compile flags for this target's objects. +include lib/CMakeFiles/pksav.dir/flags.make + +lib/CMakeFiles/pksav.dir/error.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/error.c.o: lib/error.c +lib/CMakeFiles/pksav.dir/error.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object lib/CMakeFiles/pksav.dir/error.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/error.c.o -MF CMakeFiles/pksav.dir/error.c.o.d -o CMakeFiles/pksav.dir/error.c.o -c /Users/spencer/Projects/pksav/lib/error.c + +lib/CMakeFiles/pksav.dir/error.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/error.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/error.c > CMakeFiles/pksav.dir/error.c.i + +lib/CMakeFiles/pksav.dir/error.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/error.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/error.c -o CMakeFiles/pksav.dir/error.c.s + +lib/CMakeFiles/pksav.dir/common/datetime.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/datetime.c.o: lib/common/datetime.c +lib/CMakeFiles/pksav.dir/common/datetime.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building C object lib/CMakeFiles/pksav.dir/common/datetime.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/datetime.c.o -MF CMakeFiles/pksav.dir/common/datetime.c.o.d -o CMakeFiles/pksav.dir/common/datetime.c.o -c /Users/spencer/Projects/pksav/lib/common/datetime.c + +lib/CMakeFiles/pksav.dir/common/datetime.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/datetime.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/datetime.c > CMakeFiles/pksav.dir/common/datetime.c.i + +lib/CMakeFiles/pksav.dir/common/datetime.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/datetime.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/datetime.c -o CMakeFiles/pksav.dir/common/datetime.c.s + +lib/CMakeFiles/pksav.dir/common/pokedex.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/pokedex.c.o: lib/common/pokedex.c +lib/CMakeFiles/pksav.dir/common/pokedex.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building C object lib/CMakeFiles/pksav.dir/common/pokedex.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/pokedex.c.o -MF CMakeFiles/pksav.dir/common/pokedex.c.o.d -o CMakeFiles/pksav.dir/common/pokedex.c.o -c /Users/spencer/Projects/pksav/lib/common/pokedex.c + +lib/CMakeFiles/pksav.dir/common/pokedex.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/pokedex.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/pokedex.c > CMakeFiles/pksav.dir/common/pokedex.c.i + +lib/CMakeFiles/pksav.dir/common/pokedex.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/pokedex.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/pokedex.c -o CMakeFiles/pksav.dir/common/pokedex.c.s + +lib/CMakeFiles/pksav.dir/common/prng.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/prng.c.o: lib/common/prng.c +lib/CMakeFiles/pksav.dir/common/prng.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building C object lib/CMakeFiles/pksav.dir/common/prng.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/prng.c.o -MF CMakeFiles/pksav.dir/common/prng.c.o.d -o CMakeFiles/pksav.dir/common/prng.c.o -c /Users/spencer/Projects/pksav/lib/common/prng.c + +lib/CMakeFiles/pksav.dir/common/prng.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/prng.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/prng.c > CMakeFiles/pksav.dir/common/prng.c.i + +lib/CMakeFiles/pksav.dir/common/prng.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/prng.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/prng.c -o CMakeFiles/pksav.dir/common/prng.c.s + +lib/CMakeFiles/pksav.dir/common/sha1.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/sha1.c.o: lib/common/sha1.c +lib/CMakeFiles/pksav.dir/common/sha1.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building C object lib/CMakeFiles/pksav.dir/common/sha1.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/sha1.c.o -MF CMakeFiles/pksav.dir/common/sha1.c.o.d -o CMakeFiles/pksav.dir/common/sha1.c.o -c /Users/spencer/Projects/pksav/lib/common/sha1.c + +lib/CMakeFiles/pksav.dir/common/sha1.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/sha1.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/sha1.c > CMakeFiles/pksav.dir/common/sha1.c.i + +lib/CMakeFiles/pksav.dir/common/sha1.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/sha1.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/sha1.c -o CMakeFiles/pksav.dir/common/sha1.c.s + +lib/CMakeFiles/pksav.dir/common/stats.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/stats.c.o: lib/common/stats.c +lib/CMakeFiles/pksav.dir/common/stats.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building C object lib/CMakeFiles/pksav.dir/common/stats.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/stats.c.o -MF CMakeFiles/pksav.dir/common/stats.c.o.d -o CMakeFiles/pksav.dir/common/stats.c.o -c /Users/spencer/Projects/pksav/lib/common/stats.c + +lib/CMakeFiles/pksav.dir/common/stats.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/stats.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/stats.c > CMakeFiles/pksav.dir/common/stats.c.i + +lib/CMakeFiles/pksav.dir/common/stats.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/stats.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/stats.c -o CMakeFiles/pksav.dir/common/stats.c.s + +lib/CMakeFiles/pksav.dir/common/text_common.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/text_common.c.o: lib/common/text_common.c +lib/CMakeFiles/pksav.dir/common/text_common.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building C object lib/CMakeFiles/pksav.dir/common/text_common.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/text_common.c.o -MF CMakeFiles/pksav.dir/common/text_common.c.o.d -o CMakeFiles/pksav.dir/common/text_common.c.o -c /Users/spencer/Projects/pksav/lib/common/text_common.c + +lib/CMakeFiles/pksav.dir/common/text_common.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/text_common.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/text_common.c > CMakeFiles/pksav.dir/common/text_common.c.i + +lib/CMakeFiles/pksav.dir/common/text_common.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/text_common.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/text_common.c -o CMakeFiles/pksav.dir/common/text_common.c.s + +lib/CMakeFiles/pksav.dir/common/xds_common.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/common/xds_common.c.o: lib/common/xds_common.c +lib/CMakeFiles/pksav.dir/common/xds_common.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Building C object lib/CMakeFiles/pksav.dir/common/xds_common.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/common/xds_common.c.o -MF CMakeFiles/pksav.dir/common/xds_common.c.o.d -o CMakeFiles/pksav.dir/common/xds_common.c.o -c /Users/spencer/Projects/pksav/lib/common/xds_common.c + +lib/CMakeFiles/pksav.dir/common/xds_common.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/common/xds_common.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/common/xds_common.c > CMakeFiles/pksav.dir/common/xds_common.c.i + +lib/CMakeFiles/pksav.dir/common/xds_common.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/common/xds_common.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/common/xds_common.c -o CMakeFiles/pksav.dir/common/xds_common.c.s + +lib/CMakeFiles/pksav.dir/math/base256.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/math/base256.c.o: lib/math/base256.c +lib/CMakeFiles/pksav.dir/math/base256.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_9) "Building C object lib/CMakeFiles/pksav.dir/math/base256.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/math/base256.c.o -MF CMakeFiles/pksav.dir/math/base256.c.o.d -o CMakeFiles/pksav.dir/math/base256.c.o -c /Users/spencer/Projects/pksav/lib/math/base256.c + +lib/CMakeFiles/pksav.dir/math/base256.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/math/base256.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/math/base256.c > CMakeFiles/pksav.dir/math/base256.c.i + +lib/CMakeFiles/pksav.dir/math/base256.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/math/base256.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/math/base256.c -o CMakeFiles/pksav.dir/math/base256.c.s + +lib/CMakeFiles/pksav.dir/math/bcd.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/math/bcd.c.o: lib/math/bcd.c +lib/CMakeFiles/pksav.dir/math/bcd.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_10) "Building C object lib/CMakeFiles/pksav.dir/math/bcd.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/math/bcd.c.o -MF CMakeFiles/pksav.dir/math/bcd.c.o.d -o CMakeFiles/pksav.dir/math/bcd.c.o -c /Users/spencer/Projects/pksav/lib/math/bcd.c + +lib/CMakeFiles/pksav.dir/math/bcd.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/math/bcd.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/math/bcd.c > CMakeFiles/pksav.dir/math/bcd.c.i + +lib/CMakeFiles/pksav.dir/math/bcd.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/math/bcd.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/math/bcd.c -o CMakeFiles/pksav.dir/math/bcd.c.s + +lib/CMakeFiles/pksav.dir/gen1/save.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gen1/save.c.o: lib/gen1/save.c +lib/CMakeFiles/pksav.dir/gen1/save.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_11) "Building C object lib/CMakeFiles/pksav.dir/gen1/save.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen1/save.c.o -MF CMakeFiles/pksav.dir/gen1/save.c.o.d -o CMakeFiles/pksav.dir/gen1/save.c.o -c /Users/spencer/Projects/pksav/lib/gen1/save.c + +lib/CMakeFiles/pksav.dir/gen1/save.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen1/save.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen1/save.c > CMakeFiles/pksav.dir/gen1/save.c.i + +lib/CMakeFiles/pksav.dir/gen1/save.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen1/save.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen1/save.c -o CMakeFiles/pksav.dir/gen1/save.c.s + +lib/CMakeFiles/pksav.dir/gen1/text.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gen1/text.c.o: lib/gen1/text.c +lib/CMakeFiles/pksav.dir/gen1/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_12) "Building C object lib/CMakeFiles/pksav.dir/gen1/text.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen1/text.c.o -MF CMakeFiles/pksav.dir/gen1/text.c.o.d -o CMakeFiles/pksav.dir/gen1/text.c.o -c /Users/spencer/Projects/pksav/lib/gen1/text.c + +lib/CMakeFiles/pksav.dir/gen1/text.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen1/text.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen1/text.c > CMakeFiles/pksav.dir/gen1/text.c.i + +lib/CMakeFiles/pksav.dir/gen1/text.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen1/text.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen1/text.c -o CMakeFiles/pksav.dir/gen1/text.c.s + +lib/CMakeFiles/pksav.dir/gen2/save.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gen2/save.c.o: lib/gen2/save.c +lib/CMakeFiles/pksav.dir/gen2/save.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_13) "Building C object lib/CMakeFiles/pksav.dir/gen2/save.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/save.c.o -MF CMakeFiles/pksav.dir/gen2/save.c.o.d -o CMakeFiles/pksav.dir/gen2/save.c.o -c /Users/spencer/Projects/pksav/lib/gen2/save.c + +lib/CMakeFiles/pksav.dir/gen2/save.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen2/save.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen2/save.c > CMakeFiles/pksav.dir/gen2/save.c.i + +lib/CMakeFiles/pksav.dir/gen2/save.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen2/save.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen2/save.c -o CMakeFiles/pksav.dir/gen2/save.c.s + +lib/CMakeFiles/pksav.dir/gen2/text.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gen2/text.c.o: lib/gen2/text.c +lib/CMakeFiles/pksav.dir/gen2/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_14) "Building C object lib/CMakeFiles/pksav.dir/gen2/text.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/text.c.o -MF CMakeFiles/pksav.dir/gen2/text.c.o.d -o CMakeFiles/pksav.dir/gen2/text.c.o -c /Users/spencer/Projects/pksav/lib/gen2/text.c + +lib/CMakeFiles/pksav.dir/gen2/text.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen2/text.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen2/text.c > CMakeFiles/pksav.dir/gen2/text.c.i + +lib/CMakeFiles/pksav.dir/gen2/text.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen2/text.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen2/text.c -o CMakeFiles/pksav.dir/gen2/text.c.s + +lib/CMakeFiles/pksav.dir/gen2/time.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gen2/time.c.o: lib/gen2/time.c +lib/CMakeFiles/pksav.dir/gen2/time.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_15) "Building C object lib/CMakeFiles/pksav.dir/gen2/time.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen2/time.c.o -MF CMakeFiles/pksav.dir/gen2/time.c.o.d -o CMakeFiles/pksav.dir/gen2/time.c.o -c /Users/spencer/Projects/pksav/lib/gen2/time.c + +lib/CMakeFiles/pksav.dir/gen2/time.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen2/time.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen2/time.c > CMakeFiles/pksav.dir/gen2/time.c.i + +lib/CMakeFiles/pksav.dir/gen2/time.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen2/time.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen2/time.c -o CMakeFiles/pksav.dir/gen2/time.c.s + +lib/CMakeFiles/pksav.dir/gba/checksum.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gba/checksum.c.o: lib/gba/checksum.c +lib/CMakeFiles/pksav.dir/gba/checksum.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_16) "Building C object lib/CMakeFiles/pksav.dir/gba/checksum.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/checksum.c.o -MF CMakeFiles/pksav.dir/gba/checksum.c.o.d -o CMakeFiles/pksav.dir/gba/checksum.c.o -c /Users/spencer/Projects/pksav/lib/gba/checksum.c + +lib/CMakeFiles/pksav.dir/gba/checksum.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/checksum.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/checksum.c > CMakeFiles/pksav.dir/gba/checksum.c.i + +lib/CMakeFiles/pksav.dir/gba/checksum.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/checksum.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/checksum.c -o CMakeFiles/pksav.dir/gba/checksum.c.s + +lib/CMakeFiles/pksav.dir/gba/crypt.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gba/crypt.c.o: lib/gba/crypt.c +lib/CMakeFiles/pksav.dir/gba/crypt.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_17) "Building C object lib/CMakeFiles/pksav.dir/gba/crypt.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/crypt.c.o -MF CMakeFiles/pksav.dir/gba/crypt.c.o.d -o CMakeFiles/pksav.dir/gba/crypt.c.o -c /Users/spencer/Projects/pksav/lib/gba/crypt.c + +lib/CMakeFiles/pksav.dir/gba/crypt.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/crypt.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/crypt.c > CMakeFiles/pksav.dir/gba/crypt.c.i + +lib/CMakeFiles/pksav.dir/gba/crypt.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/crypt.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/crypt.c -o CMakeFiles/pksav.dir/gba/crypt.c.s + +lib/CMakeFiles/pksav.dir/gba/save.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gba/save.c.o: lib/gba/save.c +lib/CMakeFiles/pksav.dir/gba/save.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_18) "Building C object lib/CMakeFiles/pksav.dir/gba/save.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/save.c.o -MF CMakeFiles/pksav.dir/gba/save.c.o.d -o CMakeFiles/pksav.dir/gba/save.c.o -c /Users/spencer/Projects/pksav/lib/gba/save.c + +lib/CMakeFiles/pksav.dir/gba/save.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/save.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/save.c > CMakeFiles/pksav.dir/gba/save.c.i + +lib/CMakeFiles/pksav.dir/gba/save.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/save.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/save.c -o CMakeFiles/pksav.dir/gba/save.c.s + +lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: lib/gba/shuffle.c +lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_19) "Building C object lib/CMakeFiles/pksav.dir/gba/shuffle.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/shuffle.c.o -MF CMakeFiles/pksav.dir/gba/shuffle.c.o.d -o CMakeFiles/pksav.dir/gba/shuffle.c.o -c /Users/spencer/Projects/pksav/lib/gba/shuffle.c + +lib/CMakeFiles/pksav.dir/gba/shuffle.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/shuffle.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/shuffle.c > CMakeFiles/pksav.dir/gba/shuffle.c.i + +lib/CMakeFiles/pksav.dir/gba/shuffle.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/shuffle.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/shuffle.c -o CMakeFiles/pksav.dir/gba/shuffle.c.s + +lib/CMakeFiles/pksav.dir/gba/text.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gba/text.c.o: lib/gba/text.c +lib/CMakeFiles/pksav.dir/gba/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_20) "Building C object lib/CMakeFiles/pksav.dir/gba/text.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gba/text.c.o -MF CMakeFiles/pksav.dir/gba/text.c.o.d -o CMakeFiles/pksav.dir/gba/text.c.o -c /Users/spencer/Projects/pksav/lib/gba/text.c + +lib/CMakeFiles/pksav.dir/gba/text.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gba/text.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gba/text.c > CMakeFiles/pksav.dir/gba/text.c.i + +lib/CMakeFiles/pksav.dir/gba/text.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gba/text.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gba/text.c -o CMakeFiles/pksav.dir/gba/text.c.s + +lib/CMakeFiles/pksav.dir/gen4/text.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gen4/text.c.o: lib/gen4/text.c +lib/CMakeFiles/pksav.dir/gen4/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_21) "Building C object lib/CMakeFiles/pksav.dir/gen4/text.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen4/text.c.o -MF CMakeFiles/pksav.dir/gen4/text.c.o.d -o CMakeFiles/pksav.dir/gen4/text.c.o -c /Users/spencer/Projects/pksav/lib/gen4/text.c + +lib/CMakeFiles/pksav.dir/gen4/text.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen4/text.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen4/text.c > CMakeFiles/pksav.dir/gen4/text.c.i + +lib/CMakeFiles/pksav.dir/gen4/text.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen4/text.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen4/text.c -o CMakeFiles/pksav.dir/gen4/text.c.s + +lib/CMakeFiles/pksav.dir/gen5/text.c.o: lib/CMakeFiles/pksav.dir/flags.make +lib/CMakeFiles/pksav.dir/gen5/text.c.o: lib/gen5/text.c +lib/CMakeFiles/pksav.dir/gen5/text.c.o: lib/CMakeFiles/pksav.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_22) "Building C object lib/CMakeFiles/pksav.dir/gen5/text.c.o" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -MD -MT lib/CMakeFiles/pksav.dir/gen5/text.c.o -MF CMakeFiles/pksav.dir/gen5/text.c.o.d -o CMakeFiles/pksav.dir/gen5/text.c.o -c /Users/spencer/Projects/pksav/lib/gen5/text.c + +lib/CMakeFiles/pksav.dir/gen5/text.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/pksav.dir/gen5/text.c.i" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -E /Users/spencer/Projects/pksav/lib/gen5/text.c > CMakeFiles/pksav.dir/gen5/text.c.i + +lib/CMakeFiles/pksav.dir/gen5/text.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/pksav.dir/gen5/text.c.s" + cd /Users/spencer/Projects/pksav/lib && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden -S /Users/spencer/Projects/pksav/lib/gen5/text.c -o CMakeFiles/pksav.dir/gen5/text.c.s + +# Object files for target pksav +pksav_OBJECTS = \ +"CMakeFiles/pksav.dir/error.c.o" \ +"CMakeFiles/pksav.dir/common/datetime.c.o" \ +"CMakeFiles/pksav.dir/common/pokedex.c.o" \ +"CMakeFiles/pksav.dir/common/prng.c.o" \ +"CMakeFiles/pksav.dir/common/sha1.c.o" \ +"CMakeFiles/pksav.dir/common/stats.c.o" \ +"CMakeFiles/pksav.dir/common/text_common.c.o" \ +"CMakeFiles/pksav.dir/common/xds_common.c.o" \ +"CMakeFiles/pksav.dir/math/base256.c.o" \ +"CMakeFiles/pksav.dir/math/bcd.c.o" \ +"CMakeFiles/pksav.dir/gen1/save.c.o" \ +"CMakeFiles/pksav.dir/gen1/text.c.o" \ +"CMakeFiles/pksav.dir/gen2/save.c.o" \ +"CMakeFiles/pksav.dir/gen2/text.c.o" \ +"CMakeFiles/pksav.dir/gen2/time.c.o" \ +"CMakeFiles/pksav.dir/gba/checksum.c.o" \ +"CMakeFiles/pksav.dir/gba/crypt.c.o" \ +"CMakeFiles/pksav.dir/gba/save.c.o" \ +"CMakeFiles/pksav.dir/gba/shuffle.c.o" \ +"CMakeFiles/pksav.dir/gba/text.c.o" \ +"CMakeFiles/pksav.dir/gen4/text.c.o" \ +"CMakeFiles/pksav.dir/gen5/text.c.o" + +# External object files for target pksav +pksav_EXTERNAL_OBJECTS = + +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/error.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/datetime.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/pokedex.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/prng.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/sha1.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/stats.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/text_common.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/common/xds_common.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/math/base256.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/math/bcd.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen1/save.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen1/text.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen2/save.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen2/text.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen2/time.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/checksum.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/crypt.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/save.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/shuffle.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gba/text.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen4/text.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/gen5/text.c.o +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/build.make +lib/libpksav.dylib: lib/CMakeFiles/pksav.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --bold --progress-dir=/Users/spencer/Projects/pksav/CMakeFiles --progress-num=$(CMAKE_PROGRESS_23) "Linking C shared library libpksav.dylib" + cd /Users/spencer/Projects/pksav/lib && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/pksav.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +lib/CMakeFiles/pksav.dir/build: lib/libpksav.dylib +.PHONY : lib/CMakeFiles/pksav.dir/build + +lib/CMakeFiles/pksav.dir/clean: + cd /Users/spencer/Projects/pksav/lib && $(CMAKE_COMMAND) -P CMakeFiles/pksav.dir/cmake_clean.cmake +.PHONY : lib/CMakeFiles/pksav.dir/clean + +lib/CMakeFiles/pksav.dir/depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /Users/spencer/Projects/pksav /Users/spencer/Projects/pksav/lib /Users/spencer/Projects/pksav /Users/spencer/Projects/pksav/lib /Users/spencer/Projects/pksav/lib/CMakeFiles/pksav.dir/DependInfo.cmake "--color=$(COLOR)" +.PHONY : lib/CMakeFiles/pksav.dir/depend + diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/cmake_clean.cmake b/libpksav/lib_bak/CMakeFiles/pksav.dir/cmake_clean.cmake new file mode 100644 index 0000000..abe2e62 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/cmake_clean.cmake @@ -0,0 +1,53 @@ +file(REMOVE_RECURSE + "CMakeFiles/pksav.dir/common/datetime.c.o" + "CMakeFiles/pksav.dir/common/datetime.c.o.d" + "CMakeFiles/pksav.dir/common/pokedex.c.o" + "CMakeFiles/pksav.dir/common/pokedex.c.o.d" + "CMakeFiles/pksav.dir/common/prng.c.o" + "CMakeFiles/pksav.dir/common/prng.c.o.d" + "CMakeFiles/pksav.dir/common/sha1.c.o" + "CMakeFiles/pksav.dir/common/sha1.c.o.d" + "CMakeFiles/pksav.dir/common/stats.c.o" + "CMakeFiles/pksav.dir/common/stats.c.o.d" + "CMakeFiles/pksav.dir/common/text_common.c.o" + "CMakeFiles/pksav.dir/common/text_common.c.o.d" + "CMakeFiles/pksav.dir/common/xds_common.c.o" + "CMakeFiles/pksav.dir/common/xds_common.c.o.d" + "CMakeFiles/pksav.dir/error.c.o" + "CMakeFiles/pksav.dir/error.c.o.d" + "CMakeFiles/pksav.dir/gba/checksum.c.o" + "CMakeFiles/pksav.dir/gba/checksum.c.o.d" + "CMakeFiles/pksav.dir/gba/crypt.c.o" + "CMakeFiles/pksav.dir/gba/crypt.c.o.d" + "CMakeFiles/pksav.dir/gba/save.c.o" + "CMakeFiles/pksav.dir/gba/save.c.o.d" + "CMakeFiles/pksav.dir/gba/shuffle.c.o" + "CMakeFiles/pksav.dir/gba/shuffle.c.o.d" + "CMakeFiles/pksav.dir/gba/text.c.o" + "CMakeFiles/pksav.dir/gba/text.c.o.d" + "CMakeFiles/pksav.dir/gen1/save.c.o" + "CMakeFiles/pksav.dir/gen1/save.c.o.d" + "CMakeFiles/pksav.dir/gen1/text.c.o" + "CMakeFiles/pksav.dir/gen1/text.c.o.d" + "CMakeFiles/pksav.dir/gen2/save.c.o" + "CMakeFiles/pksav.dir/gen2/save.c.o.d" + "CMakeFiles/pksav.dir/gen2/text.c.o" + "CMakeFiles/pksav.dir/gen2/text.c.o.d" + "CMakeFiles/pksav.dir/gen2/time.c.o" + "CMakeFiles/pksav.dir/gen2/time.c.o.d" + "CMakeFiles/pksav.dir/gen4/text.c.o" + "CMakeFiles/pksav.dir/gen4/text.c.o.d" + "CMakeFiles/pksav.dir/gen5/text.c.o" + "CMakeFiles/pksav.dir/gen5/text.c.o.d" + "CMakeFiles/pksav.dir/math/base256.c.o" + "CMakeFiles/pksav.dir/math/base256.c.o.d" + "CMakeFiles/pksav.dir/math/bcd.c.o" + "CMakeFiles/pksav.dir/math/bcd.c.o.d" + "libpksav.dylib" + "libpksav.pdb" +) + +# Per-language clean rules from dependency scanning. +foreach(lang C) + include(CMakeFiles/pksav.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o new file mode 100644 index 0000000..06f9ce7 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o.d new file mode 100644 index 0000000..8b629c5 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o.d @@ -0,0 +1,42 @@ +lib/CMakeFiles/pksav.dir/common/datetime.c.o: \ + /Users/spencer/Projects/pksav/lib/common/datetime.c \ + /Users/spencer/Projects/pksav/include/pksav/common/datetime.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o new file mode 100644 index 0000000..0d9cc72 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o.d new file mode 100644 index 0000000..a4ec6bc --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o.d @@ -0,0 +1,37 @@ +lib/CMakeFiles/pksav.dir/common/pokedex.c.o: \ + /Users/spencer/Projects/pksav/lib/common/pokedex.c \ + /Users/spencer/Projects/pksav/include/pksav/common/pokedex.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o new file mode 100644 index 0000000..64bd7bf Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o.d new file mode 100644 index 0000000..042ca12 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o.d @@ -0,0 +1,75 @@ +lib/CMakeFiles/pksav.dir/common/prng.c.o: \ + /Users/spencer/Projects/pksav/lib/common/prng.c \ + /Users/spencer/Projects/pksav/include/pksav/common/prng.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o new file mode 100644 index 0000000..8ff8235 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o.d new file mode 100644 index 0000000..963d110 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o.d @@ -0,0 +1,44 @@ +lib/CMakeFiles/pksav.dir/common/sha1.c.o: \ + /Users/spencer/Projects/pksav/lib/common/sha1.c \ + /Users/spencer/Projects/pksav/lib/common/sha1.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o new file mode 100644 index 0000000..d23865b Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o.d new file mode 100644 index 0000000..d12520c --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o.d @@ -0,0 +1,36 @@ +lib/CMakeFiles/pksav.dir/common/stats.c.o: \ + /Users/spencer/Projects/pksav/lib/common/stats.c \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/common/stats.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o new file mode 100644 index 0000000..27d69bd Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o.d new file mode 100644 index 0000000..3e68cec --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o.d @@ -0,0 +1,106 @@ +lib/CMakeFiles/pksav.dir/common/text_common.c.o: \ + /Users/spencer/Projects/pksav/lib/common/text_common.c \ + /Users/spencer/Projects/pksav/lib/common/text_common.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/locale.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_locale.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o new file mode 100644 index 0000000..208cb43 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o.d new file mode 100644 index 0000000..bf383f4 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o.d @@ -0,0 +1,78 @@ +lib/CMakeFiles/pksav.dir/common/xds_common.c.o: \ + /Users/spencer/Projects/pksav/lib/common/xds_common.c \ + /Users/spencer/Projects/pksav/lib/common/xds_common.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.make b/libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.make new file mode 100644 index 0000000..156641e --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.make @@ -0,0 +1,2 @@ +# Empty compiler generated dependencies file for pksav. +# This may be replaced when dependencies are built. diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.ts b/libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.ts new file mode 100644 index 0000000..a612c1f --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.ts @@ -0,0 +1,2 @@ +# CMAKE generated file: DO NOT EDIT! +# Timestamp file for compiler generated dependencies management for pksav. diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/depend.make b/libpksav/lib_bak/CMakeFiles/pksav.dir/depend.make new file mode 100644 index 0000000..10cde72 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for pksav. +# This may be replaced when dependencies are built. diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o new file mode 100644 index 0000000..ff05359 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o.d new file mode 100644 index 0000000..9f69b13 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o.d @@ -0,0 +1,4 @@ +lib/CMakeFiles/pksav.dir/error.c.o: \ + /Users/spencer/Projects/pksav/lib/error.c \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/flags.make b/libpksav/lib_bak/CMakeFiles/pksav.dir/flags.make new file mode 100644 index 0000000..bcfc931 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/flags.make @@ -0,0 +1,56 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# compile C with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc +C_DEFINES = -DPKSAV_DLL_EXPORTS -Dpksav_EXPORTS + +C_INCLUDES = -I/Users/spencer/Projects/pksav/include + +C_FLAGSarm64 = -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC + +C_FLAGS = -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC + +# Custom flags: lib/CMakeFiles/pksav.dir/error.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/common/datetime.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/common/pokedex.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/common/prng.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/common/sha1.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/common/stats.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/common/text_common.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/common/xds_common.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/math/base256.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/math/bcd.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gen1/save.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gen1/text.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gen2/save.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gen2/text.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gen2/time.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gba/checksum.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gba/crypt.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gba/save.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gba/shuffle.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gba/text.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gen4/text.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + +# Custom flags: lib/CMakeFiles/pksav.dir/gen5/text.c.o_FLAGS = -O3 -std=gnu99 -Wall -Wextra -Werror -fvisibility=hidden + diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o new file mode 100644 index 0000000..9522dc3 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o.d new file mode 100644 index 0000000..fef6b53 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o.d @@ -0,0 +1,78 @@ +lib/CMakeFiles/pksav.dir/gba/checksum.c.o: \ + /Users/spencer/Projects/pksav/lib/gba/checksum.c \ + /Users/spencer/Projects/pksav/lib/gba/checksum.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o new file mode 100644 index 0000000..e1683f0 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o.d new file mode 100644 index 0000000..ca6c33e --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o.d @@ -0,0 +1,86 @@ +lib/CMakeFiles/pksav.dir/gba/crypt.c.o: \ + /Users/spencer/Projects/pksav/lib/gba/crypt.c \ + /Users/spencer/Projects/pksav/lib/gba/crypt.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav/include/pksav/common/item.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ + /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o new file mode 100644 index 0000000..b77e709 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o.d new file mode 100644 index 0000000..a5b7de3 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o.d @@ -0,0 +1,91 @@ +lib/CMakeFiles/pksav.dir/gba/save.c.o: \ + /Users/spencer/Projects/pksav/lib/gba/save.c \ + /Users/spencer/Projects/pksav/lib/gba/checksum.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Users/spencer/Projects/pksav/lib/gba/crypt.h \ + /Users/spencer/Projects/pksav/lib/gba/shuffle.h \ + /Users/spencer/Projects/pksav/include/pksav/math/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o new file mode 100644 index 0000000..50db8e1 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o.d new file mode 100644 index 0000000..2d3b9cc --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o.d @@ -0,0 +1,88 @@ +lib/CMakeFiles/pksav.dir/gba/shuffle.c.o: \ + /Users/spencer/Projects/pksav/lib/gba/shuffle.c \ + /Users/spencer/Projects/pksav/lib/gba/checksum.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/pokemon.h \ + /Users/spencer/Projects/pksav/include/pksav/common/contest_stats.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav/include/pksav/common/trainer_id.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/items.h \ + /Users/spencer/Projects/pksav/include/pksav/common/item.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/save_structs.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Users/spencer/Projects/pksav/lib/gba/crypt.h \ + /Users/spencer/Projects/pksav/lib/gba/shuffle.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o new file mode 100644 index 0000000..7d9dfb6 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o.d new file mode 100644 index 0000000..db45cca --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o.d @@ -0,0 +1,101 @@ +lib/CMakeFiles/pksav.dir/gba/text.c.o: \ + /Users/spencer/Projects/pksav/lib/gba/text.c \ + /Users/spencer/Projects/pksav/lib/gba/../common/text_common.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Users/spencer/Projects/pksav/include/pksav/gba/text.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o new file mode 100644 index 0000000..5051181 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o.d new file mode 100644 index 0000000..8fcd878 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o.d @@ -0,0 +1,102 @@ +lib/CMakeFiles/pksav.dir/gen1/save.c.o: \ + /Users/spencer/Projects/pksav/lib/gen1/save.c \ + /Users/spencer/Projects/pksav/include/pksav/gen1/save.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/gen1/items.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav/include/pksav/gen1/pokemon.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o new file mode 100644 index 0000000..5b4c56e Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o.d new file mode 100644 index 0000000..7ad3bf3 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o.d @@ -0,0 +1,101 @@ +lib/CMakeFiles/pksav.dir/gen1/text.c.o: \ + /Users/spencer/Projects/pksav/lib/gen1/text.c \ + /Users/spencer/Projects/pksav/lib/gen1/../common/text_common.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Users/spencer/Projects/pksav/include/pksav/gen1/text.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o new file mode 100644 index 0000000..e99ffe6 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o.d new file mode 100644 index 0000000..a41ccf2 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o.d @@ -0,0 +1,107 @@ +lib/CMakeFiles/pksav.dir/gen2/save.c.o: \ + /Users/spencer/Projects/pksav/lib/gen2/save.c \ + /Users/spencer/Projects/pksav/include/pksav/gen2/save.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/gen2/items.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Users/spencer/Projects/pksav/include/pksav/gen2/pokemon.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Users/spencer/Projects/pksav/include/pksav/gen2/text.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Users/spencer/Projects/pksav/include/pksav/gen2/time.h \ + /Users/spencer/Projects/pksav/include/pksav/math/bcd.h \ + /Users/spencer/Projects/pksav/include/pksav/math/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdbool.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/wchar.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mbstate_t.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdarg.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/__wctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wint_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_wctype_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctype.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/runetype.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o new file mode 100644 index 0000000..5e9098f Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o.d new file mode 100644 index 0000000..3cecd60 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o.d @@ -0,0 +1,101 @@ +lib/CMakeFiles/pksav.dir/gen2/text.c.o: \ + /Users/spencer/Projects/pksav/lib/gen2/text.c \ + /Users/spencer/Projects/pksav/lib/gen2/../common/text_common.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Users/spencer/Projects/pksav/include/pksav/gen2/text.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o new file mode 100644 index 0000000..2b143e2 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o.d new file mode 100644 index 0000000..42c02c2 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o.d @@ -0,0 +1,42 @@ +lib/CMakeFiles/pksav.dir/gen2/time.c.o: \ + /Users/spencer/Projects/pksav/lib/gen2/time.c \ + /Users/spencer/Projects/pksav/include/pksav/gen2/time.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/time.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_clock_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o new file mode 100644 index 0000000..6b58287 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o.d new file mode 100644 index 0000000..f209473 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o.d @@ -0,0 +1,101 @@ +lib/CMakeFiles/pksav.dir/gen4/text.c.o: \ + /Users/spencer/Projects/pksav/lib/gen4/text.c \ + /Users/spencer/Projects/pksav/lib/gen4/../common/text_common.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/unistd.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_posix_vdisable.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_seek_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_gid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_useconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_def.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timespec.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_time_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_suseconds_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_setsize.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_set.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_clr.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_isset.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_zero.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_fd_copy.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_select.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uuid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/gethostuuid.h \ + /Users/spencer/Projects/pksav/include/pksav/gen4/text.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o new file mode 100644 index 0000000..815e0c8 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o.d new file mode 100644 index 0000000..383e84d --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o.d @@ -0,0 +1,71 @@ +lib/CMakeFiles/pksav.dir/gen5/text.c.o: \ + /Users/spencer/Projects/pksav/lib/gen5/text.c \ + /Users/spencer/Projects/pksav/lib/gen5/../common/xds_common.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Users/spencer/Projects/pksav/include/pksav/gen5/text.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/link.txt b/libpksav/lib_bak/CMakeFiles/pksav.dir/link.txt new file mode 100644 index 0000000..9568c2b --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/link.txt @@ -0,0 +1 @@ +/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -dynamiclib -Wl,-headerpad_max_install_names -o libpksav.dylib -install_name /Users/spencer/Projects/pksav/lib/libpksav.dylib CMakeFiles/pksav.dir/error.c.o CMakeFiles/pksav.dir/common/datetime.c.o CMakeFiles/pksav.dir/common/pokedex.c.o CMakeFiles/pksav.dir/common/prng.c.o CMakeFiles/pksav.dir/common/sha1.c.o CMakeFiles/pksav.dir/common/stats.c.o CMakeFiles/pksav.dir/common/text_common.c.o CMakeFiles/pksav.dir/common/xds_common.c.o CMakeFiles/pksav.dir/math/base256.c.o CMakeFiles/pksav.dir/math/bcd.c.o CMakeFiles/pksav.dir/gen1/save.c.o CMakeFiles/pksav.dir/gen1/text.c.o CMakeFiles/pksav.dir/gen2/save.c.o CMakeFiles/pksav.dir/gen2/text.c.o CMakeFiles/pksav.dir/gen2/time.c.o CMakeFiles/pksav.dir/gba/checksum.c.o CMakeFiles/pksav.dir/gba/crypt.c.o CMakeFiles/pksav.dir/gba/save.c.o CMakeFiles/pksav.dir/gba/shuffle.c.o CMakeFiles/pksav.dir/gba/text.c.o CMakeFiles/pksav.dir/gen4/text.c.o CMakeFiles/pksav.dir/gen5/text.c.o -lm diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o new file mode 100644 index 0000000..67f5bfb Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o.d new file mode 100644 index 0000000..8e5fbb0 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o.d @@ -0,0 +1,79 @@ +lib/CMakeFiles/pksav.dir/math/base256.c.o: \ + /Users/spencer/Projects/pksav/lib/math/base256.c \ + /Users/spencer/Projects/pksav/include/pksav/math/base256.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o new file mode 100644 index 0000000..2e35648 Binary files /dev/null and b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o differ diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o.d b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o.d new file mode 100644 index 0000000..d7d0c0a --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o.d @@ -0,0 +1,86 @@ +lib/CMakeFiles/pksav.dir/math/bcd.c.o: \ + /Users/spencer/Projects/pksav/lib/math/bcd.c \ + /Users/spencer/Projects/pksav/include/pksav/math/bcd.h \ + /Users/spencer/Projects/pksav/include/pksav/config.h \ + /Users/spencer/Projects/pksav/include/pksav/error.h \ + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdint.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uint64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/cdefs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_symbol_aliasing.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_posix_availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_intptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int8_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int16_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int32_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_u_int64_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uintptr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_intmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types/_uintmax_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdlib.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/Availability.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityVersions.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/AvailabilityInternal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_types.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/wait.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_pid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_id_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/appleapiopts.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/signal.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/_mcontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/machine/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/arm/_structs.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_pthread/_pthread_attr_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigaltstack.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ucontext.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_sigset_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_size_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_uid_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/resource.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_timeval.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/machine/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_endian.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/_OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/libkern/arm/OSByteOrder.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/arm/arch.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/alloca.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ct_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rune_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_wchar_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_null.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/malloc/_malloc.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_dev_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_mode_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/math.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_va_list.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/_ctermid.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_off_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_ssize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_stdio.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_common.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/string.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_rsize_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/sys/_types/_errno_t.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_strings.h \ + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/secure/_string.h diff --git a/libpksav/lib_bak/CMakeFiles/pksav.dir/progress.make b/libpksav/lib_bak/CMakeFiles/pksav.dir/progress.make new file mode 100644 index 0000000..5366b1d --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/pksav.dir/progress.make @@ -0,0 +1,24 @@ +CMAKE_PROGRESS_1 = 14 +CMAKE_PROGRESS_2 = 15 +CMAKE_PROGRESS_3 = 16 +CMAKE_PROGRESS_4 = 17 +CMAKE_PROGRESS_5 = 18 +CMAKE_PROGRESS_6 = 19 +CMAKE_PROGRESS_7 = 20 +CMAKE_PROGRESS_8 = 21 +CMAKE_PROGRESS_9 = 22 +CMAKE_PROGRESS_10 = 23 +CMAKE_PROGRESS_11 = 24 +CMAKE_PROGRESS_12 = 25 +CMAKE_PROGRESS_13 = 26 +CMAKE_PROGRESS_14 = 27 +CMAKE_PROGRESS_15 = 28 +CMAKE_PROGRESS_16 = 29 +CMAKE_PROGRESS_17 = 30 +CMAKE_PROGRESS_18 = 31 +CMAKE_PROGRESS_19 = 32 +CMAKE_PROGRESS_20 = 33 +CMAKE_PROGRESS_21 = 34 +CMAKE_PROGRESS_22 = 35 +CMAKE_PROGRESS_23 = 36 + diff --git a/libpksav/lib_bak/CMakeFiles/progress.marks b/libpksav/lib_bak/CMakeFiles/progress.marks new file mode 100644 index 0000000..4099407 --- /dev/null +++ b/libpksav/lib_bak/CMakeFiles/progress.marks @@ -0,0 +1 @@ +23 diff --git a/libpksav/lib_bak/CMakeLists.txt b/libpksav/lib_bak/CMakeLists.txt new file mode 100644 index 0000000..5784038 --- /dev/null +++ b/libpksav/lib_bak/CMakeLists.txt @@ -0,0 +1,104 @@ +# +# Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +INCLUDE(StaticAnalysisTools) + +INCLUDE_DIRECTORIES( + ${PKSAV_SOURCE_DIR}/include + ${PKSAV_BINARY_DIR}/include +) + +ADD_SUBDIRECTORY(gen1) +ADD_SUBDIRECTORY(gen2) +ADD_SUBDIRECTORY(gba) +ADD_SUBDIRECTORY(gen4) +ADD_SUBDIRECTORY(gen5) + +ADD_SUBDIRECTORY(common) +ADD_SUBDIRECTORY(math) + +SET(pksav_c_sources + error.c + ${pksav_common_sources} + ${pksav_math_sources} + ${pksav_gen1_sources} + ${pksav_gen2_sources} + ${pksav_gba_sources} + ${pksav_gcn_sources} + ${pksav_gen4_sources} + ${pksav_gen5_sources} +) + +SET_SOURCE_FILES_PROPERTIES(${pksav_c_sources} + PROPERTIES COMPILE_FLAGS "${PKSAV_C_FLAGS}" +) + +# +# Add DLL resource file to Windows builds +# +IF(WIN32) + IF(MINGW) + SET(LIB_PREFIX "lib") + ENDIF(MINGW) + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/pksav.rc.in + ${CMAKE_CURRENT_BINARY_DIR}/pksav.rc + @ONLY) + SET(pksav_rc ${CMAKE_CURRENT_BINARY_DIR}/pksav.rc) +ENDIF() + +IF(PKSAV_STATIC) + ADD_LIBRARY(pksav STATIC ${pksav_c_sources} ${pksav_rc}) + + INSTALL( + TARGETS pksav + LIBRARY DESTINATION ${LIBRARY_DIR} COMPONENT Libraries # .a + ARCHIVE DESTINATION ${LIBRARY_DIR} COMPONENT Libraries # .lib + ) +ELSE() + ADD_LIBRARY(pksav SHARED ${pksav_c_sources} ${pksav_rc}) + SET_TARGET_PROPERTIES(pksav PROPERTIES DEFINE_SYMBOL "PKSAV_DLL_EXPORTS") + ADD_DEFINITIONS(-Dpksav_EXPORTS) + + INSTALL( + TARGETS pksav + LIBRARY DESTINATION ${LIBRARY_DIR} COMPONENT Libraries # .so + ARCHIVE DESTINATION ${LIBRARY_DIR} COMPONENT Libraries # .lib + RUNTIME DESTINATION ${RUNTIME_DIR} COMPONENT Libraries # .dll + ) +ENDIF() + +IF(UNIX) + TARGET_LINK_LIBRARIES(pksav m) +ENDIF() + +# +# Static Analysis +# +IF(PKSAV_USE_CLANGTIDY) + SET_TARGET_PROPERTIES( + pksav PROPERTIES + C_CLANG_TIDY "${CLANG_TIDY_PROPERTY}" + ) +ENDIF() + +# +# pkg-config file +# +IF(NOT PKSAV_USED_AS_SUBPROJECT) + FIND_PACKAGE(PkgConfig) + IF(PKG_CONFIG_FOUND) + CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/pksav.pc.in + ${CMAKE_CURRENT_BINARY_DIR}/pksav.pc + @ONLY) + INSTALL( + FILES ${CMAKE_CURRENT_BINARY_DIR}/pksav.pc + DESTINATION ${LIBRARY_DIR}/pkgconfig + ) + ENDIF(PKG_CONFIG_FOUND) +ENDIF() diff --git a/libpksav/lib_bak/Makefile b/libpksav/lib_bak/Makefile new file mode 100644 index 0000000..298168f --- /dev/null +++ b/libpksav/lib_bak/Makefile @@ -0,0 +1,809 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Convenience name for target. +lib/CMakeFiles/pksav.dir/rule: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/CMakeFiles/pksav.dir/rule +.PHONY : lib/CMakeFiles/pksav.dir/rule + +# Convenience name for target. +pksav: lib/CMakeFiles/pksav.dir/rule +.PHONY : pksav + +# fast build rule for target. +pksav/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/build +.PHONY : pksav/fast + +common/datetime.o: common/datetime.c.o +.PHONY : common/datetime.o + +# target to build an object file +common/datetime.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/datetime.c.o +.PHONY : common/datetime.c.o + +common/datetime.i: common/datetime.c.i +.PHONY : common/datetime.i + +# target to preprocess a source file +common/datetime.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/datetime.c.i +.PHONY : common/datetime.c.i + +common/datetime.s: common/datetime.c.s +.PHONY : common/datetime.s + +# target to generate assembly for a file +common/datetime.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/datetime.c.s +.PHONY : common/datetime.c.s + +common/pokedex.o: common/pokedex.c.o +.PHONY : common/pokedex.o + +# target to build an object file +common/pokedex.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.o +.PHONY : common/pokedex.c.o + +common/pokedex.i: common/pokedex.c.i +.PHONY : common/pokedex.i + +# target to preprocess a source file +common/pokedex.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.i +.PHONY : common/pokedex.c.i + +common/pokedex.s: common/pokedex.c.s +.PHONY : common/pokedex.s + +# target to generate assembly for a file +common/pokedex.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/pokedex.c.s +.PHONY : common/pokedex.c.s + +common/prng.o: common/prng.c.o +.PHONY : common/prng.o + +# target to build an object file +common/prng.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/prng.c.o +.PHONY : common/prng.c.o + +common/prng.i: common/prng.c.i +.PHONY : common/prng.i + +# target to preprocess a source file +common/prng.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/prng.c.i +.PHONY : common/prng.c.i + +common/prng.s: common/prng.c.s +.PHONY : common/prng.s + +# target to generate assembly for a file +common/prng.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/prng.c.s +.PHONY : common/prng.c.s + +common/sha1.o: common/sha1.c.o +.PHONY : common/sha1.o + +# target to build an object file +common/sha1.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/sha1.c.o +.PHONY : common/sha1.c.o + +common/sha1.i: common/sha1.c.i +.PHONY : common/sha1.i + +# target to preprocess a source file +common/sha1.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/sha1.c.i +.PHONY : common/sha1.c.i + +common/sha1.s: common/sha1.c.s +.PHONY : common/sha1.s + +# target to generate assembly for a file +common/sha1.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/sha1.c.s +.PHONY : common/sha1.c.s + +common/stats.o: common/stats.c.o +.PHONY : common/stats.o + +# target to build an object file +common/stats.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.o +.PHONY : common/stats.c.o + +common/stats.i: common/stats.c.i +.PHONY : common/stats.i + +# target to preprocess a source file +common/stats.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.i +.PHONY : common/stats.c.i + +common/stats.s: common/stats.c.s +.PHONY : common/stats.s + +# target to generate assembly for a file +common/stats.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/stats.c.s +.PHONY : common/stats.c.s + +common/text_common.o: common/text_common.c.o +.PHONY : common/text_common.o + +# target to build an object file +common/text_common.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/text_common.c.o +.PHONY : common/text_common.c.o + +common/text_common.i: common/text_common.c.i +.PHONY : common/text_common.i + +# target to preprocess a source file +common/text_common.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/text_common.c.i +.PHONY : common/text_common.c.i + +common/text_common.s: common/text_common.c.s +.PHONY : common/text_common.s + +# target to generate assembly for a file +common/text_common.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/text_common.c.s +.PHONY : common/text_common.c.s + +common/xds_common.o: common/xds_common.c.o +.PHONY : common/xds_common.o + +# target to build an object file +common/xds_common.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.o +.PHONY : common/xds_common.c.o + +common/xds_common.i: common/xds_common.c.i +.PHONY : common/xds_common.i + +# target to preprocess a source file +common/xds_common.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.i +.PHONY : common/xds_common.c.i + +common/xds_common.s: common/xds_common.c.s +.PHONY : common/xds_common.s + +# target to generate assembly for a file +common/xds_common.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/common/xds_common.c.s +.PHONY : common/xds_common.c.s + +error.o: error.c.o +.PHONY : error.o + +# target to build an object file +error.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.o +.PHONY : error.c.o + +error.i: error.c.i +.PHONY : error.i + +# target to preprocess a source file +error.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.i +.PHONY : error.c.i + +error.s: error.c.s +.PHONY : error.s + +# target to generate assembly for a file +error.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/error.c.s +.PHONY : error.c.s + +gba/checksum.o: gba/checksum.c.o +.PHONY : gba/checksum.o + +# target to build an object file +gba/checksum.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.o +.PHONY : gba/checksum.c.o + +gba/checksum.i: gba/checksum.c.i +.PHONY : gba/checksum.i + +# target to preprocess a source file +gba/checksum.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.i +.PHONY : gba/checksum.c.i + +gba/checksum.s: gba/checksum.c.s +.PHONY : gba/checksum.s + +# target to generate assembly for a file +gba/checksum.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/checksum.c.s +.PHONY : gba/checksum.c.s + +gba/crypt.o: gba/crypt.c.o +.PHONY : gba/crypt.o + +# target to build an object file +gba/crypt.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.o +.PHONY : gba/crypt.c.o + +gba/crypt.i: gba/crypt.c.i +.PHONY : gba/crypt.i + +# target to preprocess a source file +gba/crypt.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.i +.PHONY : gba/crypt.c.i + +gba/crypt.s: gba/crypt.c.s +.PHONY : gba/crypt.s + +# target to generate assembly for a file +gba/crypt.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/crypt.c.s +.PHONY : gba/crypt.c.s + +gba/save.o: gba/save.c.o +.PHONY : gba/save.o + +# target to build an object file +gba/save.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.o +.PHONY : gba/save.c.o + +gba/save.i: gba/save.c.i +.PHONY : gba/save.i + +# target to preprocess a source file +gba/save.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.i +.PHONY : gba/save.c.i + +gba/save.s: gba/save.c.s +.PHONY : gba/save.s + +# target to generate assembly for a file +gba/save.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/save.c.s +.PHONY : gba/save.c.s + +gba/shuffle.o: gba/shuffle.c.o +.PHONY : gba/shuffle.o + +# target to build an object file +gba/shuffle.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.o +.PHONY : gba/shuffle.c.o + +gba/shuffle.i: gba/shuffle.c.i +.PHONY : gba/shuffle.i + +# target to preprocess a source file +gba/shuffle.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.i +.PHONY : gba/shuffle.c.i + +gba/shuffle.s: gba/shuffle.c.s +.PHONY : gba/shuffle.s + +# target to generate assembly for a file +gba/shuffle.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/shuffle.c.s +.PHONY : gba/shuffle.c.s + +gba/text.o: gba/text.c.o +.PHONY : gba/text.o + +# target to build an object file +gba/text.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.o +.PHONY : gba/text.c.o + +gba/text.i: gba/text.c.i +.PHONY : gba/text.i + +# target to preprocess a source file +gba/text.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.i +.PHONY : gba/text.c.i + +gba/text.s: gba/text.c.s +.PHONY : gba/text.s + +# target to generate assembly for a file +gba/text.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gba/text.c.s +.PHONY : gba/text.c.s + +gen1/save.o: gen1/save.c.o +.PHONY : gen1/save.o + +# target to build an object file +gen1/save.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.o +.PHONY : gen1/save.c.o + +gen1/save.i: gen1/save.c.i +.PHONY : gen1/save.i + +# target to preprocess a source file +gen1/save.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.i +.PHONY : gen1/save.c.i + +gen1/save.s: gen1/save.c.s +.PHONY : gen1/save.s + +# target to generate assembly for a file +gen1/save.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/save.c.s +.PHONY : gen1/save.c.s + +gen1/text.o: gen1/text.c.o +.PHONY : gen1/text.o + +# target to build an object file +gen1/text.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.o +.PHONY : gen1/text.c.o + +gen1/text.i: gen1/text.c.i +.PHONY : gen1/text.i + +# target to preprocess a source file +gen1/text.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.i +.PHONY : gen1/text.c.i + +gen1/text.s: gen1/text.c.s +.PHONY : gen1/text.s + +# target to generate assembly for a file +gen1/text.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen1/text.c.s +.PHONY : gen1/text.c.s + +gen2/save.o: gen2/save.c.o +.PHONY : gen2/save.o + +# target to build an object file +gen2/save.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.o +.PHONY : gen2/save.c.o + +gen2/save.i: gen2/save.c.i +.PHONY : gen2/save.i + +# target to preprocess a source file +gen2/save.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.i +.PHONY : gen2/save.c.i + +gen2/save.s: gen2/save.c.s +.PHONY : gen2/save.s + +# target to generate assembly for a file +gen2/save.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/save.c.s +.PHONY : gen2/save.c.s + +gen2/text.o: gen2/text.c.o +.PHONY : gen2/text.o + +# target to build an object file +gen2/text.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.o +.PHONY : gen2/text.c.o + +gen2/text.i: gen2/text.c.i +.PHONY : gen2/text.i + +# target to preprocess a source file +gen2/text.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.i +.PHONY : gen2/text.c.i + +gen2/text.s: gen2/text.c.s +.PHONY : gen2/text.s + +# target to generate assembly for a file +gen2/text.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/text.c.s +.PHONY : gen2/text.c.s + +gen2/time.o: gen2/time.c.o +.PHONY : gen2/time.o + +# target to build an object file +gen2/time.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.o +.PHONY : gen2/time.c.o + +gen2/time.i: gen2/time.c.i +.PHONY : gen2/time.i + +# target to preprocess a source file +gen2/time.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.i +.PHONY : gen2/time.c.i + +gen2/time.s: gen2/time.c.s +.PHONY : gen2/time.s + +# target to generate assembly for a file +gen2/time.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen2/time.c.s +.PHONY : gen2/time.c.s + +gen4/text.o: gen4/text.c.o +.PHONY : gen4/text.o + +# target to build an object file +gen4/text.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.o +.PHONY : gen4/text.c.o + +gen4/text.i: gen4/text.c.i +.PHONY : gen4/text.i + +# target to preprocess a source file +gen4/text.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.i +.PHONY : gen4/text.c.i + +gen4/text.s: gen4/text.c.s +.PHONY : gen4/text.s + +# target to generate assembly for a file +gen4/text.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen4/text.c.s +.PHONY : gen4/text.c.s + +gen5/text.o: gen5/text.c.o +.PHONY : gen5/text.o + +# target to build an object file +gen5/text.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.o +.PHONY : gen5/text.c.o + +gen5/text.i: gen5/text.c.i +.PHONY : gen5/text.i + +# target to preprocess a source file +gen5/text.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.i +.PHONY : gen5/text.c.i + +gen5/text.s: gen5/text.c.s +.PHONY : gen5/text.s + +# target to generate assembly for a file +gen5/text.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/gen5/text.c.s +.PHONY : gen5/text.c.s + +math/base256.o: math/base256.c.o +.PHONY : math/base256.o + +# target to build an object file +math/base256.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.o +.PHONY : math/base256.c.o + +math/base256.i: math/base256.c.i +.PHONY : math/base256.i + +# target to preprocess a source file +math/base256.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.i +.PHONY : math/base256.c.i + +math/base256.s: math/base256.c.s +.PHONY : math/base256.s + +# target to generate assembly for a file +math/base256.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/base256.c.s +.PHONY : math/base256.c.s + +math/bcd.o: math/bcd.c.o +.PHONY : math/bcd.o + +# target to build an object file +math/bcd.c.o: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.o +.PHONY : math/bcd.c.o + +math/bcd.i: math/bcd.c.i +.PHONY : math/bcd.i + +# target to preprocess a source file +math/bcd.c.i: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.i +.PHONY : math/bcd.c.i + +math/bcd.s: math/bcd.c.s +.PHONY : math/bcd.s + +# target to generate assembly for a file +math/bcd.c.s: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f lib/CMakeFiles/pksav.dir/build.make lib/CMakeFiles/pksav.dir/math/bcd.c.s +.PHONY : math/bcd.c.s + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" + @echo "... pksav" + @echo "... common/datetime.o" + @echo "... common/datetime.i" + @echo "... common/datetime.s" + @echo "... common/pokedex.o" + @echo "... common/pokedex.i" + @echo "... common/pokedex.s" + @echo "... common/prng.o" + @echo "... common/prng.i" + @echo "... common/prng.s" + @echo "... common/sha1.o" + @echo "... common/sha1.i" + @echo "... common/sha1.s" + @echo "... common/stats.o" + @echo "... common/stats.i" + @echo "... common/stats.s" + @echo "... common/text_common.o" + @echo "... common/text_common.i" + @echo "... common/text_common.s" + @echo "... common/xds_common.o" + @echo "... common/xds_common.i" + @echo "... common/xds_common.s" + @echo "... error.o" + @echo "... error.i" + @echo "... error.s" + @echo "... gba/checksum.o" + @echo "... gba/checksum.i" + @echo "... gba/checksum.s" + @echo "... gba/crypt.o" + @echo "... gba/crypt.i" + @echo "... gba/crypt.s" + @echo "... gba/save.o" + @echo "... gba/save.i" + @echo "... gba/save.s" + @echo "... gba/shuffle.o" + @echo "... gba/shuffle.i" + @echo "... gba/shuffle.s" + @echo "... gba/text.o" + @echo "... gba/text.i" + @echo "... gba/text.s" + @echo "... gen1/save.o" + @echo "... gen1/save.i" + @echo "... gen1/save.s" + @echo "... gen1/text.o" + @echo "... gen1/text.i" + @echo "... gen1/text.s" + @echo "... gen2/save.o" + @echo "... gen2/save.i" + @echo "... gen2/save.s" + @echo "... gen2/text.o" + @echo "... gen2/text.i" + @echo "... gen2/text.s" + @echo "... gen2/time.o" + @echo "... gen2/time.i" + @echo "... gen2/time.s" + @echo "... gen4/text.o" + @echo "... gen4/text.i" + @echo "... gen4/text.s" + @echo "... gen5/text.o" + @echo "... gen5/text.i" + @echo "... gen5/text.s" + @echo "... math/base256.o" + @echo "... math/base256.i" + @echo "... math/base256.s" + @echo "... math/bcd.o" + @echo "... math/bcd.i" + @echo "... math/bcd.s" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/cmake_install.cmake b/libpksav/lib_bak/cmake_install.cmake new file mode 100644 index 0000000..b013bd1 --- /dev/null +++ b/libpksav/lib_bak/cmake_install.cmake @@ -0,0 +1,71 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Libraries" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/Users/spencer/Projects/pksav/lib/libpksav.dylib") + if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libpksav.dylib" AND + NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libpksav.dylib") + execute_process(COMMAND "/usr/bin/install_name_tool" + -id "libpksav.dylib" + "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libpksav.dylib") + if(CMAKE_INSTALL_DO_STRIP) + execute_process(COMMAND "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip" -x "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/libpksav.dylib") + endif() + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Libraries" OR NOT CMAKE_INSTALL_COMPONENT) +endif() + +if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT) + file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig" TYPE FILE FILES "/Users/spencer/Projects/pksav/lib/pksav.pc") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/Users/spencer/Projects/pksav/lib/gen1/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/lib/gen2/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/lib/gba/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/lib/gen4/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/lib/gen5/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/lib/common/cmake_install.cmake") + include("/Users/spencer/Projects/pksav/lib/math/cmake_install.cmake") + +endif() + diff --git a/libpksav/lib_bak/common/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib_bak/common/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/lib_bak/common/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib_bak/common/CMakeFiles/progress.marks b/libpksav/lib_bak/common/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib_bak/common/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib_bak/common/CMakeLists.txt b/libpksav/lib_bak/common/CMakeLists.txt new file mode 100644 index 0000000..c0e713f --- /dev/null +++ b/libpksav/lib_bak/common/CMakeLists.txt @@ -0,0 +1,16 @@ +# +# Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_common_sources + ${CMAKE_CURRENT_SOURCE_DIR}/datetime.c + ${CMAKE_CURRENT_SOURCE_DIR}/pokedex.c + ${CMAKE_CURRENT_SOURCE_DIR}/prng.c + ${CMAKE_CURRENT_SOURCE_DIR}/sha1.c + ${CMAKE_CURRENT_SOURCE_DIR}/stats.c + ${CMAKE_CURRENT_SOURCE_DIR}/text_common.c + ${CMAKE_CURRENT_SOURCE_DIR}/xds_common.c +PARENT_SCOPE) diff --git a/libpksav/lib_bak/common/Makefile b/libpksav/lib_bak/common/Makefile new file mode 100644 index 0000000..2dc1d20 --- /dev/null +++ b/libpksav/lib_bak/common/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/common//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/common/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/common/cmake_install.cmake b/libpksav/lib_bak/common/cmake_install.cmake new file mode 100644 index 0000000..82bb590 --- /dev/null +++ b/libpksav/lib_bak/common/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib/common + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib/common/datetime.c b/libpksav/lib_bak/common/datetime.c similarity index 100% rename from libpksav/lib/common/datetime.c rename to libpksav/lib_bak/common/datetime.c diff --git a/libpksav/lib_bak/common/pokedex.c b/libpksav/lib_bak/common/pokedex.c new file mode 100644 index 0000000..3334bea --- /dev/null +++ b/libpksav/lib_bak/common/pokedex.c @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +#include + +static PKSAV_INLINE void _pksav_get_pokedex_bit_pos( + uint16_t pokedex_num, + uint8_t* index, + uint8_t* mask +) { + *index = (uint8_t)((pokedex_num-1)/8); + *mask = (uint8_t)(pow(2.0, ((pokedex_num-1)%8))); +} + +pksav_error_t pksav_get_pokedex_bit( + const uint8_t* raw, + uint16_t pokedex_num, + bool* result_out +) { + if(!raw || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + uint8_t index, mask; + _pksav_get_pokedex_bit_pos(pokedex_num, &index, &mask); + *result_out = (bool)(raw[index] & mask); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_set_pokedex_bit( + uint8_t* raw, + uint16_t pokedex_num, + bool set +) { + if(!raw) { + return PKSAV_ERROR_NULL_POINTER; + } + + uint8_t index, mask; + _pksav_get_pokedex_bit_pos(pokedex_num, &index, &mask); + if(set) { + raw[index] |= mask; + } else { + raw[index] &= ~mask; + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib/common/prng.c b/libpksav/lib_bak/common/prng.c similarity index 100% rename from libpksav/lib/common/prng.c rename to libpksav/lib_bak/common/prng.c diff --git a/libpksav/lib_bak/common/sha1.c b/libpksav/lib_bak/common/sha1.c new file mode 100644 index 0000000..b38ffad --- /dev/null +++ b/libpksav/lib_bak/common/sha1.c @@ -0,0 +1,302 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "sha1.h" + +#include + +typedef uint8_t u8; +typedef uint32_t u32; + +#define os_memcpy memcpy +#define os_memset memset + +// MODIFIED : + +/* ===== start - public domain SHA1 implementation ===== */ + +/* +SHA-1 in C +By Steve Reid +100% Public Domain + +----------------- +Modified 7/98 +By James H. Brown +Still 100% Public Domain + +Corrected a problem which generated improper hash values on 16 bit machines +Routine SHA1Update changed from +void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int +len) +to +void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned +long len) + +The 'len' parameter was declared an int which works fine on 32 bit machines. +However, on 16 bit machines an int is too small for the shifts being done +against +it. This caused the hash function to generate incorrect values if len was +greater than 8191 (8K - 1) due to the 'len << 3' on line 3 of SHA1Update(). + +Since the file IO in main() reads 16K at a time, any file 8K or larger would +be guaranteed to generate the wrong hash (e.g. Test Vector #3, a million +"a"s). + +I also changed the declaration of variables i & j in SHA1Update to +unsigned long from unsigned int for the same reason. + +These changes should make no difference to any 32 bit implementations since +an +int and a long are the same size in those environments. + +-- +I also corrected a few compiler warnings generated by Borland C. +1. Added #include for exit() prototype +2. Removed unused variable 'j' in SHA1Final +3. Changed exit(0) to return(0) at end of main. + +ALL changes I made can be located by searching for comments containing 'JHB' +----------------- +Modified 8/98 +By Steve Reid +Still 100% public domain + +1- Removed #include and used return() instead of exit() +2- Fixed overwriting of finalcount in SHA1Final() (discovered by Chris Hall) +3- Changed email address from steve@edmweb.com to sreid@sea-to-sky.net + +----------------- +Modified 4/01 +By Saul Kravitz +Still 100% PD +Modified to run on Compaq Alpha hardware. + +----------------- +Modified 4/01 +By Jouni Malinen +Minor changes to match the coding style used in Dynamics. + +Modified September 24, 2004 +By Jouni Malinen +Fixed alignment issue in SHA1Transform when SHA1HANDSOFF is defined. + +----------------- +Modified 7/16 +By Nicholas Corgan +Still 100% public domain +Minor fixes/additions for various compiler compatibilities, no functional changes. + +*/ + +/* +Test Vectors (from FIPS PUB 180-1) +"abc" +A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D +"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" +84983E44 1C3BD26E BAAE4AA1 F95129E5 E54670F1 +A million repetitions of "a" +34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F +*/ + +struct SHA1_CTX { + u32 state[5]; + u32 count[2]; + u8 buffer[64]; +}; +typedef struct SHA1_CTX SHA1_CTX; // NC + +#define SHA1HANDSOFF + +#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) + +/* blk0() and blk() perform the initial expand. */ +/* I got the idea of expanding during the round function from SSLeay */ +#if BOOST_ENDIAN_BIG_BYTE == BOOST_VERSION_NUMBER_NOT_AVAILABLE +#define blk0(i) (l[i] = (rol(l[i], 24) & 0xFF00FF00) | \ + (rol(l[i], 8) & 0x00FF00FF)) +#else +#define blk0(i) l[i] +#endif +#define blk(i) (l[i & 15] = rol(l[(i + 13) & 15] ^ \ + l[(i + 8) & 15] ^ l[(i + 2) & 15] ^ l[i & 15], 1)) + +/* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */ +#define R0(v,w,x,y,z,i) \ + z += ((w & (x ^ y)) ^ y) + blk0(i) + 0x5A827999 + rol(v, 5); \ + w = rol(w, 30); +#define R1(v,w,x,y,z,i) \ + z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \ + w = rol(w, 30); +#define R2(v,w,x,y,z,i) \ + z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30); +#define R3(v,w,x,y,z,i) \ + z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \ + w = rol(w, 30); +#define R4(v,w,x,y,z,i) \ + z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \ + w=rol(w, 30); + + +#ifdef VERBOSE /* SAK */ +void SHAPrintContext(SHA1_CTX *context, char *msg) +{ + printf("%s (%d,%d) %x %x %x %x %x\n", + msg, + context->count[0], context->count[1], + context->state[0], + context->state[1], + context->state[2], + context->state[3], + context->state[4]); +} +#endif + +/* Hash a single 512-bit block. This is the core of the algorithm. */ + +static inline void SHA1Transform(u32 state[5], const u8 buffer[64]) +{ + u32 a, b, c, d, e; + u32 l[16]; +#ifdef SHA1HANDSOFF + os_memcpy((u8*)l, buffer, 64); +#else +// +#endif + /* Copy context->state[] to working vars */ + a = state[0]; + b = state[1]; + c = state[2]; + d = state[3]; + e = state[4]; + /* 4 rounds of 20 operations each. Loop unrolled. */ + R0(a, b, c, d, e, 0); R0(e, a, b, c, d, 1); R0(d, e, a, b, c, 2); R0(c, d, e, a, b, 3); + R0(b, c, d, e, a, 4); R0(a, b, c, d, e, 5); R0(e, a, b, c, d, 6); R0(d, e, a, b, c, 7); + R0(c, d, e, a, b, 8); R0(b, c, d, e, a, 9); R0(a, b, c, d, e, 10); R0(e, a, b, c, d, 11); + R0(d, e, a, b, c, 12); R0(c, d, e, a, b, 13); R0(b, c, d, e, a, 14); R0(a, b, c, d, e, 15); + R1(e, a, b, c, d, 16); R1(d, e, a, b, c, 17); R1(c, d, e, a, b, 18); R1(b, c, d, e, a, 19); + R2(a, b, c, d, e, 20); R2(e, a, b, c, d, 21); R2(d, e, a, b, c, 22); R2(c, d, e, a, b, 23); + R2(b, c, d, e, a, 24); R2(a, b, c, d, e, 25); R2(e, a, b, c, d, 26); R2(d, e, a, b, c, 27); + R2(c, d, e, a, b, 28); R2(b, c, d, e, a, 29); R2(a, b, c, d, e, 30); R2(e, a, b, c, d, 31); + R2(d, e, a, b, c, 32); R2(c, d, e, a, b, 33); R2(b, c, d, e, a, 34); R2(a, b, c, d, e, 35); + R2(e, a, b, c, d, 36); R2(d, e, a, b, c, 37); R2(c, d, e, a, b, 38); R2(b, c, d, e, a, 39); + R3(a, b, c, d, e, 40); R3(e, a, b, c, d, 41); R3(d, e, a, b, c, 42); R3(c, d, e, a, b, 43); + R3(b, c, d, e, a, 44); R3(a, b, c, d, e, 45); R3(e, a, b, c, d, 46); R3(d, e, a, b, c, 47); + R3(c, d, e, a, b, 48); R3(b, c, d, e, a, 49); R3(a, b, c, d, e, 50); R3(e, a, b, c, d, 51); + R3(d, e, a, b, c, 52); R3(c, d, e, a, b, 53); R3(b, c, d, e, a, 54); R3(a, b, c, d, e, 55); + R3(e, a, b, c, d, 56); R3(d, e, a, b, c, 57); R3(c, d, e, a, b, 58); R3(b, c, d, e, a, 59); + R4(a, b, c, d, e, 60); R4(e, a, b, c, d, 61); R4(d, e, a, b, c, 62); R4(c, d, e, a, b, 63); + R4(b, c, d, e, a, 64); R4(a, b, c, d, e, 65); R4(e, a, b, c, d, 66); R4(d, e, a, b, c, 67); + R4(c, d, e, a, b, 68); R4(b, c, d, e, a, 69); R4(a, b, c, d, e, 70); R4(e, a, b, c, d, 71); + R4(d, e, a, b, c, 72); R4(c, d, e, a, b, 73); R4(b, c, d, e, a, 74); R4(a, b, c, d, e, 75); + R4(e, a, b, c, d, 76); R4(d, e, a, b, c, 77); R4(c, d, e, a, b, 78); R4(b, c, d, e, a, 79); + /* Add the working vars back into context.state[] */ + state[0] += a; + state[1] += b; + state[2] += c; + state[3] += d; + state[4] += e; + /* Wipe variables */ + //a = b = c = d = e = 0; +#ifdef SHA1HANDSOFF + //os_memset(block, 0, 64); +#endif +} + + +/* SHA1Init - Initialize new context */ + +inline void SHA1Init(SHA1_CTX* context) +{ + /* SHA1 initialization constants */ + context->state[0] = 0x67452301; + context->state[1] = 0xEFCDAB89; + context->state[2] = 0x98BADCFE; + context->state[3] = 0x10325476; + context->state[4] = 0xC3D2E1F0; + context->count[0] = context->count[1] = 0; +} + + +/* Run your data through this. */ + +static inline void SHA1Update(SHA1_CTX* context, const u8 *_data, u32 len) +{ + u32 i, j; + const u8 *data = _data; + +#ifdef VERBOSE + SHAPrintContext(context, "before"); +#endif + j = (context->count[0] >> 3) & 63; + if ((context->count[0] += len << 3) < (len << 3)) + context->count[1]++; + context->count[1] += (len >> 29); + if ((j + len) > 63) { + os_memcpy(&context->buffer[j], data, (i = 64 - j)); + SHA1Transform(context->state, context->buffer); + for (; i + 63 < len; i += 64) { + SHA1Transform(context->state, &data[i]); + } + j = 0; + } + else i = 0; + os_memcpy(&context->buffer[j], &data[i], len - i); +#ifdef VERBOSE + SHAPrintContext(context, "after "); +#endif +} + + +/* Add padding and return the message digest. */ + +static inline void SHA1Final(u8 digest[20], SHA1_CTX* context) +{ + u32 i; + u8 finalcount[8]; + + for (i = 0; i < 8; i++) { + finalcount[i] = (u8) + ((context->count[(i >= 4 ? 0 : 1)] >> + ((3 - (i & 3)) * 8)) & 255); /* Endian independent */ + } + SHA1Update(context, (u8 *) "\200", 1); + while ((context->count[0] & 504) != 448) { + SHA1Update(context, (u8 *) "\0", 1); + } + SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() + */ + for (i = 0; i < 20; i++) { + digest[i] = (u8) + ((context->state[i >> 2] >> ((3 - (i & 3)) * 8)) & + 255); + } + + /* Wipe variables */ + /* + i = 0; + os_memset(context->buffer, 0, 64); + os_memset(context->state, 0, 20); + os_memset(context->count, 0, 8); + os_memset(finalcount, 0, 8); + */ +} + +/* + * END PUBLIC DOMAIN + */ + +void pksav_sha1( + const uint8_t* start, + const uint8_t* end, + pksav_digest_t* digest +) { + SHA1_CTX ctx; + SHA1Init(&ctx); + SHA1Update(&ctx, start, (u32)(end-start)); + SHA1Final(digest->u8, &ctx); +} diff --git a/libpksav/lib_bak/common/sha1.h b/libpksav/lib_bak/common/sha1.h new file mode 100644 index 0000000..81a02d3 --- /dev/null +++ b/libpksav/lib_bak/common/sha1.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#ifndef PKSAV_GCN_SHA1_H +#define PKSAV_GCN_SHA1_H + +#include + +typedef union { + uint8_t u8[20]; + uint32_t u32[5]; +} pksav_digest_t; + +void pksav_sha1( + const uint8_t* start, + const uint8_t* end, + pksav_digest_t* digest +); + +#endif /* PKSAV_GCN_SHA1_H */ diff --git a/libpksav/lib_bak/common/stats.c b/libpksav/lib_bak/common/stats.c new file mode 100644 index 0000000..a5a8a74 --- /dev/null +++ b/libpksav/lib_bak/common/stats.c @@ -0,0 +1,202 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +#include + +#include + +#define PKSAV_GB_ATK_IV_MASK ((uint16_t)0xF000) +#define PKSAV_GB_DEF_IV_MASK ((uint16_t)0x0F00) +#define PKSAV_GB_SPD_IV_MASK ((uint16_t)0x00F0) +#define PKSAV_GB_SPCL_IV_MASK ((uint16_t)0x000F) + +pksav_error_t pksav_get_gb_IV( + const uint16_t* raw, + pksav_battle_stat_t stat, + uint8_t* IV_out +) { + if(!raw || !IV_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + switch(stat) { + case PKSAV_STAT_HP: { + uint8_t atk, def, spd, spcl; + (void)pksav_get_gb_IV(raw, PKSAV_STAT_ATTACK, &atk); + (void)pksav_get_gb_IV(raw, PKSAV_STAT_DEFENSE, &def); + (void)pksav_get_gb_IV(raw, PKSAV_STAT_SPEED, &spd); + (void)pksav_get_gb_IV(raw, PKSAV_STAT_SPECIAL, &spcl); + *IV_out = ((atk & 0x01) << 3) | ((def & 0x01) << 2) + | ((spd & 0x01) << 1) | (spcl & 0x01); + break; + } + + case PKSAV_STAT_ATTACK: + *IV_out = ((*raw) & PKSAV_GB_ATK_IV_MASK) >> 12; + break; + + case PKSAV_STAT_DEFENSE: + *IV_out = ((*raw) & PKSAV_GB_DEF_IV_MASK) >> 8; + break; + + case PKSAV_STAT_SPEED: + *IV_out = ((*raw) & PKSAV_GB_SPD_IV_MASK) >> 4; + break; + + case PKSAV_STAT_SPATK: + case PKSAV_STAT_SPDEF: + case PKSAV_STAT_SPECIAL: + *IV_out = (*raw) & PKSAV_GB_SPCL_IV_MASK; + break; + + default: + return PKSAV_ERROR_INVALID_STAT; + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_set_gb_IV( + uint16_t* raw, + pksav_battle_stat_t stat, + uint8_t new_IV +) { + if(!raw) { + return PKSAV_ERROR_NULL_POINTER; + } + + if(new_IV > 15) { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + + switch(stat) { + case PKSAV_STAT_HP: + *raw = (((*raw) & 0xEEEE) | ((new_IV & 0x08) << 9) + | ((new_IV & 0x04) << 6) + | ((new_IV & 0x02) << 3) + | (new_IV & 0x01)); + break; + + case PKSAV_STAT_ATTACK: + *raw = ((*raw) & ~PKSAV_GB_ATK_IV_MASK) | (new_IV << 12); + break; + + case PKSAV_STAT_DEFENSE: + *raw = ((*raw) & ~PKSAV_GB_DEF_IV_MASK) | (new_IV << 8); + break; + + case PKSAV_STAT_SPEED: + *raw = ((*raw) & ~PKSAV_GB_SPD_IV_MASK) | (new_IV << 4); + break; + + case PKSAV_STAT_SPATK: + case PKSAV_STAT_SPDEF: + case PKSAV_STAT_SPECIAL: + *raw = ((*raw) & ~PKSAV_GB_SPCL_IV_MASK) | new_IV; + break; + + default: + return PKSAV_ERROR_INVALID_STAT; + } + + return PKSAV_ERROR_NONE; +} + +#define PKSAV_HP_IV_MASK ((uint32_t)0x1F) +#define PKSAV_ATK_IV_MASK ((uint32_t)0x3E0) +#define PKSAV_DEF_IV_MASK ((uint32_t)0x7C00) +#define PKSAV_SPD_IV_MASK ((uint32_t)0xF8000) +#define PKSAV_SPATK_IV_MASK ((uint32_t)0x1F00000) +#define PKSAV_SPDEF_IV_MASK ((uint32_t)0x3E000000) + +pksav_error_t pksav_get_IV( + const uint32_t* raw, + pksav_battle_stat_t stat, + uint8_t* IV_out +) { + if(!raw || !IV_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + switch(stat) { + case PKSAV_STAT_HP: + *IV_out = (*raw) & PKSAV_HP_IV_MASK; + break; + + case PKSAV_STAT_ATTACK: + *IV_out = ((*raw) & PKSAV_ATK_IV_MASK) >> 5; + break; + + case PKSAV_STAT_DEFENSE: + *IV_out = ((*raw) & PKSAV_DEF_IV_MASK) >> 10; + break; + + case PKSAV_STAT_SPEED: + *IV_out = ((*raw) & PKSAV_SPD_IV_MASK) >> 15; + break; + + case PKSAV_STAT_SPATK: + *IV_out = ((*raw) & PKSAV_SPATK_IV_MASK) >> 20; + break; + + case PKSAV_STAT_SPDEF: + *IV_out = ((*raw) & PKSAV_SPDEF_IV_MASK) >> 25; + break; + + default: + return PKSAV_ERROR_INVALID_STAT; + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_set_IV( + uint32_t* raw, + pksav_battle_stat_t stat, + uint8_t new_IV +) { + if(!raw) { + return PKSAV_ERROR_NULL_POINTER; + } + + if(new_IV > 31) { + return PKSAV_ERROR_PARAM_OUT_OF_RANGE; + } + + switch(stat) { + case PKSAV_STAT_HP: + *raw = ((*raw) & ~PKSAV_HP_IV_MASK) | new_IV; + break; + + case PKSAV_STAT_ATTACK: + *raw = ((*raw) & ~PKSAV_ATK_IV_MASK) | (new_IV << 5); + break; + + case PKSAV_STAT_DEFENSE: + *raw = ((*raw) & ~PKSAV_DEF_IV_MASK) | (new_IV << 10); + break; + + case PKSAV_STAT_SPEED: + *raw = ((*raw) & ~PKSAV_SPD_IV_MASK) | (new_IV << 15); + break; + + case PKSAV_STAT_SPATK: + *raw = ((*raw) & ~PKSAV_SPATK_IV_MASK) | (new_IV << 20); + break; + + case PKSAV_STAT_SPDEF: + *raw = ((*raw) & ~PKSAV_SPDEF_IV_MASK) | (new_IV << 25); + break; + + default: + return PKSAV_ERROR_INVALID_STAT; + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib/common/text_common.c b/libpksav/lib_bak/common/text_common.c similarity index 100% rename from libpksav/lib/common/text_common.c rename to libpksav/lib_bak/common/text_common.c diff --git a/libpksav/lib/common/text_common.h b/libpksav/lib_bak/common/text_common.h similarity index 100% rename from libpksav/lib/common/text_common.h rename to libpksav/lib_bak/common/text_common.h diff --git a/libpksav/lib_bak/common/xds_common.c b/libpksav/lib_bak/common/xds_common.c new file mode 100644 index 0000000..af2e1cd --- /dev/null +++ b/libpksav/lib_bak/common/xds_common.c @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "xds_common.h" + +#include + +#define PKSAV_XDS_TERMINATOR 0xFFFF + +pksav_error_t _pksav_text_from_xds( + const uint16_t* input_buffer, + char* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_widetext_from_xds( + input_buffer, widetext, num_chars + ); + + memset(output_text, 0, num_chars); + wcstombs(output_text, widetext, num_chars); + free(widetext); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t _pksav_widetext_from_xds( + const uint16_t* input_buffer, + wchar_t* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_text, 0, sizeof(wchar_t)*num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_buffer[i] == PKSAV_XDS_TERMINATOR) { + break; + } else { + output_text[i] = input_buffer[i]; + } + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t _pksav_text_to_xds( + const char* input_text, + uint16_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + mbstowcs(widetext, input_text, num_chars); + + _pksav_widetext_to_xds( + widetext, output_buffer, num_chars + ); + + free(widetext); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t _pksav_widetext_to_xds( + const wchar_t* input_text, + uint16_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_buffer, 0xFF, sizeof(wchar_t)*num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_text[i] == 0) { + break; + } else { + output_buffer[i] = (uint16_t)input_text[i]; + } + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/common/xds_common.h b/libpksav/lib_bak/common/xds_common.h new file mode 100644 index 0000000..57bada0 --- /dev/null +++ b/libpksav/lib_bak/common/xds_common.h @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ +#ifndef PKSAV_COMMON_XDS_COMMON_H +#define PKSAV_COMMON_XDS_COMMON_H + +#include + +#include +#include + +/* + * Functions shared between Nintendo DS and Nintendo 3DS games. These + * functions will not be built if support for at least one of these + * is not built. + */ + +//! Convert a string from in-game Unicode to a multi-byte C string. +pksav_error_t _pksav_text_from_xds( + const uint16_t* input_buffer, + char* output_text, + size_t num_chars +); + + +//! Convert a string from in-game Unicode to a wide-character C string. +pksav_error_t _pksav_widetext_from_xds( + const uint16_t* input_buffer, + wchar_t* output_text, + size_t num_chars +); + +//! Convert a multi-byte C string to in-game Unicode. +pksav_error_t _pksav_text_to_xds( + const char* input_text, + uint16_t* output_buffer, + size_t num_chars +); + +//! Convert a wide-character C string to in-game Unicode. +pksav_error_t _pksav_widetext_to_xds( + const wchar_t* input_text, + uint16_t* output_buffer, + size_t num_chars +); + +#endif /* PKSAV_COMMON_XDS_COMMON_H */ diff --git a/libpksav/lib_bak/error.c b/libpksav/lib_bak/error.c new file mode 100644 index 0000000..b53e502 --- /dev/null +++ b/libpksav/lib_bak/error.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +static const char* pksav_error_strs[] = { + "No error", + "File I/O error", + "Parameter out of range", + "Invalid stat enum", + "Invalid save file", + "Null pointer passed as parameter" +}; + +const char* pksav_strerror( + pksav_error_t error_code +) { + return pksav_error_strs[error_code]; +} diff --git a/libpksav/lib_bak/gba/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib_bak/gba/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/lib_bak/gba/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib_bak/gba/CMakeFiles/progress.marks b/libpksav/lib_bak/gba/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib_bak/gba/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib_bak/gba/CMakeLists.txt b/libpksav/lib_bak/gba/CMakeLists.txt new file mode 100644 index 0000000..ab7d105 --- /dev/null +++ b/libpksav/lib_bak/gba/CMakeLists.txt @@ -0,0 +1,14 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gba_sources + ${CMAKE_CURRENT_SOURCE_DIR}/checksum.c + ${CMAKE_CURRENT_SOURCE_DIR}/crypt.c + ${CMAKE_CURRENT_SOURCE_DIR}/save.c + ${CMAKE_CURRENT_SOURCE_DIR}/shuffle.c + ${CMAKE_CURRENT_SOURCE_DIR}/text.c +PARENT_SCOPE) diff --git a/libpksav/lib_bak/gba/Makefile b/libpksav/lib_bak/gba/Makefile new file mode 100644 index 0000000..32a7b95 --- /dev/null +++ b/libpksav/lib_bak/gba/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gba//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gba/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/gba/checksum.c b/libpksav/lib_bak/gba/checksum.c new file mode 100644 index 0000000..02290bd --- /dev/null +++ b/libpksav/lib_bak/gba/checksum.c @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "checksum.h" + +uint16_t pksav_get_gba_pokemon_checksum( + const pksav_gba_pc_pokemon_t* gba_pokemon +) { + uint16_t ret = 0; + + for(uint8_t i = 0; i < (sizeof(pksav_gba_pokemon_blocks_t)/2); i++) { + ret += gba_pokemon->blocks.blocks16[i]; + } + + return ret; +} + +uint16_t pksav_get_gba_section_checksum( + const pksav_gba_save_section_t* section, + uint8_t section_num +) { + uint32_t checksum = 0; + uint16_t* checksum_ptr = (uint16_t*)&checksum; + + for(int i = 0; i < (pksav_gba_section_sizes[section_num]/4); i++) { + checksum += section->data32[i]; + } + + return (checksum_ptr[0] + checksum_ptr[1]); +} diff --git a/libpksav/lib_bak/gba/checksum.h b/libpksav/lib_bak/gba/checksum.h new file mode 100644 index 0000000..0695206 --- /dev/null +++ b/libpksav/lib_bak/gba/checksum.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#ifndef PKSAV_GBA_CHECKSUM_H +#define PKSAV_GBA_CHECKSUM_H + +#include + +#include +#include + +#include + +uint16_t pksav_get_gba_pokemon_checksum( + const pksav_gba_pc_pokemon_t* gba_pokemon +); + +static PKSAV_INLINE void pksav_set_gba_pokemon_checksum( + pksav_gba_pc_pokemon_t* gba_pokemon +) { + gba_pokemon->checksum = pksav_get_gba_pokemon_checksum(gba_pokemon); +} + +uint16_t pksav_get_gba_section_checksum( + const pksav_gba_save_section_t* section, + uint8_t section_num +); + +static PKSAV_INLINE void pksav_set_gba_section_checksums( + pksav_gba_save_slot_t* sections +) { + for(uint8_t i = 0; i < 14; ++i) { + sections->sections_arr[i].footer.checksum = pksav_get_gba_section_checksum( + §ions->sections_arr[i], i + ); + } +} + +#endif /* PKSAV_GBA_CHECKSUM_H */ diff --git a/libpksav/lib_bak/gba/cmake_install.cmake b/libpksav/lib_bak/gba/cmake_install.cmake new file mode 100644 index 0000000..52148b4 --- /dev/null +++ b/libpksav/lib_bak/gba/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib/gba + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib_bak/gba/crypt.c b/libpksav/lib_bak/gba/crypt.c new file mode 100644 index 0000000..70fbb2f --- /dev/null +++ b/libpksav/lib_bak/gba/crypt.c @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "crypt.h" + +#include + +static const uint8_t gba_block_orders[24][4] = { + /* A E G M */ + /* GAEM */ {1, 2, 0, 3}, + /* GAME */ {1, 3, 0, 2}, + /* GEAM */ {2, 1, 0, 3}, + /* GEMA */ {3, 1, 0, 2}, + /* GMAE */ {2, 3, 0, 1}, + /* GMEA */ {3, 2, 0, 1}, + /* AGEM */ {0, 2, 1, 3}, + /* AGME */ {0, 3, 1, 2}, + /* AEGM */ {0, 1, 2, 3}, + /* AEMG */ {0, 1, 3, 2}, + /* AMGE */ {0, 3, 2, 1}, + /* AMEG */ {0, 2, 3, 1}, + /* EGAM */ {2, 0, 1, 3}, + /* EGMA */ {3, 0, 1, 2}, + /* EAGM */ {1, 0, 2, 3}, + /* EAMG */ {1, 0, 3, 2}, + /* EMGA */ {3, 0, 2, 1}, + /* EMAG */ {2, 0, 3, 1}, + /* MGAE */ {2, 3, 1, 0}, + /* MGEA */ {3, 2, 1, 0}, + /* MAGE */ {1, 3, 2, 0}, + /* MAEG */ {1, 2, 3, 0}, + /* MEGA */ {3, 1, 2, 0}, + /* MEAG */ {2, 1, 3, 0} +}; + +void pksav_gba_crypt_pokemon( + pksav_gba_pc_pokemon_t* gba_pokemon, + bool encrypt +) { + uint32_t security_key = gba_pokemon->ot_id.id ^ gba_pokemon->personality; + for(uint8_t i = 0; i < 12; ++i) { + gba_pokemon->blocks.blocks32[i] ^= security_key; + } + + int index = gba_pokemon->personality % 24; + int attacks_index = gba_block_orders[index][0]; + int effort_index = gba_block_orders[index][1]; + int growth_index = gba_block_orders[index][2]; + int misc_index = gba_block_orders[index][3]; + + pksav_gba_pokemon_blocks_t blocks; + if(encrypt) { + memcpy(&blocks.blocks[growth_index], &gba_pokemon->blocks.growth, sizeof(pksav_gba_pokemon_growth_t)); + memcpy(&blocks.blocks[attacks_index], &gba_pokemon->blocks.attacks, sizeof(pksav_gba_pokemon_attacks_t)); + memcpy(&blocks.blocks[effort_index], &gba_pokemon->blocks.effort, sizeof(pksav_gba_pokemon_effort_t)); + memcpy(&blocks.blocks[misc_index], &gba_pokemon->blocks.misc, sizeof(pksav_gba_pokemon_misc_t)); + } else { + memcpy(&blocks.growth, &gba_pokemon->blocks.blocks[growth_index], sizeof(pksav_gba_pokemon_growth_t)); + memcpy(&blocks.attacks, &gba_pokemon->blocks.blocks[attacks_index], sizeof(pksav_gba_pokemon_attacks_t)); + memcpy(&blocks.effort, &gba_pokemon->blocks.blocks[effort_index], sizeof(pksav_gba_pokemon_effort_t)); + memcpy(&blocks.misc, &gba_pokemon->blocks.blocks[misc_index], sizeof(pksav_gba_pokemon_misc_t)); + } + + gba_pokemon->blocks = blocks; +} + +void pksav_gba_save_crypt_items( + pksav_gba_item_storage_t* item_storage, + uint32_t security_key, + pksav_gba_game_t gba_game +) { + pksav_item_t* items = (pksav_item_t*)item_storage; + uint8_t num_items = 0; + switch(gba_game) { + case PKSAV_GBA_RS: + num_items = sizeof(pksav_rs_item_storage_t) / sizeof(pksav_item_t); + break; + + case PKSAV_GBA_EMERALD: + num_items = sizeof(pksav_emerald_item_storage_t) / sizeof(pksav_item_t); + break; + + default: + num_items = sizeof(pksav_frlg_item_storage_t) / sizeof(pksav_item_t); + break; + } + // Skip Item PC, which has 50 items in all games + for(uint8_t i = 50; i < num_items; ++i) { + items[i].count ^= (uint16_t)(security_key & 0xFFFF); + } +} diff --git a/libpksav/lib_bak/gba/crypt.h b/libpksav/lib_bak/gba/crypt.h new file mode 100644 index 0000000..4c88771 --- /dev/null +++ b/libpksav/lib_bak/gba/crypt.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#ifndef PKSAV_GBA_CRYPT_H +#define PKSAV_GBA_CRYPT_H + +#include +#include +#include + +#include +#include + +void pksav_gba_crypt_pokemon( + pksav_gba_pc_pokemon_t* gba_pokemon, + bool encrypt +); + +void pksav_gba_save_crypt_items( + pksav_gba_item_storage_t* gba_item_storage, + uint32_t security_key, + pksav_gba_game_t gba_game +); + +#endif /* PKSAV_GBA_CRYPT_H */ diff --git a/libpksav/lib_bak/gba/save.c b/libpksav/lib_bak/gba/save.c new file mode 100644 index 0000000..b89652d --- /dev/null +++ b/libpksav/lib_bak/gba/save.c @@ -0,0 +1,518 @@ +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "checksum.h" +#include "crypt.h" +#include "shuffle.h" + +#include + +#include +#include +#include + +#include + +#include + +#define SECURITY_KEY1(sections,game) (sections)->section0.data32[pksav_gba_section0_offsets[PKSAV_GBA_SECURITY_KEY1][game]/4] +#define SECURITY_KEY2(sections,game) (sections)->section0.data32[pksav_gba_section0_offsets[PKSAV_GBA_SECURITY_KEY2][game]/4] +#define SAVE_INDEX(sections) pksav_littleendian32((sections)->section0.footer.save_index) + +#define SECTION0_DATA8(sections,game,offset) \ + (sections)->section0.data8[pksav_gba_section0_offsets[offset][game]] + +#define SECTION0_DATA16(sections,game,offset) \ + (sections)->section0.data16[pksav_gba_section0_offsets[offset][game]/2] + +#define SECTION0_DATA32(sections,game,offset) \ + (sections)->section0.data32[pksav_gba_section0_offsets[offset][game]/4] + +#define SECTION1_DATA8(sections,game,offset) \ + (sections)->section1.data8[pksav_gba_section1_offsets[offset][game]] + +#define SECTION1_DATA16(sections,game,offset) \ + (sections)->section1.data16[pksav_gba_section1_offsets[offset][game]/2] + +#define SECTION1_DATA32(sections,game,offset) \ + (sections)->section1.data32[pksav_gba_section1_offsets[offset][game]/4] + +#define SECTION2_DATA8(sections,game,offset) \ + (sections)->section2.data8[pksav_gba_section2_offsets[offset][game]] + +#define SECTION2_DATA16(sections,game,offset) \ + (sections)->section2.data16[pksav_gba_section2_offsets[offset][game]/2] + +#define SECTION2_DATA32(sections,game,offset) \ + (sections)->section2.data32[pksav_gba_section2_offsets[offset][game]/4] + +#define SECTION4_DATA8(sections,game,offset) \ + (sections)->section4.data8[pksav_gba_section4_offsets[offset][game]] + +#define SECTION4_DATA32(sections,game,offset) \ + (sections)->section4.data32[pksav_gba_section4_offsets[offset][game]/4] + +/* + * Offsets + */ + +#define PKSAV_GBA_SMALL_SAVE_SIZE 0x10000 +#define PKSAV_GBA_SAVE_SIZE 0x20000 + +#define PKSAV_GBA_VALIDATION 0x08012025 + +typedef enum { + PKSAV_GBA_SAVE_A = 0x0000, + PKSAV_GBA_SAVE_B = 0xE000 +} pksav_gba_save_offset_t; + +typedef enum { + PKSAV_GBA_NAT_POKEDEX_A = 0, + PKSAV_GBA_POKEDEX_OWNED, + PKSAV_GBA_POKEDEX_SEEN_A, + PKSAV_GBA_GAME_CODE, + PKSAV_GBA_SECURITY_KEY1, + PKSAV_GBA_SECURITY_KEY2 +} pksav_gba_section0_field_t; + +static const uint16_t pksav_gba_section0_offsets[][4] = { + {0x0019,0x0019,0x001B}, // National Pokédex A + {0x0028,0x0028,0x0028}, // Pokédex Owned + {0x005C,0x005C,0x005C}, // Pokédex Seen A + {0x00AC,0x00AC,0x00AC}, // Game Code + {0x00AC,0x00AC,0x0AF8}, // Security Key 1 + {0x00AC,0x01F4,0x0F20} // Security Key 2 +}; + +typedef enum { + PKSAV_GBA_POKEMON_PARTY = 0, + PKSAV_GBA_MONEY, + PKSAV_GBA_CASINO_COINS, + PKSAV_GBA_ITEM_STORAGE, + PKSAV_GBA_POKEDEX_SEEN_B +} pksav_gba_section1_field_t; + +static const uint16_t pksav_gba_section1_offsets[][4] = { + {0x0234,0x0234,0x0034}, // Pokémon Party + {0x0490,0x0490,0x0290}, // Money + {0x0494,0x0494,0x0294}, // Casino Coins + {0x0498,0x0498,0x0298}, // Item Storage + {0x0938,0x0988,0x0788} // Pokédex Seen B +}; + +typedef enum { + PKSAV_GBA_NAT_POKEDEX_B = 0, + PKSAV_GBA_NAT_POKEDEX_C +} pksav_gba_section2_field_t; + +static const uint16_t pksav_gba_section2_offsets[][4] = { + {0x03A6,0x0402,0x0068}, // National Pokédex B + {0x044C,0x04A8,0x011C} // National Pokédex C +}; + +typedef enum { + PKSAV_GBA_POKEDEX_SEEN_C = 0, + PKSAV_GBA_FRLG_RIVAL_NAME +} pksav_gba_section4_field_t; + +static const uint16_t pksav_gba_section4_offsets[][4] = { + {0x0C0C,0x0CA4,0x0B98}, // Pokédex Seen C + {0x0000,0x0000,0x0BCC} // Rival Name (FR/LG only) +}; + +pksav_error_t pksav_buffer_is_gba_save( + const uint8_t* buffer, + size_t buffer_len, + pksav_gba_game_t gba_game, + bool* result_out +) { + if(!buffer || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + if(buffer_len < PKSAV_GBA_SMALL_SAVE_SIZE) { + *result_out = false; + return PKSAV_ERROR_NONE; + } + + /* + * If the save is not a small save, we need to find the most recent save slot first. + * + * Once the proper save slot has been found, it needs to be unshuffled. Sadly, that + * means more memory allocation. + */ + const pksav_gba_save_slot_t* sections_pair = (const pksav_gba_save_slot_t*)buffer; + const pksav_gba_save_slot_t* save_slot; + if(buffer_len < PKSAV_GBA_SAVE_SIZE) { + save_slot = sections_pair; + } else if(SAVE_INDEX(§ions_pair[0]) > SAVE_INDEX(§ions_pair[1])) { + save_slot = §ions_pair[0]; + } else { + save_slot = §ions_pair[1]; + } + + // Make sure the section IDs are valid to avoid a crash. + for(size_t section_index = 0; section_index < 14; ++section_index) + { + if(save_slot->sections_arr[section_index].footer.section_id > 13) + { + *result_out = false; + return PKSAV_ERROR_NONE; + } + } + + pksav_gba_save_slot_t unshuffled; + uint8_t section_nums[14]; + pksav_gba_save_unshuffle_sections( + save_slot, + &unshuffled, + section_nums + ); + + uint32_t game_code = pksav_littleendian32(SECTION0_DATA32((&unshuffled), gba_game, PKSAV_GBA_GAME_CODE)); + uint32_t security_key1 = pksav_littleendian32(SECURITY_KEY1((&unshuffled), gba_game)); + uint32_t security_key2 = pksav_littleendian32(SECURITY_KEY2((&unshuffled), gba_game)); + + if(gba_game == PKSAV_GBA_RS) { + *result_out = (game_code == 0) && (security_key1 == security_key2); + } else if(gba_game == PKSAV_GBA_FRLG) { + *result_out = (game_code == 1) && (security_key1 == security_key2); + } else { + *result_out = (security_key1 == security_key2); + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_file_is_gba_save( + const char* filepath, + pksav_gba_game_t gba_game, + bool* result_out +) { + if(!filepath || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + FILE* gba_save = fopen(filepath, "rb"); + if(!gba_save) { + *result_out = false; + return PKSAV_ERROR_FILE_IO; + } + + fseek(gba_save, 0, SEEK_END); + size_t filesize = ftell(gba_save); + + if(filesize < PKSAV_GBA_SMALL_SAVE_SIZE) { + fclose(gba_save); + return false; + } + + uint8_t* gba_save_data = calloc(filesize, 1); + fseek(gba_save, 0, SEEK_SET); + size_t num_read = fread((void*)gba_save_data, 1, filesize, gba_save); + fclose(gba_save); + + bool ret = false; + if(num_read == filesize) { + pksav_buffer_is_gba_save( + gba_save_data, + filesize, + gba_game, + &ret + ); + } + + free(gba_save_data); + *result_out = ret; + return PKSAV_ERROR_NONE; +} + +// Assumes all dynamically allocated memory has already been allocated +static void _pksav_gba_save_set_pointers( + pksav_gba_save_t* gba_save +) { + // Find the most recent save slot + const pksav_gba_save_slot_t* sections_pair = (const pksav_gba_save_slot_t*)gba_save->raw; + const pksav_gba_save_slot_t* most_recent; + + if(gba_save->small_save) { + most_recent = sections_pair; + gba_save->from_first_slot = true; + } else { + if(SAVE_INDEX(§ions_pair[0]) > SAVE_INDEX(§ions_pair[1])) { + most_recent = §ions_pair[0]; + gba_save->from_first_slot = true; + } else { + most_recent = §ions_pair[1]; + gba_save->from_first_slot = false; + } + } + + // Set pointers + pksav_gba_save_unshuffle_sections( + most_recent, + gba_save->unshuffled, + gba_save->shuffled_section_nums + ); + gba_save->trainer_info = &gba_save->unshuffled->trainer_info; + if(gba_save->gba_game == PKSAV_GBA_FRLG) { + gba_save->rival_name = &SECTION4_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_FRLG_RIVAL_NAME + ); + } else { + gba_save->rival_name = NULL; + } + gba_save->pokemon_party = (pksav_gba_pokemon_party_t*)&SECTION1_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_POKEMON_PARTY + ); + for(uint8_t i = 0; i < 6; ++i) { + pksav_gba_crypt_pokemon( + &gba_save->pokemon_party->party[i].pc, + false + ); + } + + pksav_gba_save_load_pokemon_pc( + gba_save->unshuffled, + gba_save->pokemon_pc + ); + + gba_save->item_storage = (pksav_gba_item_storage_t*)&SECTION1_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_ITEM_STORAGE + ); + pksav_gba_save_crypt_items( + gba_save->item_storage, + SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game), + gba_save->gba_game + ); + + gba_save->money = &SECTION1_DATA32( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_MONEY + ); + *gba_save->money ^= SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game); + + gba_save->casino_coins = &SECTION1_DATA16( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_CASINO_COINS + ); + *gba_save->casino_coins ^= (uint16_t)(SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game) & 0xFFFF); + + gba_save->pokedex_owned = &SECTION0_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_POKEDEX_OWNED + ); + + gba_save->pokedex_seenA = &SECTION0_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_POKEDEX_SEEN_A + ); + + gba_save->pokedex_seenB = &SECTION1_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_POKEDEX_SEEN_B + ); + + gba_save->pokedex_seenC = &SECTION4_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_POKEDEX_SEEN_C + ); + + if(gba_save->gba_game == PKSAV_GBA_FRLG) { + gba_save->rse_nat_pokedex_unlockedA = NULL; + + gba_save->frlg_nat_pokedex_unlockedA = &SECTION0_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_NAT_POKEDEX_A + ); + } else { + gba_save->rse_nat_pokedex_unlockedA = &SECTION0_DATA16( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_NAT_POKEDEX_A + ); + gba_save->frlg_nat_pokedex_unlockedA = NULL; + } + + gba_save->nat_pokedex_unlockedB = &SECTION2_DATA8( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_NAT_POKEDEX_B + ); + + gba_save->nat_pokedex_unlockedC = &SECTION2_DATA16( + gba_save->unshuffled, + gba_save->gba_game, + PKSAV_GBA_NAT_POKEDEX_C + ); +} + +pksav_error_t pksav_gba_save_load( + const char* filepath, + pksav_gba_save_t* gba_save +) { + if(!filepath || !gba_save) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Read the file and make sure it's valid + FILE* gba_save_file = fopen(filepath, "rb"); + if(!gba_save_file) { + return PKSAV_ERROR_FILE_IO; + } + + fseek(gba_save_file, 0, SEEK_END); + size_t filesize = ftell(gba_save_file); + + if(filesize < PKSAV_GBA_SMALL_SAVE_SIZE) { + fclose(gba_save_file); + return PKSAV_ERROR_INVALID_SAVE; + } + + gba_save->raw = calloc(filesize, 1); + fseek(gba_save_file, 0, SEEK_SET); + size_t num_read = fread((void*)gba_save->raw, 1, filesize, gba_save_file); + fclose(gba_save_file); + if(num_read != filesize) { + return PKSAV_ERROR_FILE_IO; + } + + gba_save->small_save = (filesize < PKSAV_GBA_SAVE_SIZE); + + // Detect what kind of save this is + bool found = false; + for(pksav_gba_game_t i = PKSAV_GBA_RS; i <= PKSAV_GBA_FRLG; ++i) { + pksav_buffer_is_gba_save( + gba_save->raw, + filesize, + i, + &found + ); + if(found) { + gba_save->gba_game = i; + break; + } + } + + if(!found) { + free(gba_save->raw); + return PKSAV_ERROR_INVALID_SAVE; + } + + // Allocate memory as needed and set pointers + gba_save->unshuffled = calloc(sizeof(pksav_gba_save_slot_t), 1); + gba_save->pokemon_pc = calloc(sizeof(pksav_gba_pokemon_pc_t), 1); + _pksav_gba_save_set_pointers( + gba_save + ); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gba_save_save( + const char* filepath, + pksav_gba_save_t* gba_save +) { + if(!filepath || !gba_save) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Make sure we can write to this file + FILE* gba_save_file = fopen(filepath, "wb"); + if(!gba_save_file) { + return PKSAV_ERROR_FILE_IO; + } + + *gba_save->money ^= SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game); + *gba_save->casino_coins ^= (uint16_t)(SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game) & 0xFFFF); + + pksav_gba_save_crypt_items( + gba_save->item_storage, + SECURITY_KEY1(gba_save->unshuffled, gba_save->gba_game), + gba_save->gba_game + ); + + pksav_gba_save_save_pokemon_pc( + gba_save->pokemon_pc, + gba_save->unshuffled + ); + + for(uint8_t i = 0; i < 6; ++i) { + pksav_gba_crypt_pokemon( + &gba_save->pokemon_party->party[i].pc, + true + ); + } + + // Find the least recent save slot, increment the save index, save into that + uint32_t save_index = pksav_littleendian32(SAVE_INDEX(gba_save->unshuffled) + 1); + for(uint8_t i = 0; i < 14; ++i) { + gba_save->unshuffled->sections_arr[i].footer.save_index = save_index; + } + + pksav_gba_save_slot_t* save_into = NULL; + if(!gba_save->small_save) { + pksav_gba_save_slot_t* sections_pair = (pksav_gba_save_slot_t*)gba_save->raw; + save_into = gba_save->from_first_slot ? §ions_pair[1] : §ions_pair[0]; + gba_save->from_first_slot = !gba_save->from_first_slot; + } else { + save_into = (pksav_gba_save_slot_t*)gba_save->raw; + } + + pksav_set_gba_section_checksums( + gba_save->unshuffled + ); + pksav_gba_save_shuffle_sections( + gba_save->unshuffled, + save_into, + gba_save->shuffled_section_nums + ); + + // With everything saved to the new slot, reload it + _pksav_gba_save_set_pointers( + gba_save + ); + + // Write to file + fwrite( + (void*)gba_save->raw, + 1, + (gba_save->small_save ? PKSAV_GBA_SMALL_SAVE_SIZE : PKSAV_GBA_SAVE_SIZE), + gba_save_file + ); + + fclose(gba_save_file); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gba_save_free( + pksav_gba_save_t* gba_save +) { + if(!gba_save) { + return PKSAV_ERROR_NULL_POINTER; + } + + free(gba_save->pokemon_pc); + free(gba_save->unshuffled); + free(gba_save->raw); + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gba/shuffle.c b/libpksav/lib_bak/gba/shuffle.c new file mode 100644 index 0000000..b3c4e43 --- /dev/null +++ b/libpksav/lib_bak/gba/shuffle.c @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "checksum.h" +#include "crypt.h" +#include "shuffle.h" + +#include + +void pksav_gba_save_load_pokemon_pc( + const pksav_gba_save_slot_t* gba_save_slot, + pksav_gba_pokemon_pc_t* pokemon_pc_out +) { + // Copy data from sections into contiguous data structure + uint8_t* dst_ptr = (uint8_t*)pokemon_pc_out; + for(uint8_t i = 5; i <= 13; ++i) { + memcpy(dst_ptr, gba_save_slot->sections_arr[i].data8, pksav_gba_section_sizes[i]); + dst_ptr += pksav_gba_section_sizes[i]; + } + + // Decrypt Pokémon + for(uint8_t i = 0; i < 14; ++i) { + for(uint8_t j = 0; j < 30; ++j) { + pksav_gba_crypt_pokemon( + &pokemon_pc_out->boxes[i].entries[j], + false + ); + } + } +} + +void pksav_gba_save_save_pokemon_pc( + pksav_gba_pokemon_pc_t* pokemon_pc, + pksav_gba_save_slot_t* gba_save_slot_out +) { + // Set Pokémon checksum and encrypt + for(uint8_t i = 0; i < 14; ++i) { + for(uint8_t j = 0; j < 30; ++j) { + pksav_set_gba_pokemon_checksum( + &pokemon_pc->boxes[i].entries[j] + ); + pksav_gba_crypt_pokemon( + &pokemon_pc->boxes[i].entries[j], + true + ); + } + } + + // Copy contiguous data structure back into sections + uint8_t* src_ptr = (uint8_t*)pokemon_pc; + for(uint8_t i = 5; i <= 13; ++i) { + memcpy( + gba_save_slot_out->sections_arr[i].data8, + src_ptr, + pksav_gba_section_sizes[i] + ); + src_ptr += pksav_gba_section_sizes[i]; + } +} diff --git a/libpksav/lib_bak/gba/shuffle.h b/libpksav/lib_bak/gba/shuffle.h new file mode 100644 index 0000000..37d31d3 --- /dev/null +++ b/libpksav/lib_bak/gba/shuffle.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#ifndef PKSAV_GBA_SHUFFLE_H +#define PKSAV_GBA_SHUFFLE_H + +#include + +#include +#include +#include + +static PKSAV_INLINE void pksav_gba_save_unshuffle_sections( + const pksav_gba_save_slot_t* save_slot_in, + pksav_gba_save_slot_t* save_slot_out, + uint8_t section_nums[14] +) { + for(uint8_t i = 0; i < 14; ++i) { + uint8_t section_id = save_slot_in->sections_arr[i].footer.section_id; + save_slot_out->sections_arr[section_id] = save_slot_in->sections_arr[i]; + + // Cache the original positions + section_nums[i] = section_id; + } +} + +static PKSAV_INLINE void pksav_gba_save_shuffle_sections( + const pksav_gba_save_slot_t* save_slot_in, + pksav_gba_save_slot_t* save_slot_out, + const uint8_t section_nums[14] +) { + for(uint8_t i = 0; i < 14; ++i) { + save_slot_out->sections_arr[i] = save_slot_in->sections_arr[section_nums[i]]; + } +} + +void pksav_gba_save_load_pokemon_pc( + const pksav_gba_save_slot_t* gba_save_slot, + pksav_gba_pokemon_pc_t* pokemon_pc_out +); + +void pksav_gba_save_save_pokemon_pc( + pksav_gba_pokemon_pc_t* pokemon_pc, + pksav_gba_save_slot_t* gba_save_slot_out +); + +#endif /* PKSAV_GBA_SHUFFLE_H */ diff --git a/libpksav/lib_bak/gba/text.c b/libpksav/lib_bak/gba/text.c new file mode 100644 index 0000000..db2b09d --- /dev/null +++ b/libpksav/lib_bak/gba/text.c @@ -0,0 +1,137 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "../common/text_common.h" + +#include + +#include + +#define PKSAV_GBA_LAST_CHAR 0xF9 // Just control characters past here +#define PKSAV_GBA_TERMINATOR 0xFF + +/* + * Character map for Generation III (English) + * + * Source: http://bulbapedia.bulbagarden.net/wiki/Character_encoding_in_Generation_III + * + * There are no Unicode values for certain characters, so we will use substitutes, as listed below: + * + * * "$" -> Pokemon dollar + * * "<" -> "PK" + * * ">" -> "MN" + * * "*" -> "PO" + * * "~" -> "KE" + * + * Any application displaying this text will need to graphically substitute in these characters. + */ + +static const wchar_t pksav_gba_char_map[] = { + 0x0020,0x00C0,0x00C1,0x00C2,0x00C7,0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x3053,0x00CD,0x00CE,0x00D2,0x00D3,0x00D4, + 0x0152,0x00D9,0x00DA,0x00DB,0x00D1,0x1E9E,0x00E0,0x00E1,0x306D,0x00E7,0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x307E, + 0x00EE,0x00EF,0x00F2,0x00F3,0x00F4,0x0152,0x00F9,0x00FA,0x00FB,0x00F1,0x00BA,0x00AA,0x003F,0x0026,0x002B,0x3042, + 0x3043,0x3045,0x3047,0x3049,0x002F,0x003D,0x3087,0x304C,0x304E,0x3050,0x3052,0x3054,0x3056,0x3058,0x305A,0x305C, + 0x305E,0x3060,0x3062,0x3065,0x3067,0x3069,0x3070,0x3073,0x3076,0x3079,0x307C,0x3071,0x3074,0x3077,0x307A,0x307D, + 0x3063,0x00BF,0x00A1,0x003C,0x003E,0x002A,0x007E,0x003F,0x003F,0x003F,0x00CD,0x0025,0x0028,0x0029,0x30BB,0x30BD, + 0x30BF,0x30C1,0x30C4,0x30C6,0x30C8,0x30CA,0x30CB,0x30CC,0x00C2,0x30CE,0x30CF,0x30D2,0x30D5,0x30D8,0x30DB,0x00CD, + 0x30DF,0x30E0,0x30E1,0x30E2,0x30E4,0x30E6,0x30E8,0x30E9,0x30EA,0x2B06,0x2B07,0x2B05,0x27A1,0x30F2,0x30F3,0x30A1, + 0x30A3,0x30A5,0x30A7,0x30A9,0x30E3,0x30E5,0x30E7,0x30AC,0x30AE,0x30B0,0x30B2,0x30B4,0x30B6,0x30B8,0x30BA,0x30BC, + 0x30BE,0x30C0,0x30C2,0x30C5,0x30C7,0x30C9,0x30D0,0x30D3,0x30D6,0x30D9,0x30DC,0x30D1,0x30D4,0x30D7,0x30DA,0x30DD, + 0x30C3,0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,0x0038,0x0039,0x0021,0x003F,0x002E,0x002D,0x30FB, + 0x2026,0x201C,0x201D,0x2018,0x2019,0x2642,0x2640,0x0024,0x002C,0x00D7,0x002F,0x0041,0x0042,0x0043,0x0044,0x0045, + 0x0046,0x0047,0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,0x0050,0x0051,0x0052,0x0053,0x0054,0x0055, + 0x0056,0x0057,0x0058,0x0059,0x005A,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,0x0068,0x0069,0x006A,0x006B, + 0x006C,0x006D,0x006E,0x006F,0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,0x0078,0x0079,0x007A,0x25B6, + 0x003A,0x00C4,0x00D6,0x00DC,0x00E4,0x00F6,0x00F6,0x2B06,0x2B07,0x2B05,'\0','\0','\0','\0','\n','\0' +}; + +static pksav_error_t _pksav_widetext_from_gba( + const uint8_t* input_buffer, + wchar_t* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_text, 0, sizeof(wchar_t)*num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_buffer[i] > PKSAV_GBA_LAST_CHAR) { + break; + } else { + output_text[i] = pksav_gba_char_map[input_buffer[i]]; + } + } + + return PKSAV_ERROR_NONE; +} + +static pksav_error_t _pksav_widetext_to_gba( + const wchar_t* input_text, + uint8_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_buffer, PKSAV_GBA_TERMINATOR, num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + ssize_t index = wchar_map_index(pksav_gba_char_map, 256, input_text[i]); + if(index == -1) { + break; + } else { + output_buffer[i] = (uint8_t)index; + } + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_text_from_gba( + const uint8_t* input_buffer, + char* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_widetext_from_gba( + input_buffer, widetext, num_chars + ); + + memset(output_text, 0, num_chars); + pksav_wcstombs(output_text, widetext, num_chars); + free(widetext); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_text_to_gba( + const char* input_text, + uint8_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(widetext, input_text, num_chars); + + _pksav_widetext_to_gba( + widetext, output_buffer, num_chars + ); + + free(widetext); + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gen1/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib_bak/gen1/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/lib_bak/gen1/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib_bak/gen1/CMakeFiles/progress.marks b/libpksav/lib_bak/gen1/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib_bak/gen1/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib_bak/gen1/CMakeLists.txt b/libpksav/lib_bak/gen1/CMakeLists.txt new file mode 100644 index 0000000..fd2c929 --- /dev/null +++ b/libpksav/lib_bak/gen1/CMakeLists.txt @@ -0,0 +1,11 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen1_sources + ${CMAKE_CURRENT_SOURCE_DIR}/save.c + ${CMAKE_CURRENT_SOURCE_DIR}/text.c +PARENT_SCOPE) diff --git a/libpksav/lib_bak/gen1/Makefile b/libpksav/lib_bak/gen1/Makefile new file mode 100644 index 0000000..533c772 --- /dev/null +++ b/libpksav/lib_bak/gen1/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen1//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen1/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/gen1/cmake_install.cmake b/libpksav/lib_bak/gen1/cmake_install.cmake new file mode 100644 index 0000000..c46e141 --- /dev/null +++ b/libpksav/lib_bak/gen1/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib/gen1 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib_bak/gen1/save.c b/libpksav/lib_bak/gen1/save.c new file mode 100644 index 0000000..a429384 --- /dev/null +++ b/libpksav/lib_bak/gen1/save.c @@ -0,0 +1,230 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +#include +#include +#include + +#define PKSAV_GEN1_SAVE_SIZE 0x8000 + +// Offsets in a Generation I save +typedef enum { + PKSAV_GEN1_PLAYER_NAME = 0x2598, + PKSAV_GEN1_POKEDEX_OWNED = 0x25A3, + PKSAV_GEN1_POKEDEX_SEEN = 0x25B6, + PKSAV_GEN1_ITEM_BAG = 0x25C9, + PKSAV_GEN1_MONEY = 0x25F3, + PKSAV_GEN1_RIVAL_NAME = 0x25F6, + PKSAV_GEN1_OPTIONS = 0x2601, + PKSAV_GEN1_BADGES = 0x2602, + PKSAV_GEN1_PLAYER_ID = 0x2605, + PKSAV_GEN1_PIKACHU_FRIENDSHIP = 0x271C, + PKSAV_GEN1_ITEM_PC = 0x27E6, + PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM = 0x284C, + PKSAV_GEN1_CASINO_COINS = 0x2850, + PKSAV_GEN1_TIME_PLAYED = 0x2CED, + PKSAV_GEN1_POKEMON_PARTY = 0x2F2C, + PKSAV_GEN1_CURRENT_POKEMON_BOX = 0x30C0, + PKSAV_GEN1_CHECKSUM = 0x3523, + PKSAV_GEN1_POKEMON_PC_FIRST_HALF = 0x4000, + PKSAV_GEN1_POKEMON_PC_SECOND_HALF = 0x6000 +} pksav_gen1_save_offset_t; + +static uint8_t _pksav_get_gen1_save_checksum( + const uint8_t* data +) { + uint8_t checksum = 255; + for(uint16_t i = 0x2598; i < PKSAV_GEN1_CHECKSUM; ++i) { + checksum -= data[i]; + } + + return checksum; +} + +pksav_error_t pksav_buffer_is_gen1_save( + const uint8_t* data, + size_t buffer_len, + bool* result_out +) { + if(!data || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + if(buffer_len < PKSAV_GEN1_SAVE_SIZE) { + *result_out = false; + return PKSAV_ERROR_NONE; + } + + uint8_t checksum = data[PKSAV_GEN1_CHECKSUM]; + uint8_t actual_checksum = _pksav_get_gen1_save_checksum(data); + *result_out = (checksum == actual_checksum); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_file_is_gen1_save( + const char* filepath, + bool* result_out +) { + if(!filepath || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + FILE* gen1_save = fopen(filepath, "rb"); + if(!gen1_save) { + *result_out = false; + return PKSAV_ERROR_FILE_IO; + } + + fseek(gen1_save, 0, SEEK_END); + + if(ftell(gen1_save) < PKSAV_GEN1_SAVE_SIZE) { + fclose(gen1_save); + *result_out = false; + return PKSAV_ERROR_NONE; + } + + uint8_t* gen1_save_data = calloc(PKSAV_GEN1_SAVE_SIZE, 1); + fseek(gen1_save, 0, SEEK_SET); + size_t num_read = fread((void*)gen1_save_data, 1, PKSAV_GEN1_SAVE_SIZE, gen1_save); + fclose(gen1_save); + + bool ret = false; + if(num_read == PKSAV_GEN1_SAVE_SIZE) { + pksav_error_t status = pksav_buffer_is_gen1_save( + gen1_save_data, + PKSAV_GEN1_SAVE_SIZE, + &ret + ); + if(status) { + free(gen1_save_data); + return status; + } + } + + free(gen1_save_data); + *result_out = ret; + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gen1_save_load( + const char* filepath, + pksav_gen1_save_t* gen1_save +) { + if(!filepath || !gen1_save) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Read the file and make sure it's valid + FILE* gen1_save_file = fopen(filepath, "rb"); + if(!gen1_save_file) { + return PKSAV_ERROR_FILE_IO; + } + + fseek(gen1_save_file, 0, SEEK_END); + + if(ftell(gen1_save_file) < PKSAV_GEN1_SAVE_SIZE) { + fclose(gen1_save_file); + return PKSAV_ERROR_INVALID_SAVE; + } + + gen1_save->raw = calloc(PKSAV_GEN1_SAVE_SIZE, 1); + fseek(gen1_save_file, 0, SEEK_SET); + size_t num_read = fread((void*)gen1_save->raw, 1, PKSAV_GEN1_SAVE_SIZE, gen1_save_file); + fclose(gen1_save_file); + if(num_read != PKSAV_GEN1_SAVE_SIZE) { + return PKSAV_ERROR_FILE_IO; + } + + bool buffer_is_valid = false; + pksav_buffer_is_gen1_save( + gen1_save->raw, + PKSAV_GEN1_SAVE_SIZE, + &buffer_is_valid + ); + + if(!buffer_is_valid) { + free(gen1_save->raw); + return PKSAV_ERROR_INVALID_SAVE; + } + + /* + * Check if this save is for the Yellow version. The only way to check this is to check the + * Pikachu Friendship field, which isn't used in Red/Blue. This is usually fine but will fail + * if the trainer's Pikachu despises the trainer enough to have a friendship value of 0, which + * is unlikely but technically possible. + */ + gen1_save->yellow = (gen1_save->raw[PKSAV_GEN1_PIKACHU_FRIENDSHIP] > 0); + + // Set pointers + gen1_save->pokemon_party = (pksav_gen1_pokemon_party_t*)&gen1_save->raw[PKSAV_GEN1_POKEMON_PARTY]; + + gen1_save->current_pokemon_box_num = &gen1_save->raw[PKSAV_GEN1_CURRENT_POKEMON_BOX_NUM]; + gen1_save->current_pokemon_box = (pksav_gen1_pokemon_box_t*)&gen1_save->raw[PKSAV_GEN1_CURRENT_POKEMON_BOX]; + + for(uint8_t i = 0; i < 6; ++i) { + uint16_t offset = PKSAV_GEN1_POKEMON_PC_FIRST_HALF + (sizeof(pksav_gen1_pokemon_box_t)*i); + gen1_save->pokemon_boxes[i] = (pksav_gen1_pokemon_box_t*)&gen1_save->raw[offset]; + } + for(uint8_t i = 6; i < 12; ++i) { + uint16_t offset = PKSAV_GEN1_POKEMON_PC_SECOND_HALF + (sizeof(pksav_gen1_pokemon_box_t)*(i-6)); + gen1_save->pokemon_boxes[i] = (pksav_gen1_pokemon_box_t*)&gen1_save->raw[offset]; + } + + gen1_save->pokedex_seen = &gen1_save->raw[PKSAV_GEN1_POKEDEX_SEEN]; + gen1_save->pokedex_owned = &gen1_save->raw[PKSAV_GEN1_POKEDEX_OWNED]; + gen1_save->item_bag = (pksav_gen1_item_bag_t*)&gen1_save->raw[PKSAV_GEN1_ITEM_BAG]; + gen1_save->item_pc = (pksav_gen1_item_pc_t*)&gen1_save->raw[PKSAV_GEN1_ITEM_PC]; + gen1_save->time_played = (pksav_gen1_time_t*)&gen1_save->raw[PKSAV_GEN1_TIME_PLAYED]; + gen1_save->money = &gen1_save->raw[PKSAV_GEN1_MONEY]; + gen1_save->casino_coins = &gen1_save->raw[PKSAV_GEN1_CASINO_COINS]; + gen1_save->trainer_id = (uint16_t*)&gen1_save->raw[PKSAV_GEN1_PLAYER_ID]; + gen1_save->trainer_name = &gen1_save->raw[PKSAV_GEN1_PLAYER_NAME]; + gen1_save->rival_name = &gen1_save->raw[PKSAV_GEN1_RIVAL_NAME]; + gen1_save->badges = &gen1_save->raw[PKSAV_GEN1_BADGES]; + gen1_save->pikachu_friendship = &gen1_save->raw[PKSAV_GEN1_PIKACHU_FRIENDSHIP]; + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gen1_save_save( + const char* filepath, + pksav_gen1_save_t* gen1_save +) { + if(!filepath || !gen1_save) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Make sure we can write to this file + FILE* gen1_save_file = fopen(filepath, "wb"); + if(!gen1_save_file) { + return PKSAV_ERROR_FILE_IO; + } + + // Set checksum + gen1_save->raw[PKSAV_GEN1_CHECKSUM] = _pksav_get_gen1_save_checksum(gen1_save->raw); + + // Write to file + fwrite((void*)gen1_save->raw, 1, PKSAV_GEN1_SAVE_SIZE, gen1_save_file); + fclose(gen1_save_file); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gen1_save_free( + pksav_gen1_save_t* gen1_save +) { + if(!gen1_save || !gen1_save->raw) { + return PKSAV_ERROR_NULL_POINTER; + } + + free(gen1_save->raw); + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gen1/text.c b/libpksav/lib_bak/gen1/text.c new file mode 100644 index 0000000..4d97df3 --- /dev/null +++ b/libpksav/lib_bak/gen1/text.c @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "../common/text_common.h" + +#include + +#include + +#define PKSAV_GEN1_TERMINATOR 0x50 +#define PKSAV_GEN1_SPACE 0x7F + +/* + * Character map for Generation I + * + * Source: http://bulbapedia.bulbagarden.net/wiki/Save_data_structure_in_Generation_I#Text_data + * + * There are no Unicode values for the "PK" and "MN" in-game characters, so we will use the + * "<" and ">" characters, as they are not used in-game. Any application displaying this text + * will need to graphically substitute in these characters. + */ +static const wchar_t pksav_gen1_char_map[] = { + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20, + 0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50, + 0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x28,0x29,0x3A,0x3B,0x5B,0x5D, + 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70, + 0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0xE9,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x27,0x3C,0x3E,0x2D,0x00,0x00,0x3F,0x21,0x2E,0x00,0x00,0x00,0x00,0x00,0x00,0x2642, + 0x00,0xD7,0x00,0x2F,0x2C,0x2640,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39 +}; + + +static pksav_error_t _pksav_widetext_from_gen1( + const uint8_t* input_buffer, + wchar_t* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_text, 0, sizeof(wchar_t)*num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_buffer[i] == PKSAV_GEN1_TERMINATOR) { + break; + } else { + output_text[i] = pksav_gen1_char_map[input_buffer[i]]; + } + } + + return PKSAV_ERROR_NONE; +} + +static pksav_error_t _pksav_widetext_to_gen1( + const wchar_t* input_text, + uint8_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_buffer, PKSAV_GEN1_TERMINATOR, num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_text[i] == 0x20) { + output_buffer[i] = PKSAV_GEN1_SPACE; + } else { + ssize_t index = wchar_map_index(pksav_gen1_char_map, 256, input_text[i]); + if(index == -1) { + break; + } else { + output_buffer[i] = (uint8_t)index; + } + } + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_text_from_gen1( + const uint8_t* input_buffer, + char* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_widetext_from_gen1( + input_buffer, widetext, num_chars + ); + + memset(output_text, 0, num_chars); + pksav_wcstombs(output_text, widetext, num_chars); + free(widetext); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_text_to_gen1( + const char* input_text, + uint8_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(widetext, input_text, num_chars); + + _pksav_widetext_to_gen1( + widetext, output_buffer, num_chars + ); + + free(widetext); + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gen2/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib_bak/gen2/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/lib_bak/gen2/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib_bak/gen2/CMakeFiles/progress.marks b/libpksav/lib_bak/gen2/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib_bak/gen2/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib_bak/gen2/CMakeLists.txt b/libpksav/lib_bak/gen2/CMakeLists.txt new file mode 100644 index 0000000..218701c --- /dev/null +++ b/libpksav/lib_bak/gen2/CMakeLists.txt @@ -0,0 +1,12 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen2_sources + ${CMAKE_CURRENT_SOURCE_DIR}/save.c + ${CMAKE_CURRENT_SOURCE_DIR}/text.c + ${CMAKE_CURRENT_SOURCE_DIR}/time.c +PARENT_SCOPE) diff --git a/libpksav/lib_bak/gen2/Makefile b/libpksav/lib_bak/gen2/Makefile new file mode 100644 index 0000000..2f9afd3 --- /dev/null +++ b/libpksav/lib_bak/gen2/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen2//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen2/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/gen2/cmake_install.cmake b/libpksav/lib_bak/gen2/cmake_install.cmake new file mode 100644 index 0000000..5031f21 --- /dev/null +++ b/libpksav/lib_bak/gen2/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib/gen2 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib_bak/gen2/save.c b/libpksav/lib_bak/gen2/save.c new file mode 100644 index 0000000..ddc80ca --- /dev/null +++ b/libpksav/lib_bak/gen2/save.c @@ -0,0 +1,377 @@ +/* + * Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +#include +#include +#include + +#define PKSAV_GS_CHECKSUM1 0x2D69 +#define PKSAV_GS_CHECKSUM2 0x7E6D + +#define PKSAV_CRYSTAL_CHECKSUM1 0x2D02 +#define PKSAV_CRYSTAL_CHECKSUM2 0x1F0D + +#define PKSAV_GEN2_SAVE_SIZE 0x8000 + +#define PKSAV_GEN2_DATA(save,offset) save->raw[pksav_gen2_offsets[offset][save->gen2_game]] + +typedef enum { + PKSAV_GEN2_PLAYER_ID = 0, + PKSAV_GEN2_PLAYER_NAME, + PKSAV_GEN2_RIVAL_NAME, + PKSAV_GEN2_DAYLIGHT_SAVINGS, + PKSAV_GEN2_TIME_PLAYED, + PKSAV_GEN2_PLAYER_PALETTE, + PKSAV_GEN2_MONEY, + PKSAV_GEN2_ITEM_BAG, + PKSAV_GEN2_ITEM_PC, + PKSAV_GEN2_CURRENT_POKEMON_BOX_NUM, + PKSAV_GEN2_PC_BOX_NAMES, + PKSAV_GEN2_POKEMON_PARTY, + PKSAV_GEN2_POKEDEX_OWNED, + PKSAV_GEN2_POKEDEX_SEEN, + PKSAV_GEN2_CURRENT_POKEMON_BOX, + PKSAV_GEN2_PLAYER_GENDER, + PKSAV_GEN2_POKEMON_PC_FIRST_HALF, + PKSAV_GEN2_POKEMON_PC_SECOND_HALF, + PKSAV_GEN2_CHECKSUM1, + PKSAV_GEN2_CHECKSUM2 +} pksav_gen2_field_t; + +static const uint16_t pksav_gen2_offsets[21][2] = { + {0x2009,0x2009}, // Player ID + {0x200B,0x200B}, // Player name + {0x2021,0x2021}, // Rival name + {0x2037,0x2037}, // Daylight savings + {0x2053,0x2054}, // Time played + {0x206B,0x206A}, // Player palette + {0x23DB,0x23DB}, // Money + {0x23E6,0x23E7}, // Item bag + {0x247E,0x247F}, // Item PC + {0x2724,0x2700}, // Current Pokemon box number + {0x2727,0x2703}, // PC box names + {0x288A,0x2865}, // Pokemon party + {0x2A4C,0x2A27}, // Pokedex owned + {0x2A6C,0x2A47}, // Pokedex seen + {0x2D6C,0x2D10}, // Current Pokemon box list + {0x3E3D,0x3E3D}, // Player gender (Crystal only) + {0x4000,0x4000}, // Pokemon PC (first half) + {0x6000,0x6000}, // Pokemon PC (second half) + {0x2D69,0x2D0D}, // Checksum 1 + {0x7E6D,0x1F0D} // Checksum 2 +}; + +typedef struct { + uint16_t first; + uint16_t second; +} pksav_gen2_checksums_t; + +static void _pksav_gen2_get_save_checksums( + bool crystal, + const uint8_t* data, + pksav_gen2_checksums_t* checksums_out +) { + checksums_out->first = 0; + checksums_out->second = 0; + + if(crystal) { + // Checksum 1 + for(uint16_t i = 0x2009; i <= 0x2B82; ++i) { + checksums_out->first += data[i]; + } + + // Checksum 2 + for(uint16_t i = 0x1209; i <= 0x1D82; ++i) { + checksums_out->second += data[i]; + } + } else { + // Checksum 1 + for(uint16_t i = 0x2009; i <= 0x2D68; ++i) { + checksums_out->first += data[i]; + } + + // Checksum 2 + for(uint16_t i = 0x0C6B; i <= 0x17EC; ++i) { + checksums_out->second += data[i]; + } + for(uint16_t i = 0x3D96; i <= 0x3F3F; ++i) { + checksums_out->second += data[i]; + } + for(uint16_t i = 0x7E39; i <= 0x7E6C; ++i) { + checksums_out->second += data[i]; + } + } + + checksums_out->first = pksav_littleendian16(checksums_out->first); + checksums_out->second = pksav_littleendian16(checksums_out->second); +} + +static void _pksav_gen2_set_save_checksums( + bool crystal, + uint8_t* data +) { + uint16_t checksum1_index = crystal ? PKSAV_CRYSTAL_CHECKSUM1 + : PKSAV_GS_CHECKSUM1; + uint16_t checksum2_index = crystal ? PKSAV_CRYSTAL_CHECKSUM2 + : PKSAV_GS_CHECKSUM2; + + pksav_gen2_checksums_t checksums; + _pksav_gen2_get_save_checksums(crystal, data, &checksums); + + *((uint16_t*)&data[checksum1_index]) = pksav_littleendian16(checksums.first); + *((uint16_t*)&data[checksum2_index]) = pksav_littleendian16(checksums.second); +} + +pksav_error_t pksav_buffer_is_gen2_save( + const uint8_t* buffer, + size_t buffer_len, + bool crystal, + bool* result_out +) { + if(!buffer || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + if(buffer_len < PKSAV_GEN2_SAVE_SIZE) { + *result_out = false; + return PKSAV_ERROR_NONE; + } + + uint16_t checksum1_index = crystal ? PKSAV_CRYSTAL_CHECKSUM1 + : PKSAV_GS_CHECKSUM1; + uint16_t checksum2_index = crystal ? PKSAV_CRYSTAL_CHECKSUM2 + : PKSAV_GS_CHECKSUM2; + + pksav_gen2_checksums_t checksums; + _pksav_gen2_get_save_checksums(crystal, buffer, &checksums); + + uint16_t actual_checksum1 = pksav_littleendian16( + *((uint16_t*)&buffer[checksum1_index]) + ); + uint16_t actual_checksum2 = pksav_littleendian16( + *((uint16_t*)&buffer[checksum2_index]) + ); + + /* + * From what I've seen, valid Crystal saves don't always have both + * checksums set correctly. + */ + *result_out = crystal ? (checksums.first == actual_checksum1 || + checksums.second == actual_checksum2) + : (checksums.first == actual_checksum1 && + checksums.second == actual_checksum2); + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_file_is_gen2_save( + const char* filepath, + bool crystal, + bool* result_out +) { + if(!filepath || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + FILE* gen2_save = fopen(filepath, "rb"); + if(!gen2_save) { + *result_out = false; + return PKSAV_ERROR_FILE_IO; + } + + fseek(gen2_save, 0, SEEK_END); + + if(ftell(gen2_save) < PKSAV_GEN2_SAVE_SIZE) { + fclose(gen2_save); + *result_out = false; + return PKSAV_ERROR_NONE; + } + + uint8_t* gen2_save_data = calloc(PKSAV_GEN2_SAVE_SIZE, 1); + fseek(gen2_save, 0, SEEK_SET); + size_t num_read = fread((void*)gen2_save_data, 1, PKSAV_GEN2_SAVE_SIZE, gen2_save); + fclose(gen2_save); + + bool ret = false; + pksav_error_t error_code = PKSAV_ERROR_NONE; + if(num_read == PKSAV_GEN2_SAVE_SIZE) { + error_code = pksav_buffer_is_gen2_save( + gen2_save_data, + PKSAV_GEN2_SAVE_SIZE, + crystal, + &ret + ); + if(error_code) { + free(gen2_save_data); + return error_code; + } + } + + *result_out = ret; + free(gen2_save_data); + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gen2_save_load( + const char* filepath, + pksav_gen2_save_t* gen2_save +) { + if(!filepath || !gen2_save) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Read the file and make sure it's valid + FILE* gen2_save_file = fopen(filepath, "rb"); + if(!gen2_save_file) { + return PKSAV_ERROR_FILE_IO; + } + + fseek(gen2_save_file, 0, SEEK_END); + + if(ftell(gen2_save_file) < PKSAV_GEN2_SAVE_SIZE) { + fclose(gen2_save_file); + return PKSAV_ERROR_INVALID_SAVE; + } + + gen2_save->raw = calloc(PKSAV_GEN2_SAVE_SIZE, 1); + fseek(gen2_save_file, 0, SEEK_SET); + size_t num_read = fread((void*)gen2_save->raw, 1, PKSAV_GEN2_SAVE_SIZE, gen2_save_file); + fclose(gen2_save_file); + if(num_read != PKSAV_GEN2_SAVE_SIZE) { + return PKSAV_ERROR_FILE_IO; + } + + pksav_error_t error_code = PKSAV_ERROR_NONE; + bool is_valid = false; + + error_code = pksav_buffer_is_gen2_save( + gen2_save->raw, + PKSAV_GEN2_SAVE_SIZE, + false, + &is_valid + ); + if(error_code) { + free(gen2_save->raw); + return error_code; + } else if(is_valid) { + gen2_save->gen2_game = PKSAV_GEN2_GS; + } + + if(!is_valid) { + error_code = pksav_buffer_is_gen2_save( + gen2_save->raw, + PKSAV_GEN2_SAVE_SIZE, + true, + &is_valid + ); + if(error_code) { + free(gen2_save->raw); + return error_code; + } else if(is_valid) { + gen2_save->gen2_game = PKSAV_GEN2_CRYSTAL; + } else { + free(gen2_save->raw); + return PKSAV_ERROR_INVALID_SAVE; + } + } + + // Set pointers + gen2_save->pokemon_party = (pksav_gen2_pokemon_party_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_POKEMON_PARTY); + gen2_save->current_pokemon_box_num = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_CURRENT_POKEMON_BOX_NUM); + gen2_save->current_pokemon_box = (pksav_gen2_pokemon_box_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_CURRENT_POKEMON_BOX); + + for(uint8_t i = 0; i < 7; ++i) { + uint16_t offset = pksav_gen2_offsets[PKSAV_GEN2_POKEMON_PC_FIRST_HALF][0] + (sizeof(pksav_gen2_pokemon_box_t)*i); + gen2_save->pokemon_boxes[i] = (pksav_gen2_pokemon_box_t*)&gen2_save->raw[offset]; + } + for(uint8_t i = 7; i < 14; ++i) { + uint16_t offset = pksav_gen2_offsets[PKSAV_GEN2_POKEMON_PC_SECOND_HALF][0] + (sizeof(pksav_gen2_pokemon_box_t)*(i-7)); + gen2_save->pokemon_boxes[i] = (pksav_gen2_pokemon_box_t*)&gen2_save->raw[offset]; + } + + gen2_save->pokemon_box_names = (pksav_gen2_pokemon_box_names_t*)&PKSAV_GEN2_DATA(gen2_save, PKSAV_GEN2_PC_BOX_NAMES); + gen2_save->item_bag = (pksav_gen2_item_bag_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_ITEM_BAG); + gen2_save->item_pc = (pksav_gen2_item_pc_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_ITEM_PC); + gen2_save->pokedex_seen = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_POKEDEX_SEEN); + gen2_save->pokedex_owned = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_POKEDEX_OWNED); + gen2_save->daylight_savings = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_DAYLIGHT_SAVINGS); + gen2_save->time_played = (pksav_gen2_time_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_TIME_PLAYED); + gen2_save->money = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_MONEY); + gen2_save->trainer_id = (uint16_t*)&PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_PLAYER_ID); + gen2_save->trainer_name = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_PLAYER_NAME); + gen2_save->rival_name = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_RIVAL_NAME); + + if(gen2_save->gen2_game == PKSAV_GEN2_CRYSTAL) { + gen2_save->trainer_gender = &PKSAV_GEN2_DATA(gen2_save,PKSAV_GEN2_PLAYER_GENDER); + } else { + gen2_save->trainer_gender = NULL; + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gen2_save_save( + const char* filepath, + pksav_gen2_save_t* gen2_save +) { + if(!filepath || !gen2_save) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Make sure we can write to this file + FILE* gen2_save_file = fopen(filepath, "wb"); + if(!gen2_save_file) { + return PKSAV_ERROR_FILE_IO; + } + + // Set checksum + _pksav_gen2_set_save_checksums( + (gen2_save->gen2_game == PKSAV_GEN2_CRYSTAL), + gen2_save->raw + ); + + // Write to file + fwrite((void*)gen2_save->raw, 1, PKSAV_GEN2_SAVE_SIZE, gen2_save_file); + fclose(gen2_save_file); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_gen2_save_free( + pksav_gen2_save_t* gen2_save +) { + if(!gen2_save || !gen2_save->raw) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Free dynamically allocated memory + free(gen2_save->raw); + + // Set all pointer members to NULL + gen2_save->pokemon_party = NULL; + gen2_save->current_pokemon_box_num = NULL; + gen2_save->current_pokemon_box = NULL; + for(int i = 0; i < 14; ++i) { + gen2_save->pokemon_boxes[i] = NULL; + } + gen2_save->pokemon_box_names = NULL; + gen2_save->item_bag = NULL; + gen2_save->item_pc = NULL; + gen2_save->pokedex_seen = NULL; + gen2_save->pokedex_owned = NULL; + gen2_save->trainer_name = NULL; + gen2_save->trainer_id = NULL; + gen2_save->trainer_gender = NULL; + gen2_save->money = NULL; + gen2_save->rival_name = NULL; + gen2_save->daylight_savings = NULL; + gen2_save->time_played = NULL; + gen2_save->raw = NULL; + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gen2/text.c b/libpksav/lib_bak/gen2/text.c new file mode 100644 index 0000000..868eff6 --- /dev/null +++ b/libpksav/lib_bak/gen2/text.c @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "../common/text_common.h" + +#include + +#include + +#define PKSAV_GEN2_TERMINATOR 0x50 +#define PKSAV_GEN2_SPACE 0x7F + +/* + * Character map for Generation II + * + * Source: http://bulbapedia.bulbagarden.net/wiki/Save_data_structure_in_Generation_II#Text_data + * + * There are no Unicode values for the "PK" and "MN" in-game characters, so we will use the + * "<" and ">" characters, as they are not used in-game. Any application displaying this text + * will need to graphically substitute in these characters. + */ +static const wchar_t pksav_gen2_char_map[] = { + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20, + 0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50, + 0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5A,0x28,0x29,0x3A,0x3B,0x5B,0x5D, + 0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6A,0x6B,0x6C,0x6D,0x6E,0x6F,0x70, + 0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7A,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x27,0x3C,0x3E,0x2D,0x00,0x00,0x3F,0x21,0x2E,0x00,0xE9,0x00,0x00,0x00,0x00,0x2642, + 0x00,0xD7,0x00,0x2F,0x2C,0x2640,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39 +}; + +static pksav_error_t _pksav_widetext_from_gen2( + const uint8_t* input_buffer, + wchar_t* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_text, 0, sizeof(wchar_t)*num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_buffer[i] == PKSAV_GEN2_TERMINATOR) { + break; + } else { + output_text[i] = pksav_gen2_char_map[input_buffer[i]]; + } + } + + return PKSAV_ERROR_NONE; +} + +static pksav_error_t _pksav_widetext_to_gen2( + const wchar_t* input_text, + uint8_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_buffer, PKSAV_GEN2_TERMINATOR, num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_text[i] == 0x20) { + output_buffer[i] = PKSAV_GEN2_SPACE; + } else { + ssize_t index = wchar_map_index(pksav_gen2_char_map, 256, input_text[i]); + if(index == -1) { + break; + } else { + output_buffer[i] = (uint8_t)index; + } + } + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_text_from_gen2( + const uint8_t* input_buffer, + char* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + _pksav_widetext_from_gen2( + input_buffer, widetext, num_chars + ); + + memset(output_text, 0, num_chars); + pksav_wcstombs(output_text, widetext, num_chars); + free(widetext); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_text_to_gen2( + const char* input_text, + uint8_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_mbstowcs(widetext, input_text, num_chars); + + _pksav_widetext_to_gen2( + widetext, output_buffer, num_chars + ); + + free(widetext); + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gen2/time.c b/libpksav/lib_bak/gen2/time.c new file mode 100644 index 0000000..ef82cf8 --- /dev/null +++ b/libpksav/lib_bak/gen2/time.c @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +pksav_error_t pksav_gen2_set_caught_data_time_field( + const time_t* time_in, + uint16_t* caught_data +) { + if(!time_in || !caught_data) { + return PKSAV_ERROR_NULL_POINTER; + } + + (*caught_data) &= ~PKSAV_GEN2_TIME_OF_DAY_MASK; + + struct tm* gmtm = localtime(time_in); + if(gmtm->tm_hour >= 2 && gmtm->tm_hour <= 8) { + (*caught_data) |= (PKSAV_GEN2_MORNING << PKSAV_GEN2_TIME_OF_DAY_OFFSET); + } else if(gmtm->tm_hour >= 9 && gmtm->tm_hour <= 16) { + (*caught_data) |= (PKSAV_GEN2_DAY << PKSAV_GEN2_TIME_OF_DAY_OFFSET); + } else { + (*caught_data) |= (PKSAV_GEN2_NIGHT << PKSAV_GEN2_TIME_OF_DAY_OFFSET); + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gen4/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib_bak/gen4/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/lib_bak/gen4/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib_bak/gen4/CMakeFiles/progress.marks b/libpksav/lib_bak/gen4/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib_bak/gen4/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib_bak/gen4/CMakeLists.txt b/libpksav/lib_bak/gen4/CMakeLists.txt new file mode 100644 index 0000000..8d6772e --- /dev/null +++ b/libpksav/lib_bak/gen4/CMakeLists.txt @@ -0,0 +1,10 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen4_sources + ${CMAKE_CURRENT_SOURCE_DIR}/text.c +PARENT_SCOPE) diff --git a/libpksav/lib_bak/gen4/Makefile b/libpksav/lib_bak/gen4/Makefile new file mode 100644 index 0000000..b7a3701 --- /dev/null +++ b/libpksav/lib_bak/gen4/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen4//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen4/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/gen4/cmake_install.cmake b/libpksav/lib_bak/gen4/cmake_install.cmake new file mode 100644 index 0000000..74bdb01 --- /dev/null +++ b/libpksav/lib_bak/gen4/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib/gen4 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib_bak/gen4/text.c b/libpksav/lib_bak/gen4/text.c new file mode 100644 index 0000000..497229c --- /dev/null +++ b/libpksav/lib_bak/gen4/text.c @@ -0,0 +1,294 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "../common/text_common.h" + +#include + +#include + +#define PKSAV_GEN4_TERMINATOR 0xFFFF + +/* + * Character map for Generation IV + * + * Source: https://github.com/Chase-san/PokeLib/blob/master/lib/PokeText.cpp + */ +static const wchar_t pksav_gen4_char_map1[] = { //0x0000, + 0x0000,0x3000,0x3041,0x3042,0x3043,0x3044,0x3045,0x3046,0x3047,0x3048,0x3049,0x304A,0x304B,0x304C,0x304D,0x304E, + 0x304F,0x3050,0x3051,0x3052,0x3053,0x3054,0x3055,0x3056,0x3057,0x3058,0x3059,0x305A,0x305B,0x305C,0x305D,0x305E, + 0x305F,0x3060,0x3061,0x3062,0x3063,0x3064,0x3065,0x3066,0x3067,0x3068,0x3069,0x306A,0x306B,0x306C,0x306D,0x306E, + 0x306F,0x3070,0x3071,0x3072,0x3073,0x3074,0x3075,0x3076,0x3077,0x3078,0x3079,0x307A,0x307B,0x307C,0x307D,0x307E, + 0x307F,0x3080,0x3081,0x3082,0x3083,0x3084,0x3085,0x3086,0x3087,0x3088,0x3089,0x308A,0x308B,0x308C,0x308D,0x308F, + 0x3092,0x3093,0x30A1,0x30A2,0x30A3,0x30A4,0x30A5,0x30A6,0x30A7,0x30A8,0x30A9,0x30AA,0x30AB,0x30AC,0x30AD,0x30AE, + 0x30AF,0x30B0,0x30B1,0x30B2,0x30B3,0x30B4,0x30B5,0x30B6,0x30B7,0x30B8,0x30B9,0x30BA,0x30BB,0x30BC,0x30BD,0x30BE, + 0x30BF,0x30C0,0x30C1,0x30C2,0x30C3,0x30C4,0x30C5,0x30C6,0x30C7,0x30C8,0x30C9,0x30CA,0x30CB,0x30CC,0x30CD,0x30CE, + 0x30CF,0x30D0,0x30D1,0x30D2,0x30D3,0x30D4,0x30D5,0x30D6,0x30D7,0x30D8,0x30D9,0x30DA,0x30DB,0x30DC,0x30DD,0x30DE, + 0x30DF,0x30E0,0x30E1,0x30E2,0x30E3,0x30E4,0x30E5,0x30E6,0x30E7,0x30E8,0x30E9,0x30EA,0x30EB,0x30EC,0x30ED,0x30EF, + 0x30F2,0x30F3,0xFF10,0xFF11,0xFF12,0xFF13,0xFF14,0xFF15,0xFF16,0xFF17,0xFF18,0xFF19,0xFF21,0xFF22,0xFF23,0xFF24, + 0xFF25,0xFF26,0xFF27,0xFF28,0xFF29,0xFF2A,0xFF2B,0xFF2C,0xFF2D,0xFF2E,0xFF2F,0xFF30,0xFF31,0xFF32,0xFF33,0xFF34, + 0xFF35,0xFF36,0xFF37,0xFF38,0xFF39,0xFF3A,0xFF41,0xFF42,0xFF43,0xFF44,0xFF45,0xFF46,0xFF47,0xFF48,0xFF49,0xFF4A, + 0xFF4B,0xFF4C,0xFF4D,0xFF4E,0xFF4F,0xFF50,0xFF51,0xFF52,0xFF53,0xFF54,0xFF55,0xFF56,0xFF57,0xFF58,0xFF59,0xFF5A, + 0x0000, //Missing ### + 0xFF01,0xFF1F,0x3001,0x3002,0x22EF,0x30FB,0xFF0F,0x300C,0x300D,0x300E,0x300F,0xFF08,0xFF09,0x329A,0x329B,0xFF0B, + 0xFF0D,0x2297,0x2298,0xFF1D,0xFF5A,0xFF1A,0xFF1B,0xFF0E,0xFF0C,0x2664,0x2667,0x2661,0x2662,0x2606,0x25CE,0x25CB, + 0x25A1,0x25B3,0x25C7,0xFF20,0x266B,0xFF05,0x263C,0x2614,0x2630,0x2744,0x260B,0x2654,0x2655,0x260A,0x2934,0x2935, + 0x263E,0x00A5,0x2648,0x2649,0x264A,0x264B,0x264C,0x264D,0x264E,0x264F,0x2190,0x2191,0x2193,0x2192,0x2023,0xFF06, + 0x0030,0x0031,0x0032,0x0033,0x0034,0x0035,0x0036,0x0037,0x0038,0x0039,0x0041,0x0042,0x0043,0x0044,0x0045,0x0046, + 0x0047,0x0048,0x0049,0x004A,0x004B,0x004C,0x004D,0x004E,0x004F,0x0050,0x0051,0x0052,0x0053,0x0054,0x0055,0x0056, + 0x0057,0x0058,0x0059,0x005A,0x0061,0x0062,0x0063,0x0064,0x0065,0x0066,0x0067,0x0068,0x0069,0x006A,0x006B,0x006C, + 0x006D,0x006E,0x006F,0x0070,0x0071,0x0072,0x0073,0x0074,0x0075,0x0076,0x0077,0x0078,0x0079,0x007A,0x00C0,0x00C1, + 0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,0x00D0,0x00D1, + 0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x00DD,0x00DE,0x00DF,0x00E0,0x00E1, + 0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,0x00F0,0x00F1, + 0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x00F7,0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x00FD,0x00FE,0x00FF,0x0152,0x0153, + 0x015E,0x015F,0x00AA,0x00BA,0x00B9,0x00B2,0x00B3,0x0024,0x00A1,0x00BF,0x0021,0x003F,0x002C,0x002E,0x2026,0x00B7, + 0x002F,0x2018,0x2019,0x201C,0x201D,0x201E,0x300A,0x300B,0x0028,0x0029,0x2642,0x2640,0x002B,0x002D,0x002A,0x0023, + 0x003D,0x0026,0x007E,0x003A,0x003B,0x2660,0x2663,0x2665,0x2666,0x2605,0x25C9,0x25CF,0x25A0,0x25B2,0x25C6,0x0040, + 0x266A,0x0025,0x2600,0x2601,0x2602,0x2603,0x263A,0x265A,0x265B,0x2639,0x2197,0x2198,0x263D,0x0020,0x2074,0x20A7, + 0x20A6,0x00B0,0x005F,0xFF3F, +}; + +static const wchar_t pksav_gen4_char_map2[] = { + 0xAC00,0xAC01,0xAC04,0xAC07,0xAC08,0xAC09,0xAC0A,0xAC10,0xAC11,0xAC12,0xAC13,0xAC14,0xAC15,0xAC16,0xAC17,0xAC19, + 0xAC1A,0xAC1B,0xAC1C,0xAC1D,0xAC20,0xAC24,0xAC2C,0xAC2D,0xAC2F,0xAC30,0xAC31,0xAC38,0xAC39,0xAC3C,0xAC40,0xAC4B, + 0xAC4D,0xAC54,0xAC58,0xAC5C,0xAC70,0xAC71,0xAC74,0xAC77,0xAC78,0xAC7A,0xAC80,0xAC81,0xAC83,0xAC84,0xAC85,0xAC86, + 0xAC89,0xAC8A,0xAC8B,0xAC8C,0xAC90,0xAC94,0xAC9C,0xAC9D,0xAC9F,0xACA0,0xACA1,0xACA8,0xACA9,0xACAA,0xACAC,0xACAF, + 0xACB0,0xACB8,0xACB9,0xACBB,0xACBC,0xACBD,0xACC1,0xACC4,0xACC8,0xACCC,0xACD5,0xACD7,0xACE0,0xACE1,0xACE4,0xACE7, + 0xACE8,0xACEA,0xACEC,0xACEF,0xACF0,0xACF1,0xACF3,0xACF5,0xACF6,0xACFC,0xACFD,0xAD00,0xAD04,0xAD06,0xAD0C,0xAD0D, + 0xAD0F,0xAD11,0xAD18,0xAD1C,0xAD20,0xAD29,0xAD2C,0xAD2D,0xAD34,0xAD35,0xAD38,0xAD3C,0xAD44,0xAD45,0xAD47,0xAD49, + 0xAD50,0xAD54,0xAD58,0xAD61,0xAD63,0xAD6C,0xAD6D,0xAD70,0xAD73,0xAD74,0xAD75,0xAD76,0xAD7B,0xAD7C,0xAD7D,0xAD7F, + 0xAD81,0xAD82,0xAD88,0xAD89,0xAD8C,0xAD90,0xAD9C,0xAD9D,0xADA4,0xADB7,0xADC0,0xADC1,0xADC4,0xADC8,0xADD0,0xADD1, + 0xADD3,0xADDC,0xADE0,0xADE4,0xADF8,0xADF9,0xADFC,0xADFF,0xAE00,0xAE01,0xAE08,0xAE09,0xAE0B,0xAE0D,0xAE14,0xAE30, + 0xAE31,0xAE34,0xAE37,0xAE38,0xAE3A,0xAE40,0xAE41,0xAE43,0xAE45,0xAE46,0xAE4A,0xAE4C,0xAE4D,0xAE4E,0xAE50,0xAE54, + 0xAE56,0xAE5C,0xAE5D,0xAE5F,0xAE60,0xAE61,0xAE65,0xAE68,0xAE69,0xAE6C,0xAE70,0xAE78,0xAE79,0xAE7B,0xAE7C,0xAE7D, + 0xAE84,0xAE85,0xAE8C,0xAEBC,0xAEBD,0xAEBE,0xAEC0,0xAEC4,0xAECC,0xAECD,0xAECF,0xAED0,0xAED1,0xAED8,0xAED9,0xAEDC, + 0xAEE8,0xAEEB,0xAEED,0xAEF4,0xAEF8,0xAEFC,0xAF07,0xAF08,0xAF0D,0xAF10,0xAF2C,0xAF2D,0xAF30,0xAF32,0xAF34,0xAF3C, + 0xAF3D,0xAF3F,0xAF41,0xAF42,0xAF43,0xAF48,0xAF49,0xAF50,0xAF5C,0xAF5D,0xAF64,0xAF65,0xAF79,0xAF80,0xAF84,0xAF88, + 0xAF90,0xAF91,0xAF95,0xAF9C,0xAFB8,0xAFB9,0xAFBC,0xAFC0,0xAFC7,0xAFC8,0xAFC9,0xAFCB,0xAFCD,0xAFCE,0xAFD4,0xAFDC, + 0xAFE8,0xAFE9,0xAFF0,0xAFF1,0xAFF4,0xAFF8,0xB000,0xB001,0xB004,0xB00C,0xB010,0xB014,0xB01C,0xB01D,0xB028,0xB044, + 0xB045,0xB048,0xB04A,0xB04C,0xB04E,0xB053,0xB054,0xB055,0xB057,0xB059,0xB05D,0xB07C,0xB07D,0xB080,0xB084,0xB08C, + 0xB08D,0xB08F,0xB091,0xB098,0xB099,0xB09A,0xB09C,0xB09F,0xB0A0,0xB0A1,0xB0A2,0xB0A8,0xB0A9,0xB0AB,0xB0AC,0xB0AD, + 0xB0AE,0xB0AF,0xB0B1,0xB0B3,0xB0B4,0xB0B5,0xB0B8,0xB0BC,0xB0C4,0xB0C5,0xB0C7,0xB0C8,0xB0C9,0xB0D0,0xB0D1,0xB0D4, + 0xB0D8,0xB0E0,0xB0E5,0xB108,0xB109,0xB10B,0xB10C,0xB110,0xB112,0xB113,0xB118,0xB119,0xB11B,0xB11C,0xB11D,0xB123, + 0xB124,0xB125,0xB128,0xB12C,0xB134,0xB135,0xB137,0xB138,0xB139,0xB140,0xB141,0xB144,0xB148,0xB150,0xB151,0xB154, + 0xB155,0xB158,0xB15C,0xB160,0xB178,0xB179,0xB17C,0xB180,0xB182,0xB188,0xB189,0xB18B,0xB18D,0xB192,0xB193,0xB194, + 0xB198,0xB19C,0xB1A8,0xB1CC,0xB1D0,0xB1D4,0xB1DC,0xB1DD,0xB1DF,0xB1E8,0xB1E9,0xB1EC,0xB1F0,0xB1F9,0xB1FB,0xB1FD, + 0xB204,0xB205,0xB208,0xB20B,0xB20C,0xB214,0xB215,0xB217,0xB219,0xB220,0xB234,0xB23C,0xB258,0xB25C,0xB260,0xB268, + 0xB269,0xB274,0xB275,0xB27C,0xB284,0xB285,0xB289,0xB290,0xB291,0xB294,0xB298,0xB299,0xB29A,0xB2A0,0xB2A1,0xB2A3, + 0xB2A5,0xB2A6,0xB2AA,0xB2AC,0xB2B0,0xB2B4,0xB2C8,0xB2C9,0xB2CC,0xB2D0,0xB2D2,0xB2D8,0xB2D9,0xB2DB,0xB2DD,0xB2E2, + 0xB2E4,0xB2E5,0xB2E6,0xB2E8,0xB2EB,0xB2EC,0xB2ED,0xB2EE,0xB2EF,0xB2F3,0xB2F4,0xB2F5,0xB2F7,0xB2F8,0xB2F9,0xB2FA, + 0xB2FB,0xB2FF,0xB300,0xB301,0xB304,0xB308,0xB310,0xB311,0xB313,0xB314,0xB315,0xB31C,0xB354,0xB355,0xB356,0xB358, + 0xB35B,0xB35C,0xB35E,0xB35F,0xB364,0xB365,0xB367,0xB369,0xB36B,0xB36E,0xB370,0xB371,0xB374,0xB378,0xB380,0xB381, + 0xB383,0xB384,0xB385,0xB38C,0xB390,0xB394,0xB3A0,0xB3A1,0xB3A8,0xB3AC,0xB3C4,0xB3C5,0xB3C8,0xB3CB,0xB3CC,0xB3CE, + 0xB3D0,0xB3D4,0xB3D5,0xB3D7,0xB3D9,0xB3DB,0xB3DD,0xB3E0,0xB3E4,0xB3E8,0xB3FC,0xB410,0xB418,0xB41C,0xB420,0xB428, + 0xB429,0xB42B,0xB434,0xB450,0xB451,0xB454,0xB458,0xB460,0xB461,0xB463,0xB465,0xB46C,0xB480,0xB488,0xB49D,0xB4A4, + 0xB4A8,0xB4AC,0xB4B5,0xB4B7,0xB4B9,0xB4C0,0xB4C4,0xB4C8,0xB4D0,0xB4D5,0xB4DC,0xB4DD,0xB4E0,0xB4E3,0xB4E4,0xB4E6, + 0xB4EC,0xB4ED,0xB4EF,0xB4F1,0xB4F8,0xB514,0xB515,0xB518,0xB51B,0xB51C,0xB524,0xB525,0xB527,0xB528,0xB529,0xB52A, + 0xB530,0xB531,0xB534,0xB538,0xB540,0xB541,0xB543,0xB544,0xB545,0xB54B,0xB54C,0xB54D,0xB550,0xB554,0xB55C,0xB55D, + 0xB55F,0xB560,0xB561,0xB5A0,0xB5A1,0xB5A4,0xB5A8,0xB5AA,0xB5AB,0xB5B0,0xB5B1,0xB5B3,0xB5B4,0xB5B5,0xB5BB,0xB5BC, + 0xB5BD,0xB5C0,0xB5C4,0xB5CC,0xB5CD,0xB5CF,0xB5D0,0xB5D1,0xB5D8,0xB5EC,0xB610,0xB611,0xB614,0xB618,0xB625,0xB62C, + 0xB634,0xB648,0xB664,0xB668,0xB69C,0xB69D,0xB6A0,0xB6A4,0xB6AB,0xB6AC,0xB6B1,0xB6D4,0xB6F0,0xB6F4,0xB6F8,0xB700, + 0xB701,0xB705,0xB728,0xB729,0xB72C,0xB72F,0xB730,0xB738,0xB739,0xB73B,0xB744,0xB748,0xB74C,0xB754,0xB755,0xB760, + 0xB764,0xB768,0xB770,0xB771,0xB773,0xB775,0xB77C,0xB77D,0xB780,0xB784,0xB78C,0xB78D,0xB78F,0xB790,0xB791,0xB792, + 0xB796,0xB797,0xB798,0xB799,0xB79C,0xB7A0,0xB7A8,0xB7A9,0xB7AB,0xB7AC,0xB7AD,0xB7B4,0xB7B5,0xB7B8,0xB7C7,0xB7C9, + 0xB7EC,0xB7ED,0xB7F0,0xB7F4,0xB7FC,0xB7FD,0xB7FF,0xB800,0xB801,0xB807,0xB808,0xB809,0xB80C,0xB810,0xB818,0xB819, + 0xB81B,0xB81D,0xB824,0xB825,0xB828,0xB82C,0xB834,0xB835,0xB837,0xB838,0xB839,0xB840,0xB844,0xB851,0xB853,0xB85C, + 0xB85D,0xB860,0xB864,0xB86C,0xB86D,0xB86F,0xB871,0xB878,0xB87C,0xB88D,0xB8A8,0xB8B0,0xB8B4,0xB8B8,0xB8C0,0xB8C1, + 0xB8C3,0xB8C5,0xB8CC,0xB8D0,0xB8D4,0xB8DD,0xB8DF,0xB8E1,0xB8E8,0xB8E9,0xB8EC,0xB8F0,0xB8F8,0xB8F9,0xB8FB,0xB8FD, + 0xB904,0xB918,0xB920,0xB93C,0xB93D,0xB940,0xB944,0xB94C,0xB94F,0xB951,0xB958,0xB959,0xB95C,0xB960,0xB968,0xB969, + 0xB96B,0xB96D,0xB974,0xB975,0xB978,0xB97C,0xB984,0xB985,0xB987,0xB989,0xB98A,0xB98D,0xB98E,0xB9AC,0xB9AD,0xB9B0, + 0xB9B4,0xB9BC,0xB9BD,0xB9BF,0xB9C1,0xB9C8,0xB9C9,0xB9CC,0xB9CE,0xB9CF,0xB9D0,0xB9D1,0xB9D2,0xB9D8,0xB9D9,0xB9DB, + 0xB9DD,0xB9DE,0xB9E1,0xB9E3,0xB9E4,0xB9E5,0xB9E8,0xB9EC,0xB9F4,0xB9F5,0xB9F7,0xB9F8,0xB9F9,0xB9FA,0xBA00,0xBA01, + 0xBA08,0xBA15,0xBA38,0xBA39,0xBA3C,0xBA40,0xBA42,0xBA48,0xBA49,0xBA4B,0xBA4D,0xBA4E,0xBA53,0xBA54,0xBA55,0xBA58, + 0xBA5C,0xBA64,0xBA65,0xBA67,0xBA68,0xBA69,0xBA70,0xBA71,0xBA74,0xBA78,0xBA83,0xBA84,0xBA85,0xBA87,0xBA8C,0xBAA8, + 0xBAA9,0xBAAB,0xBAAC,0xBAB0,0xBAB2,0xBAB8,0xBAB9,0xBABB,0xBABD,0xBAC4,0xBAC8,0xBAD8,0xBAD9,0xBAFC,0xBB00,0xBB04, + 0xBB0D,0xBB0F,0xBB11,0xBB18,0xBB1C,0xBB20,0xBB29,0xBB2B,0xBB34,0xBB35,0xBB36,0xBB38,0xBB3B,0xBB3C,0xBB3D,0xBB3E, + 0xBB44,0xBB45,0xBB47,0xBB49,0xBB4D,0xBB4F,0xBB50,0xBB54,0xBB58,0xBB61,0xBB63,0xBB6C,0xBB88,0xBB8C,0xBB90,0xBBA4, + 0xBBA8,0xBBAC,0xBBB4,0xBBB7,0xBBC0,0xBBC4,0xBBC8,0xBBD0,0xBBD3,0xBBF8,0xBBF9,0xBBFC,0xBBFF,0xBC00,0xBC02,0xBC08, + 0xBC09,0xBC0B,0xBC0C,0xBC0D,0xBC0F,0xBC11,0xBC14,0xBC15,0xBC16,0xBC17,0xBC18,0xBC1B,0xBC1C,0xBC1D,0xBC1E,0xBC1F, + 0xBC24,0xBC25,0xBC27,0xBC29,0xBC2D,0xBC30,0xBC31,0xBC34,0xBC38,0xBC40,0xBC41,0xBC43,0xBC44,0xBC45,0xBC49,0xBC4C, + 0xBC4D,0xBC50,0xBC5D,0xBC84,0xBC85,0xBC88,0xBC8B,0xBC8C,0xBC8E,0xBC94,0xBC95,0xBC97,0xBC99,0xBC9A,0xBCA0,0xBCA1, + 0xBCA4,0xBCA7,0xBCA8,0xBCB0,0xBCB1,0xBCB3,0xBCB4,0xBCB5,0xBCBC,0xBCBD,0xBCC0,0xBCC4,0xBCCD,0xBCCF,0xBCD0,0xBCD1, + 0xBCD5,0xBCD8,0xBCDC,0xBCF4,0xBCF5,0xBCF6,0xBCF8,0xBCFC,0xBD04,0xBD05,0xBD07,0xBD09,0xBD10,0xBD14,0xBD24,0xBD2C, + 0xBD40,0xBD48,0xBD49,0xBD4C,0xBD50,0xBD58,0xBD59,0xBD64,0xBD68,0xBD80,0xBD81,0xBD84,0xBD87,0xBD88,0xBD89,0xBD8A, + 0xBD90,0xBD91,0xBD93,0xBD95,0xBD99,0xBD9A,0xBD9C,0xBDA4,0xBDB0,0xBDB8,0xBDD4,0xBDD5,0xBDD8,0xBDDC,0xBDE9,0xBDF0, + 0xBDF4,0xBDF8,0xBE00,0xBE03,0xBE05,0xBE0C,0xBE0D,0xBE10,0xBE14,0xBE1C,0xBE1D,0xBE1F,0xBE44,0xBE45,0xBE48,0xBE4C, + 0xBE4E,0xBE54,0xBE55,0xBE57,0xBE59,0xBE5A,0xBE5B,0xBE60,0xBE61,0xBE64,0xBE68,0xBE6A,0xBE70,0xBE71,0xBE73,0xBE74, + 0xBE75,0xBE7B,0xBE7C,0xBE7D,0xBE80,0xBE84,0xBE8C,0xBE8D,0xBE8F,0xBE90,0xBE91,0xBE98,0xBE99,0xBEA8,0xBED0,0xBED1, + 0xBED4,0xBED7,0xBED8,0xBEE0,0xBEE3,0xBEE4,0xBEE5,0xBEEC,0xBF01,0xBF08,0xBF09,0xBF18,0xBF19,0xBF1B,0xBF1C,0xBF1D, + 0xBF40,0xBF41,0xBF44,0xBF48,0xBF50,0xBF51,0xBF55,0xBF94,0xBFB0,0xBFC5,0xBFCC,0xBFCD,0xBFD0,0xBFD4,0xBFDC,0xBFDF, + 0xBFE1,0xC03C,0xC051,0xC058,0xC05C,0xC060,0xC068,0xC069,0xC090,0xC091,0xC094,0xC098,0xC0A0,0xC0A1,0xC0A3,0xC0A5, + 0xC0AC,0xC0AD,0xC0AF,0xC0B0,0xC0B3,0xC0B4,0xC0B5,0xC0B6,0xC0BC,0xC0BD,0xC0BF,0xC0C0,0xC0C1,0xC0C5,0xC0C8,0xC0C9, + 0xC0CC,0xC0D0,0xC0D8,0xC0D9,0xC0DB,0xC0DC,0xC0DD,0xC0E4,0xC0E5,0xC0E8,0xC0EC,0xC0F4,0xC0F5,0xC0F7,0xC0F9,0xC100, + 0xC104,0xC108,0xC110,0xC115,0xC11C,0xC11D,0xC11E,0xC11F,0xC120,0xC123,0xC124,0xC126,0xC127,0xC12C,0xC12D,0xC12F, + 0xC130,0xC131,0xC136,0xC138,0xC139,0xC13C,0xC140,0xC148,0xC149,0xC14B,0xC14C,0xC14D,0xC154,0xC155,0xC158,0xC15C, + 0xC164,0xC165,0xC167,0xC168,0xC169,0xC170,0xC174,0xC178,0xC185,0xC18C,0xC18D,0xC18E,0xC190,0xC194,0xC196,0xC19C, + 0xC19D,0xC19F,0xC1A1,0xC1A5,0xC1A8,0xC1A9,0xC1AC,0xC1B0,0xC1BD,0xC1C4,0xC1C8,0xC1CC,0xC1D4,0xC1D7,0xC1D8,0xC1E0, + 0xC1E4,0xC1E8,0xC1F0,0xC1F1,0xC1F3,0xC1FC,0xC1FD,0xC200,0xC204,0xC20C,0xC20D,0xC20F,0xC211,0xC218,0xC219,0xC21C, + 0xC21F,0xC220,0xC228,0xC229,0xC22B,0xC22D,0xC22F,0xC231,0xC232,0xC234,0xC248,0xC250,0xC251,0xC254,0xC258,0xC260, + 0xC265,0xC26C,0xC26D,0xC270,0xC274,0xC27C,0xC27D,0xC27F,0xC281,0xC288,0xC289,0xC290,0xC298,0xC29B,0xC29D,0xC2A4, + 0xC2A5,0xC2A8,0xC2AC,0xC2AD,0xC2B4,0xC2B5,0xC2B7,0xC2B9,0xC2DC,0xC2DD,0xC2E0,0xC2E3,0xC2E4,0xC2EB,0xC2EC,0xC2ED, + 0xC2EF,0xC2F1,0xC2F6,0xC2F8,0xC2F9,0xC2FB,0xC2FC,0xC300,0xC308,0xC309,0xC30C,0xC30D,0xC313,0xC314,0xC315,0xC318, + 0xC31C,0xC324,0xC325,0xC328,0xC329,0xC345,0xC368,0xC369,0xC36C,0xC370,0xC372,0xC378,0xC379,0xC37C,0xC37D,0xC384, + 0xC388,0xC38C,0xC3C0,0xC3D8,0xC3D9,0xC3DC,0xC3DF,0xC3E0,0xC3E2,0xC3E8,0xC3E9,0xC3ED,0xC3F4,0xC3F5,0xC3F8,0xC408, + 0xC410,0xC424,0xC42C,0xC430,0xC434,0xC43C,0xC43D,0xC448,0xC464,0xC465,0xC468,0xC46C,0xC474,0xC475,0xC479,0xC480, + 0xC494,0xC49C,0xC4B8,0xC4BC,0xC4E9,0xC4F0,0xC4F1,0xC4F4,0xC4F8,0xC4FA,0xC4FF,0xC500,0xC501,0xC50C,0xC510,0xC514, + 0xC51C,0xC528,0xC529,0xC52C,0xC530,0xC538,0xC539,0xC53B,0xC53D,0xC544,0xC545,0xC548,0xC549,0xC54A,0xC54C,0xC54D, + 0xC54E,0xC553,0xC554,0xC555,0xC557,0xC558,0xC559,0xC55D,0xC55E,0xC560,0xC561,0xC564,0xC568,0xC570,0xC571,0xC573, + 0xC574,0xC575,0xC57C,0xC57D,0xC580,0xC584,0xC587,0xC58C,0xC58D,0xC58F,0xC591,0xC595,0xC597,0xC598,0xC59C,0xC5A0, + 0xC5A9,0xC5B4,0xC5B5,0xC5B8,0xC5B9,0xC5BB,0xC5BC,0xC5BD,0xC5BE,0xC5C4,0xC5C5,0xC5C6,0xC5C7,0xC5C8,0xC5C9,0xC5CA, + 0xC5CC,0xC5CE,0xC5D0,0xC5D1,0xC5D4,0xC5D8,0xC5E0,0xC5E1,0xC5E3,0xC5E5,0xC5EC,0xC5ED,0xC5EE,0xC5F0,0xC5F4,0xC5F6, + 0xC5F7,0xC5FC,0xC5FD,0xC5FE,0xC5FF,0xC600,0xC601,0xC605,0xC606,0xC607,0xC608,0xC60C,0xC610,0xC618,0xC619,0xC61B, + 0xC61C,0xC624,0xC625,0xC628,0xC62C,0xC62D,0xC62E,0xC630,0xC633,0xC634,0xC635,0xC637,0xC639,0xC63B,0xC640,0xC641, + 0xC644,0xC648,0xC650,0xC651,0xC653,0xC654,0xC655,0xC65C,0xC65D,0xC660,0xC66C,0xC66F,0xC671,0xC678,0xC679,0xC67C, + 0xC680,0xC688,0xC689,0xC68B,0xC68D,0xC694,0xC695,0xC698,0xC69C,0xC6A4,0xC6A5,0xC6A7,0xC6A9,0xC6B0,0xC6B1,0xC6B4, + 0xC6B8,0xC6B9,0xC6BA,0xC6C0,0xC6C1,0xC6C3,0xC6C5,0xC6CC,0xC6CD,0xC6D0,0xC6D4,0xC6DC,0xC6DD,0xC6E0,0xC6E1,0xC6E8, + 0xC6E9,0xC6EC,0xC6F0,0xC6F8,0xC6F9,0xC6FD,0xC704,0xC705,0xC708,0xC70C,0xC714,0xC715,0xC717,0xC719,0xC720,0xC721, + 0xC724,0xC728,0xC730,0xC731,0xC733,0xC735,0xC737,0xC73C,0xC73D,0xC740,0xC744,0xC74A,0xC74C,0xC74D,0xC74F,0xC751, + 0xC752,0xC753,0xC754,0xC755,0xC756,0xC757,0xC758,0xC75C,0xC760,0xC768,0xC76B,0xC774,0xC775,0xC778,0xC77C,0xC77D, + 0xC77E,0xC783,0xC784,0xC785,0xC787,0xC788,0xC789,0xC78A,0xC78E,0xC790,0xC791,0xC794,0xC796,0xC797,0xC798,0xC79A, + 0xC7A0,0xC7A1,0xC7A3,0xC7A4,0xC7A5,0xC7A6,0xC7AC,0xC7AD,0xC7B0,0xC7B4,0xC7BC,0xC7BD,0xC7BF,0xC7C0,0xC7C1,0xC7C8, + 0xC7C9,0xC7CC,0xC7CE,0xC7D0,0xC7D8,0xC7DD,0xC7E4,0xC7E8,0xC7EC,0xC800,0xC801,0xC804,0xC808,0xC80A,0xC810,0xC811, + 0xC813,0xC815,0xC816,0xC81C,0xC81D,0xC820,0xC824,0xC82C,0xC82D,0xC82F,0xC831,0xC838,0xC83C,0xC840,0xC848,0xC849, + 0xC84C,0xC84D,0xC854,0xC870,0xC871,0xC874,0xC878,0xC87A,0xC880,0xC881,0xC883,0xC885,0xC886,0xC887,0xC88B,0xC88C, + 0xC88D,0xC894,0xC89D,0xC89F,0xC8A1,0xC8A8,0xC8BC,0xC8BD,0xC8C4,0xC8C8,0xC8CC,0xC8D4,0xC8D5,0xC8D7,0xC8D9,0xC8E0, + 0xC8E1,0xC8E4,0xC8F5,0xC8FC,0xC8FD,0xC900,0xC904,0xC905,0xC906,0xC90C,0xC90D,0xC90F,0xC911,0xC918,0xC92C,0xC934, + 0xC950,0xC951,0xC954,0xC958,0xC960,0xC961,0xC963,0xC96C,0xC970,0xC974,0xC97C,0xC988,0xC989,0xC98C,0xC990,0xC998, + 0xC999,0xC99B,0xC99D,0xC9C0,0xC9C1,0xC9C4,0xC9C7,0xC9C8,0xC9CA,0xC9D0,0xC9D1,0xC9D3,0xC9D5,0xC9D6,0xC9D9,0xC9DA, + 0xC9DC,0xC9DD,0xC9E0,0xC9E2,0xC9E4,0xC9E7,0xC9EC,0xC9ED,0xC9EF,0xC9F0,0xC9F1,0xC9F8,0xC9F9,0xC9FC,0xCA00,0xCA08, + 0xCA09,0xCA0B,0xCA0C,0xCA0D,0xCA14,0xCA18,0xCA29,0xCA4C,0xCA4D,0xCA50,0xCA54,0xCA5C,0xCA5D,0xCA5F,0xCA60,0xCA61, + 0xCA68,0xCA7D,0xCA84,0xCA98,0xCABC,0xCABD,0xCAC0,0xCAC4,0xCACC,0xCACD,0xCACF,0xCAD1,0xCAD3,0xCAD8,0xCAD9,0xCAE0, + 0xCAEC,0xCAF4,0xCB08,0xCB10,0xCB14,0xCB18,0xCB20,0xCB21,0xCB41,0xCB48,0xCB49,0xCB4C,0xCB50,0xCB58,0xCB59,0xCB5D, + 0xCB64,0xCB78,0xCB79,0xCB9C,0xCBB8,0xCBD4,0xCBE4,0xCBE7,0xCBE9,0xCC0C,0xCC0D,0xCC10,0xCC14,0xCC1C,0xCC1D,0xCC21, + 0xCC22,0xCC27,0xCC28,0xCC29,0xCC2C,0xCC2E,0xCC30,0xCC38,0xCC39,0xCC3B,0xCC3C,0xCC3D,0xCC3E,0xCC44,0xCC45,0xCC48, + 0xCC4C,0xCC54,0xCC55,0xCC57,0xCC58,0xCC59,0xCC60,0xCC64,0xCC66,0xCC68,0xCC70,0xCC75,0xCC98,0xCC99,0xCC9C,0xCCA0, + 0xCCA8,0xCCA9,0xCCAB,0xCCAC,0xCCAD,0xCCB4,0xCCB5,0xCCB8,0xCCBC,0xCCC4,0xCCC5,0xCCC7,0xCCC9,0xCCD0,0xCCD4,0xCCE4, + 0xCCEC,0xCCF0,0xCD01,0xCD08,0xCD09,0xCD0C,0xCD10,0xCD18,0xCD19,0xCD1B,0xCD1D,0xCD24,0xCD28,0xCD2C,0xCD39,0xCD5C, + 0xCD60,0xCD64,0xCD6C,0xCD6D,0xCD6F,0xCD71,0xCD78,0xCD88,0xCD94,0xCD95,0xCD98,0xCD9C,0xCDA4,0xCDA5,0xCDA7,0xCDA9, + 0xCDB0,0xCDC4,0xCDCC,0xCDD0,0xCDE8,0xCDEC,0xCDF0,0xCDF8,0xCDF9,0xCDFB,0xCDFD,0xCE04,0xCE08,0xCE0C,0xCE14,0xCE19, + 0xCE20,0xCE21,0xCE24,0xCE28,0xCE30,0xCE31,0xCE33,0xCE35,0xCE58,0xCE59,0xCE5C,0xCE5F,0xCE60,0xCE61,0xCE68,0xCE69, + 0xCE6B,0xCE6D,0xCE74,0xCE75,0xCE78,0xCE7C,0xCE84,0xCE85,0xCE87,0xCE89,0xCE90,0xCE91,0xCE94,0xCE98,0xCEA0,0xCEA1, + 0xCEA3,0xCEA4,0xCEA5,0xCEAC,0xCEAD,0xCEC1,0xCEE4,0xCEE5,0xCEE8,0xCEEB,0xCEEC,0xCEF4,0xCEF5,0xCEF7,0xCEF8,0xCEF9, + 0xCF00,0xCF01,0xCF04,0xCF08,0xCF10,0xCF11,0xCF13,0xCF15,0xCF1C,0xCF20,0xCF24,0xCF2C,0xCF2D,0xCF2F,0xCF30,0xCF31, + 0xCF38,0xCF54,0xCF55,0xCF58,0xCF5C,0xCF64,0xCF65,0xCF67,0xCF69,0xCF70,0xCF71,0xCF74,0xCF78,0xCF80,0xCF85,0xCF8C, + 0xCFA1,0xCFA8,0xCFB0,0xCFC4,0xCFE0,0xCFE1,0xCFE4,0xCFE8,0xCFF0,0xCFF1,0xCFF3,0xCFF5,0xCFFC,0xD000,0xD004,0xD011, + 0xD018,0xD02D,0xD034,0xD035,0xD038,0xD03C,0xD044,0xD045,0xD047,0xD049,0xD050,0xD054,0xD058,0xD060,0xD06C,0xD06D, + 0xD070,0xD074,0xD07C,0xD07D,0xD081,0xD0A4,0xD0A5,0xD0A8,0xD0AC,0xD0B4,0xD0B5,0xD0B7,0xD0B9,0xD0C0,0xD0C1,0xD0C4, + 0xD0C8,0xD0C9,0xD0D0,0xD0D1,0xD0D3,0xD0D4,0xD0D5,0xD0DC,0xD0DD,0xD0E0,0xD0E4,0xD0EC,0xD0ED,0xD0EF,0xD0F0,0xD0F1, + 0xD0F8,0xD10D,0xD130,0xD131,0xD134,0xD138,0xD13A,0xD140,0xD141,0xD143,0xD144,0xD145,0xD14C,0xD14D,0xD150,0xD154, + 0xD15C,0xD15D,0xD15F,0xD161,0xD168,0xD16C,0xD17C,0xD184,0xD188,0xD1A0,0xD1A1,0xD1A4,0xD1A8,0xD1B0,0xD1B1,0xD1B3, + 0xD1B5,0xD1BA,0xD1BC,0xD1C0,0xD1D8,0xD1F4,0xD1F8,0xD207,0xD209,0xD210,0xD22C,0xD22D,0xD230,0xD234,0xD23C,0xD23D, + 0xD23F,0xD241,0xD248,0xD25C,0xD264,0xD280,0xD281,0xD284,0xD288,0xD290,0xD291,0xD295,0xD29C,0xD2A0,0xD2A4,0xD2AC, + 0xD2B1,0xD2B8,0xD2B9,0xD2BC,0xD2BF,0xD2C0,0xD2C2,0xD2C8,0xD2C9,0xD2CB,0xD2D4,0xD2D8,0xD2DC,0xD2E4,0xD2E5,0xD2F0, + 0xD2F1,0xD2F4,0xD2F8,0xD300,0xD301,0xD303,0xD305,0xD30C,0xD30D,0xD30E,0xD310,0xD314,0xD316,0xD31C,0xD31D,0xD31F, + 0xD320,0xD321,0xD325,0xD328,0xD329,0xD32C,0xD330,0xD338,0xD339,0xD33B,0xD33C,0xD33D,0xD344,0xD345,0xD37C,0xD37D, + 0xD380,0xD384,0xD38C,0xD38D,0xD38F,0xD390,0xD391,0xD398,0xD399,0xD39C,0xD3A0,0xD3A8,0xD3A9,0xD3AB,0xD3AD,0xD3B4, + 0xD3B8,0xD3BC,0xD3C4,0xD3C5,0xD3C8,0xD3C9,0xD3D0,0xD3D8,0xD3E1,0xD3E3,0xD3EC,0xD3ED,0xD3F0,0xD3F4,0xD3FC,0xD3FD, + 0xD3FF,0xD401,0xD408,0xD41D,0xD440,0xD444,0xD45C,0xD460,0xD464,0xD46D,0xD46F,0xD478,0xD479,0xD47C,0xD47F,0xD480, + 0xD482,0xD488,0xD489,0xD48B,0xD48D,0xD494,0xD4A9,0xD4CC,0xD4D0,0xD4D4,0xD4DC,0xD4DF,0xD4E8,0xD4EC,0xD4F0,0xD4F8, + 0xD4FB,0xD4FD,0xD504,0xD508,0xD50C,0xD514,0xD515,0xD517,0xD53C,0xD53D,0xD540,0xD544,0xD54C,0xD54D,0xD54F,0xD551, + 0xD558,0xD559,0xD55C,0xD560,0xD565,0xD568,0xD569,0xD56B,0xD56D,0xD574,0xD575,0xD578,0xD57C,0xD584,0xD585,0xD587, + 0xD588,0xD589,0xD590,0xD5A5,0xD5C8,0xD5C9,0xD5CC,0xD5D0,0xD5D2,0xD5D8,0xD5D9,0xD5DB,0xD5DD,0xD5E4,0xD5E5,0xD5E8, + 0xD5EC,0xD5F4,0xD5F5,0xD5F7,0xD5F9,0xD600,0xD601,0xD604,0xD608,0xD610,0xD611,0xD613,0xD614,0xD615,0xD61C,0xD620, + 0xD624,0xD62D,0xD638,0xD639,0xD63C,0xD640,0xD645,0xD648,0xD649,0xD64B,0xD64D,0xD651,0xD654,0xD655,0xD658,0xD65C, + 0xD667,0xD669,0xD670,0xD671,0xD674,0xD683,0xD685,0xD68C,0xD68D,0xD690,0xD694,0xD69D,0xD69F,0xD6A1,0xD6A8,0xD6AC, + 0xD6B0,0xD6B9,0xD6BB,0xD6C4,0xD6C5,0xD6C8,0xD6CC,0xD6D1,0xD6D4,0xD6D7,0xD6D9,0xD6E0,0xD6E4,0xD6E8,0xD6F0,0xD6F5, + 0xD6FC,0xD6FD,0xD700,0xD704,0xD711,0xD718,0xD719,0xD71C,0xD720,0xD728,0xD729,0xD72B,0xD72D,0xD734,0xD735,0xD738, + 0xD73C,0xD744,0xD747,0xD749,0xD750,0xD751,0xD754,0xD756,0xD757,0xD758,0xD759,0xD760,0xD761,0xD763,0xD765,0xD769, + 0xD76C,0xD770,0xD774,0xD77C,0xD77D,0xD781,0xD788,0xD789,0xD78C,0xD790,0xD798,0xD799,0xD79B,0xD79D,0x1100,0x1101, + 0x1102,0x1103,0x1104,0x1105,0x1106,0x1107,0x1108,0x1109,0x110A,0x110B,0x110C,0x110D,0x110E,0x110F,0x1110,0x1111, + 0x1112,0x1161,0x1162,0x1163,0x1164,0x1165,0x1166,0x1167,0x1168,0x1169,0x116D,0x116E,0x1172,0x1173,0x1175,0xB894, + 0xC330,0xC3BC,0xC4D4,0xCB2C, +}; + +pksav_error_t pksav_text_from_gen4( + const uint16_t* input_buffer, + char* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + pksav_widetext_from_gen4( + input_buffer, widetext, num_chars + ); + + memset(output_text, 0, num_chars); + wcstombs(output_text, widetext, num_chars); + free(widetext); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_widetext_from_gen4( + const uint16_t* input_buffer, + wchar_t* output_text, + size_t num_chars +) { + if(!input_buffer || !output_text) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_text, 0, sizeof(wchar_t)*num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + if(input_buffer[i] < 0x400) { + output_text[i] = pksav_gen4_char_map1[input_buffer[i]]; + } else { + output_text[i] = pksav_gen4_char_map2[input_buffer[i]]; + } + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_text_to_gen4( + const char* input_text, + uint16_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + wchar_t* widetext = calloc(num_chars, sizeof(wchar_t)); + mbstowcs(widetext, input_text, num_chars); + + pksav_widetext_to_gen4( + widetext, output_buffer, num_chars + ); + + free(widetext); + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_widetext_to_gen4( + const wchar_t* input_text, + uint16_t* output_buffer, + size_t num_chars +) { + if(!input_text || !output_buffer) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(output_buffer, 0xFF, sizeof(wchar_t)*num_chars); + + for(size_t i = 0; i < num_chars; ++i) { + ssize_t index = wchar_map_index(pksav_gen4_char_map2, 485, input_text[i]); + if(index == -1) { + break; + } else { + output_buffer[i] = (uint16_t)index; + } + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/gen5/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib_bak/gen5/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/lib_bak/gen5/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib_bak/gen5/CMakeFiles/progress.marks b/libpksav/lib_bak/gen5/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib_bak/gen5/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib_bak/gen5/CMakeLists.txt b/libpksav/lib_bak/gen5/CMakeLists.txt new file mode 100644 index 0000000..d6bea97 --- /dev/null +++ b/libpksav/lib_bak/gen5/CMakeLists.txt @@ -0,0 +1,10 @@ +# +# Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_gen5_sources + ${CMAKE_CURRENT_SOURCE_DIR}/text.c +PARENT_SCOPE) diff --git a/libpksav/lib_bak/gen5/Makefile b/libpksav/lib_bak/gen5/Makefile new file mode 100644 index 0000000..784c465 --- /dev/null +++ b/libpksav/lib_bak/gen5/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/gen5//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/gen5/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/gen5/cmake_install.cmake b/libpksav/lib_bak/gen5/cmake_install.cmake new file mode 100644 index 0000000..fff0b7c --- /dev/null +++ b/libpksav/lib_bak/gen5/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib/gen5 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib_bak/gen5/text.c b/libpksav/lib_bak/gen5/text.c new file mode 100644 index 0000000..e1cd990 --- /dev/null +++ b/libpksav/lib_bak/gen5/text.c @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include "../common/xds_common.h" + +#include + +pksav_error_t pksav_text_from_gen5( + const uint16_t* input_buffer, + char* output_text, + size_t num_chars +) { + return _pksav_text_from_xds( + input_buffer, + output_text, + num_chars + ); +} + +pksav_error_t pksav_widetext_from_gen5( + const uint16_t* input_buffer, + wchar_t* output_text, + size_t num_chars +) { + return _pksav_widetext_from_xds( + input_buffer, + output_text, + num_chars + ); +} + +pksav_error_t pksav_text_to_gen5( + const char* input_text, + uint16_t* output_buffer, + size_t num_chars +) { + return _pksav_text_to_xds( + input_text, + output_buffer, + num_chars + ); +} + +pksav_error_t pksav_widetext_to_gen5( + const wchar_t* input_text, + uint16_t* output_buffer, + size_t num_chars +) { + return _pksav_widetext_to_xds( + input_text, + output_buffer, + num_chars + ); +} diff --git a/libpksav/lib_bak/libpksav.dylib b/libpksav/lib_bak/libpksav.dylib new file mode 100755 index 0000000..c4fd3c2 Binary files /dev/null and b/libpksav/lib_bak/libpksav.dylib differ diff --git a/libpksav/lib_bak/math/CMakeFiles/CMakeDirectoryInformation.cmake b/libpksav/lib_bak/math/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..ae19f46 --- /dev/null +++ b/libpksav/lib_bak/math/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/spencer/Projects/pksav") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/spencer/Projects/pksav") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/libpksav/lib_bak/math/CMakeFiles/progress.marks b/libpksav/lib_bak/math/CMakeFiles/progress.marks new file mode 100644 index 0000000..573541a --- /dev/null +++ b/libpksav/lib_bak/math/CMakeFiles/progress.marks @@ -0,0 +1 @@ +0 diff --git a/libpksav/lib_bak/math/CMakeLists.txt b/libpksav/lib_bak/math/CMakeLists.txt new file mode 100644 index 0000000..1a10aa1 --- /dev/null +++ b/libpksav/lib_bak/math/CMakeLists.txt @@ -0,0 +1,11 @@ +# +# Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) +# +# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt +# or copy at http://opensource.org/licenses/MIT) +# + +SET(pksav_math_sources + ${CMAKE_CURRENT_SOURCE_DIR}/base256.c + ${CMAKE_CURRENT_SOURCE_DIR}/bcd.c +PARENT_SCOPE) diff --git a/libpksav/lib_bak/math/Makefile b/libpksav/lib_bak/math/Makefile new file mode 100644 index 0000000..59f811e --- /dev/null +++ b/libpksav/lib_bak/math/Makefile @@ -0,0 +1,200 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.27 + +# Default target executed when no arguments are given to make. +default_target: all +.PHONY : default_target + +# Allow only one "make -f Makefile2" at a time, but pass parallelism. +.NOTPARALLEL: + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + +# Disable VCS-based implicit rules. +% : %,v + +# Disable VCS-based implicit rules. +% : RCS/% + +# Disable VCS-based implicit rules. +% : RCS/%,v + +# Disable VCS-based implicit rules. +% : SCCS/s.% + +# Disable VCS-based implicit rules. +% : s.% + +.SUFFIXES: .hpux_make_needs_suffix_list + +# Command-line flag to silence nested $(MAKE). +$(VERBOSE)MAKESILENT = -s + +#Suppress display of executed commands. +$(VERBOSE).SILENT: + +# A target that is always out of date. +cmake_force: +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake + +# The command to remove a file. +RM = /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E rm -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /Users/spencer/Projects/pksav + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /Users/spencer/Projects/pksav + +#============================================================================= +# Targets provided globally by CMake. + +# Special rule for the target test +test: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ctest --force-new-ctest-process $(ARGS) +.PHONY : test + +# Special rule for the target test +test/fast: test +.PHONY : test/fast + +# Special rule for the target edit_cache +edit_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : edit_cache + +# Special rule for the target edit_cache +edit_cache/fast: edit_cache +.PHONY : edit_cache/fast + +# Special rule for the target rebuild_cache +rebuild_cache: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) +.PHONY : rebuild_cache + +# Special rule for the target rebuild_cache +rebuild_cache/fast: rebuild_cache +.PHONY : rebuild_cache/fast + +# Special rule for the target list_install_components +list_install_components: + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Headers\" \"Libraries\" \"Unspecified\" \"doxygen\"" +.PHONY : list_install_components + +# Special rule for the target list_install_components +list_install_components/fast: list_install_components +.PHONY : list_install_components/fast + +# Special rule for the target install +install: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install + +# Special rule for the target install +install/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -P cmake_install.cmake +.PHONY : install/fast + +# Special rule for the target install/local +install/local: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local + +# Special rule for the target install/local +install/local/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake +.PHONY : install/local/fast + +# Special rule for the target install/strip +install/strip: preinstall + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip + +# Special rule for the target install/strip +install/strip/fast: preinstall/fast + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." + /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake +.PHONY : install/strip/fast + +# The main all target +all: cmake_check_build_system + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles /Users/spencer/Projects/pksav/lib/math//CMakeFiles/progress.marks + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/all + $(CMAKE_COMMAND) -E cmake_progress_start /Users/spencer/Projects/pksav/CMakeFiles 0 +.PHONY : all + +# The main clean target +clean: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/clean +.PHONY : clean + +# The main clean target +clean/fast: clean +.PHONY : clean/fast + +# Prepare targets for installation. +preinstall: all + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/preinstall +.PHONY : preinstall + +# Prepare targets for installation. +preinstall/fast: + cd /Users/spencer/Projects/pksav && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lib/math/preinstall +.PHONY : preinstall/fast + +# clear depends +depend: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 +.PHONY : depend + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... clean" + @echo "... depend" + @echo "... edit_cache" + @echo "... install" + @echo "... install/local" + @echo "... install/strip" + @echo "... list_install_components" + @echo "... rebuild_cache" + @echo "... test" +.PHONY : help + + + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + cd /Users/spencer/Projects/pksav && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/libpksav/lib_bak/math/base256.c b/libpksav/lib_bak/math/base256.c new file mode 100644 index 0000000..66fbe13 --- /dev/null +++ b/libpksav/lib_bak/math/base256.c @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +#include +#include +#include +#include + +/* + * We know what we're doing in converting the size_t to ssize_t. Subtracting + * from a size_t equalling 0 will underflow, and we don't want that. + */ +#ifdef _MSC_VER +# pragma warning(disable: 4552) // expected operator with side effect +#endif + +pksav_error_t pksav_from_base256( + const uint8_t* buffer, + size_t num_bytes, + uint32_t* result_out +) { + if(!buffer || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + *result_out = 0; + float exp = 0.0; + + for(ssize_t i = (ssize_t)(num_bytes-1); i >= 0; --i) { + (*result_out) += buffer[i] * (uint32_t)(pow(256.0f, exp++)); + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_to_base256( + uint32_t num, + uint8_t* buffer_out, + size_t buffer_size +) { + if(!buffer_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + memset(buffer_out, 0, buffer_size); + + float exp = 1.0f; + buffer_out[buffer_size-1] = (uint8_t)(num % 256); + for(ssize_t i = (ssize_t)(buffer_size-2); i >= 0; --i) { + num -= buffer_out[i+1]; + buffer_out[i] = (uint8_t)((uint32_t)(num / pow(256,exp)) % (uint32_t)(pow(256,exp))); + ++exp; + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/math/bcd.c b/libpksav/lib_bak/math/bcd.c new file mode 100644 index 0000000..97b2ea4 --- /dev/null +++ b/libpksav/lib_bak/math/bcd.c @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2016 Nicholas Corgan (n.corgan@gmail.com) + * + * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt + * or copy at http://opensource.org/licenses/MIT) + */ + +#include + +#include +#include +#include +#include +#include + +/* + * We know what we're doing in converting the size_t to ssize_t. Subtracting + * from a size_t equalling 0 will underflow, and we don't want that. + */ +#ifdef _MSC_VER +# pragma warning(disable: 4552) // expected operator with side effect +#endif + +pksav_error_t pksav_from_bcd( + const uint8_t* buffer, + size_t num_bytes, + uint32_t* result_out +) { + if(!buffer || !result_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + uint32_t mult = 100; + + (*result_out) = (buffer[num_bytes-1] & 0x0F) + ((buffer[num_bytes-1] >> 4) * 10); + for(ssize_t i = (ssize_t)(num_bytes-2); i >= 0; i--) { + (*result_out) += ((buffer[i] & 0x0F) * mult); + mult *= 10; + (*result_out) += ((buffer[i] >> 4) * mult); + mult *= 10; + } + + return PKSAV_ERROR_NONE; +} + +pksav_error_t pksav_to_bcd( + uint32_t num, + uint8_t* buffer_out +) { + if(!buffer_out) { + return PKSAV_ERROR_NULL_POINTER; + } + + // Find the number of needed bytes + uint32_t log10_num = (uint32_t)log10((double)num); + size_t num_bytes = (size_t)((log10_num + 1) / 2); + if(log10_num % 2 == 0) { + ++num_bytes; + } + + memset(buffer_out, 0, num_bytes); + size_t mult = 100; + + buffer_out[num_bytes-1] = (((num % 100) / 10) << 4) | (num % 10); + for(ssize_t i = (ssize_t)(num_bytes-2); i >= 0; i--) { + buffer_out[i] = (uint8_t)((((num % (mult*100)) / (mult*10)) << 4) | + ((num % (mult*10)) / mult)); + mult *= 100; + } + + return PKSAV_ERROR_NONE; +} diff --git a/libpksav/lib_bak/math/cmake_install.cmake b/libpksav/lib_bak/math/cmake_install.cmake new file mode 100644 index 0000000..5bafaa6 --- /dev/null +++ b/libpksav/lib_bak/math/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/spencer/Projects/pksav/lib/math + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump") +endif() + diff --git a/libpksav/lib_bak/pksav.pc b/libpksav/lib_bak/pksav.pc new file mode 100644 index 0000000..5926ab5 --- /dev/null +++ b/libpksav/lib_bak/pksav.pc @@ -0,0 +1,15 @@ +prefix=/usr/local +exec_prefix=${prefix} +libdir=${exec_prefix}/ +includedir=${prefix}/ + +Name: pksav +Description: Minimal Pokémon save editing library +URL: https://github.com/ncorgan/pksav +Version: 0.0.1 +Requires: +Requires.private: +Conflicts: +Cflags: -I${includedir} +Libs: -L${libdir} -lpksav +Libs.private: diff --git a/libpksav/lib_bak/pksav.pc.in b/libpksav/lib_bak/pksav.pc.in new file mode 100644 index 0000000..c0d3a96 --- /dev/null +++ b/libpksav/lib_bak/pksav.pc.in @@ -0,0 +1,15 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${exec_prefix}/@LIBRARY_DIR@ +includedir=${prefix}/@INCLUDE_DIR@ + +Name: pksav +Description: Minimal Pokémon save editing library +URL: https://github.com/ncorgan/pksav +Version: 0.0.1 +Requires: +Requires.private: +Conflicts: +Cflags: -I${includedir} +Libs: -L${libdir} -lpksav +Libs.private: diff --git a/libpksav/lib_bak/pksav.rc.in b/libpksav/lib_bak/pksav.rc.in new file mode 100644 index 0000000..87bd172 --- /dev/null +++ b/libpksav/lib_bak/pksav.rc.in @@ -0,0 +1,33 @@ +#include + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 0,0,0,0 + PRODUCTVERSION 0,0,0,0 + FILEFLAGSMASK 0x3fL +#ifndef NDEBUG + FILEFLAGS 0x0L +#else + FILEFLAGS 0x1L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE VFT2_DRV_INSTALLABLE + BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "FileDescription", "PKSav" + VALUE "FileVersion", "0.0.0" + VALUE "InternalName", "@LIB_PREFIX@pksav.dll" + VALUE "LegalCopyright", "Copyright (c) 2016 Nicholas Corgan" + VALUE "OriginalFilename", "@LIB_PREFIX@pksav.dll" + VALUE "ProductName", "PKSav" + VALUE "ProductVersion", "0.0.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END + END diff --git a/rom/.DS_Store b/rom/.DS_Store index d2102f3..19f427c 100644 Binary files a/rom/.DS_Store and b/rom/.DS_Store differ diff --git a/src/main.c b/src/main.c index d75ec84..15b61c2 100644 --- a/src/main.c +++ b/src/main.c @@ -1,134 +1,227 @@ #include #include -pksav_gen2_save_t loadSaveFromFile(char *path, pksav_error_t err) +struct pksav_gen2_save loadSaveFromFile(char *path) { - bool is_gen2 = false; - err = pksav_file_is_gen2_save(path, true, &is_gen2); - if (!is_gen2) + // bool is_gen2 = false; + // err = pksav_file_is_gen2_save(path, true, &is_gen2); + // if (!is_gen2) + // { + // printf("Save is not a Gen 2 save file!\n"); + // } + // if (err != PKSAV_ERROR_NONE) + // { + // printf("Error checking save: %s\n", pksav_strerror(err)); + // } + + struct pksav_gen2_save save; + pksav_gen2_load_save_from_file(path, &save); + // if (err != PKSAV_ERROR_NONE) + // { + // printf("Error loading save: %s\n", pksav_strerror(err)); + // } + return save; +} +void printTrainerBadges(struct pksav_gen2_save *save) +{ + enum pksav_gen2_johto_badge_mask johto_badges = *save->trainer_info.p_johto_badges; + enum pksav_gen2_kanto_badge_mask kanto_badges = *save->trainer_info.p_kanto_badges; + printf("Johto badges: "); + if (johto_badges & PKSAV_GEN2_JOHTO_ZEPHYR_BADGE) { - printf("Save is not a Gen 2 save file!\n"); + printf("Zephyr "); } - if (err != PKSAV_ERROR_NONE) + + if (johto_badges & PKSAV_GEN2_JOHTO_HIVE_BADGE) { - printf("Error checking save: %s\n", pksav_strerror(err)); + printf("Hive "); } - pksav_gen2_save_t save; - err = pksav_gen2_save_load(path, &save); - if (err != PKSAV_ERROR_NONE) + if (johto_badges & PKSAV_GEN2_JOHTO_PLAIN_BADGE) { - printf("Error loading save: %s\n", pksav_strerror(err)); + printf("Plain "); } - return save; -} -void printTrainerData(pksav_gen2_save_t *save) -{ - // Trainer name - char player_name[8]; - pksav_text_from_gen2(save->trainer_name, player_name, 7); - printf("Player name: %s\n", player_name); - - // Trainer ID - uint16_t trainer_id = pksav_bigendian16(*save->trainer_id); - printf("Player ID: %u\n", trainer_id); - - // // Trainer Money - // uint32_t money = 0; - // pksav_from_bcd(save->money, 3, &money); - // printf("Player money: %u\n", money); - - // // Time played - // pksav_gen2_time_t timePlayed = *save->time_played; - // printf("Time played: %d:%2d:%2d\n", timePlayed.hours, timePlayed.minutes, timePlayed.seconds); + + if (johto_badges & PKSAV_GEN2_JOHTO_FOG_BADGE) + { + printf("Fog "); + } + + if (johto_badges & PKSAV_GEN2_JOHTO_STORM_BADGE) + { + printf("Storm "); + } + + if (johto_badges & PKSAV_GEN2_JOHTO_MINERAL_BADGE) + { + printf("Mineral "); + } + + if (johto_badges & PKSAV_GEN2_JOHTO_GLACIER_BADGE) + { + printf("Glacier "); + } + + if (johto_badges & PKSAV_GEN2_JOHTO_RISING_BADGE) + { + printf("Rising "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_BOULDER_BADGE) + { + printf("Boulder "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_CASCADE_BADGE) + { + printf("Cascade "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_THUNDER_BADGE) + { + printf("Thunder "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_RAINBOW_BADGE) + { + printf("Rainbow "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_SOUL_BADGE) + { + printf("Soul "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_MARSH_BADGE) + { + printf("Marsh "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_VOLCANO_BADGE) + { + printf("Volcano "); + } + + if (kanto_badges & PKSAV_GEN2_KANTO_EARTH_BADGE) + { + printf("Earth "); + } + + printf("\n"); } -void changePartyPokemonNicknameAtIndex(pksav_gen2_save_t *save, int pokemon_index, char *new_name) +void printTrainerData(struct pksav_gen2_save *save) { - char pokemon_name[11]; - pksav_text_to_gen2(new_name, save->pokemon_party->nicknames[pokemon_index], 10); - pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index], pokemon_name, 10); - printf("Pokemon new name: %s\n", pokemon_name); + // print trainer name + char trainer_name[8]; + pksav_gen2_import_text(save->trainer_info.p_name, trainer_name, 7); + printf("Trainer name: %s\n", trainer_name); + + // print trainer id + uint16_t trainer_id = pksav_bigendian16(*save->trainer_info.p_id); + printf("Trainer ID: %u\n", trainer_id); + + // print trainer gender + uint8_t trainer_gender = *save->trainer_info.p_gender; + printf("Trainer Gender: %s\n", trainer_gender ? "F" : "M"); + + // print trainer badges + printTrainerBadges(save); + + // print trainer money + // size_t money = 0; + // pksav_import_bcd(save.trainer_info.p_money, 3, &money); + // printf("Trainer money: %zu\n", money); + + struct pksav_gen2_time timePlayed = *save->save_time.p_time_played; + printf("Time played: %u:%u:%u\n", timePlayed.hours, timePlayed.minutes, timePlayed.seconds); } -void saveToFile(pksav_gen2_save_t *save, char *path, pksav_error_t err) +// void changePartyPokemonNicknameAtIndex(pksav_gen2_save_t *save, int pokemon_index, char *new_name) +// { +// char pokemon_name[11]; +// pksav_text_to_gen2(new_name, save->pokemon_party->nicknames[pokemon_index], 10); +// pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index], pokemon_name, 10); +// printf("Pokemon new name: %s\n", pokemon_name); +// } +void saveToFile(struct pksav_gen2_save *save, char *path) { pksav_gen2_save_save(path, save); - pksav_gen2_save_free(save); -} -void printPartySpeciesAtIndex(pksav_gen2_save_t *save, int pokemon_index) -{ - uint8_t species = save->pokemon_party->party[pokemon_index].pc.species; - printf("Pokemon species: %u\n", species); -} -void printPartyPokemonAtIndex(pksav_gen2_save_t *save, int pokemon_index) -{ - // print nickname - char pokemon_nickname[11]; - pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index], pokemon_nickname, 10); - printf("Pokemon nickname: %s\n", pokemon_nickname); -} -void printParty(pksav_gen2_save_t *save) -{ - for (int i = 0; i < 6; i++) - { - printPartyPokemonAtIndex(save, i); - } -} -void swapPartyPokemonAtIndices(pksav_gen2_save_t *save, int pokemon_index1, int pokemon_index2) -{ - // swap nickname - // char tmp_nickname1[10]; - // char tmp_nickname2[10]; - // pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index1], tmp_nickname1, 10); - // pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index2], tmp_nickname2, 10); - // pksav_text_to_gen2(tmp_nickname2, save->pokemon_party->nicknames[pokemon_index1], 10); - // pksav_text_to_gen2(tmp_nickname1, save->pokemon_party->nicknames[pokemon_index2], 10); - - // swap party - pksav_gen2_party_pokemon_t tmp_pokemon = save->pokemon_party->party[pokemon_index1]; - save->pokemon_party->party[pokemon_index1] = save->pokemon_party->party[pokemon_index2]; - save->pokemon_party->party[pokemon_index2] = tmp_pokemon; - - // swap species - uint8_t tmp_species = save->pokemon_party->species[pokemon_index1]; - save->pokemon_party->species[pokemon_index1] = save->pokemon_party->species[pokemon_index2]; - save->pokemon_party->species[pokemon_index2] = tmp_species; - - // swap otnames - // char tmp_otname1[8]; - // char tmp_otname2[8]; - // pksav_text_from_gen2(save->pokemon_party->otnames[pokemon_index1], tmp_otname1, 7); - // pksav_text_from_gen2(save->pokemon_party->otnames[pokemon_index2], tmp_otname2, 7); - // pksav_text_to_gen2(tmp_otname2, save->pokemon_party->otnames[pokemon_index1], 7); - // pksav_text_to_gen2(tmp_otname1, save->pokemon_party->otnames[pokemon_index2], 7); + pksav_gen2_free_save(save); } +// void printPartySpeciesAtIndex(pksav_gen2_save_t *save, int pokemon_index) +// { +// uint8_t species = save->pokemon_party->party[pokemon_index].pc.species; +// printf("Pokemon species: %u\n", species); +// } +// void printPartyPokemonAtIndex(pksav_gen2_save_t *save, int pokemon_index) +// { +// // print nickname +// char pokemon_nickname[11]; +// pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index], pokemon_nickname, 10); +// printf("Pokemon nickname: %s\n", pokemon_nickname); +// } +// void printParty(pksav_gen2_save_t *save) +// { +// for (int i = 0; i < 6; i++) +// { +// printPartyPokemonAtIndex(save, i); +// } +// } +// void swapPartyPokemonAtIndices(pksav_gen2_save_t *save, int pokemon_index1, int pokemon_index2) +// { +// swap nickname +// char tmp_nickname1[10]; +// char tmp_nickname2[10]; +// pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index1], tmp_nickname1, 10); +// pksav_text_from_gen2(save->pokemon_party->nicknames[pokemon_index2], tmp_nickname2, 10); +// pksav_text_to_gen2(tmp_nickname2, save->pokemon_party->nicknames[pokemon_index1], 10); +// pksav_text_to_gen2(tmp_nickname1, save->pokemon_party->nicknames[pokemon_index2], 10); + +// swap party +// pksav_gen2_party_pokemon_t tmp_pokemon = save->pokemon_party->party[pokemon_index1]; +// save->pokemon_party->party[pokemon_index1] = save->pokemon_party->party[pokemon_index2]; +// save->pokemon_party->party[pokemon_index2] = tmp_pokemon; + +// // swap species +// uint8_t tmp_species = save->pokemon_party->species[pokemon_index1]; +// save->pokemon_party->species[pokemon_index1] = save->pokemon_party->species[pokemon_index2]; +// save->pokemon_party->species[pokemon_index2] = tmp_species; + +// swap otnames +// char tmp_otname1[8]; +// char tmp_otname2[8]; +// pksav_text_from_gen2(save->pokemon_party->otnames[pokemon_index1], tmp_otname1, 7); +// pksav_text_from_gen2(save->pokemon_party->otnames[pokemon_index2], tmp_otname2, 7); +// pksav_text_to_gen2(tmp_otname2, save->pokemon_party->otnames[pokemon_index1], 7); +// pksav_text_to_gen2(tmp_otname1, save->pokemon_party->otnames[pokemon_index2], 7); +// } int main() { - pksav_error_t err = PKSAV_ERROR_NONE; - pksav_gen2_save_t save = loadSaveFromFile("../saves/crystal.gbc.sav", err); - if (err != PKSAV_ERROR_NONE) - { - printf("Error loading save: %s\n", pksav_strerror(err)); - return 1; - } + struct pksav_gen2_save save = loadSaveFromFile("../saves/crystal.gbc.sav"); printTrainerData(&save); - printParty(&save); + // if (err != PKSAV_ERROR_NONE) + // { + // printf("Error loading save: %s\n", pksav_strerror(err)); + // return 1; + // } + // printTrainerData(&save); - swapPartyPokemonAtIndices(&save, 0, 1); + // printParty(&save); - printParty(&save); + // swapPartyPokemonAtIndices(&save, 0, 1); + // printParty(&save); // Update 1st party pokemon name // changePartyPokemonNicknameAtIndex(&save, 0, "GYARADOS"); - saveToFile(&save, "../rom/pk-crystal.sav", err); - if (err != PKSAV_ERROR_NONE) - { - printf("Error saving save: %s\n", pksav_strerror(err)); - return 1; - } + // saveToFile(&save, "../rom/pk-crystal.sav"); + // if (err != PKSAV_ERROR_NONE) + // { + // printf("Error saving save: %s\n", pksav_strerror(err)); + // return 1; + // } return 0; }