From 8e0bf8e1dd6aee8b4b0dbb23d54ef396eee9ee7c Mon Sep 17 00:00:00 2001 From: Spencer Vaughn Date: Sat, 23 Sep 2023 10:17:55 -0500 Subject: [PATCH 1/3] updated pksav to v2.0-dev --- .DS_Store | Bin 6148 -> 8196 bytes Makefile | 4 +- libpksav/.DS_Store | Bin 0 -> 6148 bytes .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/Makefile | 20 +- libpksav/include/cmake_install.cmake | 6 +- libpksav/include/pksav.h | 15 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/CMakeLists.txt | 6 +- libpksav/include/pksav/Makefile | 20 +- libpksav/include/pksav/cmake_install.cmake | 28 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/common/CMakeLists.txt | 6 +- libpksav/include/pksav/common/Makefile | 20 +- .../include/pksav/common/cmake_install.cmake | 30 +- libpksav/include/pksav/common/condition.h | 18 +- libpksav/include/pksav/common/constants.h | 16 + libpksav/include/pksav/common/contest_stats.h | 16 +- libpksav/include/pksav/common/item.h | 22 +- libpksav/include/pksav/common/markings.h | 13 +- libpksav/include/pksav/common/nature.h | 13 +- libpksav/include/pksav/common/pokedex.h | 14 +- libpksav/include/pksav/common/pokerus.h | 104 +- libpksav/include/pksav/common/stats.h | 83 +- libpksav/include/pksav/common/trainer_id.h | 16 +- libpksav/include/pksav/config.h | 42 +- libpksav/include/pksav/config.h.in | 42 +- libpksav/include/pksav/error.h | 17 +- libpksav/include/pksav/gba.h | 18 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/gba/CMakeLists.txt | 13 +- libpksav/include/pksav/gba/Makefile | 20 +- libpksav/include/pksav/gba/box_wallpaper.h | 42 + .../include/pksav/gba/cmake_install.cmake | 21 +- libpksav/include/pksav/gba/common.h | 22 + libpksav/include/pksav/gba/daycare.h | 82 + libpksav/include/pksav/gba/items.h | 71 +- libpksav/include/pksav/gba/language.h | 22 + libpksav/include/pksav/gba/mail.h | 27 + libpksav/include/pksav/gba/map.h | 42 + libpksav/include/pksav/gba/options.h | 54 + libpksav/include/pksav/gba/pokedex.h | 62 + libpksav/include/pksav/gba/pokemon.h | 292 +-- libpksav/include/pksav/gba/ribbons.h | 105 + libpksav/include/pksav/gba/roamer.h | 33 + libpksav/include/pksav/gba/save.h | 382 +--- libpksav/include/pksav/gba/text.h | 32 +- libpksav/include/pksav/gba/time.h | 37 + libpksav/include/pksav/gen1.h | 14 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/gen1/CMakeLists.txt | 8 +- libpksav/include/pksav/gen1/Makefile | 20 +- libpksav/include/pksav/gen1/badges.h | 37 + .../include/pksav/gen1/cmake_install.cmake | 16 +- libpksav/include/pksav/gen1/common.h | 23 + libpksav/include/pksav/gen1/daycare_data.h | 29 + libpksav/include/pksav/gen1/items.h | 33 +- libpksav/include/pksav/gen1/options.h | 44 + libpksav/include/pksav/gen1/pokemon.h | 137 +- libpksav/include/pksav/gen1/save.h | 354 ++-- libpksav/include/pksav/gen1/text.h | 22 +- libpksav/include/pksav/gen1/time.h | 31 + libpksav/include/pksav/gen1/type.h | 49 + libpksav/include/pksav/gen2.h | 14 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/gen2/CMakeLists.txt | 8 +- libpksav/include/pksav/gen2/Makefile | 20 +- libpksav/include/pksav/gen2/badges.h | 52 + .../include/pksav/gen2/cmake_install.cmake | 18 +- libpksav/include/pksav/gen2/common.h | 29 + libpksav/include/pksav/gen2/daycare_data.h | 49 + libpksav/include/pksav/gen2/items.h | 81 +- .../include/pksav/gen2/mom_money_policy.h | 20 + libpksav/include/pksav/gen2/options.h | 49 + libpksav/include/pksav/gen2/palette.h | 22 + libpksav/include/pksav/gen2/pokemon.h | 177 +- libpksav/include/pksav/gen2/save.h | 356 ++-- libpksav/include/pksav/gen2/text.h | 34 +- libpksav/include/pksav/gen2/time.h | 29 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/gen4/Makefile | 20 +- .../include/pksav/gen4/cmake_install.cmake | 4 +- libpksav/include/pksav/gen4/text.h | 70 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/gen5/Makefile | 20 +- .../include/pksav/gen5/cmake_install.cmake | 4 +- libpksav/include/pksav/gen5/text.h | 70 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/include/pksav/math/Makefile | 20 +- libpksav/include/pksav/math/base256.h | 20 +- libpksav/include/pksav/math/bcd.h | 21 +- .../include/pksav/math/cmake_install.cmake | 8 +- libpksav/include/pksav/math/endian.h | 48 +- libpksav/include/pksav/version.h | 12 +- libpksav/include/pksav/version.h.in | 4 +- .../CMakeDirectoryInformation.cmake | 16 + .../include_bak/CMakeFiles/progress.marks | 1 + libpksav/include_bak/CMakeLists.txt | 16 + libpksav/include_bak/Makefile | 200 ++ libpksav/include_bak/cmake_install.cmake | 49 + libpksav/include_bak/pksav.h | 42 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/CMakeFiles/progress.marks | 1 + libpksav/include_bak/pksav/CMakeLists.txt | 48 + libpksav/include_bak/pksav/Makefile | 200 ++ .../include_bak/pksav/cmake_install.cmake | 62 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/common/CMakeFiles/progress.marks | 1 + .../include_bak/pksav/common/CMakeLists.txt | 30 + libpksav/include_bak/pksav/common/Makefile | 200 ++ .../pksav/common/cmake_install.cmake | 59 + libpksav/include_bak/pksav/common/condition.h | 61 + .../include_bak/pksav/common/contest_stats.h | 40 + .../pksav/common/coordinates.h | 0 .../pksav/common/datetime.h | 0 .../pksav/common/gen3_ribbons.h | 0 .../pksav/common/gen4_encounter_type.h | 0 libpksav/include_bak/pksav/common/item.h | 38 + libpksav/include_bak/pksav/common/markings.h | 35 + libpksav/include_bak/pksav/common/nature.h | 68 + .../pksav/common/nds_pokemon.h | 0 libpksav/include_bak/pksav/common/pokedex.h | 59 + libpksav/include_bak/pksav/common/pokerus.h | 116 ++ .../pksav/common/prng.h | 0 libpksav/include_bak/pksav/common/stats.h | 58 + .../include_bak/pksav/common/trainer_id.h | 55 + libpksav/include_bak/pksav/config.h | 65 + libpksav/include_bak/pksav/config.h.in | 65 + libpksav/include_bak/pksav/error.h | 49 + libpksav/include_bak/pksav/gba.h | 36 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/gba/CMakeFiles/progress.marks | 1 + libpksav/include_bak/pksav/gba/CMakeLists.txt | 20 + libpksav/include_bak/pksav/gba/Makefile | 200 ++ .../include_bak/pksav/gba/cmake_install.cmake | 49 + libpksav/include_bak/pksav/gba/items.h | 82 + libpksav/include_bak/pksav/gba/pokemon.h | 512 +++++ libpksav/include_bak/pksav/gba/save.h | 344 ++++ .../pksav/gba/save_structs.h | 0 libpksav/include_bak/pksav/gba/text.h | 68 + libpksav/include_bak/pksav/gen1.h | 30 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/gen1/CMakeFiles/progress.marks | 1 + .../include_bak/pksav/gen1/CMakeLists.txt | 19 + libpksav/include_bak/pksav/gen1/Makefile | 200 ++ .../pksav/gen1/cmake_install.cmake | 48 + libpksav/include_bak/pksav/gen1/items.h | 62 + libpksav/include_bak/pksav/gen1/pokemon.h | 326 ++++ libpksav/include_bak/pksav/gen1/save.h | 307 +++ libpksav/include_bak/pksav/gen1/text.h | 68 + libpksav/include_bak/pksav/gen2.h | 32 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/gen2/CMakeFiles/progress.marks | 1 + .../include_bak/pksav/gen2/CMakeLists.txt | 20 + libpksav/include_bak/pksav/gen2/Makefile | 200 ++ .../pksav/gen2/cmake_install.cmake | 49 + libpksav/include_bak/pksav/gen2/items.h | 138 ++ libpksav/include_bak/pksav/gen2/pokemon.h | 385 ++++ libpksav/include_bak/pksav/gen2/save.h | 257 +++ libpksav/include_bak/pksav/gen2/text.h | 68 + libpksav/include_bak/pksav/gen2/time.h | 76 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/gen4/CMakeFiles/progress.marks | 1 + .../include_bak/pksav/gen4/CMakeLists.txt | 16 + libpksav/include_bak/pksav/gen4/Makefile | 200 ++ .../pksav/gen4/cmake_install.cmake | 43 + libpksav/include_bak/pksav/gen4/text.h | 104 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/gen5/CMakeFiles/progress.marks | 1 + .../include_bak/pksav/gen5/CMakeLists.txt | 16 + libpksav/include_bak/pksav/gen5/Makefile | 200 ++ .../pksav/gen5/cmake_install.cmake | 43 + libpksav/include_bak/pksav/gen5/text.h | 104 + .../CMakeDirectoryInformation.cmake | 16 + .../pksav/math/CMakeFiles/progress.marks | 1 + .../include_bak/pksav/math/CMakeLists.txt | 18 + libpksav/include_bak/pksav/math/Makefile | 200 ++ libpksav/include_bak/pksav/math/base256.h | 56 + libpksav/include_bak/pksav/math/bcd.h | 54 + .../pksav/math/cmake_install.cmake | 47 + libpksav/include_bak/pksav/math/endian.h | 118 ++ libpksav/include_bak/pksav/version.h | 48 + libpksav/include_bak/pksav/version.h.in | 48 + .../CMakeDirectoryInformation.cmake | 16 + .../lib/CMakeFiles/pksav.dir/DependInfo.cmake | 44 +- libpksav/lib/CMakeFiles/pksav.dir/build.make | 280 +-- .../CMakeFiles/pksav.dir/cmake_clean.cmake | 16 +- .../pksav.dir/common/datetime.c.o.d | 8 +- .../CMakeFiles/pksav.dir/common/pokedex.c.o.d | 48 +- .../CMakeFiles/pksav.dir/common/pokerus.c.o | Bin 0 -> 960 bytes .../CMakeFiles/pksav.dir/common/pokerus.c.o.d | 32 + .../CMakeFiles/pksav.dir/common/prng.c.o.d | 8 +- .../CMakeFiles/pksav.dir/common/sha1.c.o.d | 4 +- .../lib/CMakeFiles/pksav.dir/common/stats.c.o | Bin 1768 -> 1720 bytes .../CMakeFiles/pksav.dir/common/stats.c.o.d | 48 +- .../pksav.dir/common/text_common.c.o.d | 6 +- .../pksav.dir/common/xds_common.c.o | Bin 1528 -> 1136 bytes .../pksav.dir/common/xds_common.c.o.d | 34 +- .../pksav.dir/compiler_depend.internal | 1410 ++++++++++++++ .../CMakeFiles/pksav.dir/compiler_depend.make | 1722 ++++++++++++++++- libpksav/lib/CMakeFiles/pksav.dir/error.c.o | Bin 1168 -> 1184 bytes libpksav/lib/CMakeFiles/pksav.dir/error.c.o.d | 71 +- libpksav/lib/CMakeFiles/pksav.dir/flags.make | 16 +- .../lib/CMakeFiles/pksav.dir/gba/checksum.c.o | Bin 944 -> 1944 bytes .../CMakeFiles/pksav.dir/gba/checksum.c.o.d | 36 +- .../lib/CMakeFiles/pksav.dir/gba/crypt.c.o | Bin 1368 -> 2016 bytes .../lib/CMakeFiles/pksav.dir/gba/crypt.c.o.d | 34 +- .../lib/CMakeFiles/pksav.dir/gba/pokedex.c.o | Bin 0 -> 1112 bytes .../CMakeFiles/pksav.dir/gba/pokedex.c.o.d | 36 + .../lib/CMakeFiles/pksav.dir/gba/save.c.o | Bin 6640 -> 7416 bytes .../lib/CMakeFiles/pksav.dir/gba/save.c.o.d | 56 +- .../lib/CMakeFiles/pksav.dir/gba/shuffle.c.o | Bin 3296 -> 4568 bytes .../CMakeFiles/pksav.dir/gba/shuffle.c.o.d | 38 +- .../lib/CMakeFiles/pksav.dir/gba/text.c.o | Bin 2448 -> 2448 bytes .../lib/CMakeFiles/pksav.dir/gba/text.c.o.d | 63 +- .../lib/CMakeFiles/pksav.dir/gen1/save.c.o | Bin 3384 -> 4088 bytes .../lib/CMakeFiles/pksav.dir/gen1/save.c.o.d | 46 +- .../lib/CMakeFiles/pksav.dir/gen1/text.c.o | Bin 2464 -> 2464 bytes .../lib/CMakeFiles/pksav.dir/gen1/text.c.o.d | 63 +- .../lib/CMakeFiles/pksav.dir/gen2/save.c.o | Bin 4392 -> 4792 bytes .../lib/CMakeFiles/pksav.dir/gen2/save.c.o.d | 27 +- .../lib/CMakeFiles/pksav.dir/gen2/text.c.o | Bin 2464 -> 2464 bytes .../lib/CMakeFiles/pksav.dir/gen2/text.c.o.d | 63 +- .../lib/CMakeFiles/pksav.dir/gen2/time.c.o.d | 8 +- .../lib/CMakeFiles/pksav.dir/gen4/text.c.o | Bin 13664 -> 13088 bytes .../lib/CMakeFiles/pksav.dir/gen4/text.c.o.d | 82 +- .../lib/CMakeFiles/pksav.dir/gen5/text.c.o | Bin 960 -> 704 bytes .../lib/CMakeFiles/pksav.dir/gen5/text.c.o.d | 10 +- libpksav/lib/CMakeFiles/pksav.dir/link.txt | 2 +- .../lib/CMakeFiles/pksav.dir/math/base256.c.o | Bin 1024 -> 1032 bytes .../CMakeFiles/pksav.dir/math/base256.c.o.d | 8 +- .../lib/CMakeFiles/pksav.dir/math/bcd.c.o | Bin 1040 -> 1200 bytes .../lib/CMakeFiles/pksav.dir/math/bcd.c.o.d | 8 +- .../lib/CMakeFiles/pksav.dir/progress.make | 46 +- libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o | Bin 0 -> 1792 bytes .../lib/CMakeFiles/pksav.dir/util/fs.c.o.d | 86 + .../CMakeFiles/pksav.dir/util/text_common.c.o | Bin 0 -> 1264 bytes .../pksav.dir/util/text_common.c.o.d | 106 + libpksav/lib/CMakeLists.txt | 8 +- libpksav/lib/Makefile | 330 ++-- libpksav/lib/cmake_install.cmake | 22 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/lib/common/CMakeLists.txt | 7 +- libpksav/lib/common/Makefile | 20 +- libpksav/lib/common/cmake_install.cmake | 2 +- libpksav/lib/common/pokedex.c | 55 +- libpksav/lib/common/pokerus.c | 80 + libpksav/lib/common/prng.h | 49 + libpksav/lib/common/stats.c | 302 +-- libpksav/lib/common/xds_common.c | 118 +- libpksav/lib/common/xds_common.h | 35 +- .../CMakeDirectoryInformation.cmake | 16 + libpksav/lib/crypto/CMakeFiles/progress.marks | 1 + libpksav/lib/crypto/CMakeLists.txt | 10 + libpksav/lib/crypto/Makefile | 200 ++ libpksav/lib/crypto/cmake_install.cmake | 39 + libpksav/lib/{common => crypto}/sha1.c | 0 libpksav/lib/{common => crypto}/sha1.h | 0 libpksav/lib/error.c | 22 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/lib/gba/CMakeLists.txt | 3 +- libpksav/lib/gba/Makefile | 20 +- libpksav/lib/gba/battle_tower.h | 107 + libpksav/lib/gba/checksum.c | 67 +- libpksav/lib/gba/checksum.h | 45 +- libpksav/lib/gba/cmake_install.cmake | 2 +- libpksav/lib/gba/crypt.c | 137 +- libpksav/lib/gba/crypt.h | 10 +- libpksav/lib/gba/pokedex.c | 111 ++ libpksav/lib/gba/save.c | 980 ++++++---- libpksav/lib/gba/save_internal.h | 291 +++ libpksav/lib/gba/sections_internal.h | 95 + libpksav/lib/gba/shuffle.c | 142 +- libpksav/lib/gba/shuffle.h | 47 +- libpksav/lib/gba/text.c | 122 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/lib/gen1/Makefile | 20 +- libpksav/lib/gen1/cmake_install.cmake | 2 +- libpksav/lib/gen1/save.c | 486 +++-- libpksav/lib/gen1/save_internal.h | 78 + libpksav/lib/gen1/text.c | 140 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/lib/gen2/Makefile | 20 +- libpksav/lib/gen2/cmake_install.cmake | 2 +- libpksav/lib/gen2/save.c | 740 ++++--- libpksav/lib/gen2/save_internal.h | 154 ++ libpksav/lib/gen2/text.c | 135 +- libpksav/lib/gen2/time.c | 35 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/lib/gen4/Makefile | 20 +- libpksav/lib/gen4/cmake_install.cmake | 2 +- libpksav/lib/gen4/text.c | 148 +- .../CMakeDirectoryInformation.cmake | 4 +- libpksav/lib/gen5/Makefile | 20 +- libpksav/lib/gen5/cmake_install.cmake | 2 +- libpksav/lib/gen5/text.c | 66 +- libpksav/lib/libpksav.dylib | Bin 71371 -> 72267 bytes .../CMakeDirectoryInformation.cmake | 4 +- libpksav/lib/math/Makefile | 20 +- libpksav/lib/math/base256.c | 45 +- libpksav/lib/math/bcd.c | 89 +- libpksav/lib/math/cmake_install.cmake | 2 +- libpksav/lib/pksav.pc | 4 +- .../CMakeDirectoryInformation.cmake | 16 + libpksav/lib/util/CMakeFiles/progress.marks | 1 + libpksav/lib/util/CMakeLists.txt | 16 + libpksav/lib/util/Makefile | 200 ++ libpksav/lib/util/cmake_install.cmake | 39 + libpksav/lib/util/fs.c | 166 ++ libpksav/lib/util/fs.h | 33 + libpksav/lib/util/text_common.c | 104 + libpksav/lib/util/text_common.h | 38 + libpksav/lib/util/text_common.h.in | 38 + libpksav/{lib => lib_bak}/CMakeCache.txt | 0 .../CMakeFiles/3.27.4/CMakeCCompiler.cmake | 0 .../CMakeFiles/3.27.4/CMakeCXXCompiler.cmake | 0 .../3.27.4/CMakeDetermineCompilerABI_C.bin | Bin .../3.27.4/CMakeDetermineCompilerABI_CXX.bin | Bin .../CMakeFiles/3.27.4/CMakeSystem.cmake | 0 .../3.27.4/CompilerIdC/CMakeCCompilerId.c | 0 .../3.27.4/CompilerIdC/CMakeCCompilerId.o | Bin .../CompilerIdCXX/CMakeCXXCompilerId.cpp | 0 .../3.27.4/CompilerIdCXX/CMakeCXXCompilerId.o | Bin .../CMakeFiles/CMakeConfigureLog.yaml | 0 .../CMakeFiles/cmake.check_cache | 0 .../CMakeFiles/pksav.dir/DependInfo.cmake | 40 + .../lib_bak/CMakeFiles/pksav.dir/build.make | 446 +++++ .../CMakeFiles/pksav.dir/cmake_clean.cmake | 53 + .../CMakeFiles/pksav.dir/common/datetime.c.o | Bin 0 -> 904 bytes .../pksav.dir/common/datetime.c.o.d | 42 + .../CMakeFiles/pksav.dir/common/pokedex.c.o | Bin 0 -> 896 bytes .../CMakeFiles/pksav.dir/common/pokedex.c.o.d | 37 + .../CMakeFiles/pksav.dir/common/prng.c.o | Bin 0 -> 920 bytes .../CMakeFiles/pksav.dir/common/prng.c.o.d | 75 + .../CMakeFiles/pksav.dir/common/sha1.c.o | Bin 0 -> 6288 bytes .../CMakeFiles/pksav.dir/common/sha1.c.o.d | 44 + .../CMakeFiles/pksav.dir/common/stats.c.o | Bin 0 -> 1768 bytes .../CMakeFiles/pksav.dir/common/stats.c.o.d | 36 + .../pksav.dir/common/text_common.c.o | Bin 0 -> 1272 bytes .../pksav.dir/common/text_common.c.o.d | 106 + .../pksav.dir/common/xds_common.c.o | Bin 0 -> 1528 bytes .../pksav.dir/common/xds_common.c.o.d | 78 + .../CMakeFiles/pksav.dir/compiler_depend.make | 2 + .../CMakeFiles/pksav.dir/compiler_depend.ts | 2 + .../lib_bak/CMakeFiles/pksav.dir/depend.make | 2 + .../lib_bak/CMakeFiles/pksav.dir/error.c.o | Bin 0 -> 1168 bytes .../lib_bak/CMakeFiles/pksav.dir/error.c.o.d | 4 + .../lib_bak/CMakeFiles/pksav.dir/flags.make | 56 + .../CMakeFiles/pksav.dir/gba/checksum.c.o | Bin 0 -> 944 bytes .../CMakeFiles/pksav.dir/gba/checksum.c.o.d | 78 + .../CMakeFiles/pksav.dir/gba/crypt.c.o | Bin 0 -> 1368 bytes .../CMakeFiles/pksav.dir/gba/crypt.c.o.d | 86 + .../lib_bak/CMakeFiles/pksav.dir/gba/save.c.o | Bin 0 -> 6640 bytes .../CMakeFiles/pksav.dir/gba/save.c.o.d | 91 + .../CMakeFiles/pksav.dir/gba/shuffle.c.o | Bin 0 -> 3296 bytes .../CMakeFiles/pksav.dir/gba/shuffle.c.o.d | 88 + .../lib_bak/CMakeFiles/pksav.dir/gba/text.c.o | Bin 0 -> 2448 bytes .../CMakeFiles/pksav.dir/gba/text.c.o.d | 101 + .../CMakeFiles/pksav.dir/gen1/save.c.o | Bin 0 -> 3384 bytes .../CMakeFiles/pksav.dir/gen1/save.c.o.d | 102 + .../CMakeFiles/pksav.dir/gen1/text.c.o | Bin 0 -> 2464 bytes .../CMakeFiles/pksav.dir/gen1/text.c.o.d | 101 + .../CMakeFiles/pksav.dir/gen2/save.c.o | Bin 0 -> 4392 bytes .../CMakeFiles/pksav.dir/gen2/save.c.o.d | 107 + .../CMakeFiles/pksav.dir/gen2/text.c.o | Bin 0 -> 2464 bytes .../CMakeFiles/pksav.dir/gen2/text.c.o.d | 101 + .../CMakeFiles/pksav.dir/gen2/time.c.o | Bin 0 -> 696 bytes .../CMakeFiles/pksav.dir/gen2/time.c.o.d | 42 + .../CMakeFiles/pksav.dir/gen4/text.c.o | Bin 0 -> 13664 bytes .../CMakeFiles/pksav.dir/gen4/text.c.o.d | 101 + .../CMakeFiles/pksav.dir/gen5/text.c.o | Bin 0 -> 960 bytes .../CMakeFiles/pksav.dir/gen5/text.c.o.d | 71 + .../lib_bak/CMakeFiles/pksav.dir/link.txt | 1 + .../CMakeFiles/pksav.dir/math/base256.c.o | Bin 0 -> 1024 bytes .../CMakeFiles/pksav.dir/math/base256.c.o.d | 79 + .../lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o | Bin 0 -> 1040 bytes .../CMakeFiles/pksav.dir/math/bcd.c.o.d | 86 + .../CMakeFiles/pksav.dir/progress.make | 24 + libpksav/lib_bak/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/CMakeLists.txt | 104 + libpksav/lib_bak/Makefile | 809 ++++++++ libpksav/lib_bak/cmake_install.cmake | 71 + .../CMakeDirectoryInformation.cmake | 16 + .../lib_bak/common/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/common/CMakeLists.txt | 16 + libpksav/lib_bak/common/Makefile | 200 ++ libpksav/lib_bak/common/cmake_install.cmake | 39 + libpksav/{lib => lib_bak}/common/datetime.c | 0 libpksav/lib_bak/common/pokedex.c | 55 + libpksav/{lib => lib_bak}/common/prng.c | 0 libpksav/lib_bak/common/sha1.c | 302 +++ libpksav/lib_bak/common/sha1.h | 24 + libpksav/lib_bak/common/stats.c | 202 ++ .../{lib => lib_bak}/common/text_common.c | 0 .../{lib => lib_bak}/common/text_common.h | 0 libpksav/lib_bak/common/xds_common.c | 98 + libpksav/lib_bak/common/xds_common.h | 50 + libpksav/lib_bak/error.c | 23 + .../CMakeDirectoryInformation.cmake | 16 + .../lib_bak/gba/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/gba/CMakeLists.txt | 14 + libpksav/lib_bak/gba/Makefile | 200 ++ libpksav/lib_bak/gba/checksum.c | 34 + libpksav/lib_bak/gba/checksum.h | 43 + libpksav/lib_bak/gba/cmake_install.cmake | 39 + libpksav/lib_bak/gba/crypt.c | 95 + libpksav/lib_bak/gba/crypt.h | 29 + libpksav/lib_bak/gba/save.c | 518 +++++ libpksav/lib_bak/gba/shuffle.c | 63 + libpksav/lib_bak/gba/shuffle.h | 51 + libpksav/lib_bak/gba/text.c | 137 ++ .../CMakeDirectoryInformation.cmake | 16 + .../lib_bak/gen1/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/gen1/CMakeLists.txt | 11 + libpksav/lib_bak/gen1/Makefile | 200 ++ libpksav/lib_bak/gen1/cmake_install.cmake | 39 + libpksav/lib_bak/gen1/save.c | 230 +++ libpksav/lib_bak/gen1/text.c | 135 ++ .../CMakeDirectoryInformation.cmake | 16 + .../lib_bak/gen2/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/gen2/CMakeLists.txt | 12 + libpksav/lib_bak/gen2/Makefile | 200 ++ libpksav/lib_bak/gen2/cmake_install.cmake | 39 + libpksav/lib_bak/gen2/save.c | 377 ++++ libpksav/lib_bak/gen2/text.c | 134 ++ libpksav/lib_bak/gen2/time.c | 30 + .../CMakeDirectoryInformation.cmake | 16 + .../lib_bak/gen4/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/gen4/CMakeLists.txt | 10 + libpksav/lib_bak/gen4/Makefile | 200 ++ libpksav/lib_bak/gen4/cmake_install.cmake | 39 + libpksav/lib_bak/gen4/text.c | 294 +++ .../CMakeDirectoryInformation.cmake | 16 + .../lib_bak/gen5/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/gen5/CMakeLists.txt | 10 + libpksav/lib_bak/gen5/Makefile | 200 ++ libpksav/lib_bak/gen5/cmake_install.cmake | 39 + libpksav/lib_bak/gen5/text.c | 58 + libpksav/lib_bak/libpksav.dylib | Bin 0 -> 71371 bytes .../CMakeDirectoryInformation.cmake | 16 + .../lib_bak/math/CMakeFiles/progress.marks | 1 + libpksav/lib_bak/math/CMakeLists.txt | 11 + libpksav/lib_bak/math/Makefile | 200 ++ libpksav/lib_bak/math/base256.c | 62 + libpksav/lib_bak/math/bcd.c | 72 + libpksav/lib_bak/math/cmake_install.cmake | 39 + libpksav/lib_bak/pksav.pc | 15 + libpksav/lib_bak/pksav.pc.in | 15 + libpksav/lib_bak/pksav.rc.in | 33 + rom/.DS_Store | Bin 6148 -> 6148 bytes 450 files changed, 25957 insertions(+), 4109 deletions(-) create mode 100644 libpksav/.DS_Store create mode 100644 libpksav/include/pksav/common/constants.h create mode 100644 libpksav/include/pksav/gba/box_wallpaper.h create mode 100644 libpksav/include/pksav/gba/common.h create mode 100644 libpksav/include/pksav/gba/daycare.h create mode 100644 libpksav/include/pksav/gba/language.h create mode 100644 libpksav/include/pksav/gba/mail.h create mode 100644 libpksav/include/pksav/gba/map.h create mode 100644 libpksav/include/pksav/gba/options.h create mode 100644 libpksav/include/pksav/gba/pokedex.h create mode 100644 libpksav/include/pksav/gba/ribbons.h create mode 100644 libpksav/include/pksav/gba/roamer.h create mode 100644 libpksav/include/pksav/gba/time.h create mode 100644 libpksav/include/pksav/gen1/badges.h create mode 100644 libpksav/include/pksav/gen1/common.h create mode 100644 libpksav/include/pksav/gen1/daycare_data.h create mode 100644 libpksav/include/pksav/gen1/options.h create mode 100644 libpksav/include/pksav/gen1/time.h create mode 100644 libpksav/include/pksav/gen1/type.h create mode 100644 libpksav/include/pksav/gen2/badges.h create mode 100644 libpksav/include/pksav/gen2/common.h create mode 100644 libpksav/include/pksav/gen2/daycare_data.h create mode 100644 libpksav/include/pksav/gen2/mom_money_policy.h create mode 100644 libpksav/include/pksav/gen2/options.h create mode 100644 libpksav/include/pksav/gen2/palette.h create mode 100644 libpksav/include_bak/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/CMakeLists.txt create mode 100644 libpksav/include_bak/Makefile create mode 100644 libpksav/include_bak/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav.h create mode 100644 libpksav/include_bak/pksav/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/Makefile create mode 100644 libpksav/include_bak/pksav/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/common/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/common/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/common/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/common/Makefile create mode 100644 libpksav/include_bak/pksav/common/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/common/condition.h create mode 100644 libpksav/include_bak/pksav/common/contest_stats.h rename libpksav/{include => include_bak}/pksav/common/coordinates.h (100%) rename libpksav/{include => include_bak}/pksav/common/datetime.h (100%) rename libpksav/{include => include_bak}/pksav/common/gen3_ribbons.h (100%) rename libpksav/{include => include_bak}/pksav/common/gen4_encounter_type.h (100%) create mode 100644 libpksav/include_bak/pksav/common/item.h create mode 100644 libpksav/include_bak/pksav/common/markings.h create mode 100644 libpksav/include_bak/pksav/common/nature.h rename libpksav/{include => include_bak}/pksav/common/nds_pokemon.h (100%) create mode 100644 libpksav/include_bak/pksav/common/pokedex.h create mode 100644 libpksav/include_bak/pksav/common/pokerus.h rename libpksav/{include => include_bak}/pksav/common/prng.h (100%) create mode 100644 libpksav/include_bak/pksav/common/stats.h create mode 100644 libpksav/include_bak/pksav/common/trainer_id.h create mode 100644 libpksav/include_bak/pksav/config.h create mode 100644 libpksav/include_bak/pksav/config.h.in create mode 100644 libpksav/include_bak/pksav/error.h create mode 100644 libpksav/include_bak/pksav/gba.h create mode 100644 libpksav/include_bak/pksav/gba/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/gba/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/gba/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/gba/Makefile create mode 100644 libpksav/include_bak/pksav/gba/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/gba/items.h create mode 100644 libpksav/include_bak/pksav/gba/pokemon.h create mode 100644 libpksav/include_bak/pksav/gba/save.h rename libpksav/{include => include_bak}/pksav/gba/save_structs.h (100%) create mode 100644 libpksav/include_bak/pksav/gba/text.h create mode 100644 libpksav/include_bak/pksav/gen1.h create mode 100644 libpksav/include_bak/pksav/gen1/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/gen1/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/gen1/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/gen1/Makefile create mode 100644 libpksav/include_bak/pksav/gen1/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/gen1/items.h create mode 100644 libpksav/include_bak/pksav/gen1/pokemon.h create mode 100644 libpksav/include_bak/pksav/gen1/save.h create mode 100644 libpksav/include_bak/pksav/gen1/text.h create mode 100644 libpksav/include_bak/pksav/gen2.h create mode 100644 libpksav/include_bak/pksav/gen2/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/gen2/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/gen2/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/gen2/Makefile create mode 100644 libpksav/include_bak/pksav/gen2/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/gen2/items.h create mode 100644 libpksav/include_bak/pksav/gen2/pokemon.h create mode 100644 libpksav/include_bak/pksav/gen2/save.h create mode 100644 libpksav/include_bak/pksav/gen2/text.h create mode 100644 libpksav/include_bak/pksav/gen2/time.h create mode 100644 libpksav/include_bak/pksav/gen4/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/gen4/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/gen4/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/gen4/Makefile create mode 100644 libpksav/include_bak/pksav/gen4/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/gen4/text.h create mode 100644 libpksav/include_bak/pksav/gen5/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/gen5/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/gen5/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/gen5/Makefile create mode 100644 libpksav/include_bak/pksav/gen5/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/gen5/text.h create mode 100644 libpksav/include_bak/pksav/math/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/include_bak/pksav/math/CMakeFiles/progress.marks create mode 100644 libpksav/include_bak/pksav/math/CMakeLists.txt create mode 100644 libpksav/include_bak/pksav/math/Makefile create mode 100644 libpksav/include_bak/pksav/math/base256.h create mode 100644 libpksav/include_bak/pksav/math/bcd.h create mode 100644 libpksav/include_bak/pksav/math/cmake_install.cmake create mode 100644 libpksav/include_bak/pksav/math/endian.h create mode 100644 libpksav/include_bak/pksav/version.h create mode 100644 libpksav/include_bak/pksav/version.h.in create mode 100644 libpksav/lib/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/common/pokerus.c.o.d create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/compiler_depend.internal create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/gba/pokedex.c.o.d create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/util/fs.c.o.d create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o create mode 100644 libpksav/lib/CMakeFiles/pksav.dir/util/text_common.c.o.d create mode 100644 libpksav/lib/common/pokerus.c create mode 100644 libpksav/lib/common/prng.h create mode 100644 libpksav/lib/crypto/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib/crypto/CMakeFiles/progress.marks create mode 100644 libpksav/lib/crypto/CMakeLists.txt create mode 100644 libpksav/lib/crypto/Makefile create mode 100644 libpksav/lib/crypto/cmake_install.cmake rename libpksav/lib/{common => crypto}/sha1.c (100%) rename libpksav/lib/{common => crypto}/sha1.h (100%) create mode 100644 libpksav/lib/gba/battle_tower.h create mode 100644 libpksav/lib/gba/pokedex.c create mode 100644 libpksav/lib/gba/save_internal.h create mode 100644 libpksav/lib/gba/sections_internal.h create mode 100644 libpksav/lib/gen1/save_internal.h create mode 100644 libpksav/lib/gen2/save_internal.h create mode 100644 libpksav/lib/util/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib/util/CMakeFiles/progress.marks create mode 100644 libpksav/lib/util/CMakeLists.txt create mode 100644 libpksav/lib/util/Makefile create mode 100644 libpksav/lib/util/cmake_install.cmake create mode 100644 libpksav/lib/util/fs.c create mode 100644 libpksav/lib/util/fs.h create mode 100644 libpksav/lib/util/text_common.c create mode 100644 libpksav/lib/util/text_common.h create mode 100644 libpksav/lib/util/text_common.h.in rename libpksav/{lib => lib_bak}/CMakeCache.txt (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CMakeCCompiler.cmake (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CMakeCXXCompiler.cmake (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_C.bin (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CMakeDetermineCompilerABI_CXX.bin (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CMakeSystem.cmake (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.c (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CompilerIdC/CMakeCCompilerId.o (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.cpp (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/3.27.4/CompilerIdCXX/CMakeCXXCompilerId.o (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/CMakeConfigureLog.yaml (100%) rename libpksav/{lib => lib_bak}/CMakeFiles/cmake.check_cache (100%) create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/DependInfo.cmake create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/build.make create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/cmake_clean.cmake create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/datetime.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/pokedex.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/prng.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/sha1.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/stats.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/text_common.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/common/xds_common.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.make create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/compiler_depend.ts create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/depend.make create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/error.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/flags.make create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/checksum.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/crypt.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/save.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/shuffle.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gba/text.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/save.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen1/text.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/save.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/text.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen2/time.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen4/text.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/gen5/text.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/link.txt create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/math/base256.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/math/bcd.c.o.d create mode 100644 libpksav/lib_bak/CMakeFiles/pksav.dir/progress.make create mode 100644 libpksav/lib_bak/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/CMakeLists.txt create mode 100644 libpksav/lib_bak/Makefile create mode 100644 libpksav/lib_bak/cmake_install.cmake create mode 100644 libpksav/lib_bak/common/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib_bak/common/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/common/CMakeLists.txt create mode 100644 libpksav/lib_bak/common/Makefile create mode 100644 libpksav/lib_bak/common/cmake_install.cmake rename libpksav/{lib => lib_bak}/common/datetime.c (100%) create mode 100644 libpksav/lib_bak/common/pokedex.c rename libpksav/{lib => lib_bak}/common/prng.c (100%) create mode 100644 libpksav/lib_bak/common/sha1.c create mode 100644 libpksav/lib_bak/common/sha1.h create mode 100644 libpksav/lib_bak/common/stats.c rename libpksav/{lib => lib_bak}/common/text_common.c (100%) rename libpksav/{lib => lib_bak}/common/text_common.h (100%) create mode 100644 libpksav/lib_bak/common/xds_common.c create mode 100644 libpksav/lib_bak/common/xds_common.h create mode 100644 libpksav/lib_bak/error.c create mode 100644 libpksav/lib_bak/gba/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib_bak/gba/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/gba/CMakeLists.txt create mode 100644 libpksav/lib_bak/gba/Makefile create mode 100644 libpksav/lib_bak/gba/checksum.c create mode 100644 libpksav/lib_bak/gba/checksum.h create mode 100644 libpksav/lib_bak/gba/cmake_install.cmake create mode 100644 libpksav/lib_bak/gba/crypt.c create mode 100644 libpksav/lib_bak/gba/crypt.h create mode 100644 libpksav/lib_bak/gba/save.c create mode 100644 libpksav/lib_bak/gba/shuffle.c create mode 100644 libpksav/lib_bak/gba/shuffle.h create mode 100644 libpksav/lib_bak/gba/text.c create mode 100644 libpksav/lib_bak/gen1/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib_bak/gen1/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/gen1/CMakeLists.txt create mode 100644 libpksav/lib_bak/gen1/Makefile create mode 100644 libpksav/lib_bak/gen1/cmake_install.cmake create mode 100644 libpksav/lib_bak/gen1/save.c create mode 100644 libpksav/lib_bak/gen1/text.c create mode 100644 libpksav/lib_bak/gen2/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib_bak/gen2/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/gen2/CMakeLists.txt create mode 100644 libpksav/lib_bak/gen2/Makefile create mode 100644 libpksav/lib_bak/gen2/cmake_install.cmake create mode 100644 libpksav/lib_bak/gen2/save.c create mode 100644 libpksav/lib_bak/gen2/text.c create mode 100644 libpksav/lib_bak/gen2/time.c create mode 100644 libpksav/lib_bak/gen4/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib_bak/gen4/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/gen4/CMakeLists.txt create mode 100644 libpksav/lib_bak/gen4/Makefile create mode 100644 libpksav/lib_bak/gen4/cmake_install.cmake create mode 100644 libpksav/lib_bak/gen4/text.c create mode 100644 libpksav/lib_bak/gen5/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib_bak/gen5/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/gen5/CMakeLists.txt create mode 100644 libpksav/lib_bak/gen5/Makefile create mode 100644 libpksav/lib_bak/gen5/cmake_install.cmake create mode 100644 libpksav/lib_bak/gen5/text.c create mode 100755 libpksav/lib_bak/libpksav.dylib create mode 100644 libpksav/lib_bak/math/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 libpksav/lib_bak/math/CMakeFiles/progress.marks create mode 100644 libpksav/lib_bak/math/CMakeLists.txt create mode 100644 libpksav/lib_bak/math/Makefile create mode 100644 libpksav/lib_bak/math/base256.c create mode 100644 libpksav/lib_bak/math/bcd.c create mode 100644 libpksav/lib_bak/math/cmake_install.cmake create mode 100644 libpksav/lib_bak/pksav.pc create mode 100644 libpksav/lib_bak/pksav.pc.in create mode 100644 libpksav/lib_bak/pksav.rc.in diff --git a/.DS_Store b/.DS_Store index bab200e565aa354aeaaf247a1a31a2eed4b87211..4a3877adfd29cbf81dcef010867b42c2875a10f3 100644 GIT binary patch delta 200 zcmZoMXmOBWU|?W$DortDU;r^WfEYvza8E20o2aMAD6}zPH}hr%jz7$c**Q2SHn1=X zP3B=S<l0Ewv zpYNtP?*b^R!}c0j0+`c{hixpw9XB@D_Gak_4X~O<_LAeX;@QMw39Ou8> z_4`fN?>jQ|dN=f|4>OK{3-WiYe;gS!ZBkikP4&% z-wNpeQ0c-JI5^s`gF(l4?azcVj_oc%tTAtagClon#Z!r%TH=aPJe}(`cr9>n^mG)f z%;!Yq5;v4$)wy1cj?x@6rUI$JSb=k&F4g~U>A&3n$4NO$1yX^3r9hdj@7F7SQuNlz u$Env=`Xl|z$Td2{=n%k(TJhx(uWC$Q3mhCRo$HoP%!7b*NlOL(LV-^@NGK!# literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..61f307b7ec111646c08db4db2612529fbfd48834 GIT binary patch literal 960 zcmbVKJx>Bb5S^0~A&N#46E&DnSa`(3k46#`uE4^C!T^QcN`NTg>);NxJUjgtT53(9 z9i^R}wIz*zz{2?EZa08{g_FE}^YvzSIo`fLzZZx!g7KjP7wp6V*c#CHyvfIbrzEGa_gPVBEy{4>&=vi6Jg{9ykHmxQD@Wx#vID575&+ zx!G5u?gM}=*^p)?Lo0f2i|C~n5bwBLm;1P8=oB?-v3+Bfmctq)xz2j#sk0&!#VpxN z-P9qq9*Od%)D7!-M;QB!NGzJrW4Y8ewT^G@)(uTdsC~ol-1Gzf8AeRz347Vb>KQ*z z)AW|Cr+psNpCONL7BnTtC4;=Y4PNv=DyOKbKX?Gm3m{_Ti<08Rpb ArT_o{ literal 0 HcmV?d00001 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 d23865b3d4fb1cb0b5a90a537b334d48f5a8f767..ab7f5d0dd35121c27ef697c39cf02115135fd269 100644 GIT binary patch literal 1720 zcmbVM%}*0S6o1n$bozmm&8nbP3W-U#RRipWCKA`LSg<6>Zj6bCp(25X4@+895=a`n z7`p~;6G^uoh5T%J1rOI+4>^l$bitWvQ``j7j zqiF#Tq!6V*nZOev#-Gj=D+z1!d3nNe!4D^ix4IrF-)tc_UJ?s)&+~Ingvj2mj^eVA zvLp{MA5p8``P}0kE$PEqJF45377Rv3xr!P^{e? zR075PkL>$leGST^h#Q|#zn})0xtLszSV@4iP~b4`2RqbcriWTUO)AJm;P9mn>@YLa z)60sL;x4zxz~;C%f^nB4$Z2qR3pv32oPj#UI*kmwXz0s9OJ^5U&VtEA6w+IMu}d+8 z?*TSCqcHywz&0gE=Of?sYcQX$;wcWlNgL0e#QIlt25(^%o_lV57G60-Me*k^}JhpdF`z2D=8Tdjob z{TTJ0*5))TA$$K7d*yHo9TxSO?jwgB)k!_zh(R#ZdK;*^2I)ONUnkzV1MP%6SgN@L zjQfW>*yQ;$DnEVHv(1`2K!2Oc_2d2w)sv5?e4r5@Q2G5vyies5jrjA`cjoTTPig0X zhWOF1v+B<1_d6z%hXa?b^Oxm2_wEG0CRgmA;2%Lhz8l%Bivv3thbgn$E)I;j*lbFS zOGKc!=74XT?XZAvNBK_A0Su#_l4m0O5!smAd;jj%*p{@Je9vx>jdLz-O4W*kS7%h( z2#$2)NPe%*9%*}h15ubR=AMbkiINz6P^>m5A6GL)C&2TQ<@jNyG+XF%#$IRaftewD L&=4;6B0BOHbQ2G5 literal 1768 zcmbVMJxmlq6n?X}a69({ck3yrAcwKwj%bu?Ao0S*XadI-!d?tk3o3yN9vk5Y zWyAtIO9~6LrXjJQz~m}z46!7}!p6kH%EI`)omu(upm37e?|tvRnf>@M%e`RCj{mPZeyH)q$+~d;RJ=ZN<-`}~b zbuH^;9sBXKJ%c{IweC<2eSmgMWlI#zm>8EZW0>n$$8}!BxCI^tR+@>P06D&i$;0=O z@5A~38Q%i*c8!+DW=z_+hB<*aWzy(iH_g`rR16WV<^{c6fxJSg)ITdDD-)t?#}c`L z6GRE%qO3_LB|7a;t=Y+ob9T5EaArl99TJoo5;ARxa9ZkKs}^zaD7xXfh&J4-H2;REm_uIW6wd6^_{=;;BjpyYa)&L2k%pHE3p{oHsci`v z8eS4ke#vmIb+l!A>FL-Ag+n8vJ<}^XG7@_6?R)+5BH6!Ed1)|wox198alJoNGj<)Ig!RvvnBtHU}{acG8*z825RrN& zS}x31R3ZJBD65886HQQolSRHJ;vmf3@OBZ@CD*49R5 zEP>O~*@+_;3`JvPwIt3Y51xisiXJ$NoYHyPI-)+V|6ebTsDIV<&qvf_xFe2mA)+u_ zML)isLPcS=j&(Q#g>8k|3qX_#Nrl-7h0QsQNsR#RYYrO83qfOB)J4$vVf-|L#tU;5 zHyA;^1r7cvF^2~K|99gMpVa)lcIdX|A2c7;{FCN`%pu(W|Fwd*;(oqg{6Ayv4-T38 ze&Jnt-1nc{%Iw1ABX?n{>JH!X+4KR%wdp&D$|`ZcTCVgFU$1!A%XB|q9L~53`!rtB Icp0e2A5{+d8vp$d&?sa+I=_T)tts}%I$VJj9z1f?u)Pd>8Qh^3om*+d&H*oqz$ zJh_uO*dS5Yj$pWwj$-_^U3&`xKAN=uAmuO(M25bOlq_+;}p)r(5P%blA#bz zV*eEC27teT9&j)8DwKtDl=A!QW9NTLtMuM)UeWyae8z7-pvEsj!4fS_0+*XY3tj+! zicGKuy$?UyKWiaJZ{1sE+tFxwqw{?7o5%&<#bEF{Q@FFBWoMR%ipMAD?VAB=TCJqJb$lx39P5}# z^)GKNtcG_EN6#?GbBm#%Un{)xiN+ouBQJZ98crW=>fx+I|C|T&@5oD7_%!_b{}T4I zJcV|PAH@g9_sTaB$G+yj0<*wRz+T`JAjcm9v4?qHVO)|w8{;UD^G1MCs|f4h2jU%s zNmb@p61A5c8pfgK;~itJqy!^DsgmN?Q~X4VpHA@$DNeFBu;xJtsPLk!jX5A)vqi&ic4ZT{m4XV0U?PPe4(l&5X%M}0s literal 1528 zcmb7E&ubGw6n?wg*0lZrZBpW??Zt}({MEB*X+=b+lt6nM({xKqlWxeaZE8g$g0vt) zp@-hgvAgz|f;|X|e}D(UlZVt(6+B2|4nnQp+nq^5OrSpY&71Gdn>XKknaRiBKmME{ z(g?ys2Xu}n15n6C=z%|LJ#6WLf6dQ8r0^-YS>-Yb;h1@+ov5GgB@O{N_2U~zeVaYl%{qiT(9ROTs2XVDqi3}7%OI~vg^8gK zDpd^4+c&6mXy{%U`V@X7->f30tWhahef+6x^m**Ffe(&fO?(6XZuEMu_4vvYEwoT1 zN?abJH@iKwai^1h4j&&U%0?J@d;NXEywCeu!$Cg6Sx2iQ;5O`5CqHbzGsNe%Ty@D6 z9GL5Hg?WYj{MRKf7kq9?KI^vvK6Y2Y=Okxw&D@tI^n?2{*rG4oyM5HJYT3ov(|(Uo zZ-3CcUgl#&ylySN=MvpmzeM@adD>tuNxwG{pZ7^PsoyFh>whonACdK|GY^SM+j@L& z8|SUzyxj}+^IDzLc!72RaDV01t*@}3B@J!09+mHMv(5UBT%T*Rj{8MDM6pfS5NulF zDcEk{+pu`&u`k$C+v#}|E;M1Y3G?2@{ZEMqqyI?1m z#Pa-%$$x>uu|$5xuK8Q}YO%99EAwx3-J6-V9cwv-Y#1C1ki_&uGiQ;Q&6y^NR5G2m PQj~Tw*{lA@{b%_L3K~7i 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 ff053594cf04b57f2ae2df7a8c005f9f00a3b00c..3090ace940d025fcf557681a7ba0748b67233303 100644 GIT binary patch delta 498 zcmbQhxqx$mgWwAW2(Vy+&@Uzi+6yWm34+8GCN4CWgb5lzB_n_`%s{rm#E<5J0Z_pb zDBUsHlF?rB1eB)$r9tXJS`sEtWHgt|05Um%Jdh0%KwJRi^8jgs$qyOB734)23Rf^N zgaB1c;9z8!$Pk(E;{bE~H3o);OCWkOBa^}83Z@1{1)vrnfVv;T0g)i17#SFRI3`On zJJxf6xD1&<%m);N0g$zPK%ELufhaUSNGTuCSupP3kC8UzA?7$lzo<}olhLHYGi zzA=a;0@)&EU*FbSr`~jK;?nHXW&P2FhfqfUU5kgLwrGYabj6KkeOOk hln>+wcn3R%#k&Rt`3J=ZhXe&f73!Hn7?UGdECAW7JgNWy delta 448 zcmZ3$Ie~M6gWwGY2(Vy+&^IOq+6xLG34+80CN4CWgb5lzB|U&L%s{rn#E<5J4p6}o zC|xnxlF?pr2b8A(r9VKm1WcaDXf7E6)Xf2u0ofn{#0fw?50F-v{E#tR04OtogOOn( zLuA5_1I+Q)CNnY_OzvQ6P=vYzqzeVG0C|iI3_c8#HJKgj89-cyOd#e13c>)0$p_R4 z^Gg&OUl_y(I>P}-gFpfhgZQ2x4iE$aF^C@l<}olhLHYSmzA=>F7zq{7f(lHA^1Y#a v2PoeL#0NSR7E)3`K0lI!8R84FixbP@Q;Ul7i{gt*ii#&2ut-dfVsQfiHWMsZ 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 9522dc3d45a07aec4ae68402e3bf6a9af218d6d1..76b1c403c18a7fbd7df36f0ef24755b495206df8 100644 GIT binary patch literal 1944 zcmbVMO>7fK6rKqotUbHlP1FOGDq>KD(j^6hI8-WuT?-_zT!fY!ka}2B*TRcq$CXWs z`|C=es+ffA0SUNpM+CxcZ{4 ztp5E+M`esNEZR0h9?&5T!Fm(&UKkC{*S6Mho$t#8`6Ms-RUEz zreE3dX;}iO-VmInkw~*)){1jTyKZ5wT7Olrzg}FYCPCLQSlml@o%l@kDz%wH!#!91 z%&UIvy7|L#jC5Mgd0ILZ^hNc~ON}G7`*Q8WX)7eU77fV|tlba;vIv|4O(4p<2Al3n z!L|r3ASWQSh?<1>DChsIp_aYGmHSiHh117b@X2w7?cA1zPCzR>A=nffyT8f(CBa&b z0!gBc9A|#6IrCTUpX@VtGuy~rym><$wt@*;F$EW*^p$ba11^V{{o=)Ri7PMbq*&{z zfjT$eS)K9h_b>LTB-(mRyUvX zQL*Ps<7DOl8+$y;{9o@K*w_vpsy&LjRR2%Tg}yf4)Q2tqxmOJ`S;OQ*Tx5XT8{_!F z9vt;#Ajeoc)HD>!=VzA-*>(f5WQ;scg#p8TYdLYuw90HnxO&`9aPX<7mFe$XNiNy4CU*fTR0d=P9v@ z-|Pu~vu>O!`G9vQrwYE*Tb94-%?4UlGw*R-yes)GgYTx~BOGy2pG)AYfKQ|?zXII4 zoibOrChmamF8I1}LgIjTDCYz4X>VKp9j_d$*{ZpS9#rt@n6C`JZzLb#h>QBX%ngwT zUvk3o^T4gxnt7Y6Vjg@8;OoXEB@TFpawfs2PFnuFcQ$xr3v&)V{0`hY{g=V#N(xi z_zv0Q;s5g({0VT-cQ~m>UwLbQRtES73dKnBHEs}j9k*sjt+>|B0saDNA@-R ze#G$><};C=vLZc_mKuuUBU^?tl*+z?q@u@@Otyn;RE^*DZ~N>o$Od=(PQMRZ@4|lw zdmMH=2ZhLv`(|#fT%Y;WJ@e6wTQ4>sg@!j*bql3ppHwuHfU?X$_6Z=(G+B^Mcya`zg5?b$j{_(Qq!=WC_yLf?2BaN;N_<8xtEoFIM@9~GXsNJbs>FeIDJN`cn39| z=c;XF+DV>bU%Hg0xky5*JPHv!TC(H&}=6f4mxRwN>cXHiMy zdnGZ|FNs)QtW;3GP5oTz3mNX$ZnyiE+as3OFt5Z6Bj)Xt%b^H*#);oFjV?F)! zQ72CydHR^0I_v1CPM&p6oxIcMtY;m4)LHM;oxIb}KCGio%zFBqI(ho26SEI})QPFn zPo24PH|<;f?bRCZtoyc+?N}yVn4x#&Baa*o*tqg}1zuBI)uAn-uc&%%0`mhJqZ{v+ z9tYM%_1G-$i!H#-E9&)BWA0B>CN(~AQJpY&tWR8X6r- ji#pOCQSI@ghr89$WJhQ6xQt{+Gy5yg*2;4q*3siP)7#-D literal 1368 zcmbW1Pe@cj9LIn2M)SSheWessWVBnCU5T{l&>n=*40QcNE(+CUTy?2f_fNY0I|#2s zAXv}~g203olz)3l9?!v&9_D6mm zKnE8@r5h}`Pn5gCVqk%gs5XHG!lK*+rh^%xy<&hF$3@uyTd5Nz96)I$ zh#GaP72jenaQTrevhQKP3=7R zeL05xzzj8RR%20JJ*!pzwVx!qHg(ua8i%Z8lubP`;=Cc&F!``)ne1>#>ocR=UgyT# zS8mQdZy@{5-A_I95wc&LBs!9#PI2z{UZxj7Kf1Jelu=g*8c`ZB%mV&Zm;u|(H7x~13B_dA=L1L{ne zMx1fdG)9~=cutIKxP}@i$1L**M}+18ju2N6$E4<@z!Vg77lW!umBMcw>SDJz*Vjjm zcQ{5*UFyA>t&k23v9w3HzBTN6=URjBs?&rDA@yt6?LHnQop-bw+5C6ir{=fmPNh+v z|4y5sk8E4N*VBG|BrgxAW0JN({g0|cA+S*7Sq{3=3HFJ WXVTexj>d}F!YQXe>GUnwN44Lg#OCDy 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 0000000000000000000000000000000000000000..cd6495f91088e972c592b33a6a55eda0fa5f60a4 GIT binary patch literal 1112 zcma)4L1+^}6#bLcn50qBR%`_!deVrX#X^gRj-r<+C?U|^hHbi-wdrn3wwk4vgG=IigD`*{EcXtW$b zuhFJ}jy8tAEq8}6TapRzOrbs>!*cSJq6y(yEw8U3MCI;mrGM7D*9kr1)(imrXt01l zn-EoZv0+v{vFtpxop~Yd-_be3Q0Z_LyrgsjL^YEhO;(KKI*K0Cj$>1FG%BL_8uE@J zZXvc1htMCQlTnR!`hTi5rT*LYX5L4;4_MS)Nk!dNcvWDqxofcYbSAxIGpKL~%H5UQ zSaU1doB8ziqanV9hs1V_RQs0!Z2;c+Zj2zpI^X{@5vJqw4`W!y!Y;;g{a8{PIU^y! z=5!vGB8YqIeuUeopB?3$BI8pRQ*fii&W#rtOi}$C1MpUZa`sG|zj8Jxm)KB|@|p9z zlV#j5V^n3NsKWrS(?_c8@Zt)4wH4hlY$@1~#54Uq!A># zh$j*c$fh%@g(^mG@nj-Dsm{7Tr4nfX(O77jPejx5M8jRM=B<{PvppStG-vk0R8ljW hSZX={$~&fKyN+4!k(QmhTSZx@dy9?ha=nHlz+at|(S!g1 literal 0 HcmV?d00001 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 b77e7094dcd4563d3b209b73c391e43bf00b3b1f..bf1ad1cca43fde5d2a07555b7b47a446d4d7a806 100644 GIT binary patch literal 7416 zcmb_hdvH|M89(>lO>%dW$Sd;31Q^>55Q97fzm>5~RAga(66vI>EuPNq$qsY- z8|D2d)Ctnaj7eXN67w(hx7*v?;#2o_KH==#sj7ABvTKyhG^{c{Pr1bC&p(GTs{!$m z4C8KyxyVNKVpK*(x)XUi@(9{_A*m77TaBOFNT1KxC<+UqZ$+j={Zpp(q_(#pf8A8& zRX$!Sum<^heJq&zsl(dtJXI=KT{1iBi1!4JFeZnGCG}nV_01Pb=dq8O|CJ+TU-$e@ zo7gXC6Kh$-YB}n__`TCbCBek1cT@K%=TklGyo@qgP!g1*J-3ZVncv}`#fEkutBl3$ z*SF|>Zv5i$j}I``@H}HBX&*MufWPMstSP;R?TJrk4N=QMhn)>{S;y;RRf6oQMp-b~ z^DGP@leT|(jZD!-80!xf7Wsz55 zBYqFX-%w(9fvvhCZHj$x2koiNHHH`{&0~8g7TOU#Wjt8-Sb=RT0LTW zzo<_ys(WnS5LT9>9EQj1Z)CV)F&^f!c0F%v;YN&|^K0 z_}0LQa&W?ysE=XJu4D`M&{rh7-6aC?*GRkLa9Wlbn!IX2U(9--6H;%xRmhjX;QYnHQoHO0Rl`2WJG6z+@cJ7oy{;F(ds zCvYDPr4Hbpz#W0-f(Xs&8aOb_*edcX%~A9bA#ROHinavpFH5uZ`$VssOsyKlT|#Yd z)aLVDzt+Z8LHq0x5qy_$w^_6aNr+He;?AmK?n@CHdIIxqnyn<_+m*=d)6*g&c&-x! zCALFUV$^^85{xs0MHZu7#vTyN_Fa*ZpmKl0xS|2wuT3GguH6s)y)=8VaLvd_6g zNi2ihAjq|dp?#k%QMA%M%EvwEGhU;tp|fW8_pE(^)XR>G@F|drIR387pyMBqquf8c zc+_!;+hfvf-RF^HeN4_{Ge(lrVk5~?R$K!3he~67txP|{tyTI z^Y9!mL_Pz@KE-p(Cx{7|DKWg6^qv%0WNsdNNG|j{@IKi49BixPcc^%8cn$m+#2mvo zn~!(6PN_nn%ZBy(peJ2S- z;M?r!=Nx6=S$c0NE}J@80(V;Pc5vdw?MzFFw|*F(^UC}{4O{afVuRNF8GX&?45s6R z{50+q7LmUx_gQbpv)QLly`YKKa0v1I2;%vQh-dGoSY#QV69?g^bC7A)0Y#%aQS|40 zRnY9>GY-7t_O8L$hP!fI#{mf>Gcn-HWF0Ii5 zz{(Q`UI@}$zaeR~rg-n{bz$%26>^_^dyT$UwWUfTB+>fiX%rK9weI~7#YdI3kJihH z_QrbVYr2ocY!A-51{?FgZKZu$fqKPwZpOOP^M)1WHk8{|*!pTwUJD;+e>z?-&}a{q z-CnKLVlVFy4?51m@32@Hb_+$}bex`?F*ke?p77a3Pl#^8elMHNhC@X8kVUetcDb>7|cS z8UNm6SXf+a7NuT`ArEo+5|@X$Y@!cdNUL#}WT&s&K9Jj{?f%Ma5BCZw}m8Wz^UP`G#L z(o8vf4+y>iac?H^67DzdI6N{;#qZBI>Mp!V|BrH<*5gL)+xhzX(H>KnGJc%nGW6Q zx`Otf{OmVmMxE(q5AI|vhf{A8vht1t(zB% zLF2E3qLR&Qoj`Ekc~WEE8Cd3n!KW50rI!J22!H|vQ6#nu@ zVUrx@vY$&omrYzMT$XVOp|`V0k2UR-#SL{9>HWNT-qk#dG@O4Xe@<%FB0J5yL8_0O{x1I@w=ZHdD7AAt z%IzSx@!eNX=eeD3|7WtX2W41XO5ep;(~#3V?nfEEH)c`?$NBljLflTDTbEIj+NaN{ zw>X|YcNA`?&zVKA@s~+==Ga$r>?-)1UH_js_!;z+jYo5EOOAaor+#Tp|EZk%HM#Y3 z?3NrG|Df@@x|<(YckO6ayIXxK^j6jDad!GzySiC6NWk9C?)JTHZSGdoZSgtrubC-T zzOVufU^G-)+FM&(-FtUW?V+V>pVy~4eXV9}7aHRqH%_>rJK62__*Ad2EA2sBx7yX( zyi;v+!abiy-2q2ifo9FY?E$VgZtL>w&eWJ(0b^*d$JM&q(}||=($(#AsXLpy@ZTaT z==L?YxTsidYj(QRW9zF&3q+k~7q)e^PA#OF7~UDq`1W~CjR@Cgp}U%mVvbLAVP(?I zF-@wNJz~xr4Vc_8d%tUMbJx!7cE*|-yRT1Q^|nmG_0IY7=y*%B+wDQUt(&%0Kde4j zQ>{X-SGTQS+pw{I%PO`0fd{s&Z`gLT3U_~5g}c72!pckqw{N%iZbrX%>Ax!x>g>Ov ChxP*i literal 6640 zcma)BeN0=|6~FJprAH!yk^4rA4I~Zu!{nymz1R zM-%Om=imLEbMLwLo_p`P_r3h}oByn4FeWf0`boi4AmXPO57K5lK3OZ%q#r3u5$&To zNGeZ5o*pd;k*rpatbx~LMF32twi3uj?ZgZ#iI#&{cXCM%&Uz@tpX9VmN7Vc6AN3ned)R`cV@*S=&s#b~gTFyA8?BJdq_HOd z>I)W!nC^E#)(=@JWW%d3TAX5r|2SlS*vl4tsjTVP>Y$}lyu&{US<#Q!LO6vry|n7L zbcvb%48G3yTz0v4ugD#cHwiGiHQ;1MqKP<;Vk=hdRv1e#}cP=BFmO?E3S>w8r|$ zm3$Uiyutzlm3sf2W@G5{yV#V-p0j+bF@%;i>7g4Y7X0!jLJ%upv?bMya$EeQm$`xX z)^(mqeA7D5AzrY~^UQ&;#vB=_)UC@3Axle;ZG$X5LAD*TtOVJeWWR9T)=uJ^*Lel; zymeklJb#_f!5Xu-4Eezh`((o- zW^V)XLs*m78LPUc$q0?<+0%2Fm!cH*bg|HI82c!&`Iq``i{p256@`M&Up?7~+XF;oj&)CeK$^^p?B0<#)jh~~iz z`PV2buz`MQIk_)6i&Vds9# z+aBP3z(v%fyy}DIhggKl#`>W7A#;TEG@dKmj^ZoD=9-v$tpsso>^bv7_^z=+>0Z%D zKB0Q#k2%y+{kaKt!te)T!XDC7+iIEZ$kTXay`bnHjnS*?fb>{DRlSGV6hqvM_Pv2c z*x`|No=IcbDEoohrMbP8->EOu_HmTEiS>K)vEN}m30SvcaOHUxpm?6!XpZRi)fy%2 zjZ&1;!+$=+aN0+Mi039j=Lnw|E4=#RSfK&^s(K`JTDo5}_BNO!uOX(7W8W&iP-4v? zQ8Ye__~S#2f2~8>M|w359ZH1`vB-y5pQJNDhq&ZJ%umu~LWdaTL+nq| z-|C5ET?KTAc|M#SN%bnBL;UmM3>lUEnH%+|XRm0KFc0>_=BXj?pv52<{3bnHXb{Fu zNjq6E7x8CQWP!oM_CB4U_v=#30m*>%l+6Oz3-Y>@3|J#)g?PSO6VESdcQQr=tZx1f@Umn68paC(O`e;T!nsZnLSDcY|(7)e4#{z%pu=i2S7VP#( zTC;Z4l~C6Z>A&p9UBQ`c_6|c|j=FCN8UC(37Wtr~qwfRA?zVSLp0_(Ev&5{1x9z(o zoh2x1?0@BLlyeobNCot`2Y7D?nGJ8*clEsqdoRIWg^=kVM%i6t@7J231Lp?r(j&t- zSBC5zeQyZq{+;M=L$*2K2x)^wI5*BB9;PFfh7L=8q@%OL0R9HJ18x2QbsV9TV42<= zFu+y=Y}Kde{06j7<#lLRhjOKY&foEiRP4oC?8zF$_&>?#{O#^#>Nz77D>1VKsK!k7 zjA<^SvxkLL-(x?Il%Wr0DWbm&<0Bs%;N#|s+MrXwx)BTw9RiyonWNAgfy~QgUUe>- zF`q4%51JQwyj${4Aajc&>j`b7eXh*+tV5%&IW$Rb6rf3}cl_HLJ zb2P~~v^Hqb+jmY>u@=qBDE&r171W}FgChs(2W)0u30~+R?Mx1Pk@?!5aV&k)%HMJC=@G|Tq8xg}u4g%)6`@DGIveH1Uh;<|)*3J3 zK1t`5dLE2poKmVHkIFDs$&et!c%{q)8OAK-B*-vsDK9~Wu}g&sGK^o^mLP)E^hg6XugHNQ&1R4Ay?TweIXE~kK64n;oLrdAXdO>%+nQq z=bGh6_bs}o76Whh&M=ER)Z&5PBgWv&->;naEJNAH6sKuFt9JylxpJfivFML-92y6w zyXIzmLD+(VrSczRPso3ay(#}GxP(CWCR-GW@gka$aW3N|y__Pw53CaLhx~{Zf9Uk6 z7JtB#TKoa`>3w=1J~aGFBWiI6VU5}e?N$V}?t|=^gJguKD!g3deOUb*p^6#FDeXfY zm`Tz*xx{x1{UW_YBb|dC{7b5T5&@J_BQ)RD{=D)U&+1SHO(fONz;^)oeqZ|h~wgI=H zUK7VUj#V6YaLnbX<+zBsrF!!mKjwIe;{}fAIF71_wSpI`@}nF*9NRcHajfH51^gb$ zmjba4%dcZT;OEA$g4G`bH$whC5cA(SqhPfJ#CMp+HU+D<0x{K%1qxQ5(JA(PK(cpK z!Rltyjq?gtPXlQ_&T*tQPTa}yVUATC3pg&L(^PJj z<0Xz09EUl&IW}>`cMy49O#^8iT>#?KTlqPT!$3?yxsxNlk;r^2kk;V_AnuFh%UHpA zz%Y>N&j3k33B;$U^7CAO21tHC3B)#T996Ko9!Tr^J|MMM0HpdEK(debOxgZCknEoU zl71LS_K$MC8%Xx?Jw~?QreO6YG)D6^tzh+gK=RiFM~W%L@h&A}A4iE}6Gt=0T^tKI z>NqZ;5wa8J_$kL7*ys2*<}6n5$#Ec5sRJCFIhr{Za|FocbYk(2G;uoRQc9XQpBhe0 z6G!zY^=abCoHIFT;?ZnhHso31Ed1t#A(`3u{>C&hyzx4mK}n1LWuiefJ&8;vWa{_Q z-w=nd)bE{M;wZ1ixf)(x;@>Z^9pw6tbN+qKM>zi$b;;f@Isck?OnYB&z1rSY;+Sjo z`)CDt79KU#bFRj1H|J^`eSvc|Zg1vXjl-8=2%>131BvBQ0-sMPe=0%WpTKhxczObF zPT-(%?Z2DAPbBb*3H8q=@M{U>nYGi_+3NN(tJ~4ja>)AB!4_+et<__9byZni?d?4_ zPtSMgDsQ9PeH-09>$=zmTMpUKs>kYf*}FWp?)Vl-+1l-Od#rYkt+R(YtrhqbAKNKK z>vlP8ovtqYSAw-wa`bo{*0z>zd|PMMc9+`*;3GskF{4CTTdSj|w-d!YHm4KNW3xG; zrO6+1_wb_%5B9dV+q$jx9>q|Mrrqwe#mn2D=|;C}ET~PWT>xg3H 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 50db8e1346c07f19d2a63b536f9e930d326618da..b4bf70fc654d6b9d7eef69495bc24e7ea63645de 100644 GIT binary patch literal 4568 zcmb7IUuaWT7{9rRF{`!HuFbScS6wF}t+-OezKj|(@L@wK0eu+U)HE7r|70e0YK5h- zqSA>C>zHGE=pYZaFp$v=AKWOh4?Z}itaCo>Ar2pWaL~=@idfz6yZI$2y?48?L+|~4 zzwdYMx%Zs!`|i2vPf!1NUae^^4NXoS95FGPaGPz`p=mo;9BzKaLb|d zGQ&tlk0(h0h7o#ue@O9?b^oQJCF9Ap^D8v%ytq7CN}$vXBQnqz?~Wvm!Tt{q_xBja zJHe7B_<-Z2=!|0=H|!m&igScndNi{~8_sKR6sNHgopGQ^C-LvcbuzUDU>=C!w7oc_ zNgp|6?Yu<5|7uV6eLq>)cI)3uJTyq%eI&rf%K_kL_gs?9%I*1XWFL_1^Gs-V?~cGj-dK&ut)yj`n><`-?$ zuKA%gh<3rQH9%_=?V??4gtk$%j9uFZZIfu9*tJd2wuttrUE2a}t7xCuwXM+FMEl&X zwL#l1+815ln(J9#UeCepTF2s00P)#5`DEYq%QJ4{jx}Bd#OpEQ^$79Wt#x*|w)sZ$ z74e#oSa~};y4!r^aVI23RTiJbrpDrvnABQ)5(~e@CoyQS_+;%HEk0TEjTWD*^(Ko? z)_9A>Cu_Ua;*&LPv-o5!w<}-e`XPVo3VVJ)t|Q-fNv^w)>)KQv=sG!O=Jzn>mv_H1 zrOywWJgmQ!8OHod+?PMy71n*D!XHe_h$R4a!b8DLe3*vh_w~ z=hiDby-wMI24(AOm7RN4*=fJB1NF+*>y(|VRd#x{vIDD>t-q}7+)8DqtCbyCp=`ZM z**TxG)610|@G4thrtF+s*=b$b0aw|UTqvz=BK<~Y+^hXLTzC;$9NLMx%$YU0U|d6e zy1?-c9db`DURSy0pJ~qgiWuERjOr8GZK+Lpk783eA@&Bw?JnZxs3Vq+I^yf7Bj%1e z^1x9?ZaC`57e^gAZmtI9X05vqb{BF8>rR#4^;ik=&O%c*3U10>E+s*(fv!cZ(J4H zx~1CD$}yML%e->CNuzrP5Du`k?n*Om8$VeAWG%f2v-eIabw7fhdJUod@^eZllu z_65^t*%wToWnVCT+!q#ycHun~!24+D6%fxYFir7osPYe>sdN4!D2M!Z7I5-$-yCZ>o< zVvP76aW64Q+(B$1HWBNHKH@VJnLOt_@jme`@h0&q5Fu>M632+Ah%sV_*hy?5t|wLl z5sKD_s81R1Ch;mUOB^GfBF2bP*K%Dav4yyX=poLd_@&=(#7o3e#4s^P+)S({&f_&9 z*Uu5J62By-h&{yJ#1>*0h@rfl#3mxZ^#2U3L5EWNQ8=Ex^t=3P@YkT1-e(ucgUByw zav#x4??dFY$wia)E{=-fO}moIzZNQapM`5iU$ie0KcN}%BZ=-~#-Rh<1~7_$CnREn z2M_i}jYKq(JUq~!uywI_IB+t0bfB_d-$1XfL4eSnR(KJ7GJ%Y|VgksoM}1UFR^< z%%>Of6adpqygivv+F@1Kd}3@aqG=gnwrB+bPBYEaTsAkA%A1#FKmK6$qG`S}=6C{~ zc}5u=!8``|R)@SN=hmzI@0(wp41~( ziZ8liTc6vpqpsNI7k2CwSM1uCcI-7*Z0(92d)*aV`Pz=1aK#GW*s(Ve+bdZ2HoqM$ z-wPGu$$Io|NV8+fQm^8%9>w);#p_*)mpT=Xbtta4D_)N%UTRZ37FJwuRlIH}UeXnh zg(MfxSl)9iRF=G?D_%Dg*IN~jg%vNgDPE5#uD2^5>rlMZsd&9halKpdSdZeRUdiW6 zFPAG}?T=#fSz>?bOs#pYUfndzUv|x#wZGmCLF>pTqqhH(%BTLVX!%#H(RHj*!#K1q za;h4S-bK`{b+B{$688%yF2J(eWky8Fz92=r62DK`p5(6M>~T)azpyt z?Li;;BK_3^K_59J{dgqkBd??%Z43IyHR*4+27Tn8^jBMgK629W*Xq#)!PT?ZUEcFv z4>_yG9rkz)qu*N3wNqj(`_+8NXF2A9f1P#ZT@HD30QoM*4eDMG`7ga2J`eREz4L~5 z9O^@Qdp-~KBE9cgyyH+m(mU1a^-xdJd*Jg>U(&lA_KrinNpG;t>!JRncf;qQ9;J6a z;vI+jl-{1#`vLX(H|q7s<7bKFq0#aqqfhSZMeOTI-@abNzMk~$>sHLSuUj$SzHY^Q z`??kL?dw*|x360)id zq&`MHKpmleia!B5{2NeQzd^l4eT#a7x=Q^m^;guNQ0J({a})C=sK=;JQy-@uqVAz? zp~iQEHGT&u?(ZJ;ZR!o`Ds_c=nL1BBO`V_~r#?yjDs>-qgu03K7x%vdw60Hmn|gz~ zN?oB|rp{9zrye5q5hKK>NIo(D6XIjyec~PBCUJvUC4Ns_A$~?&AZCb3VuCnMJWU)S z9wQDAJBgx5#C3z39R}I zF9Q!E;Ixv^c!tjR@dfCYTz-st9OsB8ESIev@adyIt(n<$HkDh{%-qcU)JNv~7pBbA zhl{zqnVXwQXXj?6kY_8b2|tt1=H9T5 H;@SKQnA5aL 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 7d9dfb66eca84b659c191953d6c6f420737d9892..2770ce1fd697bb03d41c0dbc452d863ff55037c0 100644 GIT binary patch delta 636 zcmbOrJVAJZgWv*I1~7QR2%#5D473-FfpS2COhECDi3`m|VS)@S5S1>>K*`Am8Koz4 zFe*qTK+SQ0NHTb^GcW)ZF#KSj?8Im$%fZ3GAOPfoOp^d%AfFdVzW~xJCQoI|W;C6= zlS!K68#BYI#BX(%C+jfvaEh@oZ27{>xa#2KgG|bsUoaK0Ok!lIUjx(zG#Tm&AO{LS z;vldAh=G=4$U6W%1GG(70Z8)zX&xXAL_Qo4+7`s&1d4wE>gNK|4XdKV9NrVgeakVk=FE)eqp6~RC)h!2#51?F@# z{zMQT=sQ?&3IX~2K>aY!X+rrx3JfxUB$DwAr4DEU`DlD}d8j9Vsvsa@@-gVo?jV7`2L%Kfq0gmaFLC zpj+u`{sBk9&DFtCH$f?mey?euEV0?4utpSylBdP6lF(h?H~1iK zSbpLtK+dniYQx}gk=^ z0p^H|8Vx$=k>QAaHEQV?0=G;~fFUpj;?w(Grb1v4{vSFzz)uiAKY0(zz6#h0UV`nQ z0m^>eWolV`sl#Wwq4Em9lk*{NvAR*@#k|zWd2d+u=_{%6T;3}lL-(}wXPeraYz4X{ zO&e*SvF_7-J{|Yzaq*(fh_T>kpPfInj?JA-%gpAi1G8Y+Vl^0DaP8vONzp9s$uyZQ X*7m_(p<(V83-%1jeY&wv;U4-2E{b2@ 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 50511813296936ddf6039b46c090300e10fbdbd3..f2cf0d2e3f7caeaa917493c23fad8093ad463537 100644 GIT binary patch literal 4088 zcmeHKU2IfE6rOu;x80x8DlAwH+AS!y2-spFU1RNSLDHrhXx5q%UhbB%rI&7Zm+e-- zKCs}HwB16srVqrZ!AMN+MxJaG5+D^`v_2@t_~J|JPtpfXXs8WqsP#Md&h5{(C`KQ6 zaI)u~IX`pe%$aj$X21IV*FSO@6BrtOEP&6c;{u>P4ye$jI=So*a(m;Pc^vj=ZFk`xtrLyhop0OG zD*zZ_Sp{VP+BU!=fKreyU>Zbv4WMbANjTPqK`_ru->v8q&^-A7+M|EkhFQ!j=dh6t z04w?mV^^wN^3(^}tkHV$jMv7jiQ-kV+x}_XYiITZ=1=;B(MsVb7ING^vb)44yW53ahbq_{b%L$FP$+3{7T^<$eNzHI>)>bK_i^}VOKeu# zD#jSwVYRTqLP4B5h4~nCMkVDtT2md@AD65t;?3P;x2E?A+HAL|&A!P7Cnc7;0G(oi zjoguh)C6NAb0?WLv5^h_AhAIjhqw-1V61$$yGEPdSFORuAlVwvk<&iJZc>udg+=m| z^bp5walDR*OXF3J^&{t;PGDLq#V;zdE1B!1IA!u0!Migz_t;F+HN<8iuG2iO-)2)> z#nfqF%B_t&M!ljn@f%{Ry)0Kye)Wt0eSXExEzK_n@+%klW##$RCRiP{g0;R%C~g-- z)@Vb1^&+qO;ajb$R#*|I6694C&nwD34glLLRIi z81Skoi`FMP68!~db)7FSo&_&k=h@57>Ad=D=fKM`^lUvk&rxs&Jgd$d`^508eIyQ^ zP3NUX`JQ}CJiE?2a^2w7L#C!2hQ0TCylN{;_hJ9WxLnU~??kgpBD+oRJZutRZa`;ci&ig}9=FUmivNs4FNX_j`r#!#z9-I;NnlZ0C{O#<=_ zHQX&}v#7@ht>aO>j(1^fjW*MST9yR8mZwq6jf-meVa-!I2Q%}uc7;5}m4T~+a&q}v zjXGY=|36=Ci3iQsos_G8k+bWnnR}(!`z&mv8c-aQ({@2l+i=g~j!QUj2G$FX1kRUa zjNh@ji|*J%xMN#axMK(Y=8l!mE}a%xU=7A zyE_3NYX*#S#*nRFZ57sR9u}GVvjd%XX$_{F){$uw>zr?M^F5>UZ)wxqw9#4eb|e<( zv;BAr;#JSqqFe?$(#^$i>f7Vc^Q!SkG$khk!{w zgmt0oNgBA)2~73_a2Eb}=nV~AiMO6Ut{i?s#ZzkF%28m5vM+EP$UNoM=pJ{vYvW(6qlKZ!rI_aN5V| zT26;KEps}?>1{+~p-E0BFmXP3=Kj6UY15w@oHq08RZg4vM2n>HX8w>_qRsv8;<^YH;ZVE3BNS9RqoGLiVZYMp zk18!)k%&JSRSt%Zo4T!?O2prMNNH6AekB@G4tBM+`Xi=Pw-g9L4!eG(H4^GrNkbRX zXUVwMh#%8tau34~V-mw=^h9{+FjCOH(XB2P!`EXG{DU>e!(CEbGHHghhMYWMN=tJf j5Nct8Xh(Rv{w>qLr7W531ury6DzT9=A!%ItByW*DY z!74@fmq5Y;4;Yrn!|v198EY3 zxC-w=qG}+<{E9R(!A<>nSjdF zQLKNoOUn7A85Vb6eJLOV9iZ*CFTVBks`GEM%$itz=8@ReOhc?E^Jpw0N!RM<=7OG# zXO{-*0$;=PRX8sU6cGU9g zI5ktGmtl8F#JnNwC_cse;bHCCk4_f+26?AE56gu-kI45v&*>xoKF`;Y=V?ccl?&|T zz(JXL^MhNF=Pl-qJs(d}-YLhWveH^)VWY{s4ieC=1LeR2p6YPN{7Z%WA4eQ|pVIZ( z?;Xp%;`@1OHnuxR(uhD{BY5RVxOp zUWiCl?j4eQ=VqxX5>i;O2LE3{zigJ+^H(ZPtu(qF-r=7Pqi2=T5#_MeuSOFyl{)HU zWmH|N9W$CFvtw+C+tdvU8`->YdYId^jR={;>^M8ZWp(7|gx{F(8y7ZZ@EaF?M}({# zen%|Xr|+ zQO_IL7u2_nl53RC#wO|B_pE2U(6b88MisSo<7}+N*@%6By-?|1E2%q`D&}3dpLy>V z_i%o23;OrG)w^_#74!MQ56!#-=ObfTme6ia5F%&P`}x6-iu#?;p_?Cb^D{pAuY9tb z_2bT&A2~i-aA%T8$k`YQg8S9}9O2e@`h`apcssrIK?FM|{PA1l?-ciVE04HHUkCmD zj5SZ=vc)~!{2lNCU?&hNzn`OTJ#ZQ1Yk>G}@_RV?W)PA5HM|@|{!JWxH9(5z0^SFl z#rxxeX`Tk+PH&z7lKv>L7C0pIDIl$r03x(M%F*{Akk&cL^W;Cl(U$;HoV`F=rxQr) zYy#3c9-&_fq;*_Ee--(lbuLrxu+9ueUpo*>`CB>q(m=SBcL~%4dISP2y)3u3SI9Hc zWl5G#I8Hh$R;J+98F2R2-_=Mm;5%z}!f2PF$ZQ_vt`+ILA_$5W}w@dIjAdP+y>Fs?rE_i#N zt`aCTh(hs!zGH|{v^Kl5x6HB?*o=b z?oEboBaOyGd*PD|6ZC|l(RdGwrVb=FTF(vEvrYVk7EGXOWzlV&9UFCy8w9oqYz125 EZ{bwF%K!iX 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 5b4c56ed1a706ecc365a3107f62b9d33e876701c..bb77f0960f823cbc6ca795bcaa18f0797f9459dc 100644 GIT binary patch delta 659 zcmZ1=yg+z@gWv{M1~7QR2%$Gj473-_fpS2COhEA&6Bn9`!UP#uASy$cfs&ICGD=V8 zU{sJSfSTg~kz|NqXJ7y-VBnbS$Y?Gr!NI^F0OWxTlK^53AfFdV{{Ye}CQoI|RxxE^ z*z$#$an(a+hAp3&nN~dj;zovsAfTct-RS0~BBb(jGt>WPl5VwzZke$e~#8;=#_;!PEotKM*Vc zVm_cE7y$Wz4=4u<;#p{XkY#*8-@yV|2*~FL>W6tw3(5ylV2}kQk&I_3cR&*;MB_W5 z@x9RaQIj8X80i&c7blj*r>Eu_#-~;k delta 623 zcmZ9I%}WAN6vf|s)Hr1yW~mi{Qj3TLbt6=gLCb-xMJr((%8JY!%)(VEv}}<)gNPQk zooy1f4EhgR1ua~V_nv#-yjOGA+}CkeqmOi=#hGkWHdkH6u3$+X z`C8>6I$rVh?OS?tbR_4l}Tv}o@!elhMy;Ot$qI16g&o<;-G;YkgNVeBVPru&P*2y-Y zd&(pkwqNA=A1M4&hGHLJOBFJ#hAn}=p!3*gopRB z!Viw2{>EjgrIgbz}?NF7P~o7Ye*s;A;f_Wr431 z_*VtKQQ)Nl-zxAO0xuW%E`e7FyjtJ~1pZBde@ozx3;YRze@EaA0{06%DDa5D+XUVr z@Pxp>EASqHe^21g3j76urv-jq;6D`jD*}H_;6D<$F7S&2e@oy$5%`e6-xK(-z<(|9 z(M4{1Uo9_@Y|a4oC++q5D(Qn6P10{4mi6g6MW5@=(&rQ@J*}{TK9=T}?1$xxhovqJ7H_7WOk*GdtV1lv1`FW;KRI&7p z2UvPsu^D-fGq!!MyBfZG5TgpQEA{zaGxoGooh?FNCUezU_geHMdudNzqMo?f&evxr*N0Qj~#d z#P~OQPkUz-p0Bib)&S}Lmm%)by;E%5gOZ;eHS5IQp?x!n{o|4LpZaX|t6v<(9$3ZL z+3PY(<9pV~=_GLHAI&{=M2Knj&x|>OzD*&X3`!~B9y0X>H5YZ! zKFdma*P6ATtG~o%M;@%x`*DwpJq&11*=$(5pc-pB(96d1nP&)8Vu5P=0 z#v74rsr;|^dP7ovDsssNA6M!Ge8R8~UAF6C_(WhIe#fB)V0+?qCon&CZJeF|XjNd5M~eOxZo zM=DLbz)R@aS4=*-WiQvSC*gd{`dlwd z590dxt+RNxPvdOkT;EVw8hiH~J>Rb2Y}5Xq>#oH4My#vMcxFr}s=f~XH+*X$z}t(P4a>t#Ep4Ko)r2QwQp3sb?A zF(piP(Yh|3-#+*g-ah;ua#`%5)xX`_Sz8d#6cu(>uWlc{+Hd)0t`$E7=Px7Jz)$y^NsNl$G>v?8^@>CoBBzPA9Gy4!Cc?K@wpOHuH9r}*uqj%-t`R= znaZ)=#30v4o-*Y#_jA3+M499NTmK2}{~@pEFC4A9Z*n=a?vMHUX5&H@8ekTU+T}}`aHK;ul0FEF&MpOEE#;Ajbk;J-mWr68DH5i-Cdug7ex%-=4J6; z=K80h!K==)_#T_-p9J6%%k+I*UwaSzKe@i^9{S_>@}}`TCR(s8{uuOlW=~0OFUj3vcJ4}x@OGdIZLL?(+>%I96tgXPB zb>D`$Z0*AvT(nARGKHJsF%{Vm(H)@aBdiMD95c(lEt*{{X?ajmhVz1`mu*N#QI zme@8!2S>lw81OfSVjYo~rEZF8?f!=2T2nCW*Wyv_SVvQnza9TE5v~-D!oYBEYL7-1 zOau!t#0q$L)E@ROsn!famZIuyRZ;7 literal 4392 zcmb_f3v3+48J^ws6FBe`nSn zU(O(;&S~!Z{>S|D@6OD>yMO!dzrM?6OkrsBmyW(t#h(`)Z54XVw%Xzie|NgMYBP;N zbL32L>S?4zGtFqAC(1dO>+X4|ZeDg+ZWd=0k3zP17+XWCG`63>X{Ol}iFSuNb_s=P zE{x~I$q@EhT%_DYx^pVT>+FckCzu>>waCj!+3(!6xd;mh#cS_sXo{M9I`)P-noYBI zo9xjg;++u6QN+{0V@ntlIWI_YBWx?t`BLDfXy|C`(U+pXg>hu3L4+Se&I5X3bYT!J z(++fMF41YNDGJFyw#{nF$>|3bYihe{&Gc#3%%55OTa6_~*na=FjE!BT(bkq8>!U;d#Q7)v)j0z%TCJg;OUsSkf37fkO~ut#uT<~*dc`ZNi8tp| z@0$dt7%?Tbx@D2MCoy;a?d+`+D%+&9{im`p?^@-6e=Tzlg+rmuHA=R-hOyp~bQb^F zKYW)PW@qc>{3@SV;FqN=^rLG-yi;z(EP4Nszl7;S>kxY#%N`mIwQg=xJns7uy9Tk% z$II;4@U?ST_vVK9aHtLQd)ySa4L<$)`Z=Euk3J>hB>7kww$EC{D6di6_Sm)Q64xc} zk$8^8^CZ4X;sy57&5`SIdmc)-p{0|a8 zCh_AEe@Ei)N&K%8|6rb%d}NeYE4o|9{-nJ=Tcw=5YAQI}D$Y1+LSLFSgEKxU>cXf> zbwN!u0;e=3fwJ^$0i$#8vd?@y^waQFa0a&G%upSe&~CPE`Cj94tIFyedA^=(!(3IE zbE|dLL`|vUHHB)87cpk~Qrj`Lzd+1Eb&KNCyz1P%c?q(s@Vg*#_>b_Tyj-x&-ez1b z&{*9AX>2UHe*M2|*Mw9T7rUkrKdZw#`8d07uqZ5h5xu}^jhfj+@R;gB%U1%&y8t3E2i^Vd4rqP(c1DF&z`MOSiI#D zJAPlfKBPZv^bV-{P*%0kJE&$2g-V&F@8-I}Wkx(ys#yA9%y0YT4*0o`YUwWza9#1B z&}o)_bdc+|3<+JDHL%)F9Jz4+&j^qsy}NRYF%FbP128D?+DpUF#igOW(kCt{kH`hWi?NHQUO=eLADD zP5q6uZmHLw_Sj;!3;Fz+ui%W`20vO))PTGAdF1Q6*x1qcpYl^4E#EWuWWG@zW9+VC z#4bU9dUke&vv0m{&!##nP7S*cXWgz{K$&UQ~=Pd$fy>Ab^~ zDR_s${ z6>Fx7#i_b}}(^rXl`=?Q= z_apXv^Ky41+uO)=ukLl@SAgG7@%x3h&fDf~^`0#}Tli(+SA~zQ>0h&^h!qtTX+?v@ zf#TZIqSA2by`^E_QeVa06?ZcOzj{_5@_Bsik9qQuq148~@t*8_R?JyQPpy_-qWNpE zO`N}6G2*vaG<=ubF#h-SGK{tk<5R^y=i>H{0jcb7>fGJ}z!W#cABR1MF<%c5ujalk zU@ov02!G#F;7vdm5QA&eI99xkd1+j;Kolo>U-wPoBLR8TUgTIY2BbI#fE2$6h*y7K zGjJJj2N3W2K9{gx#q}rbtFgezX4MGb3htD z4y5?M7WOcZ;x`NX4j{$H`LW|~<5=-ae!qMp95eO{tQTkq^a=z}9vPYHUtHs^O!c(; zQ+K9%(KG4ER1YkREmL4zg6=f>1|oS}D9T921v=k{?NgSdqCATZs@*#7{hKLCsX 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 5e9098fc78756189c6c055a556092f7eb84f213d..c733203562f7e7952fa340f86b47d66d0feac3a1 100644 GIT binary patch delta 644 zcmZ1=yg+z@gWv{M1~7QR2%$Gj473-_fpS2COhEA&6Bn9`!UP#uASy$cfs&ICGD=V8 zU{sJSfSTg~kz|NqXJ7y-VBnbS$Y?Gr!NI^F0OWxTlK^53AfFdV{{Ye}CQoI|RxxE^ z*z$#$an(a+hAp3&nN~dj;zovsAfTct-RS0~BBb(jGt>WPl5VwzZke$e|eT;=#_;!PEotKM*Vc zVm_cE7y$Wz4=4u<;#p{XkY#*8-@yV|2*~FL>W6twYjPonurHE<4CO!-$oxVyz7rbX z3ymK&`5}jqUO{$oVp)88YMxPiYDGbQQAvDBYDEb{Jd${3E?j)FAg9*k08SCj_yF%< i$FO*JS3je8XAj4qcwff=hMbbz0wXYK2qq1HHUa?Au3wb^ delta 623 zcmZ9Ize@sP7{}jx@9Mm=A7-f)fl@<6g1HElWY8#N4Nby%logpNc7>BEG&Ur!K}3VC zt{q`x(0|YrG&s6fQd{5G^T2$#=RWs+e%<>%RcFG9e<#UW9386TFl8&YXyuBng=i6p&H2E`(;hHhe+xVIFt@dI%&6hO-+X zwRk2G<4Y83KJZhdwFbOIirc8Ev_w+#QetSW!dpXh)z}=pQl2^u8hfU*(l^qNAG9b5 z2GeA>V({UxS5}hUS{(PlAN^6#4thX5(Q%VuJBX9`f6y@iHbI=1A*(P*X zn#3bLft?;b)}yC-^a6Xg1=)%+@64u7wR80#c@k8254D_{*0M}fT&u@=IvXUanbwne XUDY$~vVXDtTqbQsdHoXM?*RD&>X2l^ 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 6b582872c4b1e44f69c6a9fbe5d2a31764e01f7d..e5a6e996bd9f7f1dc04d8e0bf4cc3cc19df3960b 100644 GIT binary patch delta 1059 zcmZ9KK}-`t6o%jKw6sM8LraS>1kmV#Py%fano!ef2@O_Lurb8TTF9b6Ybk96J=l`y zNe|TJK;i*7c-e4}2oVwvl5p^jF&sD);{lBqfwUd4M-v8d4H?uR7ADJJT z_SJ5;QDN)}8n@eWeV6NA>xxH3B;K_XS#z)4$BECaTKOzPfwCc-QOrV9!>r!SrzI(i zX(*un4qnwIxG&v_|cNXy@uphm$1 zCaQVZ6lMERG;_#EjUGPU;=Y^FvYBYwEKu$Xv#Vd3RYmvdQD_s9t;$mM?784uYwe=d zl}gI>7->H%P-Ic`J)HYple8QiMdo_XC-;aVv46Fd$Hf~;Gpnn$tDn%AFPO(7oG*+v zCC?fx`aX9JN`>L<@W8LkR-W0^-9~Mz2O=%ov7L`1<$kg{)dBwpeEhU6dx0kFt&~eu z(EdEOBr@L`@4nEf&22Q$((a!lJ?>DaTBZuW&*RNX(s1sL&G@aAA0O=~%`S&!hr1Xb z6u--nnZc!6h@4NrlVD6|P`m6U|k$P4jG3XPPo+nxyoP2#5bUNniT;yS;2dJC(@#Nt@s z8kyoFeX8pKHo?bBSZO}PHJ)Mdb=E@HpkMJ+T67KIu3;mvlJ#h!Oef3ql``E^rf(~~ zo<=3>v1Z0bQ_%;~UHQI8k|)O!<7p`^Po_yKi4Vt1;&C~il8^K8fmAv%F_ delta 1648 zcmaKsUu;u#6vxl+cl&4Sa4VxDqS2O$3&eG4JA5!wxkIKAOPEUyOC-5$SX4&oMhldX ztObdQ+(=rl52h~;0}s0vGP0VC7{eCdB=Nz;KMy2yiw}#An1!wIz?|P-@9h|4`b$qg zzw_sw^SkHt*P+9uBU!mI>!-?^VFt7QT-R$&Ez%<^$2Jut+LXJ}w(R($#Rza&iMTew zp4DoY=Q*dDEMqw7L4ZhPlG}(ZS_f-;+H>RSt5OiGF>MfRGgQXz8SnHalHgN3p)b8SU`-YhKfDq!O4=;qzl`qor*O?*&0T< zT5ubfZlt+hqKJbsKW`;+9Vrifeyfpk1uy09N)G+lgp!I+DXD%YpB}Kvr^got)02#m zI=wJBDKV~EP{7J8YBOkOHq`^47xpc}2K^3m4z&6+`6V#!KbLoN=fH^ne10c5=l>-C z6O(WJ4RLb$MgVd#v~ydwauWsa1}^5WBH3phG}dROxv77aA|=VCPe~gp9WeGy`t-8iqJ)>@2GQ6;{?@zwkxJS zj%s3k2U+R=O6cfu^)KyH=nX6Ky=Usxk;P42jQCyb>2=dkomngN70=VFtMr#w>Cddv z8@2YJn{CnF33}JZqOn9YNlL6Yk&K@@lpt+9=uRvBeTklv%Bhduk0zt3q>_v)A4HFB zC)2)`Z8`Sv@p$aX=ttJ0$yk4|nn`3;4t>~jT#5C-DtrM_o;S)r<_uJvVyN^leu{u_ 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 815e0c88ba1c2790dca980795d223c03eecede61..7654cbabf241e9e89d133adb3ae668b293ce7036 100644 GIT binary patch literal 704 zcmbVJyG{Z@6dhk+f@njb9Y0{AB=!~%DJ(1~=xzvXkmxQG8D&dKO8*Q#fs%&An!N(c#!l&p6l6snDeN?Z_GJ?y$JKRNAndm ztk)pYKpDj#z%wxZgG2%Pf`EmVXoCc60{MQl|A7j6NDs~d_C{&k|I?v7YHrzl2CYK% z=w2iEmzzt%!aLH(F5$g+*DK`1K2PdHJlL9PH+MU}5&Jgkd`a3HNtD{*hueI-hWk{&7d{8u*6;H&oQ*?;UR z35z?F&yUEwvETY}=PG~Y7l;CxgL@354t^j_IAd@I#J?)-8&(Vf8h-|^4t}PD=t(%X zbobH+U-R;9<8JSJz7(z`!siQ8GbJgQ0RBClGUSo}3l3kaPCrHB4Iq9e}cYj6ebktbjBh z69Yp5REz`2=LfQvK;=QEf%q^0Vj^)FOeSw+ma|N)D9A4=iBC!_PBk($V~8)vE>0|q W&&)*?1*$S)$SKJ!Fa(nZK%)Tut~40{ delta 200 zcmeC+XyDjj!pP__*_5%1cc(oI!$%h;h7eJPhM>u37}YuDzJ_r~mohQzocxEeTh;qC zQ?i`HK_xi`j!ZcQ28Jn#k_mDe43%=6K+MH?QYvI2r}X4COj`o2fU7N0R4&@|Qr>gQSq88T2M^WR?>v$&XJ;EKW5tHDib`$SzJSi%%=c&z=05 GSsDN)L?wOz 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 2e356485141c5c02cd5380bb35cd248a2add8c64..bf93fd34b288a3842091d6f56b27dbbd631fac8d 100644 GIT binary patch literal 1200 zcmb7CT}TvB6h1TKZfj~`P*z5}y~HLgsPwSC>1q%p^tYi8!PV9&tr>UKu?*P~A}D;? zum>|_dvmv}C-m#hdKAV=iKj{d*xjYy)KCR+9;(7B3c7-O2;sbz97=09BL&)C-PURFLH z+a#s)ps;R>!;!H-Pz^N%G}h5_xw)m0v6|}a^Qf7p!gRWk2OmYTm^E3Y8H{qQJE7^Y z0+68)PU8M2h}#T2jt12O^Y|Xhg>x+B{j+oDf66L*9$TpuVoS%wnBFDD^f8JoOB9b% z_sP>D4KGS!Tm&vjLj0OYzg#&&&pw>tn%))g4vI7~EA5C2)IIGJ(*AnzxQ}xPT)nFb z`F*&jGPcUb2VY9;?TDQsy>?n~t)={fV#Oh6SZsZzr~J9$oKr;ww9RYVQ*Py$x#04q z_ET#UxIgU~|2z1hfK>lC?fqv2)L&1+snjkCb_POG-S0I$nIR|dXF z?h=QMA_s(u+iu&D9;dMVo1^T`U8ju}K8WPMWv8jHpTwu}zP{v9{F^d5Fr9znL2~ZI zO!DF0k4g3FME{Upm3TCnSNu3U(f=b{m6#vNE1oPYDDgDAz3Q4TF%*8?|4jEKaL<%e zpalj0knV{OHCLi1V@5xCzxA&5zU-$Qhk?1~&%92!pUVssqw?4J68xA8&m0i(o>8C! z7&Y+>&<2~&R4&j9L=uk+h?z7-iX(sUE#_=vOEuia@LBWjg1r^zRy};Kxot@`Hd!X^ z-eA{lusJuIkJ{GRg&S;Qs;sul8nJe*O_5s+)Pfxfv2$&*Oe}PUa02a%Ch7Gsu{uK=WlUp+6&lPHZ-G-V39i_ z>ov@jHev*G9*jlf{$P^dp1K>J8s~iIV*S2Rr%!htLLGc`-Ke*BH7(*C)?>hK8+HT( z5OD|Lk0Y-U{0ZC#wgMx75D{ZQ{6C@puM{ZlP0O?r09-^_R^=YWP7X`TJUSqyy@MUh zIY_kH%cy$FL_Q0na@LmiE&{`0zo&%QOov^I(QM>BPT8HRp0}8?I!~IZ+-s)lqn+PA zhVwRLR(vb-&)Z{f)UB(MTAMMcwRw8l-$W}vWU06%Q;{gxhF+E!-EaFUyWFgSnmZ+O z^fU}uH{_P$7x^$^Xle816Ys?NVq#&okY}|}C4+mhvf@-*!70VbQca`Ge%ztva^6gC zHIbQB^PRO|kGLa>HM{t8t}?8w zEtgbVzNCCuo=hqEE8un2nqPzeRkO`)3-@>;$enJa@^gu*L+F>#Z*ArR`s`P?$KDl0 z-!Jy@8SnORSNZ2DbwAlKC>RCt+<(bySa6Z#1G_^eTy$F4IK`OP zqp%Ow?K9mr&J|mA+a%_;-X|$0w)#cX%?!1Ho~_x{-)QH9L}w#=A+ZUBn}? Ko84U~qsbp@LcJ*f 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 0000000000000000000000000000000000000000..23ef3aef95b4f3fe21e5413e00baba905d91d359 GIT binary patch literal 1792 zcmb7EUr19?82@&!IV-bBmn#GpMD;Q;(GY5oR&S#uBz@{Q=Uoo3+uE)vjligf9(vFy z@CE{&Gq~4Jy+LNh(7k+-}nFf&N(~h?XRy}^+YZL z@n;|S4GTUn=s39B^qT6f&x~T3N;1aQ-7qt&GD8SMn=+&V5TgI;VE>M8OQ)*pu{c#j z0{2WHdG+MDWVC6GFR8 z7?MUW>hapTv0-wJf0gWjkLR|wOka3Av6&q<7<&<_I#G4LYrAh-|A#Am|H zed@rxum4LM1Fy5|*In6iTFI6l((E_YmBVZ^Cy8cJ>)DWtmey5*ZTfvLP2Z5VP9NlQ zx)-@U*^Pmf#eyn6>}4yeO*zi_jvBUHg3Pg=t;(xXxza_DClvbWthXuhsO>@z%$8QO z@ToBUZY*BmFNz+7fzJZ zd(CF`dsnG6?>--E{q}6;d0+xUX?;N*>i0w=@7!d!*UH%O0Opm~O<$r;HKasx(YycL32Y`7X?nH3e z!oVDm;|z&|K->-gMIi2i|16O6d_eqyEfxmqfSmUm{c-dBAAxx1{Hs8YF910{Z($$- zj$=ms^=vGKyPSR`b|^m+&_r zz$O+Ouu%J*nv?n&eh@%U!PWjJtfP+o4qbrWT2+tV1=j6zxh3_CjNx;r3a6V6{j@{B z@6bCPy5FH+bLgatHayTI5@V^*T@gu%q!tCM`+GRN|%qa-tW+cKPU5|%JH^vhk=J%W&s|^B-IOIPl CPgbG; literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..cdbf51aee7e6e19796891f6217b8edeff50bdef2 GIT binary patch literal 1264 zcmc&!J!lj`6n?vN=8QifXp{(oiCCmajwDqqLZUwl&4P`k zCl(eK7AbODS){NL0ycI^3M&g^6%au%9wMCad%H7a??kZ6gE!xN?{D6{ow;|vzWzQ& zWD$gyL(sRp>4QSfK*wTlO#fOQY2S`U!?TEF6*@yo}?fv2<4(+UuD*N3}m=8qu6%OMc;9iTq#u+OY>4rPo@0>y01BH z>_$B<`CcQoEhR@`=!GU}#}N#L-z3>tKM9->&=H$+ZA^7Ls(HmP&7&5O^d=U)Oz|I96dkoC#tcXZJ)&HXj`0$ zK8v0xjv?A$-?lgzHCHdA?xlKT=FK{MJ!!rv138}00ghkL_Q`~I^l1dJzawi84rlE( zYaN7z?^c)IGw1u-g>KEexz@&~m}4O39h?9^m&!k{xtR~U*l*_13!Vz6i*0Ff=2~a^he`$Bwl%D Fe*l~o!zBO! literal 0 HcmV?d00001 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 c4fd3c2a8edc0c9165087d995ce40c22a502f65d..d8b77254b816b248c9e8f833f3048e7a820c742d 100755 GIT binary patch literal 72267 zcmeI*3s_ZE!tn964;RnjqNv~{QP9)??}i1F<^iz)@rGF1*c?z$kgI?trHP6Yh!&KU zrIk+B0BKoaL1|%GVOnWg*<=lt6{eL=T2LzAf9(q#PB=C1_dd_}KJRzV)6czbd#}CM zUTa?ur}uyP?vj@fis0jpE+}&qVzuy*NuoE7l54XiOq`XVCbj>ku6D4!AQyDkuWz~tRD725-Y;Pj>$qUKUmMlsL`5V-*d|P!GDF+D zb$UswK6Qw@kSxh%%N}C0Ey!-$N*V8Xc{P+(KXuytdQ9zeeny1pZ`-Z?@@kl0enx5& zA>(p=F87h!84a5)E@sN4iBU1yR+6GOl$D_R(c+V?Xp8A3)C6z-orYepPaiQeFC{l` zL|#rx*1VM55z}(B7pBb1&l{1Go|kmnu)NzwWTefN)cEk^0)p!DLWL;QMwlWBS>V-r zyiifZW;%jwUs=~?cSWSjIXWw%%p!y*LAf6CbER$+Q@L3^akNV{ebgDESQ6UcTJG7Z+_a=YcHuO2V!sfbtPf}I~{3piWA z*#gcMaJGQ61)MG5YyoErI9tHk0?rn2wt%w*oGsvN0cQ(1Tfo@@&K7XCfU^ahE#Pbc zXA3x6z}W)M7I3zJvjv=!)6Kgp&rMY-FWzaYytqn~ zpK}pan?+%Kf=N{W=whleF%5DR(=B~P*8oK<8uMK76_vSty9vcIN%&;-d$Frn&$8mp zVoATskO_xN7N&)bSIi3=J3W3ys!4=jyfc#JM^yfF^BWZ%)tAWf&r#2h)N5Z)F!hXC z=F&ZQQCnRbsY}))>q}5XXk|a^eG92CS}}+4Co;Zry&daoD--0Ax-dA*F~3pY-g+Ub zw?N$%#Tst*bDa?+M6KFZil~<5WL~hV=oXyee|4~%=xR|!xXhRJ%IRg7vWR|G3ch*6(W57X*Bcpc1B5VFi` z27jLuZgUl916@RdhnqD#mbyb+N%InCSD8eDC(BM><~n1DSxakBM1q-ly(l--i!@(x zb^>W~J#&BFo6_{u}KU;M4Io$!$%u+g4ew zp5?RdAt#5L)IPa}KLr|+mKqjo@hr6}0Ut#RYk_$fZRYPQ|2!%_T8IK!k5QkRpXuAp z++SgH+w!&aUfs-HJ4*Lw-G7@NJYc2VCXe8y%8ZburWyVHdtN<6tc)KbJUu2Uy{;aj z_+M>SJloY%L7i4tQQaSrw7pqaYt4h)WPefHelzW?riFXVpiir9?_#7)?lL1tZ~H{q z_Hy1N-x)!A+rL3uscDOQ&yejb_eTx-7_oz}IRIke^mnp{)rD_XPdE9Ei3f48xN38#eGD$z(bvTo7o*c_9 zkH?>M=~4BqOZTd$P1b_tiaC8VZ9HV6sM+Zu%46Nc*@%{wga#Mis^gTgF`pLhQS}A! z5o)|gRXS6-UmTAqj_WAv-%Poi^mSAm)-jgl$n7}JI?3fXcMacSS&Gj73F#E^bd7i{i<%f%=(-f@^a?ME0xS9n~CGF3&&$uj`wbr z7bhs?#<3(wU#BnBHGGu=`HRKg_9e=vnL>U*>k9BlW%J(qFu2Byb}|3Vw3n*2(A z&jy4o_Yh~dvYza_L&o}fu%17$|2{H>?%!{k_n38$wx0iDzNFrX{eoCm3p_0Q9!c0@ z*;u{s>af`0pnkOHq2;t`MC&?7u|5-6XJdWeRM%JT&x?05SnG2WSbik+ zM9`Ld)pP4kcTrBepABT)D@@k#fMupd^%q+bEFAB9a(oYS^B*mj@j1&lx-c-TWw2P3 zO4*;?we+K;e@y!KEiFAA`|uVwQGK3vm+LIg)#`qrZ@#In+q}nKW-9mpNtd7yvzsUn zR;>30xkZ--D1N8RqaJu9fH8G~eN;mGe*2B-`KpH>{?{b7Eu-eK54=`C{jby0kN#_0 zzpwt4dDlA|w_lua_?dS-`#ihsosB;%n{fEMot}N(?dlyeEG;N3^HSvD?aK~qeBol` zVd^==HObkG)_v9fT0`4M?bFm_cPCLj0PcaFPT|H`q|TpHwU4flAd zDBeSOl*(gcV3V>*IU%w=&#Z_yF?B(d-}3D@^nHDsC>og6zi3caWYOTPc|})cr7OzW z{*1@KqQEIuBtq1Tn!@}e6jvonti9zTdBaKT>>&pC8^ZZ`DCg;53+H9U%QH=}c*byT z6`%yCC#mO$!ViL3&luLTjRKP)ui6P@n7*avaHRiqXp(=Z2Oy z#3B1@yw)+#G37@&o;ZKEEEko>uN389xQKE&-))`6dX9;q#<7iMl*{Eebh0)l(sqq5 z*5-iz*0V1Erri?1|9{(V_U*OM)V{q!X(Rru*w>e7GutZLFW)3;9k|0mrZB%SBm!79>E3dbP$^Ny*r1!6{{`=ag@SgVlOJ47J(Z9@k z|4LQNo?I_a8m|PUD~v}A$CzUJ)f(0bRid^xht&Ylh&?{PpfjPEHQbOuIaT-Ewg{?I?~+LG>=jDsA-dS-$Pm_ zt(;}Gn&#Q-ucVpPw0BuWD(N$V;p8)RyiD$z zqPc|q_l};Q7Sg%W;-PJyyiY3rvM65e??#v6N74p#sjPT(wHgm*IkH_+pAwbAr7&I| z_hadQa!kthOkF9OeP;^J8|{xQ#_?~{o&D9qIr@+F*K6pXMxT9@e&yI_dql|l z{ol56BG(QP2r9HTdnnds3+GwRaiyLd11Bk->N!^I*7}y0-8nXybL{*M&arEM=NxNY z*ZvrIxpOS{$IUU^!z-+lNtDI^;-x)9kmot8yjGw3D&vr6BNIfqyyo#`{fi^5;i-(L zLX)*Qoi>oy=xI#l*j>)psqRAa@aD@v@P$0HnyfcDpx7XEcHrX#_eU8^# zf%>^w-v6i3|E-jBJSJ#;y8Us&@8AuU^4ibrZN0BYAm{8mQk#ymj*)8%<8Nj?wLEz* z+&!d%=QDe5$!n6^AoHi{+u>M`G9qwm(upHx_%ZKm_Y)kPoih8ea zci$DhJVH6ku_?i`AiYMt_u~3h-h0XGC+&W#dzD~*Ev(%e9rTj%9#uTAP}|&bT|2t= zHtxS3)Ymsczo#(n5x-@b_V-^8t9AHRDISIK@_tO#HG}K++bXne_}Rs;ir-A~ZRk=M zU)V#0{oGBv4`ZJtd||TI+6u*@Ky@3qh7T-^-^20(T*Y%+xK3?g-p_~&b$_;v72_J7 z>(PScp!_0!;3gr!EEa9yJk5382QfSs2~mpTL%1%T#5G{B;_1nCVS#!bcygF}A1KSE z$#M}Z+m%amC@1@zJf;S{eQ$ga*SxXJGlXUH+@myu>ws9UMPr#qy%tz8MqRdtzU(2} zMwMrzEu?;~S1H3jE4NvOx0c!e{N4I;9LiL>Yh~o~EyY8fS3aX^4Rejs8s-|jHQd!M z>}MD5Z5Qrq7w&Ht9%L5|whIrl3y-o3kFg7f+l9y3g(K|36Yat=cHzl(;pukanRemX zcHvv?!bx`F6uWSmT{zP&yvQ!R*e+aP7hYx;USStrZ5J-F3$L>am)nIOunRwI7k<<( zyu~j3q+PhuF1+0?{G45Qr(L+#F1*_=yvHv5rd@bnTiE=rH9UxGU5?f2v%{7N%AqEk z!u_&|V{hB@1>>4Mf%B94yql>Uo7|VH_l2umMMA~9_r^cOwOqyVRq+onZRsLv<+<>S z>qPmNSBvsM!txl~wWZ~uikIgUoHSVrz74Pzoa$pO2v9uI1C>d42*&VBA6;86=e@~p zUaLN@iFq5DuhL=Ofn6uv5y3I?Hr7WwX0$zXXtG6AvR&%6T+1rCegEe9j{Ut}3-@}Q z)4sS;yVv{GgJY_CjoAMA49nE66FsfXzO+jt*NgI=Z7 zO%7aYd8poKlkv34b!}}DNShp$ZNj`W?dCPwWH6gX630JH468{U641+xH#6s+DYO&?|Ga?WFI> ze$z<*2~?u*__^ofSL~5}V7+$!;rG7Ob-In|H6LqzYL?wHwf6I?%9L$SyPaft4?d#J z8=zRy+1Cj{wCPE;e_GNLiOaslHv2A-{mfOnFBwRCB|amX>jzKen!;S_7buuoO3h}{ zp0cWGmHNF*{ZkQkaiwzKfGE4Tsj~j5XuCM~d4G$si@TCPNsW61t&HD4dP?Qf+}~v? z9;K^+0C+f4T&9Y5oyX^~^SgFn9LwW8A2j8g2yH?gmYUNTNq|N$i;eEqz z(DS?N^|3Bb`BtVr!#GQl*U;_z<}V8v=lWQ5e3ny9{l>MT<8vH0#{pDQ`y$q^|c4r(H5BT z-*~MZ`X63vPm_Jx8g74`ZCXx`oU%YwQK8dS)Tp1 zwR`Kj|MuG2zONb2P8z9OJ_F?%yE=_yW$+l$jptVd@)@X!Wtq*^T8l+YAK#mMWR8=m zlrbyaMt9;EU>+o<%Xva3b{icW(RFk{U$H2fceS#grm_s9&&zX%sW4)@Vy+u!ElT8h z@S-VZp8WA7Cpa^q_ zC)fU|%Y0^}F`x0iN=k)jjAG5VwS(sHb zLak3x>$}{1Mt#pJqM(b{e_r1XC9uHT$6CIF_0;O~X;;`aA=z z<(bU)eMIMwcNK5XXQ=O4>a(BEQ=gCd<7Ju2)aO0WTK-I0dd=wwuaGj$z6(@r7 zt>x>|7S`;K@C?aj9ZoUd_p&cjpG~h%&L``V>zPg)452>DNNf2J=G(@4mNEu1m@m^| zK6zg&=VShOS;mw4JVUMAv!>NlMRvJPwW_b#G&E%luCq#n{TNIU(8Xi6vTR8Q(5Z4zmxx`^gj z(!RZtdPobA;Sq$%J2}DBbh&zLJhzDM$u*HL-<45{9|=0Y?7l!R(-enD?8_=2Ejol=Ez{AXZUgJtm4JJhxEai^+ZIc#f6V zOY*tZc(eO|^lVLg4=tb5Tbt$m-n&1wJY>DpGG?>87MIV8>Pg#tkuWEq*(?wtQq zOV7>RTa5SW_`4di&slm|n?n?9_yCg#ja9A~&HfFS<+t!WNS<3Pep>zz+Buf*rpSDA zU!JSV?e{9B-96-Yh17l=ThP0kF@JxD`S+XE`919CuljMloZrKkU#+jJT3^AW>ssq8 zFzQ=qmHWA^KKt@d?|odZpIm-x`8BUS-fsEhb9g_-eVqBi)Y_7kN8>H2X*Kd5#Vj_( zH?AsvL~!1c`!MLjsGbY?-Z$vN6m^+A1O9jQKfQ(X{yNV0#yZ4wrToF=;Q?dB zqDCL?gQuTyp8|_W9m2f4P=VxP)`I`YxE|+vM`SL_)BeRm&$_a;da^zNcM2VczpLmvH{K zUq-PHn?yge#t)k0gmE-hVV7=UK?#h|h50 zy~az{+91APc+zE3?YBeZKJ`fF-YS9bFf5XNA(eh4um6IW@?+P&CtD(FWuIL^UNmVZ zU98Q_Uuz~@x#}-XvLAZ5xy*{CAKDblDY-0peMvtpr=OO~>%t)K83#zeb(`gm(T;WdnhcKP)2)_lTi7!U38>Eo^WgxARH zYWw=>TJs54ekl%(XFQCT<6$1-fw=6a_m~(HZ(D1lxn_}LAcAF`?9SM@P8%D0m^Yt( z$BmEreTpaPWAZ#8zfV!I>Q=S?TfQ@?eU#&)+W*zQ|Ay@Q+WV^u+1mGmS1@lV^UCpc zvP+~ou96rp@;evC_cdhS{f6&f$n)ssp4DA$3{7h^wVfjvL+bb;%@{xGn4nJwb8axk zgyrJY+BKY;Jh<+Z#{vuIrjx5m9^pIC>X_K5j|omzzQLTQWShx(E4wi!I8Vsqe>CCN zF~NC4_Q@@rN7OOF`y69T@SVN{56%;6K4VH96ZZL}d2pUk^VKoMn6S?$&4crVny-#2 z#)N!dq>l+RX~sU^qK+xXgnd3~t@(_p#=AvjG2=qsKYHlnwvn-9W?TixV;s;QgHeP6XD0P6fS#X~qzdQ4w5#OSy@%xPUC>J$;j}hPFs>atC@#*er{I5p* zcqcW!l6a%bruYV)?Vi6ulpp8)0^ecfyQcJa_HSZ{wOQ7?M9!zD$@6|H=^{cYm(PaP zaIi^TUKZu#`de84g}2E2H)}25@r&h}vzF`9g0#8XwKd<#ilq+~{4~H?8L)_VEG)B; z?;6NsO^?}@jm0ew#~)>#id)L#KT)S8@&8~d-zTsBm3IfGP4Qpoarr&sb@a>nOH*rk zH{7-UQkUBLO92>x@$xth9|U4#Z4mJw;z7iNh?|Ly?WW954)qwIz3mkD?L4&^8Hor(7SQnRquX71I!! z9bBcwE!RuCCn3{l&HU z^eO&tCcf`nnta&CvH7Kyk3Z6y-_q$Cv0`m}AmdE#+pqQhpO__@9~q$4`M@orvc=?g zs*!gw#gQWX0s4k)^Ob6w_vAYeepP$fcDbIF-L!ekSD80j23ebf&);>Qd_S;;{(Lk2 z`J{c%c8w_yV>HjkRmJz4_%lPZWW&fA&^kmHOi65YqzTBRn?7k{-)C z$o;eMsZN!0AB6DiCYF6U#8ec2fb}lr-BE_(RhrpVt9N_XUZvZqcRTZ?E8e9U@|{!& z&niB$RF=*c-W!@F!^^DX?dhks=ZEAizUKG;HcxwptsRe}g*99msT~vKKH1AMHp_kGZVgWwE&Jfg z_}65b+(#a5X)nt(xotvd2)6s2d#WGE{0j2w7K9=pf>((+KE=}I*mF2k?)SHsuH z@XA0ne61NtJLyWsNsQX`QB={zgoVh8t$i-@1chK zsOA0Ca4)sIuNwAK%Xd@5-PH13)o>TJypJ08Qpf$TS#Gac4gVs;D?6#-pJh1GT@9a;VUwF0KC6~@QN!P>S#ho6Vv=MMRA$$a*uk^hlH{;M*d{cGgE=aB!R%x9k)`ENPoKcm*)uQmTwhy171 z`u$t;Uv$WSOs&69YyLA1`46h~U(uTXltcbKYW=-i^B;4_|EpSm&({109rEu|>+jK; ze~&}{ZEF2~t@(d-$j?&i_ifF;%OQWhT7S3J{M#Jz|Dx94wKYG>A^#?|exKI-`40J0 z)cU)$=KsYZ{|2>w@7DaA9P+PM>-TESpW={zjat8FYyJ%m`NP%vJzDdxcgP>C)^Bdj zzs4cIpIU#X*8JfP`90M7-COeqJLGp(>vwC-@8^*3PJaFCE{FUUY2&8{`E{nQON{Yz ziTH>AGO1&$i<;M?HScGc_q?L!nbo{Lt$Al;Uaq!GMa^p)lP8IP#CZRizt!viMN0zr zy4+{_R>|Y>_grhQ;JlEipBKI*F3$@q7pB>D3DDLku8u>Y?3as9jCw~()`>u|rd+ z_-@c>!dJ5`(FfbNZMv6suOjbvyewX&Yq|dzYWH`~h1^qbGg%8Bzu0Awh3~LGK7G)l zM%F!}gR*pmqD&|DD3W+ZWg9+jrdId-{T9+3$;Isbj9) z-$~25e&l;RFV<_@+{C{4*;U(K`JSebznSjUUHh*7X13GhqV1ySiEV-ZLe$mo< zR;>tG5&wan-e2Ee-xI&w{+fNJrRNGb?l*b9K0Z)eCs|LT`ugC^wVQnT4-Pg zeYT@C+0JskWLwB^9pOg8vaH{wmX{iN|11d0zr+3`W5BpClYM7PfVQ5`uuPU){WEFC zdOlBD1NVp8I{mi4Hn{Yx+Sa;WJ*#*g-nw27uwMMF@t7_C+VW-Jcz}G~l~>DpjpOaz zGL3yG>y_V=mDey|uphsq{95t?gx@Loysa1M53zl68|AY2n+fvxn+bk*#PK*K$G$AX z_hr`~>frA-jqTslQ{)8jJ}sMaiL8TcU-><6*~Z#>bZ0&M)a7W`_I_1KdcE@ZP98UP zKULSQnEKoI^^W$TV;?c@wPagZsZ+N3B9<-x?x=rvF-@+QOwS-qZi~Ec{(|-5J@)z^ z*-tW0{#Jo~-K?9heO$J~AE|eSUT;#DwtA;H)T@@cOuZ92sF&yB)v}KYw#!nG$a@r1 zx;!QdSH6EE#3}h32ISo**Kwo}JAC*~g)jwZ;m&s9Zgydw5x17P!Y<7BY+KU@*o6n% zh2`^FWBJ4F!lUiN*Vu*sWEZ~PE*xnWzQHaWYZsnk7ml|J-((l&*|1!nDcON3xw+Z7 z;)b-0l)#t~Q}yVyq}-&;l>C(3!0g5Of!Xr|bCa?bq==ZT+mbTUk^}Sdlkx*ovKD8y zr6k>!5;&iQh$)LRG6Hk5)3W5;IZ1hWDanCJd4%*Oirl&4_PHV@%Qkby@WuJ_!-V{p zJNsUt{u8K1ThxD@|2SJfh(H=40+C>>izrOQ4Y(1}h(RnSAr6zlF+@zoG)zZ4IF86K zHHn$H2{&UFX5$tFAsBzcb@(%G1;;iq7xR#e6wJp0q#_Lqkq(ZTA`@BQ*e-Iwu~pgR+${YsyHtxxY7sO2~6({J?YK-o}yuF|J#WQXDt7otrwjH%v;<79)% zk5&Cwh(v9grsrqgrNvkJ>-mA&)TB@UtJ}X&pZ}P?J^$3F#&&%ZgpKeUV1GKH6!nlF=nx$>7wKiEmDN6~kLNuL@M7d>F)8*wAwC~r)Saz?&U-k3V( z8}k`cqnt6nQQk;5$~op6aUX>iLXOuVcjdWu^$9yB*v7F=l#(YLOBj1?cG2b!WvAnSyV?HC_h#T`8 zkbfcV+Z^Vt|80Cz7BW~my<&Avfa?4jw@YAQg^{IYZ7jyLZ27S6&pKiO%^uK$# z=kyJ@+;aQq>+wg|x5-1BAy7Y_=(CGZy}`;{wUqVx^g(^PL7yhNY58FmV@_@QpUz+G zIKRHQGJQSP>(dAI=>~o3qwmOK{W!+^YxNVSub)YuR_N1IeYyU6J8seAUS4`YpYYv5 z^|RF>{W(2-gQu2%K%WK@t-~I?j<->deRv1^aR4*80eF|`d-wo{aRfY&5}z>r2R_9i zJjO5aHZVPoOy>KBX(Qx0=Ube@Y1~EL_e_7lzwjf@K`yhI=`Z*dXYn$sAn#-3ZORZt zGXDfj#Epo-2-3&lZo+Yxf@z3H0&c=A+=4my3lcFGDOi9sG}jcVHRj z;Wg^p0^__JLRj7o$aOWywi^W5zk~4#^X-=NVh{G>E!5*3?8gDfeexdD_wfNf#8G?- zxy*kuZNPDSffM)|jW~&K;Z9?9f*ZD6MO%~hBeviPJc+-f5?|sge1mOx20QRPs_`Of z@G^GcRn*~iyotB54+n7=@C8EJjDqAYPnUG`cX2|h2 z8*1%Tb6GScz3A!fN~#ccU03Sc6im#X8)J`*1(xSo#~Dz*ano zr|@@Fpb}Mh8gg81ha6kaLXNNJAjjAXkmGD8kdIDmKY9^Qu>t8#39fWweuR32yK*p*}TDC8KHWA;Gd_ zjH?iYV1!@@hGH0oV+2NG6h`A}gklV?!LFcCN4Mnoe9v6zH7OvV&U z#WYMuJZ2yPGjS7c#w^UnEs!6DX#f=3!Gs?MXvelLqeJY0Yz%!NDN3TkrzjMj&O=$#Y{mmZ>jBB8u~dC({JX zga<-7k&VIigr8(PqM61Z7LyQ%$(VwvDB}Rmm*2(xxDQtbvL4jKX8ob#e+1#Yx9T#tQ7Se^^yIqxX!ug&E7 z;WK=Wf1&}$@ddtwJa>GBukj5UaT4F+6y!DAclaJZ;0)xo*}q_1yPYR2&p$t-3HH}< z7l>cPC9vDo>%18X=Kvq;`TX;DJcS*^Z5ZFeKifDKz!jZfh6Nt*L05D`clg2& zJ$wM;4FT`dHjS6xCpVGc7{8=;EgWmieB(XAc8Rz!w`xw2*X%JVIpos45lFgvyg;& z$Ur7?kcWIM#%;J0OR)^gu>vbmj1sIx88+cjY{g5c!yfEKJr3d!4&xXaZ~{$e#s#!M zJVXD285VfL8@?EcQ3%Dg2*aOXMFb{bB5pt|;xHLgFbxT~33G5OY~Z)TL=sYviZo;( z2TM?ZJFyhYP=wW3i(S}_S5b$(IDmKYJ`Um#j^Yy>LnBV%JDfukE}+x1Y%{#!gP|CP zkr<6ojKw&NM+71<0nv!TG|a)RNJa_@P>3QFqYUME0Gm*QTI@m{-bOw4VL#r*dpLq) zXv9gJ!C9O`6XZccfh)Y=17G-~FM<$-iHJrl;xGj>kbs%E8MARKmSPzSQG~TvhkH?u z4R{!jU=tq4W^BRVP=QK3jcwSDXYeeZ!waa!PSju*_To*vje6|EK^(#n97O}Zg84c6 zC_Lc>A9O=^^g?g+fj|1EMoW>b6<5ygSD7m(0^6_`Z=xRiaRBe(AdcWe ze2h=q8A2XC_)j9WTavf9>r#C#nae^=WqmPa1Kq77o-Z@5QJb1#R!Z<7{YNKq7aQZ zBw!{Ik&IO2U=i}L7)!AXg($*Wti!!1LpkolgLnuV@Gv%EGb&Jtr?Cy&QH`Cb!Q0q} z)A$Z&a1Ix65iJlkY#%zo3=6#AgI?&3KIn^q7=$1UMJUGLT7)4SRzzVsW?&9(MIw@s zflOp$5td*n)}aDBP>mYYVGrKGn>c`jID*gcPaH=hPU1Aqpb5?R6&K;k4M;BpVl2kN ziYUZkDyCx=W@8Q#k%}~=BNO>pj3ro#BCN*UD8U-6!#&uB?bv~8?80umhCQgqJ{-V% zcpnFG2p`}mKEbE>44>mTzQhT9g+`plIh@DOXhJi7fxP)rV1^&U5RS31A`;Pv!6Zz^ z6wE*ZW?~lRAQ>rGfK;R*2aAx8C0K7v|JdYaG;uY-1Uex0#KEVZu zSJ-#(Mi+ENFZd%6!5D&2jKMVs!*v*oakw5)n1~w@gUOhRX-L2i)G!&X#a z8>;aV>aZ8}IEce&LNhL)1!5QXjWELkPk6x_UCaZ8@;(Z*%A$*9VIEHgLkDt(l3vk`d@fDq5fe(B!5JO=_G-42kX_$rCNJc6O zu>wW78^tKW8kC_N_u~OPj7P8uTd@N*ID!vx6vuE9XK)Tp5U=ta0B-PtH+#+lG;sD;oK^(y`{1eA9 zwvKr)3v-Z&RHUH{4lwmy{#3nq7$FT)Zq5_rJh8@_A zy{N|l9KpvpiUyoOBhKI~e#8Y_gnZcP3NLu03%a5gdcz+92t*KqF$BXf0;4b*p@_yb zOh*D{ArUFaKqhjKkEK|K>l`JmSf3%uZs?(l^ldchw9F$h5j#zdqd4H?KmE|#DGOR)?^D8^dU z;V3@AG5iw^_yUbMiSKX@=g|Z+521Z95JNE%p%{yCh(aNU<}1bgdrT)VH~0`5z&Z2EaEU3Q!oPwn2DP)3$t-6 z{(?j#AsMO2!6M`#AB(XR%TS0S+>NzZhkH?u2k;O!U=uc@64ls=8r0$y?80umioJLf zZ{cm!V;|nZ0lbHUID{iOiUu6Vm-q^&@g2U$8JxpU_!$>)5tq;c`BFiF8{E+eW_ZB| zz0ezd;E#bAgdhyXFbu~?T#ZnS!LYvQhdp=$Z{h&n#X%gwF?@yw97iKg;xx{n z3C*|&*SBdunBfIq_@O6yBM|*D5J4D;QMejoa4p7S9IS{!EaEU3Q!yR!n1KY$#7(#v zvoHsVNJTpGu^3CR6w7cIR-p*1aW{%lf;G4YWhlpbJcx&|0gqraw%`eD#gljn+prxw zP>o&Kjn`0zJ*dY%9Kd@xh@#5ueckfSc`R7k4N!1wx9yLup4_(j{`V@5AiWR zK?9EC1kU3EE<(P@bA=n+;RSDWL09y`P=sO{rXvBfkccGALk4n?kEJL^3D%+v8}KkT z;!)IL5BB11)Z-l-#33BUhxiDe;2$`K&(MG`a01`pG`_CTvCpD)BV7VLPg^6E)a{y?7IE zV;>IU2u|QM&OmvWHiQLU@If#1Mj!OWKm=hZ!Z8PlNJa)Sk&Q)If?}-41K5B~*or6d zcT{2r_Tm5zq7kQY22E(jueb=;_gF`G!56&|i2fLeAdJK)T#Yf9h1r+`8xoO(RHPvt znaIatEWuI~VKweX3Cd88_1J*T*n%gp6;EOtwqp-Y;43uZ6i(wD&f{k^p&9b!z5-X6 z;e)Q|4nO!K5Cbt3!!QCPF$!Twz)Z}-93&$J3y_8!EJ8k(pb)FE7F$q(9oUNo9LEVX z;tbB>N1Vq6$S)(fqAPk~7(y`yVHk@jOvH_d!89ab77~$xOynRROR)?quoX|D0^3lH zop=egsKXxYMLqW6AP(U$j^INa!)Iu~37p1v_yK2d7ESOzM0;WsLJ@{P!HNh>Kolk- z4wEqr37CUhVM7v9k%6TsLNPXD3$~&HJMbJ{z)rl3U8uuRoI?{jeZY8x4~AkGMj{kr zF%IJqfoRM@G77N*MJPrY%JBd;VKcU38=gZAYOxEip$@O39{aE#M{pF!Z~|Z949?;l znjpWJqQC`i@Paow!w0_T0e|#G00Pk;gAjyZ48=%3R|#X8)J zGL&Nj9>ykYMg=PIG`6D}HQ0r{coX&5hl4nZ5W^6LaEyf&6A_IVOu}SLM*?PI7Up09 z(vX8i$j2(I##*dH8P?-bJdQ1>z&7kaEndN1yoq`oz#$yL$M^&dIDtl-!FgQ3MaVC4 zxuPq2p*Q>yh#&-G2!4Y4)U=S%di5) zD8X8kVFMn?=Ic)$~0@J45Jfe*T(8=^N@@b%*O(x zA`O|yLN4;K80&d|Gm_^RyKsc(3q!e9Q&=^BxFZzuBc~=cBup->Y9~<6wTrgeu8m_D z7vxKiF4YRkFlB|87|D0>+|MlGg+=V5-lQ4yuh2mpjVIIO|j;BzH zeAqW#g-bGvjE{lp85r%SH=#uWN+M(rbj05iVTnt`nw2t5CcmglSiV zP&PygQ^o}L=LFU%N|<~n3Z?i4je^*)8NO=UXmr%uiKlucLT9{SW%pL*$2Z++TXpVIDpddM|EBtVP!fzKSEJ(=$zoDS4#RgR1MeM~ve2&w&01rhdff$ZR#A7a&pcs#^beqjK zFEu?cKi!s`lzV$xmQ2XYPnwr5lWp^p(lXkoELfbBn=EW|??}nb7Pfgw85!C0ge_%B z&S+tqKQALYFNJA#P6`W}pPQ0IQ6@4iFC`_NNq$NOOPqguZdyL68OhAaB%1~0r)A2N z>;dAwQd0Wy|qV zY&q$9Nw?X=l`f*JfFG$y%1aqN<{IHSFIn_+5u0g8H|o#M&9}`JJ_|&HDJ@fv{nRNZ zJ3S?Lah^>)ZO#*STU^Dt?`W=0ding6CHZ2q+%y|Cq=+5Lf|Pul*rn)8Q1e%qGP0AB z)dI9acBW0NGs(rW(Q-3bv`NmaE#V&~s`yypXCvxrsmNvS;`#Gaat z&g_@Dr+3QS)TBJtiPn75l$Dg9mYtQ9VKdfsaTYDkYKtSxbm2vH@dwmJCfUS{6j9U3 zRU9oRpE&$lwlcL@R@yboW3FnmyvQZ7XfJt%uzlwzb90RUF(X=P3TW{CC4+ZS#pzcXeZ*V5v1v z$lMF+vTL@=GOa!GS$Em^NsAYx=5uh!PqN7oYMY;yl94PvXV!C-a@NALawhv>al+kx zlZ$Dotv|?;NB`wm@}5riC7-9{5w%Q~sCQ*})blGUyK)%|F*oIjH##ktYm0qaaxwirVkWn@XzVnOhO7jf(ka*lA|G$k+2Rr|ImHFL~J;%N62 z`Nc9z-C1R3by(Js*wn84D@OT`$l8|0@(yy4VZFqsW_7j1MYAzlXf7I4NASqzsRjniCeN(OUp6SOfsri$Z;>oE;#^+q8#Rur| z4KZ3gf_P{0L#Jx-WFvp37BAA{4SM`ZJsvn)%YRjm&$>m6|3i-#&(Y$Sh|A?S%+=z7 z{1A?eFGw@d0|gNso`#<2js1kvQl@?!Y#EZ1} z8Y5n;#h=jQJM{QYBVMZIf27B2xE7F~pY`~Xby~a^KO7|2r$Ud1>+v&se6kTQ*UHb+ z<3$f^@d6pAO={}2xcvR1F0_BySS>EES7bc!dMzHJ$IsoS#UqTk?CgAQf-GOB?{8U5 z#y8nyF26Sg8PC!CPqiM8)|aI9@_W-@a(#C2dr|Te zuE)#t<)`TJj2pE4JN0;If)>ADj~B&j@k%{@CQggLqsI?U*5W7ic<~G^u5f`V>+hwH zSFVE8c+GSze}W#rpf5jLkB8~;)q4D#zCPRZc%gm-*{jF5a?q8ZV|sj+KAz6$@dQ2Y zMPHQbGd5f+-$#${x>k!1)8poAw0M*rKdm2+Zqeg&#%cK(dOSg&zu1^xkN-`NFVW+# z>hYm^{HPv3sISl0dOR*nTmH|+{QCNI=6EUBU;dt%{PZJEl>fBP2#0utLp;GD{%42y zJcoFiLwu1#e2GJRxkG%lLwv16{C32U4IkJ5&HZ#02{|*o_*;{ zTOjlQ{h@?2hq{22dGgs!+XEqE3FNDL&>^2Xv`1v})H5%)ASd4#X7(A{YN@$AwaaWb zldLs~O7+KBw!DmNmXV*^w(>0bGV5+vx4Lrj$wN+dT2_8aZo4|v`WI*ArSeEjJ^|A< z;D9Ktqj(u|0kY&TAvGRig~IwIaS zIbxcy-8jQG^@bZ}OiY*|Y!l*V&q#=fYfEUIW3=5IcH61<0J$-=;Ejcb-O}aw`)}E+D@F( zmdb-@t?b13_^I)>83}Ba`uXK^uR5N_yh6mdX7?qHyC&1$1y45l5o5yYC8E5detK@Mn`@6 zT=%(e=lE68_OL?l`v}f#^ox449haP`1>YL}z zyB=NJL~Sa+t(d*@RhUi{*|eja|gpMO~O#hxyY@+|h3_|Ug+4Ea94WYfY=7u|N# zpih=|>Gb;Yo#9t4J{S4XGrN9VU;pWQZ@GL^{=}{U^;z8q&su%MuYPYQf8YPp?swl8 zH!-8Q@U_=`qignjIW)U;)vIG0DlM*OU+MMN^NV`+jf+@2?VhiGuYLb-^H;oDa`%0; zi@W+f?%8kq_>-Goxbua`uTm`2K0lB+#6FTek(?Bo8g|MK@i6X#ra*Xz%x Sth|1HK%{5pmFBpvIsXSUytiQh literal 71371 zcmeF)3s_ZE{`mj3_c_41fP#QGP_eWC@1_N%dGJzjyrhVwjt!uqpeTx1cuQ2AK(wSV zO|5j&2}mcKw2`t2%O))|O)D##v~0rENhd8VFTeL^?}Ho}o96$0=J!0`=l?s*yxQxs zFKey6*V=3EbHMk1I(<1%DNXU?kH$D^Rcf&cmL$~z(YjKpsVM_SrWi@r{-^rdsPe@9 zNEWhB`AJR9%gE0&!)E;2{cY)C=ItJAE+x)k>wm1Opgtn|n~^tj?2M~P4a=9m(9DW5 zYNnLLz4vGH?2oz|KdGtXX5{5&O`Ui(er@?yEiyA6_T<;aJ<)6SEotm8XX=dl3O6iY zRH3S=*{foJ2b5DIG?p@!8J5Ei_$V{D( zn?5DO%xSp4^4HDup`HyTZfUp^uee+%HAqeEpOBJ}+V7qr!&8jxYU963xjf4TaoMMk zvdR^gnmRG3zSVwtfBRY2_^H0OTyniNH*<{t{_AKR<<00aZSsut2fAcujTJ_u^Y~c=jh*qI9!eER`^nzcvBO(D@pYP}(x{NMuN-Td zpQhxL7X@mnC_pJEVJV0FwD#!4av)mbmwu|9n(BU?%m~utIIny#>8$}D#UFn0`N2nG zewybe>qfz>E48--8DXQXwNaK>^33uR;79sp9AsZocFXvi8BR3SW#)|Bx@H(YYerti zl+Jy0bdLFTEN!=z83JcfUgC7E#PYbUkmtJz}Eu4 z7Vx!zuLXQ9;A;V23;0^V*8;v4@U?)i1$-^wYXM&i_*%f%0{`_Eu%%mr+eBGDRHM>r zt1YP?oxA5R6_@5{6_@&{(i)4ZT&D_>qcyeldy7_iOsTC$Ew;+yP*r9Rb5-?8XfwT1 zsT3FMT$+bX?)diQE0dG{xjomW*`1l>dmrEr`yDKvloi)U zvrVcAc%~)CqJDkZe?r9%_q}PfNyFo%vHx=%=X;LpeViDM({r9BG-i7JvARm#IgT7J zMN>U0TDu;b#PJd}TdZBFuyscJUwgdzb)p@alVai;md7~0*SVH*Nc+jLIwFj4JC^WLzIb!~dcXj83n0n4H<`(IcwJ9B%R z*X(B(XiE0?K`6&*jHZMGSQbpWb^Avg^9#>0ZKU(7C1Ex{RVv3X;`lR-^LcHZue_-r zs7(!^&26;3opbBp-0G!rKF?D>xz2a@vyQZBt_$UhB5NgHFiu~4)KbvfcIVpU#M#?( zZ&l#~_vE%3UURb^v-=^I5vuA7U7P-uu2Q(JO10^#be+Fz^U*gK^g8zD!d~nA69_LN zT-fU<`6Wt~eWB~qpQUc+8dKKGYS?<+Rw8-)N?KW&u7y0KH=W#%wv;@6M=gx{B^&j# z6(s-2dgpRg>H5CWC2#1qfk!Q2l@`*Any9jGpX(bFZLc0Z5anIsViMc-J2`cCR^Z)+Lu(6o>?ep&INsR^YGB(I68Dql3lxSsZOwT_J8 z`eH0N$#|J^X^xv~F^Ow3v7$Eh?h3BaQt2zr*#DI`wF4J(w2Gf5>f~8i$I7~XT(|xe zjwn~m;3-Q&o$V50I%?656E|uxQ#G4opB5PFXD$M2QHF-(QT-WZt>)7()#djFJ1LVKk2jnOT3C+W_6?Mp)A zGyBDK)q|bQ^dRRJ)!A`CZ{)Z|4~}hT>mM`0Rz3RXsVhUf_8$=QrgA!Gs8Ht-`y-(@ z#@!V&LyvIIVVi^cZH}ic%^ZKTgvMs(tO@;|Z8CH}=SJ1q`Hf>`Xt}aEZIoxR zD#G!#?ibs7N>S)a%5zR{>RimabDV2JW&MpR$azjhJ07su9EbF<*uP{i4t<&RKGY+f zTlFxfjk=fVt(|K*Zl0yRBV6-ykRJPV&f3tP&g#+6=>g7fRG4$4ZE@%~?C%2m3($Hw zwyH?S!+JpMojFg2rm)^>%6_*cz`5GF)>!Xn)_YFHJH}XAIM!MMVjrR&4^xjCqwJB+ zcFre5ZCY!i9;2woTI%tnrA2Hc_2|ob1C-Rag>#lsk4U2)Yp6#r>aoTW5xawW1XGWe zdQ0bMON3F6(UwTULC!m`~6uq2s9UY}OlR>E&o|iF7=xEU~|3e{XS}nCHMk`Dr`q+}U!w zV-fqBsv5=KXuUf|&d)gZH-}?RwKQ^$W`Aoe(T?9z{?90voUeUs`#09>%z8Vu7S6V; zE9YaBStRXrrz6tR+GwXE97odruKT0|EzZ*1*_?Gc9ftb%`DBF zKXP44n>5#2yPI1g-B0LE-5=?G@OOXu&=aBea_&FUn>%aiQ?mSs^@}+laU7$$rJ4J@ z3U_bQEeLhL`p}BdnU>bhBU7IU-Nw4x=mXnW|3~^%t!`)irtTCK<}TA4p@n%^DoiSPf z=m(A!q37A}Hr?jFLD$`Vm4*m+-?Kd#^x`Q8D9vViU{WE1LW8E^n8G@WK_Ttc6sjrmhMHS-iMqRsc-n%_i8hW$Qf15g= zm|8}^Y)W4aa&DtMFSGBD^f32$Wpx*-7SP>=a|=U@IM+XBKTKVlQrBiieV=fYg&tzx zWz_X8uDy-abtC24ICpVqg|bt}FlU%i=P;wbKiVD+{f6^&PTAaFX%_c5>N<{cO`N+Z z^eYwa>`7h6F{X?oJdW~6eZ#b7?iG}&GuPcdEfQAup?QylK0-bBY2nV9*^B5e;l?;D z_3cT0<-D4GqPfv0exOghPn&$qnEV~{>S?zWuQn=EzxA)G<6?j{c*a*nXWYFjntVwNPji!Ytb6hCU*A(OAFSuqM6a(_NhkB`0NGL)k0lc zT&?eo)OQxw4Py-3`61jrj`qw^jj1DJfKlfbMt$RL3qspk?C#rXOO5{4Rs|r`=>O52 z-=B@Twxq6%H?+^E)OQHw_>3|QQPTEd@OST{{r51}k72zCqs|dVeSfCDL0UxYX04^8 zu@>RjtTm2p%=Px2))W?FY^tS9(wF7jc4A(=nf2ni-&ScYVtdgR%hs$+p7Pa;x%6pc zJ+oglGy4YpVl-paC`$|D+HPsF$Bt&)jI`Jtj8UJwj{Ab}hK~v}7B~X|!3S+>hxmmaBb6#)R!k z#yWGnzk~Lf!M*Qma@}@D4)%Uwh&pq+i+U1xg<4t}4i}??(7ipIv#yD8t z52YU+<~}5CbM<=RI=R!hW?IMAT`!Hf|9bbs3-rTZyIvahJ?U4{|72eEYu8J|{%89S zua}1XFQ)EV;Tn-^N3I)bhrx_XGGA!e@9v=PtBgLxoZ|LX$%6+~F_utX&zM7Bbkq0U z4f|e|r~gD4eIF>**g-|LfJaVSlP(9%hc0QrF0T zsc*x+G}|*y++mEBQs-;y+pz!0+)&0z^Il?(k>2%f*l)5t*T47u#Jj!?`%4_>Snd~Q zUCn!i^o6?f+pwQ};HIeAA95~#(#&hU?wmI44~d?>?%gI*$GU63C+BvX-ty`_ z$ZlNA;m*2ie7Mm*p~n4VIOnzteRMkW%WljEWgdT?e*K~za`oO~&M(Zlh17K+b2F#(jln5_fyrryI|F-8^%_Y0S-Jz94fhnKK6Kq0V6DA#XA^GZ%5+ zIJGo%5pxlldv$Y^hIV0|)0VlHJR?YXYBZS>Y0mE$lmEfICWpBf?Pkm^_G!BNj4^)* zHtI9Y#=MMqf?I3kY{dM3A9IK#<_r$w-q(n0+F|tLZyWP$PuL#Cb3gM3o91+$aPmHc zwz9R;Vxsjxr!83CDc;31`v9KZ`|}Lnk7xP56&G_7c+S_1=lmMad&Nwv+S(UsymyG< zy<(rXYWi-AN^$JhhRS;=-WvrE%F2qHY!56+)7pGw(_HbP@@`0T&9cw450BAWHF3=I zAMVy#H*wCh44MtZ}!M`@wR!^;ru-q-kT8)QcdLD z8GmahUfw^f<6UlQFEzcw^ZwRMGvDK7dX=%rs#0R#)uvsyjEdt;iELum^jQ9`4DYdA zvtn*o*o1c~j-mES?aEap@0X$hbz=UU2EPT8_{n&-M<+2okEtO%nWDTBPnHp=K-R$Ern zCiZY$&hyoLbGwix_L%FX2Q;w{yI#89#GY}z^uQ+e-q)u8>-$`JkE&Jvz%}inj2iFo zo(@uF^6q&3cC&7h{v>HfEln$r@!s!C-a8h{I$Up(cgzx6>HRMHksuZ39hYyJC9!Eudse&M*&u5;WzR&}<6ygQ{nin`fnrETw{>61CXDaxu!`zUoX-FyfB z*!9XO@0iz7$DUl5=j8Jeu1$IOd=v{vkD`3ic1QUfV$kW#{vlYu}AG zY}2b{H9m)+tj1?NdS${nDOXtKKLb_SEuL~!P#)fA8s#az%Ph|ff3rOQ$+4u)(k>6s z9?~vt8??)(981bmSC>n~w{h&TMjKJbHU-K2QN6NIDG%3_U2|1c@F%*8Z&LZT5LGH= zk@IqtypLG#KPgjP{lh)=-|4A;Ur+tzn8(+?6d@fOUyz3q3WQSL# z@UC`BZK}>a!NR@4%KKd2>Gsp=KTq@2|4YxY<+Cff_WJXVUEWJK^-~Aban;2Z+_|+q zczo-RC*{RCqN7`@>Kj@sTUP5*%4JitTA#ny79pR5l=-Uzu7s%8&*O#92gqpoj|3c1!0uBidTk0XaVlD5s47b>n`+K9vxlw#xV@ZKu?@)`_0;bixuH%V$?1 zF`8;}i(jHsu2bp5Ey%BVc6oAU@5R8UXk^M+LzqN$LW^)f* zdSU*-!S=nYH&+C%*=&Dz_2hZ>HA7hLt8lK_OZujez}Ud7TjH|WR?f>anmRk^>Up_# zEHTf=wP|u5*7>Qe3(+Uab#^RcrhLA{-;WEkZTKDcZd*xokSpHt=fY%%a+Jt?BC1$h zs~uN4&NB;=b(R+N51+sJu2yesQibiNwk>QwwQu1~Q^ytFJaw|Boo!1Wk1C8B;zAnK z_HIMizKdqnrmCf*FOk=ov_=kfQ|k`Qe>yVniLtxlC-d1z7IQr2c>~*MF_TX;d#0tF zN3M&j_wa`2Qtkm#&mxEU*>?iVV+*vdQf@i_FFVaKYaQc;oKLwI_GSGl(k1>1%Qm#b zx3q)ApCc}P`%c;;ie+z>N-a-rOL#STW`8sHqmw4<%Q!6gI_rJKKGu?E+&>6E?%CfL zH@MCoV~%!+c9(W8=JUL|c3z^J?R<3Jf3KYj9{JDP`8@3`b(l_B74=}O`j^keuXimq zJQrKp*2P#U-$Bq=uAgb1hY{>IinxsBb?rZjG->bAERFW(elGF5iI=e-DNnB6 zUU!bVv3**ux*+?KW63$X(@1k&@IFVkkXCn&VhPLnNxyg{B`w!=K{ev@@2?8^&H$gy zw#vVzFH}$a@13KDeZd)$A0HT=A0N~r-{=dIc~9ZioCEu4v6Iv7DuvJblewqH_u+dE zC;0wC)>un?@z;y#v-XlD_Qghj&5BhO_U6)$?In(2S7}zPR*|%{$Xus+v1c8A1dD$E@I#d-VJC(B} zt8+j_*49EJ@7;@L+T>VUMded*RIEFJD8~`wmOFzj@83vuvAYK9|VY@f`b!B2D^y7T1OJ+i1;J zB4cB$X7*WE+JEnQh+0otdtpP!(et!Dgn&YHa4m`D4Y^Juw`NS)*! z9LM%%*qlcnyLe@#%**>5 zGZ^(~TB$`9Bp+a(ZLI3W_1v>%j0(G2{(h9TFJ(?(9=OXm2Uqy6L&G}Mwf%X{+4mMp z<+CiKFWz&|rm1am-kGB^cGvHVeHiaIhejM`4#Uynp}BoQF2m9@#>06S^3|Fx@Mhh=9-ntvqhSgH2W0y3ki=8Nt#_l zSoTq*6?wi-^{>aS;n;l7V|%r(Zk6woI4EZatuVO*V?;LZQslaJ^Ui?po|X1F(aCs5 zxVm1#!fV#!UCK4<$vm0;ec)uDF>gPb%zN;Xj_kXm3M^TcH7QQUQ2wUxES}3sQy26! z_RYFR89Hw2R=O-}GRF^c%6=!a&U}04tLyCj)5D(qG+3v?-&jZHF48Y$+Ya>8t6@)n zHPV?&T}==13Ws}zTX=@J zS9q9Lc!XDYlvntEuW-6oIKwNP9>o-1D7d)m3i znK%AgA7@n${kW}3`#?cK~YTZn5GpZAqy z{XVcFoOb=lqHdi()_kV9-uahn?3b>MuiBXRe2r(*8(8n;r7J5L1A3VKF|6`jfLwFe zzpl#PemGgmk@;_qUDL)DU&K4NX!ae0rF>^ouHnD2-+y<_UazmzjbVwN`I*L&@1+`_ z6Uco0P4=mbIh(31`j+pQ`>E+ixu(jvF6-tnJvHVqT%Q%pUv4EV*QQ*TUr=wp2Rf^0 zQqO$39*ZX3nlI&SOPS5*_Rz{#jJ61^{DT~a^y{^C)GwraKUc^YYkW^TpJz$JYdrg# zPv7HxVGjA5({v3wEU>~4{+s9X?CL#NUuPVz{yY2sU+3aeIJWfVD9TYc7tbI~=Hf-I z{%3RX5o~YHBh9(^?=i|MJF@Ou=qXfFK{5aIL_u;U`|!R7^nwJws!-kA zRhY)RwCO`^JR3%_lxIZVD>_wg)kN;cjHkS_C`f*%v)LZ*QR(^adHV2F`iXn-GcBF{ zUE8A*Y_U$}teNwIhi9=}-RBjVd^TIRpDS;w19raG%(Jdr1zCq^HjW?JcB&qE17B^{ zHfzDvy%lj4T+lmn#ERs^5!-U3=h=8KI{u);Qjq+72lM#0jgE-Sr05cPjpo#qLq1QGxo9plD0!NsGPmlqIP0k9;<= zVDT4&UTCXIw{%mbZ6l+muGiGOok=R_j|r;u#bJzL!&HzqS_Qq3u1Ysg=ezX@YH(Y( z8ch1&^`q3_)0V)>$!*oy^?Y~UVRMwY?Z$WJ-?i;g2a>qg#PEHgqyc;m!{<{AcpjDO zeZERq+KDcocFKGFF%?*O%E;! z*4dW**+?tBT$(&x4=L$JS|8FfnQsF|d>mspbFqTUD~z-jr1c>!+DKbz zq%|e&3n?FMP;mK4Bdr-}S4gX&?-yKNW27n4jz*{pZF;D)#jGp+eLnBEY2Q+LR&V%u z&`%Q+_@2UFjrRdxHB%SPeWgkZy4y?SoyeCrt16w(?0>d6Dlb}`mH+6YD$d-kRkZZy z^BjK{>qV4Eep87%BpzwRn@GHo#KVnvBZ)J&D(K$ah&v?S)Wzput_ua-ZAO}(q%n7@ z38+uwAGs<^Z%vxBKJ8~e(rzHFaedkkl6I5qzooISe@Z-7;w_B$KP28+;!TbCw-WCz z@n%N+?-IY2eMZ#p^B8HFPIH_&b+fC=F`#2fBJ(F(&xal>nv}UcDM7~LhaM}Ql(pT> zoXt&m3D@K)<|-%YE6>=~bospxnL|Wr?%Dh!J7MzsV-nU0%e5=-Hst)AXvX|PQ}HXA z+x*(|SCMf~&@210G@id+Q&&HWc$_l3NSFJX%)jONYb9wi|60Y;Mqf(Q)i#MQCN9VR zrRR`ed-jrhzRYc=upjf8s{VaAmF1YtjQlToCX>%Ba!9LX8#(p_!ZPo?(nrO&u{1S) zKjy1GGLLNL`Rq5W@+|ZG^L@CMNgK!dQdaYGgX=#l{!+Wi+*Nr#yV=P&qHQ(Xi~d_C zpV>$~>e^}$Y4Qv?n5DE8{ff3~T6sHhnQPw3dF#ot7fX4rlCZQvNAkII@~*i4`7_=~ zGoO3pyANNH*O|1s=g;w>h0%q!(t_K&nh zILjK^gE66}4QlM^WxP3E0?{7kp&!V`??>*%*;TQC-JtOs;GegWf8 z5o7!llQQEZU&f(xlIKqzV^I-fy?5Se$#am$xKzZL@16H|$!kO&V^k4izjxjjlGlVh z#;YRk0p59sC9f%Yj9W$A3%v6VNM1|w7{7|RCwS+*BYCaKV;n2u-r$}0rsUl~9^+XN z_XzL29g=qwd5mpE+$+5Ewn<(rd5m*Kmsehs_eaU=Odexi5%&)7?Vgjo?&LB46>$$K zGukuEXwP-z<=v{sXL260X1l7E%;NJMK9}fYS7+VYGpjTCEGXr;GM=A`XJ_RzS1jQ> zW~G@9t|#Uk^sD5>JQrm;curZb8Sw>m@op9)KCdpm(`v+L)y0ST8}XTS@nZo-d^+(o z%ESHTLaxRbO?WJ2ORAlJa0zn&H)FJv(M37Zny3pSJ~zwv@e;dTanFobe3oi_aseKN!sL=t_!5i@}$j@ zb1_)XDd#ht^YN&hQwP@z*N=>?=lMLN?)s7V*}6E_kHk;c#kqbYexfeU^&|1G>*8EL z5|__)q}=vP_f+wDK#2WP<0>=W#)NWS!cBA3Do{xEV zvYT<>u(2#n{=`@=Oa9bY7AJpZEEgvqVd=RyB|l32tN+nvRyE_Nv`2{%?=!2KF*AYq z!^HU>&8%w1$#mk2jCjBPqwaq=0v77$M*ew63eYR0Se#D8PN zqh?8aWa@q6cQT)p`<2`erg5#Vqn?@mX1b(JmNe>`>8MYeAZgS$vr&Cox};I(%qI0| zV?^pPqeszjs*2 zzU4Xb+U?EnO=)2+=7XV?I^PMB@}%i^mdbrr;y)3$9bLrpj;%!Quad^Qn=;$}#bz4q zENN#Xt@>dzjdqr_lajWj*i56HCGGE$wywlXqn#z~n4~RVW~R~3l6FMW3LZ7nXlMPW zg5-}$oAE)D(nDN}X>T++pi!sYKhxF=LyYiS67Cypgx`>`-q;AgF5x$VjPMR){XipJ zWvuTs!Y>=^JB;v4#`-oRyv0~QzzA2 ze44Pdv4q!{>7^20Wv*|8S4j8`^IrX!gmph7{ZV6m^B%p_Sl_%q7aQx_jCFoztnV!n2L_8yn#VjrD_#aGtS#h!LJnc*er^rF_@%?1FPw_`Ul2 zcbC_D4=CRilDT^L{wAd#bB{0_-)5^_y` zvgC6vCI1%5|Df?T`EJSQ{7QZY$$zZTHTiudpK~txH%fkT&^7tDOa8(@BR@j&n*?5y z-(B+iI*t5L$^XD{O@6H8>kcE|Dfy4tugSkb^53u-`4-9N8;0KXZz=f;1C0Eif0E+| zT$A5K^85N5`QJ}uXQ$?K~bc^?{ikyrCh6PNM+eM!Gv&ZYU8-#6wqrLzCslJ{x-c|Iz63w0xJ zr{vAnu3iJ5NFLX_Z1;-fwbZZXeIR*U|C0BTY>RG;^n$4?|aotGsjO#Ncjd9&b^Nj1$B#m+1Nb`*AlO>ID-AMC{>k}l6aotGsjO*T? z&B#0Y`!yBT@Yz=0v&cPcrswmdw#H{i_22WqiTyVGY@{`5^4Un@TyxHR&G(ePwwz_o z_iw+a)QIi9KO6b;_vU9KElF3DrQuxvdSjxLNy>ezr`*RHd=I~t=YH?cMhZ9v?_RbV z$L0I*@;#+Uj(3oHG=0FVhkQ>-zK^)`+qtg15AYtx_`Lz+eNKHl@AZ^7%2xLoRCwhs(q7_w*tSx$d|B_A%lS>z*|C&K zo~NRj-%R@9p~v3kJ5`%*P^G7N&pCBxYJSeK)ck3hYu0o>*R1OE4;|DrRq`cEi>8-Y z`CSA*&02C3%K**4B#OKnNN*=;#J|vjr+4mJu=)zioURL3x6y;AZ|PdNx(~~!e|u*InE4nV7V>d6Z9kZktzJ?G!{J5T$*VJ<6ga^(-CoPj)}%5!Qe zt?|scIqxZGC zzE?rA)%#lIcRT97V^?>r_G5dqy#M;S-7mGGx?=9WBq2%@2@m#k0f;E%NW7_JU{DgJ~F}%uW%Eua8s`^&*WFvZ|xPn z!7F@|S2)%y+}SJK-79>nSNL|X@SR@azFy(Gyuv&;TrCgJ4p+m;Ug3Ma!lS*yzx4`_ z^$Jfg!$WeSGIDcsa@Ac~*%?tuUGDKjhock9{H1&b> z?5y!oGxE~&qB5q=oKl~X{y;|51a_i^%*@V?nwFC_Rkog%K4V74_^9+5ggkrXqrr@+ zsUwDWo|!ixPUVhO4>AC0Hx8Is{QP_0T|V;4ss~cK2P>rq@q3=Z&6+7|aF|lfTeVWk z8sG>DR<=fAEu*d|-;b{a%od1Zk$}EnY*PI(0C(YTBq9lX=T-6DR5b{UIcf;*!B7lC zGKPb}SdGBFxDO*S3Zub2QpMnQ+=1WVex!rTSdGJYWMBd&A`@AdgvsDup{8Ieaxe{y z$to8!kcXLg01qM`voISc@W1irW(vjUK#I?VR41{0e8C;w~9|8C=d!=qB7CPz(*`s~KfZv6X=-`x06 zyZPD@|n9{Lvf$=|^XKBXdzxx9;U0F1X()oLv7QTn0 z>lUS1blx86r1D^-G*60!HFP7v!YXD&S;*9lU64ggGdCtx)|6ee;D7wi2=^QLpHgFt z|0%V}_@B9~b;$CZ7S&j(z`zZGtDNSU+{?0u&i{xmxAH%o3AUC0v0P>4e=OtdMfRcq zrT$>it#W@FWG%Py46C9DS7RsMz}wi3J$MK2VlRd>Fu%ugA3nfA90Gs*Kz+jUQ+$R4 zc)GPxM_C@j6t??@Wew!KeT$Pgg@?%d2g~p9PkfJakbPcY`4fJ|S-gTu$o)lbA05z_ z?fYQ>?nV;iUc&E`s)q>=!VnBaGE#6aMq)I^;I~M_SY%)#vM>!Z@Bn6EE~X<74`Mdv zVH{rPc6&TR}{WxLm8TkOOx{1vsrsA^mIwq_5ov>2IST zeeO4qes@2l@1;WeUpk}@N`D%U3{1d8WFiZbFd5m9ab+rUAbnN(W-g@9N*|pG>ATWb z^C5j$`s^G?UzWZrr4(Ut3$Ftagjraqe zLpdr?iRU5xYBQv7y#VQ7FGBj*OOSrH4bs>C4C!xGkUsY+q~FQdA$?EA59xn9@dl(n z?ZR95E8fO#?7=&D7klv@_Tha}*q2c)R z6=}!uHU5roP=gcr7AJ8Er|}*BiSH47MX3-pK`6oyj;3ga=4gSoxB)k!9opk2+>B_% zAQm0a5uMN(UCgp+2YTXG+=e*B<8~yVFZ!WB2H-B-jYK5Dje!`1!5D&jFcia( zjNwSZ2;7VNFcPCM8uFvDYy*vU(DB_3=GfMlv_RrPXoSYFk!Htg9+1|+NjL~A*=7}5 z5tjY7LMDhTtA7X8`9*7wU05h8v?O2gjjW|IzrLz@IsS$(a1_VzCBA~( zJHE!>@eQswXFE-L-JI6|6X1tE^pE$k4u8U5;bPrMq7l|%!R;80-yj|Sw~0E>VpisdN7T0Dhkuny}{ zjtW#_6JEd;Y)2Jd#SXlNo!Eul*ozPGF^=LGj^i8D;9H!+cQ}Ky_#Wr+11{nc)MnZl z{s=@68Y2YF5s4_opd&h=2YMn7z0e;6a5s`L6e$>qbc{nbreGRoAP+O~0OnvW=3zb- zU?GZ7jHOtPwRj2}@MlzGCw5^s_TvB!;s}o7IBIbL7jXsZk6d4{!44;a5QeVkh90;L zakw2WB%mJ#;4Zi^2!k;MLy>}eF$VV|6=_IE1~QR_Y)nHwW?>HIVjc>y7)!AOui-DK z#xCr|dw3uFaR7($367u!Cvh6*P>YKQc!4@22*K!xPUwp6=z(77jXp>~U-UyFk}wow za6iT)1G7+oLKI;+O0fcKu^m;|foi;s-PnV7@gDZ!5RRY*CvXO5aSpYRK|+HSfe1zz zBGC%b=#K$Ngd2k}1jCVn5x5Vda6jf^9tu#1rC5eXQHoV~605Nm&tM(a1)j$y zY{nn)0$#*R*otk~jvd&Ax9~Q0V-NP@01n|Wj^bIO32YTW*#33FoB%nVMF%-j)f)N;rF-Su`W??Q0unXg=*}=ZtTa0ID*e{6kp*u z{*F^Pjqh+4wFuird!sob5Q%nZkDC#V7{sD0x}gW+;6eiWp+5#-AO>MDh9U)Ha6eL! zhIFjMdTc;BD)BtF;6=QIt=NWFu>-H68oRI;@8Nyy#{nG1DFnaF^@K1qM|*Tc4@B;6F7x4sKo{Rj7zZc0MZ;$=!M>Jp+5%U9t^`sjKUbC zAro1cj48;&OypxO3b7auqZmuD43A(FHe(C6Vh3Ks>)46i*n_>;hxf4`2k-$7;}d*_ z&+#`L!&f+tuTg_jIEVB25w*C0pCAuk8f*wh9OBUnF7!nrk}wd1F$BYrf)N;rF&K{w zOhhKKFb&g@hkPtTAr|9dEJZmg@H{qQ3;u-dsKTpw4ZE-#hw%w6LcPklLl7Dx1kDkN zD8!%xdY~t6MI7!xFZ9Np=#K%o8%Y?9doUC!7>RU@LpF-A6w9#z<=BL+_%o`p3%ju& z2T_X)xQHuIJ9ut{4R$yYh#)jZ2*MDKrf7!dh(IJ-p*7l|9opk&#Gn(pq8oZ34lX31 zANpeek}wE^F%dy5 zj#5016?hV>u@)P!1>125AL1~M-~`U#9BQHd!g~PtArL_bMi?T|3T@CI1CWS87=jdx zzgf!j9%>fe1vR6Gl6^`I@9K}~Sj*~cr)A$Z&@dIjc z0YBp+qosXt z(=Z(~kcXL=i+LzOAs)t3EW@KH#R{y%Dy+piRA4K%VLPhuDt6#C`~|!47XFI2u^W5v z4)$Un_TvB!;V_Qk7{0>SIEB;r2hQLee!!2oh)cMPE07NrH2A?E0k9zu!Dx;ah(ILT zp*^C}5uMN(U2zL~peJraJnn!C3FwbR48<@EM+!z@4DLr7vXO)7$j2O9NVlf^@5sI+{k6<}UQHCe5605Kp>#!crVgokf57>mw*n+Ltf!FXl zs<9Khu?Ksx5BqT#pW`@ca0>F_mIfP8bV;r(E4SAT0A{1jOmSYv3#2P$>YV5== zyp7#>2m5gV2k{|3!YB9?NANk0;!7OIH#mjU_zq`q7PYv5i;ypj*6IVj5;*6`sUetV1~}@H{qQGqz$Iwqpl&;Vrz4J=l*! zIF3^|1MNN95OxG27|qcF5om>Wh(<@mV+_(T9@&_J985<(icp3XScSFNfQ@(#71)AZ z*o*zB!6}?UEiT|^T!M8UWkevt&;n6ti*|@cS9HTI=!uaSg)vA)8q$%8EKJ4}$Pk%xQ~U@?|rJ<72KyKof8a2z!_gR}S^ z=W!A8Wdtii&>Wr613eLkUg(bjxEo0riWH1Q8nQ73(~yU`n1=<}fQ=}}CTztv{25iK z#!l?QZtTH+9Kb;w!iPA5&v6vTaSEsL9nRn^YQb-&tFGvV9*D#3a3KNx&>sUZ2!k;c zDHwzMk&1L=A{%p2h$5`RdTc;Bw%|p)gl%{QJ5Y_oIEPvUd_aFhFgl_Wx}pbqp*Q*< z0f`uc@hHFo6ru>rQHm8rjpgJde%TitX5eU3d$-u?PEc7{~AxPT@4p;2bXE60SfyMBha#xX>SCkcRP? zf*j;y7Up6;3a}7GC`JjEp$rw+i~Tr+BlrR}IE6E)#m~3|>xYy9fe1r5nxPkZ!-f7B zgu%E6!!Qz~Fa~MJKqj&<8B>slnaIan6k;(RMiGj!92>D4d$1S#@c|Cw6MTlxaU5Tx z2B&Zi=kX&hK)%$Z!3rCK5rR;JAsms2LOXOq9OBUnE(|~-k}wd1F$^gffsq)4iO9k< zOh+CTVKJ6s8J43APvIG?M>#fO3##xccHu4T#$Fu2A$*Kaa1_T;gEKgfi?{^&5|VCgAV9~9_WcU^g@5!jU)`kFr?sK+=r1Eg*2pN95RrFY)nHQ=3*Wepa{iS zise{^C$R=kfxlU$H0ZFv3P1QG0Q?(u$_@vd2t*JXp)rCHf+k4ESd7DXWMBd&A`@Ad zf~m;G49r9spWk%lJ;n|k;{8HL=4u*6i-aG#LVjea!$L777{HSCtZlHR2iFOSV%9?b z!;genR|Tq$ysDQyDJ__!S^~BFO2;5}wwGV!nCqwPY2iwXY|gqZl-8>S?H{3R=OR=< zbtLgt?5nlXY#b=@Mz(9G{O7i#JnfZ!u07?xiM&{)Z|K1I)J0ir6m&;dr5AKlmW$n# zmfcZzU;xshd7INa=Bd8P5jO1nh&N zTKT0EYXHK`>L}`9{Ajb2m6qRH3l3~!{Ei*PSDCY~7(d4wdsgb-Xxhl9wWsvQEoIgf zeoy$X3|M7*(!ScU#<@1ov&yxL-~wrT&TN4kT$a*?vXn-brO}cs{XKEcgOP6YEbX49 z!?SdHmgez-`KK-AC%B-IXK5BSxWKGeZ~>Quk>A9#4D~FjKR>|*;htqv&$5|kDfO3p zPM@({wa8ei^`7Mx&+={0@)OVUq_H$M^8Lrx0=^dTwScb$d@bN>0bdLFTEN!=z83Jc zfUgC7E#PYbUkmtJz}Eu47Vx!zuLXQ9;A;V23;0^V*8;v4@U?)i1$-^wYXM&i_*%f% z0=^dTwScb$d@bN>0bdLFTEN!=z83JcfUgC7E#PYbUkmtJz}Eu47Vx!zuLXQ9;A;V2 z3;0^V*8;v4@U?)i1$-^=zoG@AD24ppge_kKTR_p?QXGS}UQ}_us{(a5nh{mlLgwdFahwuniV+;O*cQ{gN zYU;Sm$usgMr;bn0eK2dPBuvSeGH%)|NtYP^2KuCc0z7OI;*mfv>6#0?0iCAMmBq#@L+CM z9;p+jtoK5m_*jO4ib=u?^=?|o;JFWatAR0g)o1RKShH_HMo2;sKqa=1S)1tbY%Q!24 ziJ$aTgxs4|^Xbm%}`wk@}q1af&q0fqpMJuSpL7#JqW!{M?)=sbkd}M+kn{HLRDrL*s7i3GbQBu_^ozkiw$lbsD>Zb3Rn|^C(<&*i(#VN8i&8|LWwP`c6)48a==P!Sh zPoW&=R(keT>)F>DtM|UvTdk^mh3sopHoKvq>ary-HzPMUCs%E^TGW;-c5>)vDdE_3 z^_rE__#xYD`V%SEZt8t&clC|6hdOQTslF$D`yQ$Mj?41jnnHTBK0(goMD?aMFNZ~` zpH&rI^6ag|kG(xh%F&n1y*=gEU2XI0pk_9aJs={GZLYThl~310HEsI8OO!G`s6SkG0o(0|-`wTi3s z)U$GkEeoWmJ=D|wJ=Gs2)vM@~af81Up1^+cY8IL6zQeko5m}zw0I~yG+a6pzYP>F4al3Z1pSDyKdEXX}h(({%b9p{P$~_5}g~J zxJ%!lZS~)-7g;t0?6vjZZ9Qt+s%_QI>4p5aK(o@mo}V`ewWd0AZ!;725pP7iBYz)8 zem?i)?;T{uPkZA1`TH>PbIB9m;fXim53|VrPI=<(Jn>aS%=Pc|#I5(3@#MOEPka(_ zIezwU%={&u{7n(P$P<6Z6OWu|=6~ghr)8S)E5v1gwNuS_D}S?m9UnB~y*=@~ zS!Vox;*F?NTA>-wt&10#@!xskTRrhLb@8QU{#H+XzbF1zPrU0gGyh9ZJk1lo?1@kF z#9Q)*Y~=W>Jn>sS@p4bxT^BDk_m}30_j=NdKOk`%e=n=rjB|yl#?;@+H7!5#_lzW7 zn`}gtoOX$C7;VNSS>kbYV)>Z_iEkfnM3wxR8YBK&GrranS3}LX+_NQr+AuR-?TObs zV8-Q7avAwk%=ovS_}W}Ee#H~NIMR%VvoBe{{|GbQ!4t2&&x|MhpYqN>a$r%RUowZ@z9Ip_A=+xxrs^n30f6*(q_ zasqN}GG#TgQBJuO*+)qkvNIQ7wV84!vSS2g$U>a|tUu*(w+Z%2_=6!LH(WjV6fhm;M-o%ngHk%NnYqgx7gJsWf{S}zC6wKfdvLx1$YNZd7~}@r4>II?xF52R+l(|`IdTTZZ$Q3- z<6lJ9qkk9}mKXlf*KLNU8HU_%(SIew9t?Xj?9H%0!@&%1VE6-uV;D|gSi*2B!w1dXH?3AAKrQfM-0a%d^g$g$$bAYUo})i|p~sB_H(D=&1dJ&H`!yS7}YOwpy} zbtw}~u(Pqu984rm*P;yJqjNS;B*>|}SfynHmF|L()2eJwPPy_%ell2g;QIxuMF7Fd zM4+=~BcPRufL7}We=mH6sp^TqH6yBc%?##p70tBr;54s=MUcN}g~G@zIw6bb#9$-3 zj@Q2!g)3>Oj0Fj7ZG;uHX@z2tuDn?QMW)!M)!)KO)Fv|&6`+;_QJdv3)MhydwV8$x z)HAAOewu<^5YM~^G`8iAg^)7SeiaHox=Lmr(#j*uLhvv%X6(@ae^sjEitAKTc-Gs) z*ZamoMXyt8v}%5bm~I2;?h>keNse44)k@UTEJ<1>6pOHO?EcG5flCCm3Jc9WG;g&#{HVN>o^U7y6!o;%R0tcte`$;;p(P!mN5|q^v$cVHsxGWB9-2C8@B3(E<6cGP#*>?atG{e?KeXfAWI^__Ilpc3 z15ty+E)_#Ae(POB@3(Ezzu|NEhSNu~>t*jQe(07z(xP5E|9$WsFO5fBWzVhzdB}bL z17iWBrH4bG7Vj<`UFQD0_5HX0Rh=b!&%|}x|K1A!LyODT$M4R5R`>Cb_G^CKR^HTq p-RJR4^Td;|= 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 0000000000000000000000000000000000000000..06f9ce742ae53c7ffba2b95a3c7a34c0e9488668 GIT binary patch literal 904 zcmb7CJ4nM&6uoKuB-RgtgHAd)*g?>`7#vJd5kXL-gWIE2u|-p(K0n}KM@I!gM@QSq zp@UsSoZJKlan!Agi*^z!o}1=j{1o)Uedqp9a^Jgsdwy>w(g?yw9W=#84;0b`EqT`O zN1xY8wC|(x8&S?0^4o-vi#zgjh7j?I`S_==EXBq1xc3}~&dEB;GAI!ux$3xyq!gQ( z?Q~{Ai0N^aV^ni&Kj`{%Zh$-&;zQMm0y?49-)I3T6v9Oue}K^d9LC4Y0>e;77Oqjs z`(yjRQl7cYRd%&pWsD9>I^|C(JBM8sUUe=1L{xaxjXY)^nH_dudduDb>c2fmqkGvAx<9giQcpJhZ6!PvQgC?_odtO3Xx+21Z? z>?F#V(OSDfXUOI@A+$(Zvu6kq9-Rx@>z~XqkM};n88ck8|HDBd#M1hjy0D~)t>jKD zxh%xQh_i2828EDW%wULu{KcAQAI)HN!`B1f^5q}{FxKXJ7D*9e5JScgOMxkXjX4(h z{md(H>)-Z1d#mRrB|X0@>-hsZ&M9mW5EH*6VJNO8ly7x<#&fLe^7s)y}!6q#B-tEJm%-1 z^9Eg~jvqRKJ*C#a@mq^^ST8J5kM0Yd#GyAPdD^^0b$sqZJ)6^75{>(Vg?;OxR3vy} ze#T$Mb+#kmul^P4*wh{}V+$hwp%}r4{fHHgkLl$#f0|k2KdyB2Ipwvb+hJ3Y!GxMf lEo_TaL=)6umpU>WYa%6j?#gA`nuDF$60MKQ@p;P=a8(w~I>r+Sx&8Rouc^Y_>>| zg$<2yOcQ_7xLvTtfAHS+eu$PEv&1D&uQ*RCT}Q;Ud0 z2u!K5bjnJO*(zf$PMPCM4aS2p;*lo38WX4!M!pARU6_Unc@2ocE5~?>$#57aQ9nV# z^9-ZNJ767iIE`}x=l!wI|60P3@8zK_*UN@nZ$Jv?Vc8II_ED!uZ_;^U`c0|$ObTnp zi?iI-6>iXZzj7M6^s;?!d1&X`c32&*LnB^{ZbC!7tl@gAQYfP)#}3fzJRI7{0rRKv z%P-55rMAu5vs_46?_bYmojcRrr9<>Q);*)pao(nAl@!=NkNz1$et6k_^y_mkMtA*v z+`a=8=H2po?ih8N1IN8R82<_#V#jA-74Q=f|Dof#)?2mCH=^DSL?8dl5c|RFE02my zq=y`vKk`}Sy&Etd?4uDnd0^d0Zc*vH$6wy#qO6(u1tuj?=?Gj3SRyp%f19h*}z}1QS5a{kms{gjEZts;8%C zzW)0Aef|Bu?&sB3j>W zTaVA~v;s<80~B}%Jj=&Oq_n2CdP&71`+c;&*KB=`E1H#2{Ysqo&Ku~ftf=V+9IfxK zQTm>b(&y-LYN@Y$SxISaWO>EYODg6^BD1DC-(-Er)|YR;+ys3b&&T0E+qPRwj6@bJ zjx4M$DPLf9h_DC~ib%hjairO8?A|G~7G z=Xv5Q9Pg#xFZWIkWqFPi&qUdG@7U0c%qb^lW|D-+Fp?A6ye{ply(~2N2B|8**j*UY z<7+7NRFPac_66vXIxyCUA$vRzYAHv6$?^^G6@=E`MTr`(D>=WzGnfVf@C;r3zYV3h_VC)Yw zfEn}Bf-u>1hLM&8wD&R3`oU2)OW7>g+Kz7-u=OZ>!+yp_a=p*85k46VpWI?2{E~5_ zuSoj(o4&qezr>EQ9eek|PFgT}y+$z?)IU@Ds%v59Ae5pXDgK~*gE6XTa)@z{ zzlIs#kyEFIju9bhh#}5- zHW)+3P7l?vfT%;Clk5R~7f;qd{-Ld>pdi( z|Chyt)61KUt+3}ZOA>1!TPJoJQhpDK6PHPr{uI~rQ!Fw3_p&v{8<0EAg5q_SC^TSi zW$B^~qaS8gaLZ6%F>93QZzLvSe6DzkH zMUdM8+aKg^u|u>ex$BVIOLFxmc&gsU-QjxRSPL9o%J!fbDz+OMO;QOtvQjuYd7BM2N)?up7B zMh@hLGM8u~0r3`aG?AcagMBVKPG7*&^gYC-@Xp7$jTo~OW6u>kj8foT1-Vk5rw`*n z{bj<#^Pul-#ECTr9QMO^z&wJF(;K0yf_TG2Tn~oi{FFjp9mcHSUQrBvJ9(Bq5B8sh zU2?uU(f3oxjey)ynkq6OE9YY_pQs0Dy1o+rI9s{PknhLCj`vBt*-hOjF=qEO8;uJz zh(4*}W3kH!(((F49?;M6pz?JlY@dieB`n3vBn*X{nX8{QR=}U*i1b+yewwHUdAjn` zIgBIU{g1_(?+_n~*L-L7AMh?t99MG|5NG8$z*!HRavbRkXAVy?!>nNmDDh@Z{R_rQ zmMU_gPtNB&V3*H%(Dfb;A!JdjT^i%6o`%DgD4W?Ox$(aa^+QpD>O zn}HR4!F-+4w-{Ss{~6{t-OO!X!n|A}X=d;0wT1_IzzxhHnj}KhjRGF%n~f{bdyr}7 zU5uHN2}KE*lUF}yJVuhmY33JW%GbfBBxR4pn}m5j1DiHsE_}f1V?onbzsX1hXWxV^ zt&nYH$tZCmqM?E%(3uxroiHAXw}0Ar#^ zRG1SL-X3kOaS8KunP}!k%FR+>Ernf+RyP_KiC>Hc)>7n@QaqQ!9*H-RCYzgK(+I>} zCk>*w%u~;7Fg5^ZC-sZvWsTsAU*%zmcQo+Id9^r^qB!wAIPpGw@^9qiZpe1S{%*y? zMq@egK;CPXAl@uKxXlN^2dvk?=oc5tHv%(Ncsr4gkHYRu%F z;zltP|FbZ^*A><@U`4)xe?9@;hhfKA*z_=wzE4DnH9O(|cd4A;fCwne0fqNE@W#V-{`%W`hBsRr4Ao{ROigQkY_;EO-*+*(+E@jx{= zt>i3TBwO47FN%?)=JHe(+iBbrE=JxAa*vK26%JNzQ~4wp`YnF=!4I$EM*!>4DxM}% z#5Q9*PYKtdPaaRv>(DO`Yn8J`^z$TM@gx`PQI?8@fcPEqZXNo_wPPOEuR5L{){twZ zuRd3NiM`2}bt?V?D!&J48v3PT?MXu)*r|LLlyY%#&3HkaOjI$G9(Lj-9_#Nw z9$p0xZx=7o+>^YL{FD2t+r>*X|FmBjFVXx9IkAEmk+CD=M*3kk@{-&yMDuPuuy0cw z!k%K>w!+!7I*?0Xubp$iMHAdNqq)~%^CzIV5`b^4^%FjYe2N*(w`=f&l{dg~4@Qf5|>(6@K0h6gMV`H&zEEG1(#uOCie?+&n5SaK4u6X_94fRo3R%$ zhg7r}jo6FGy;qLjV%&>;PA2wV@*hFk(?#W;h>C9Hco zG?c{#3C%}3Zq!Z3Kl?QNyHCYG{1p7lPj3IAvH<`2)cMcHufBEBA=4JEd-c8UAJ6@5 z+fzmN`5K%LcKsR-fpC8MlcO*BUS6Ne!!zrMPdzv{=e(1yDkOA8I`s`2Ovd7)JahZJ z&${fsgiQ4=dwdstk-flMU7KUJ#BOzO)3$qd=sQIl&V<$V7mSDJ>?YJW(JO1P>L+KR z#u;k%w>YGe^(oXiZ_GZ78fVC}4q5etefIk{)KYGiUFV|)xLJ8tJs|_N?0*iU;><65 zH)`2#vg=W(G32a~Ry|=TYH3e~RX-_fs8GkvvJRq+GnjN)LywoSk)vEZV`!F}9cD+E zn;qhZxr;Z%G{rQ_Gw(GhUUYP>-^(@zbk332N42G&rMxpA7>jr@kaJGFTDAeuIp>`p z^?hE{_s3-$hB)WA^3cr-G|oBfGPDN|urCMg0ZlSEsy!*HEoBGFlSui3^3r81Nm*nB z4!%ib&WwVbqUw^0nuV3s3)Y8IE|*h7xM1Gk5Y zWyAtIO9~6LrXjJQz~m}z46!7}!p6kH%EI`)omu(upm37e?|tvRnf>@M%e`RCj{mPZeyH)q$+~d;RJ=ZN<-`}~b zbuH^;9sBXKJ%c{IweC<2eSmgMWlI#zm>8EZW0>n$$8}!BxCI^tR+@>P06D&i$;0=O z@5A~38Q%i*c8!+DW=z_+hB<*aWzy(iH_g`rR16WV<^{c6fxJSg)ITdDD-)t?#}c`L z6GRE%qO3_LB|7a;t=Y+ob9T5EaArl99TJoo5;ARxa9ZkKs}^zaD7xXfh&J4-H2;REm_uIW6wd6^_{=;;BjpyYa)&L2k%pHE3p{oHsci`v z8eS4ke#vmIb+l!A>FL-Ag+n8vJ<}^XG7@_6?R)+5BH6!Ed1)|wox198alJoNGj<)Ig!RvvnBtHU}{acG8*z825RrN& zS}x31R3ZJBD65886HQQolSRHJ;vmf3@OBZ@CD*49R5 zEP>O~*@+_;3`JvPwIt3Y51xisiXJ$NoYHyPI-)+V|6ebTsDIV<&qvf_xFe2mA)+u_ zML)isLPcS=j&(Q#g>8k|3qX_#Nrl-7h0QsQNsR#RYYrO83qfOB)J4$vVf-|L#tU;5 zHyA;^1r7cvF^2~K|99gMpVa)lcIdX|A2c7;{FCN`%pu(W|Fwd*;(oqg{6Ayv4-T38 ze&Jnt-1nc{%Iw1ABX?n{>JH!X+4KR%wdp&D$|`ZcTCVgFU$1!A%XB|q9L~53`!rtB Icp0e2A5{+d8vpzIZ2T4*Uml zVrh{gMQ$q#3mYL|V<%XMg@v&Sh;U-OLOA1ZcHfe{6Cs@g^M3C)UpsI1?Y{f`;ybLg zXJ0q>ZX3<2h{UO!LN5WCnuTW9$LyH z8uo)2qL<>^u}=A&wd<&Rt=XP^vjyL9oNrtF;eS0hm!R*L4a)E0JcP3iJf44*GtA`; zqC6$2kt6zQ@9*OV)}KnBZi(;R&8(`$ahxJ1HS95Wc?De}c9DPiTcMk>A$HvjF@1ve z6OC>I2Y@d$mmy;Q)0-hqJlFOGjW>a~1EbQW{dqP9XKknaRiBKmME{ z(g?ys2Xu}n15n6C=z%|LJ#6WLf6dQ8r0^-YS>-Yb;h1@+ov5GgB@O{N_2U~zeVaYl%{qiT(9ROTs2XVDqi3}7%OI~vg^8gK zDpd^4+c&6mXy{%U`V@X7->f30tWhahef+6x^m**Ffe(&fO?(6XZuEMu_4vvYEwoT1 zN?abJH@iKwai^1h4j&&U%0?J@d;NXEywCeu!$Cg6Sx2iQ;5O`5CqHbzGsNe%Ty@D6 z9GL5Hg?WYj{MRKf7kq9?KI^vvK6Y2Y=Okxw&D@tI^n?2{*rG4oyM5HJYT3ov(|(Uo zZ-3CcUgl#&ylySN=MvpmzeM@adD>tuNxwG{pZ7^PsoyFh>whonACdK|GY^SM+j@L& z8|SUzyxj}+^IDzLc!72RaDV01t*@}3B@J!09+mHMv(5UBT%T*Rj{8MDM6pfS5NulF zDcEk{+pu`&u`k$C+v#}|E;M1Y3G?2@{ZEMqqyI?1m z#Pa-%$$x>uu|$5xuK8Q}YO%99EAwx3-J6-V9cwv-Y#1C1ki_&uGiQ;Q&6y^NR5G2m PQj~Tw*{lA@{b%_L3K~7i literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..ff053594cf04b57f2ae2df7a8c005f9f00a3b00c GIT binary patch literal 1168 zcmbW0Jx|;~5Qc|uB)~yRL#Vby6c;`cDMcb32%?;V;E=Ak(Cn?a1zGXgmc4hOBpoFv ze}B9>+7ZF(CL2sBaFLR z?`-+L94`fw#J{q>Ce|m%JtVn?ehcujZ4R4(!)kEeYa8RH5qS{z>ws~uq;LT#;taeA zXXBimwYbkq40D}NkI)5u>-@VK)7Q_{*iDqpvLvI=VPsX~?Ve!MWTt1G%~aBNDmhY_ ziH|Kc;(>|6uF9Qp%EtX(RWSprjvzw2{U}mt62?3_HF<8k%H+sIacGHrX0V|%<^sQ0 zoXZa9h@X}avDZK$;ynj^ws=1QkH^0f@R?&wfWYsoh!{6HHCjkfh%f^C46uDTbGsm-P2og%UHGT)vhXkAuflcVkIdM>rSKx+t4Hf4oqo^F tKo^&#@r&dX=^CPMKw4g8S+2d8_S!p&TrXYshy=Li5eabBBNE^W(LHvDfV%(y literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..9522dc3d45a07aec4ae68402e3bf6a9af218d6d1 GIT binary patch literal 944 zcmbVKJxjw-6uqg|rpAxrq(!uoh=^!$5TVdQ1qnq&JE+UE#%N1zo03$EAau~Z{sMo2 zd&iF5bP`8L7YA1d_1xs8Rs{!dIQQJ|-1m~Zx0m-JB84EVfr?W-!aQR(ChE9k8jWfvqXXEp8i$o`}>iwigxZ)93SL_Z5mFYQWkdM+_bw1 k({YnlrD&FrH1eiVv}>iGdB3@vKXFP{oLDcpnommf3CmM;1poj5 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..e1683f03eb3df484dc52f48c43c980d7802dee5e GIT binary patch literal 1368 zcmbW1Pe@cj9LIn2M)SSheWessWVBnCU5T{l&>n=*40QcNE(+CUTy?2f_fNY0I|#2s zAXv}~g203olz)3l9?!v&9_D6mm zKnE8@r5h}`Pn5gCVqk%gs5XHG!lK*+rh^%xy<&hF$3@uyTd5Nz96)I$ zh#GaP72jenaQTrevhQKP3=7R zeL05xzzj8RR%20JJ*!pzwVx!qHg(ua8i%Z8lubP`;=Cc&F!``)ne1>#>ocR=UgyT# zS8mQdZy@{5-A_I95wc&LBs!9#PI2z{UZxj7Kf1Jelu=g*8c`ZB%mV&Zm;u|(H7x~13B_dA=L1L{ne zMx1fdG)9~=cutIKxP}@i$1L**M}+18ju2N6$E4<@z!Vg77lW!umBMcw>SDJz*Vjjm zcQ{5*UFyA>t&k23v9w3HzBTN6=URjBs?&rDA@yt6?LHnQop-bw+5C6ir{=fmPNh+v z|4y5sk8E4N*VBG|BrgxAW0JN({g0|cA+S*7Sq{3=3HFJ WXVTexj>d}F!YQXe>GUnwN44Lg#OCDy literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..b77e7094dcd4563d3b209b73c391e43bf00b3b1f GIT binary patch literal 6640 zcma)BeN0=|6~FJprAH!yk^4rA4I~Zu!{nymz1R zM-%Om=imLEbMLwLo_p`P_r3h}oByn4FeWf0`boi4AmXPO57K5lK3OZ%q#r3u5$&To zNGeZ5o*pd;k*rpatbx~LMF32twi3uj?ZgZ#iI#&{cXCM%&Uz@tpX9VmN7Vc6AN3ned)R`cV@*S=&s#b~gTFyA8?BJdq_HOd z>I)W!nC^E#)(=@JWW%d3TAX5r|2SlS*vl4tsjTVP>Y$}lyu&{US<#Q!LO6vry|n7L zbcvb%48G3yTz0v4ugD#cHwiGiHQ;1MqKP<;Vk=hdRv1e#}cP=BFmO?E3S>w8r|$ zm3$Uiyutzlm3sf2W@G5{yV#V-p0j+bF@%;i>7g4Y7X0!jLJ%upv?bMya$EeQm$`xX z)^(mqeA7D5AzrY~^UQ&;#vB=_)UC@3Axle;ZG$X5LAD*TtOVJeWWR9T)=uJ^*Lel; zymeklJb#_f!5Xu-4Eezh`((o- zW^V)XLs*m78LPUc$q0?<+0%2Fm!cH*bg|HI82c!&`Iq``i{p256@`M&Up?7~+XF;oj&)CeK$^^p?B0<#)jh~~iz z`PV2buz`MQIk_)6i&Vds9# z+aBP3z(v%fyy}DIhggKl#`>W7A#;TEG@dKmj^ZoD=9-v$tpsso>^bv7_^z=+>0Z%D zKB0Q#k2%y+{kaKt!te)T!XDC7+iIEZ$kTXay`bnHjnS*?fb>{DRlSGV6hqvM_Pv2c z*x`|No=IcbDEoohrMbP8->EOu_HmTEiS>K)vEN}m30SvcaOHUxpm?6!XpZRi)fy%2 zjZ&1;!+$=+aN0+Mi039j=Lnw|E4=#RSfK&^s(K`JTDo5}_BNO!uOX(7W8W&iP-4v? zQ8Ye__~S#2f2~8>M|w359ZH1`vB-y5pQJNDhq&ZJ%umu~LWdaTL+nq| z-|C5ET?KTAc|M#SN%bnBL;UmM3>lUEnH%+|XRm0KFc0>_=BXj?pv52<{3bnHXb{Fu zNjq6E7x8CQWP!oM_CB4U_v=#30m*>%l+6Oz3-Y>@3|J#)g?PSO6VESdcQQr=tZx1f@Umn68paC(O`e;T!nsZnLSDcY|(7)e4#{z%pu=i2S7VP#( zTC;Z4l~C6Z>A&p9UBQ`c_6|c|j=FCN8UC(37Wtr~qwfRA?zVSLp0_(Ev&5{1x9z(o zoh2x1?0@BLlyeobNCot`2Y7D?nGJ8*clEsqdoRIWg^=kVM%i6t@7J231Lp?r(j&t- zSBC5zeQyZq{+;M=L$*2K2x)^wI5*BB9;PFfh7L=8q@%OL0R9HJ18x2QbsV9TV42<= zFu+y=Y}Kde{06j7<#lLRhjOKY&foEiRP4oC?8zF$_&>?#{O#^#>Nz77D>1VKsK!k7 zjA<^SvxkLL-(x?Il%Wr0DWbm&<0Bs%;N#|s+MrXwx)BTw9RiyonWNAgfy~QgUUe>- zF`q4%51JQwyj${4Aajc&>j`b7eXh*+tV5%&IW$Rb6rf3}cl_HLJ zb2P~~v^Hqb+jmY>u@=qBDE&r171W}FgChs(2W)0u30~+R?Mx1Pk@?!5aV&k)%HMJC=@G|Tq8xg}u4g%)6`@DGIveH1Uh;<|)*3J3 zK1t`5dLE2poKmVHkIFDs$&et!c%{q)8OAK-B*-vsDK9~Wu}g&sGK^o^mLP)E^hg6XugHNQ&1R4Ay?TweIXE~kK64n;oLrdAXdO>%+nQq z=bGh6_bs}o76Whh&M=ER)Z&5PBgWv&->;naEJNAH6sKuFt9JylxpJfivFML-92y6w zyXIzmLD+(VrSczRPso3ay(#}GxP(CWCR-GW@gka$aW3N|y__Pw53CaLhx~{Zf9Uk6 z7JtB#TKoa`>3w=1J~aGFBWiI6VU5}e?N$V}?t|=^gJguKD!g3deOUb*p^6#FDeXfY zm`Tz*xx{x1{UW_YBb|dC{7b5T5&@J_BQ)RD{=D)U&+1SHO(fONz;^)oeqZ|h~wgI=H zUK7VUj#V6YaLnbX<+zBsrF!!mKjwIe;{}fAIF71_wSpI`@}nF*9NRcHajfH51^gb$ zmjba4%dcZT;OEA$g4G`bH$whC5cA(SqhPfJ#CMp+HU+D<0x{K%1qxQ5(JA(PK(cpK z!Rltyjq?gtPXlQ_&T*tQPTa}yVUATC3pg&L(^PJj z<0Xz09EUl&IW}>`cMy49O#^8iT>#?KTlqPT!$3?yxsxNlk;r^2kk;V_AnuFh%UHpA zz%Y>N&j3k33B;$U^7CAO21tHC3B)#T996Ko9!Tr^J|MMM0HpdEK(debOxgZCknEoU zl71LS_K$MC8%Xx?Jw~?QreO6YG)D6^tzh+gK=RiFM~W%L@h&A}A4iE}6Gt=0T^tKI z>NqZ;5wa8J_$kL7*ys2*<}6n5$#Ec5sRJCFIhr{Za|FocbYk(2G;uoRQc9XQpBhe0 z6G!zY^=abCoHIFT;?ZnhHso31Ed1t#A(`3u{>C&hyzx4mK}n1LWuiefJ&8;vWa{_Q z-w=nd)bE{M;wZ1ixf)(x;@>Z^9pw6tbN+qKM>zi$b;;f@Isck?OnYB&z1rSY;+Sjo z`)CDt79KU#bFRj1H|J^`eSvc|Zg1vXjl-8=2%>131BvBQ0-sMPe=0%WpTKhxczObF zPT-(%?Z2DAPbBb*3H8q=@M{U>nYGi_+3NN(tJ~4ja>)AB!4_+et<__9byZni?d?4_ zPtSMgDsQ9PeH-09>$=zmTMpUKs>kYf*}FWp?)Vl-+1l-Od#rYkt+R(YtrhqbAKNKK z>vlP8ovtqYSAw-wa`bo{*0z>zd|PMMc9+`*;3GskF{4CTTdSj|w-d!YHm4KNW3xG; zrO6+1_wb_%5B9dV+q$jx9>q|Mrrqwe#mn2D=|;C}ET~PWT>xg3H literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..50db8e1346c07f19d2a63b536f9e930d326618da GIT binary patch literal 3296 zcmb7GPiP!f9G;y?HrxDZk~OI@6irJNkw#)E9!imP8zBdwVOcN~VK&_^MzWhMW~)i# zVRu!GR52U&AmSm19(Hr;A@)#;gtdnr3Z|iGDLrhVha40tE*e5({oc$s@68`CKK9M` zeZOzso7s84-<$b)@ArQ?H7%r}i9-wev>-$1XfL4eSnR(KJ7GJ%Y|VgksoM}1UFR^< z%%>Of6adpqygivv+F@1Kd}3@aqG=gnwrB+bPBYEaTsAkA%A1#FKmK6$qG`S}=6C{~ zc}5u=!8``|R)@SN=hmzI@0(wp41~( ziZ8liTc6vpqpsNI7k2CwSM1uCcI-7*Z0(92d)*aV`Pz=1aK#GW*s(Ve+bdZ2HoqM$ z-wPGu$$Io|NV8+fQm^8%9>w);#p_*)mpT=Xbtta4D_)N%UTRZ37FJwuRlIH}UeXnh zg(MfxSl)9iRF=G?D_%Dg*IN~jg%vNgDPE5#uD2^5>rlMZsd&9halKpdSdZeRUdiW6 zFPAG}?T=#fSz>?bOs#pYUfndzUv|x#wZGmCLF>pTqqhH(%BTLVX!%#H(RHj*!#K1q za;h4S-bK`{b+B{$688%yF2J(eWky8Fz92=r62DK`p5(6M>~T)azpyt z?Li;;BK_3^K_59J{dgqkBd??%Z43IyHR*4+27Tn8^jBMgK629W*Xq#)!PT?ZUEcFv z4>_yG9rkz)qu*N3wNqj(`_+8NXF2A9f1P#ZT@HD30QoM*4eDMG`7ga2J`eREz4L~5 z9O^@Qdp-~KBE9cgyyH+m(mU1a^-xdJd*Jg>U(&lA_KrinNpG;t>!JRncf;qQ9;J6a z;vI+jl-{1#`vLX(H|q7s<7bKFq0#aqqfhSZMeOTI-@abNzMk~$>sHLSuUj$SzHY^Q z`??kL?dw*|x360)id zq&`MHKpmleia!B5{2NeQzd^l4eT#a7x=Q^m^;guNQ0J({a})C=sK=;JQy-@uqVAz? zp~iQEHGT&u?(ZJ;ZR!o`Ds_c=nL1BBO`V_~r#?yjDs>-qgu03K7x%vdw60Hmn|gz~ zN?oB|rp{9zrye5q5hKK>NIo(D6XIjyec~PBCUJvUC4Ns_A$~?&AZCb3VuCnMJWU)S z9wQDAJBgx5#C3z39R}I zF9Q!E;Ixv^c!tjR@dfCYTz-st9OsB8ESIev@adyIt(n<$HkDh{%-qcU)JNv~7pBbA zhl{zqnVXwQXXj?6kY_8b2|tt1=H9T5 H;@SKQnA5aL literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..7d9dfb66eca84b659c191953d6c6f420737d9892 GIT binary patch literal 2448 zcmb8xdr(wW9Ki9jyRc9YHKq(UmCH<7sZ?4SHc>nz(>5jCgskbdtji-<7TM)pL{l^U z(Le4CGxbN)z%)(n)-*lHA=5&k#7CN9n2#owG=ZK3A?cuff4h4X*7~C}eD-(G?>z1~ z=ib@nz}a8VCn{x76#0lnuUuF_nTzyLYp8nJ$7UHo8H)7L>v80SNg64d=5^M4!`I=u zEw|8isjgp@M&^&hxOXqt8T^uDE$eP%|Id8{k6xA=?m&X|4){ZbI#&Q){<<#t>n7$;E%Nk0p9 z>G21#jhKKuNRcfF>1&3Z>;Eki1>61OYYhIWCZm7qCFT3eqylZKCBG&{b&Q(~fmGs{ z$ru>Gi{zQVb%H(?qw26vH1`ddk^_?a*q}OC;-+|m@(q(4FR2*Vh` z&-ew+wEaf>9e-jBZz!%)F9rxn_EI>14tvWfon{g{{!)J`! zE@QC+J@^W}*n_>;2YDv@i3e~9-{LzQhs^l{aR5OK;v{~;5QZ@VGlvz2ShU~5S(6(> zJKnt;`sq1kAQZN_UydaslNh!4mMeO6Tcx~TessJe`uK3-{cj#7KI=CW65{LDM+ zmF9A~JWj9Ds>(g~TFq7D@w)3A9=*<`*G*EdmlWAGeFmi!H9D)^N-M5*I+f&IwUQ42 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..50511813296936ddf6039b46c090300e10fbdbd3 GIT binary patch literal 3384 zcmcguUu;uV7(e&6+j?)e0lLW`BAvlG2Adl!#wJuQe>531ury6DzT9=A!%ItByW*DY z!74@fmq5Y;4;Yrn!|v198EY3 zxC-w=qG}+<{E9R(!A<>nSjdF zQLKNoOUn7A85Vb6eJLOV9iZ*CFTVBks`GEM%$itz=8@ReOhc?E^Jpw0N!RM<=7OG# zXO{-*0$;=PRX8sU6cGU9g zI5ktGmtl8F#JnNwC_cse;bHCCk4_f+26?AE56gu-kI45v&*>xoKF`;Y=V?ccl?&|T zz(JXL^MhNF=Pl-qJs(d}-YLhWveH^)VWY{s4ieC=1LeR2p6YPN{7Z%WA4eQ|pVIZ( z?;Xp%;`@1OHnuxR(uhD{BY5RVxOp zUWiCl?j4eQ=VqxX5>i;O2LE3{zigJ+^H(ZPtu(qF-r=7Pqi2=T5#_MeuSOFyl{)HU zWmH|N9W$CFvtw+C+tdvU8`->YdYId^jR={;>^M8ZWp(7|gx{F(8y7ZZ@EaF?M}({# zen%|Xr|+ zQO_IL7u2_nl53RC#wO|B_pE2U(6b88MisSo<7}+N*@%6By-?|1E2%q`D&}3dpLy>V z_i%o23;OrG)w^_#74!MQ56!#-=ObfTme6ia5F%&P`}x6-iu#?;p_?Cb^D{pAuY9tb z_2bT&A2~i-aA%T8$k`YQg8S9}9O2e@`h`apcssrIK?FM|{PA1l?-ciVE04HHUkCmD zj5SZ=vc)~!{2lNCU?&hNzn`OTJ#ZQ1Yk>G}@_RV?W)PA5HM|@|{!JWxH9(5z0^SFl z#rxxeX`Tk+PH&z7lKv>L7C0pIDIl$r03x(M%F*{Akk&cL^W;Cl(U$;HoV`F=rxQr) zYy#3c9-&_fq;*_Ee--(lbuLrxu+9ueUpo*>`CB>q(m=SBcL~%4dISP2y)3u3SI9Hc zWl5G#I8Hh$R;J+98F2R2-_=Mm;5%z}!f2PF$ZQ_vt`+ILA_$5W}w@dIjAdP+y>Fs?rE_i#N zt`aCTh(hs!zGH|{v^Kl5x6HB?*o=b z?oEboBaOyGd*PD|6ZC|l(RdGwrVb=FTF(vEvrYVk7EGXOWzlV&9UFCy8w9oqYz125 EZ{bwF%K!iX literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..5b4c56ed1a706ecc365a3107f62b9d33e876701c GIT binary patch literal 2464 zcmeH}&2Lmy6u{4WuT1%}5G)g9!*rv94z~DJ6tFGS4;=X@gGGg0rqfrzc0QPy(t##A zM*jdO>B1NnxN{yWVAU#JeU?)xHHj{{@%Ig+_m3Zn8dEewdH!BU3KSC>eAj;FMW`ALHaGst%IPQCs+)~W>^g|;#6ypu4~8kS1hAv z>=m#NRI~*}*G53U>pzv*{-0~N_FA?1al1DExm0gE;+>UB-)NIe-f}Fj4gIHMd(-e4 ze)3PuvLeQ4spooS z>c@ywcQ28dwtM%I(@v{*jddCyjHBN52X>HGc<20h4>fkzX8SLFchNCd=gbAh7Cveo zcWU#Oq^dP(-RJ9dr~amH?d=-1h3~jc5Bgqfd8IG(9l#f*kE^y+?>K8czH96Bs!Cra zDxG)MNVOP|nV2QX>vq>qrXnX}ejicKiUr?hLz8^}?Op9{t>0Hr|4wS{q2}(|oVo1x zK+pfnfAkB)=(`(wU?=E-(hG0GTktl#1H0i}NWgor2lj&g{`Z6a7!QCRmj~f}=!Zk_ z0elG0!bW%vUWbq12&7;D(l7`v48but4kzGa7={tZKo)Y4hm%l%BIs#53a4NU%5WOa zz)ko!$}<$T4R%1hp};p7w}GC=kCUFKgPGsz3tm7!4_)}%(H)@Y{EP4sybQ0vtI!Es zA(Tl5+!uO`FA(*sTn5hdN9GT6fpFf&6KL+~_&PLyiPk`GUx{9Ze~$R&=o>+v_%~>c zn?Q4y#J@mC(7LBIUiTV$`>wiQ`{DiZSm0-=KObqf6Z@L&3HvL(e2}l9g}_jBzqK$I z-nY7!8tp-~X*|3?wT@K{@w&&<4!?u$`-W*byvWwQ-#EW!k-dJAy=jrHv5oO!#?r@A z1(QkT4cER~7L#!^MYkj-KU_?mGMRy5DL0lbhBm`e4rgc|bF&>LOd)3Aj9bWw87jE0 mm~?7nB$t+vQYOE}e|CgX`p=Ll<%~uz@C_AmnZT=2?Q$PQG8Rby literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..e99ffe6b5375255fa26be6c1067aad29eda909ae GIT binary patch literal 4392 zcmb_f3v3+48J^ws6FBe`nSn zU(O(;&S~!Z{>S|D@6OD>yMO!dzrM?6OkrsBmyW(t#h(`)Z54XVw%Xzie|NgMYBP;N zbL32L>S?4zGtFqAC(1dO>+X4|ZeDg+ZWd=0k3zP17+XWCG`63>X{Ol}iFSuNb_s=P zE{x~I$q@EhT%_DYx^pVT>+FckCzu>>waCj!+3(!6xd;mh#cS_sXo{M9I`)P-noYBI zo9xjg;++u6QN+{0V@ntlIWI_YBWx?t`BLDfXy|C`(U+pXg>hu3L4+Se&I5X3bYT!J z(++fMF41YNDGJFyw#{nF$>|3bYihe{&Gc#3%%55OTa6_~*na=FjE!BT(bkq8>!U;d#Q7)v)j0z%TCJg;OUsSkf37fkO~ut#uT<~*dc`ZNi8tp| z@0$dt7%?Tbx@D2MCoy;a?d+`+D%+&9{im`p?^@-6e=Tzlg+rmuHA=R-hOyp~bQb^F zKYW)PW@qc>{3@SV;FqN=^rLG-yi;z(EP4Nszl7;S>kxY#%N`mIwQg=xJns7uy9Tk% z$II;4@U?ST_vVK9aHtLQd)ySa4L<$)`Z=Euk3J>hB>7kww$EC{D6di6_Sm)Q64xc} zk$8^8^CZ4X;sy57&5`SIdmc)-p{0|a8 zCh_AEe@Ei)N&K%8|6rb%d}NeYE4o|9{-nJ=Tcw=5YAQI}D$Y1+LSLFSgEKxU>cXf> zbwN!u0;e=3fwJ^$0i$#8vd?@y^waQFa0a&G%upSe&~CPE`Cj94tIFyedA^=(!(3IE zbE|dLL`|vUHHB)87cpk~Qrj`Lzd+1Eb&KNCyz1P%c?q(s@Vg*#_>b_Tyj-x&-ez1b z&{*9AX>2UHe*M2|*Mw9T7rUkrKdZw#`8d07uqZ5h5xu}^jhfj+@R;gB%U1%&y8t3E2i^Vd4rqP(c1DF&z`MOSiI#D zJAPlfKBPZv^bV-{P*%0kJE&$2g-V&F@8-I}Wkx(ys#yA9%y0YT4*0o`YUwWza9#1B z&}o)_bdc+|3<+JDHL%)F9Jz4+&j^qsy}NRYF%FbP128D?+DpUF#igOW(kCt{kH`hWi?NHQUO=eLADD zP5q6uZmHLw_Sj;!3;Fz+ui%W`20vO))PTGAdF1Q6*x1qcpYl^4E#EWuWWG@zW9+VC z#4bU9dUke&vv0m{&!##nP7S*cXWgz{K$&UQ~=Pd$fy>Ab^~ zDR_s${ z6>Fx7#i_b}}(^rXl`=?Q= z_apXv^Ky41+uO)=ukLl@SAgG7@%x3h&fDf~^`0#}Tli(+SA~zQ>0h&^h!qtTX+?v@ zf#TZIqSA2by`^E_QeVa06?ZcOzj{_5@_Bsik9qQuq148~@t*8_R?JyQPpy_-qWNpE zO`N}6G2*vaG<=ubF#h-SGK{tk<5R^y=i>H{0jcb7>fGJ}z!W#cABR1MF<%c5ujalk zU@ov02!G#F;7vdm5QA&eI99xkd1+j;Kolo>U-wPoBLR8TUgTIY2BbI#fE2$6h*y7K zGjJJj2N3W2K9{gx#q}rbtFgezX4MGb3htD z4y5?M7WOcZ;x`NX4j{$H`LW|~<5=-ae!qMp95eO{tQTkq^a=z}9vPYHUtHs^O!c(; zQ+K9%(KG4ER1YkREmL4zg6=f>1|oS}D9T921v=k{?NgSdqCATZs@*#7{hKLCsX literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..5e9098fc78756189c6c055a556092f7eb84f213d GIT binary patch literal 2464 zcmeH}&2Lmy6u{4WuT1%}5G)gP<8GTz_oeyTFbf5{2 z(LcaRx-iBC?wsd}P)$iBA%TTE7bdtZtiZ%YBb0`u;P1RQ4`zxk+?nV}fA8FL?mg$7 z^K$3j{(R^6yQ@VkLG-Zqmzg+CAVA(#(|ye zKahN2hof>mkLI&+o*_w_PPRxzRVc=!bJ^m9gvK=I3-b`?%V7%9e19jJFOyHDOJ+Pf zaV$G*Ok!u_+H$?mp1Sieb!l&Fm*3CZl)j6(4G^^R2#W!E9@avPIMo`Y>pHRh6)Wf& zdll>j6>UM$wGq(o`cGwk@Ivk89;>!EY1bA%ljN{u2G^KvA+>+`Ie7`x5df(YS+dk>F<}QjPSDhT4+1M{L z-$$gnYnjY-+`E^Yb=tkFtkd{l9QCfG%dTe~I=$Z(ogGfq#McmFVk1p7_^j zjhjMqm&89uN6@;bG+y@_di&10U;E+x@mSzzsXrfSwG(?=?J4_9y?l_bppC##bicJR z7v8t}zD9dkZ5j{n&(qjz8sc^DsU3a?-S-XCa%hRId%tmh-4grpCHAvRY>jP<7c-GQ znktw~DsQ;<-LjaBn<=^_G5OJA>V(M*6-&8^bTPCUmU1{l`-q$EGGPiaL#NzAPRvNb ob;YDpV`I6rjFmF^u5i8n8)Qm3qj62XkwPvLcy;||KdMvy1kigHY5)KL literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..2b143e28f46403b0f4fe363615cdfddd28628f68 GIT binary patch literal 696 zcmb7CJxjx25WXa$DSlybu!86!s32%W(8(4pI0$~w!R-iXG{Ll1Otqpz-Rda#1L|fw zySRw>2i%+;yEy42RD3Qb7{SGZ=f2;kcb7hWyngl&DFhMK0XX7}0gx2X3cSBnJxtdE z2BIkLLSCSTb!OkL_+bFUoXc+Ke&WbG3mxH;w-ZnSbq7_W99VC!vrg5mmP)s8n$o<6b=CCApFc{7zw8k3m;V|0WLR?jbn3A_$C+NYVu`}*U}gT~MCG3EZ4 zUsnAkGl;O;v?NjQT!ih5EjlMLj!=aa!GDVSV|8(3AwHnDZ<(I&7Hs0u-l2KKyLQpw eL)&M|Eblr#=S|;aY2Y2#_VVQUh0<)GG0YdN09Ky> literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..6b582872c4b1e44f69c6a9fbe5d2a31764e01f7d GIT binary patch literal 13664 zcmb8$0bEt({V?#0VxnPTVd26>rKJlC3kw%6EG#T6EKDpMkWiSKn7D9ZVd2u$!e+~y zebS{14Hqq3x^Usbg++yhg-aI}ZnSXWKP+52-|rROdRy=R^LfvQ@BN+UIp=xq?>y(Z zm&3W2cmBEmU*Um3NWc<&=s{g@B?e1>5{_*>R{XDrvbe6Q*5mt}DECwy)ctsitgOPk zqQc_^AuB6=bVmAr$|u%hk2eVR*G*;7C0#iLLIWiy_6f$UtjRO(p7oy&zun)7ep+I? zT17grV1NIwCD`Bef}F{PS+noHcgo$lSy`#c-`qFi_;HpTuk0Mwb!|yUll01=_kDdRUO?!)}JGO(Y@RHX6C8a|FVPji3tl-<$QVn zd(GYZtq<0{)H6^O76_Dug#?z$rEG}!z-fU4w+900y#poh4h{q&@A~ro$KO0Hu(aab zz|#HQd#}HHYgW;Wy;(&CAxU#)_DGsjbMXH6LP7$IJ{G%&bXydv{~jTsi_RB&hMcr0 z#JhQ5IVA%~BqXN8>pSxrbFeQLMfZ&vi~z37dTdM_F~D5>Z-ayT{Q zltmZus{Z#6dvwJHeJvRs*fh0A;K1I09ZhfU9=U#R_tTFZf7g1y^&kJc+%+!F+)YRB zyUG}kTKDCI*UD?UXTAUJF%OPsaLf;O>l*XbVsOkybp*#Z@>u_0g#7pTu0KDi=z4jE zhn&3VLbBxf$go8#u9N2@*911rI;ktq@5-Swt6DxG@^aqq>%Q*DYyUa-mxXravA6qo zpZmSt&-nLo&X()#$L4{tIJ;|pyeHQ)%z^j21(tqgetc}~o3&Y;*tPxa(7=nU%!`uq z14Un%4=3_GF_*gXy;^Qp$#K-W&aB%1b=-CyAGdkO$L*@)<8~sSm%fqDul|=@Hhv?Q z?;5jXudTR1U=&wzHOY+T8m=XUFq%xKpxREr*aT7O_&UkKN0vSx?R&FDcN&J{B zvdQ6gCX-7ZcW@{9OyMr3GL7ln%?t{d$vw=XklFl%dnsZLKjl7(nalk=Kne4BkcTK` zK0o7O7O;>!o@EVd`8Cf`&N|lfJQZx0^K%1%uf%o4%$61_0IJxJ0Es?|RoW$FM%m-HU60Z|u->J6s5EI2n;z+*0bBXDUr#JCK zj2}O;zSeQ1h-0{p>q%uSH*h0m=L7;v`8khsUW`0EkHZSM#0UhhBU~B;Towd|a~YSD zzz9Zh6;~6yU>VIdTuTaLxQ^>dWh^&vBWa8y_{;ug(izV!Odx}a+)56&GnriSxPv>% zX9{;Qm1#`pZe~!xOzvS8h0NwB+)EL2_$f7P<&V5ZE!+4LuT#f%-r!B@d5gDshX!`= zF7MIEPTuDOn%Kpk`H4)8yGK?eu< zlCS9G5dY+B4s(Qm;j{;C3UMy@F=SQpmj&@l#5e$3v7dpP#Xi zM_9yS%2>uqp5_@=v6^z$v7QQEpps2&<`t^h!d7ajqn@37Kr?%3;cv9^ciQ-zb`J0b z2l*D{7Q(#ar)$xLH91pjQw=b$zgiF;F#${1hEVyj!TFqk&#@Cx`8eXT4?YzlbyiFs!Y2{PeIY0-U1m7e=2ql~dB8g@IgGpvIDO^V? zH*hoQjAsH9nM5&jDWR0bEa5ShvYe+_!AhQC6|4Cb<*eg*D%ikpc!3vri7Ga-iE3)u z#_QCvod$N$NE6NMBkVZ3g3~yiDEf02(G1``1~Q1j#1hYNE+>HzBr%F)Qb=PQ z>5M0XOtL9r4#kx4APZQ?B9`ztKW7=sSxGtdG|QC3V>wT;f>o^MS=RDv)>A)Z0lgJ{Q z99FTKHI%cS=c(jHUZRSPyh1fwsG*j6-r^k^*g+F*MEuTtB9bTu5lcKN*+y=p=YS8bS{SGlWd^uN+@M9OL&Yj zmhw2i;7OMA6f0RpIqP_y3N}#1MmF&}+i7Dz?R0RMBOE2L$??&XFnSSA1X1+oECw); zK@29Ac!qO135+0#WX5qbnM@*^T&6Ld8O)@JVwO-&B~@&qhONBDHtK1hkv)9GURwE- zHrnar5MOhIP=A0#5kn#)Ng|n4Ze$!8OeB+R@|nU^rc=mliYTU(`8>=*9$^WOQo#l) zsiK-KyvkPU*iJof^9~K{;9Z*7#fR+SFYM(LTG&S`ZFF#uuju3u|0MXwR|sMBBY_bl zlEhV{Fox?H%MIL2I^)S8lU(w+lYFL7z)T7$;vq_z&%-RHoOL`;1(p1kO>E{BwopqQ zP3+<@fmfV6`fw_Ji6WX9hHxSA4CgWuxPnAR@*|QN&9#hSEH{!yIvM0JnQ1IwF=ecw zoC>OVnHp-Tqk;G6uzL?b(CVmF`CP6wR?{@^|UJqV`{5kwNr0L~_v(WH>d4Wu)k2~6Zx zZX=r?f|3Yf_(3YpD)6f>6+N?FVj9;1w)QOP#yd5Z=b+094nC9y^uGRP#Ge5O#wQkJotRjlS&)>6R+ zUZ9efsA40(qna(eN)21tMjhL!r-3GR@gcj}Lks(8rHu{_@)d^&-p~srj0pM>%>cg7 z*~D-j138}yh-D}j6UQ(vBY_bll0*t)xSmwTlFoQC$Rw9M?j)Zn6i`SJ^I6Oi9;J+B z{DPG{%`>cKE#<7Ef=aefOC9wz@&QdW(?Tol9N-HMbA;f{&QQYX!>RNoivC1%HZcrl z2p2Mxiy6ix#FIiA<47liZ1R}KbP6b>n7KT_JQlE!GM4j8o@NbeDW`%BRI!nl+01VC z(99>a@EL9F=W`D5C7m4NYYr2<(HllD!s)~5MADBaq8Z2_1~Y`wB(cJmRn7Q1~LzFU~hgrZv z9^p~SSjsYf!ILa!1*=%iv#en)zovo>R8mDXTX>Zkwo=D->Uo<6n%F}Nt+WyRa4UpR z!stx|eL0$D=;RQG z34Tx+MlVh#oIXSn#Sl^%OB(59GKnm*$swP)l(L*^wopSY^}NM9?BG3`*hMpKbP(o4 z(+DDoB8GDqMG9j`C5;RwGKpM@n8Qjo(MSt_<5R-x9UBou63qb4;ao0YFhhvtBH~D3 z1XqyANPa{zqe&r^bjCA*3?`CIE_aYm0kc`oQ>cw$nf( zEws^2$XmvcUW5}t6#Y4i0Ssg?v5X*-Y;u{#bY?JNBPa3bkX4CgSA!Nf6)OBqfE6UiitY;wqF3R9U*A+sr>m{R8RFbgST zDa%;SDpvC>YgkJK8`w$<`)K7e+UVdQU(v}Sf*QEICCq0rt0||FTAJBQ3$3(sfG;@6VS-;q2&FGk3?-i7B#=ll zqq&wbq>)Yr*-T?P1r$=uT;{QcwUkpq6&rb(&D5}!TI$$N13P$+Ms~8BJv7ro8~gd3 zb`H=0~mAEON+a8pV{dfK{w!4dqnwA}_I#-&0Ku zO?1#n&v(5Zi6EAt#1T&-Be{}Mq>xE2CCsCg1(dOrCs@fU)=k;p zNh3|{riFd9bAS#y34SppgzoepoIadF1d*IUGy^!B7|vl3gBe0BaU?K;D@bG{$&99$ zxs*`KVwUh2Wh`YmPqC6!l(UZK*+3PWsHT=})Ullgn%K)Hw6ULdIylS`juO)7waWmK zNG6kPa+%HyikL$&4^YB`EMOsvSi&;aQBMPn?B*j{X``J^zUBy_JLNz)k@VwC5*bMn z$)qxt8yQCi6Uii-Jo1^sRHjqNY>FtRl=(c&0v1xnTI$$NJq^4|6TA43J+!coR@&&` zAYXBa;Fp?02qlaN`f@sv^dp)W1~QZcMvzDnqe)>5*E5!Jq%)ojGP#o}6fl!Q9%4R= zSwb1hc$#NeO*s`*vYA(?WgB(Wvx7!HU>D7_&`LW8Im{7)U*Za-FH!U-nivK%gbNu; zJi|#Kkz}rA3~7ubom-ed1{299hsoqIg=rK}NHKGn#{w3zm@=006u;zY0)3q$y3w6b zdTDK1MZ-?k~i; zRy(m2hR91=C(0*cus*ny@?G0Ik8iKCz2|qdujm$R?X}BywLfh8DNa+H=qI(cD~@ay z`=~DyPZkTr;C`81+fy^T;>a{HxL=|eF2;(z#ZB_Enp)KrM^=h{QY*UR$TecGV1Ht; z|8((GG5L6XhJ1tV)4SrxG|{Hi)UG%(Sq!$16NAr}-Bo{5((xE`JPN^fC-v->p3$>g zYFf{3Roypr@7b-Qd!@&w(A}XuyS4Uc>k*tHr`YktvNc$iz={7~S$n)(?c@MDp0 zZht0NHoy_Vge(g=^&9=&cD#Jze9bssK5>4pK3+a?zAjS!M)SZG-zpFPR{4A1DxdbP zaH-pR9qyI4~UWZnML zynAK@vhKJiFE5ZaIcM6m8IuE91yg6`{3Pq%DY<#U|1rucoRM{B-reyh>c6Y*-}~Ni p&y4B+z4w1=rxi{wxa34n!CtdYWP3>XZX0%N+p#n9e*iV-tC9c! literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..815e0c88ba1c2790dca980795d223c03eecede61 GIT binary patch literal 960 zcmb7CxlRK?3^j+seH0X-%MYvsNJx|vAQ}pa6lsu&vI|78hscJcObHz&eZGQ{&7d{8u*6;H&oQ*?;UR z35z?F&yUEwvETY}=PG~Y7l;CxgL@354t^j_IAd@I#J?)-8&(Vf8h-|^4t}PD=t(%X zbobH+U-R;9<8JSJlDb zCD(!qrVST8RQGPXhF8(M;iO6^>{XvCRC}@i7q3y6ZsjI%cN7c}qsgxsyCY$(>VLmf zW_-Kqe`_)}W)##g@PU!p*0<~jTzg=ugY_HicW{dP=9Pgb{k1c}yoYL=;C$twisbWv zv%&g{+sed^k4i!fZM8Y$gR`m+tZt~s{b4Bf+&x@cycoQG&ZlO~Uyw)hXcAWVURb2WsF?N&>_skciO)Sst)z)(?q%cmxt`{8@oXw^>9UO6T}f;0 RSZXa3pe0?)Trk)3^ba9cy+Hr~ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..2e356485141c5c02cd5380bb35cd248a2add8c64 GIT binary patch literal 1040 zcmb7CUr1A76hC)&>Ua02a%Ch7Gsu{uK=WlUp+6&lPHZ-G-V39i_ z>ov@jHev*G9*jlf{$P^dp1K>J8s~iIV*S2Rr%!htLLGc`-Ke*BH7(*C)?>hK8+HT( z5OD|Lk0Y-U{0ZC#wgMx75D{ZQ{6C@puM{ZlP0O?r09-^_R^=YWP7X`TJUSqyy@MUh zIY_kH%cy$FL_Q0na@LmiE&{`0zo&%QOov^I(QM>BPT8HRp0}8?I!~IZ+-s)lqn+PA zhVwRLR(vb-&)Z{f)UB(MTAMMcwRw8l-$W}vWU06%Q;{gxhF+E!-EaFUyWFgSnmZ+O z^fU}uH{_P$7x^$^Xle816Ys?NVq#&okY}|}C4+mhvf@-*!70VbQca`Ge%ztva^6gC zHIbQB^PRO|kGLa>HM{t8t}?8w zEtgbVzNCCuo=hqEE8un2nqPzeRkO`)3-@>;$enJa@^gu*L+F>#Z*ArR`s`P?$KDl0 z-!Jy@8SnORSNZ2DbwAlKC>RCt+<(bySa6Z#1G_^eTy$F4IK`OP zqp%Ow?K9mr&J|mA+a%_;-X|$0w)#cX%?!1Ho~_x{-)QH9L}w#=A+ZUBn}? Ko84U~qsbp@LcJ*f literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..c4fd3c2a8edc0c9165087d995ce40c22a502f65d GIT binary patch literal 71371 zcmeF)3s_ZE{`mj3_c_41fP#QGP_eWC@1_N%dGJzjyrhVwjt!uqpeTx1cuQ2AK(wSV zO|5j&2}mcKw2`t2%O))|O)D##v~0rENhd8VFTeL^?}Ho}o96$0=J!0`=l?s*yxQxs zFKey6*V=3EbHMk1I(<1%DNXU?kH$D^Rcf&cmL$~z(YjKpsVM_SrWi@r{-^rdsPe@9 zNEWhB`AJR9%gE0&!)E;2{cY)C=ItJAE+x)k>wm1Opgtn|n~^tj?2M~P4a=9m(9DW5 zYNnLLz4vGH?2oz|KdGtXX5{5&O`Ui(er@?yEiyA6_T<;aJ<)6SEotm8XX=dl3O6iY zRH3S=*{foJ2b5DIG?p@!8J5Ei_$V{D( zn?5DO%xSp4^4HDup`HyTZfUp^uee+%HAqeEpOBJ}+V7qr!&8jxYU963xjf4TaoMMk zvdR^gnmRG3zSVwtfBRY2_^H0OTyniNH*<{t{_AKR<<00aZSsut2fAcujTJ_u^Y~c=jh*qI9!eER`^nzcvBO(D@pYP}(x{NMuN-Td zpQhxL7X@mnC_pJEVJV0FwD#!4av)mbmwu|9n(BU?%m~utIIny#>8$}D#UFn0`N2nG zewybe>qfz>E48--8DXQXwNaK>^33uR;79sp9AsZocFXvi8BR3SW#)|Bx@H(YYerti zl+Jy0bdLFTEN!=z83JcfUgC7E#PYbUkmtJz}Eu4 z7Vx!zuLXQ9;A;V23;0^V*8;v4@U?)i1$-^wYXM&i_*%f%0{`_Eu%%mr+eBGDRHM>r zt1YP?oxA5R6_@5{6_@&{(i)4ZT&D_>qcyeldy7_iOsTC$Ew;+yP*r9Rb5-?8XfwT1 zsT3FMT$+bX?)diQE0dG{xjomW*`1l>dmrEr`yDKvloi)U zvrVcAc%~)CqJDkZe?r9%_q}PfNyFo%vHx=%=X;LpeViDM({r9BG-i7JvARm#IgT7J zMN>U0TDu;b#PJd}TdZBFuyscJUwgdzb)p@alVai;md7~0*SVH*Nc+jLIwFj4JC^WLzIb!~dcXj83n0n4H<`(IcwJ9B%R z*X(B(XiE0?K`6&*jHZMGSQbpWb^Avg^9#>0ZKU(7C1Ex{RVv3X;`lR-^LcHZue_-r zs7(!^&26;3opbBp-0G!rKF?D>xz2a@vyQZBt_$UhB5NgHFiu~4)KbvfcIVpU#M#?( zZ&l#~_vE%3UURb^v-=^I5vuA7U7P-uu2Q(JO10^#be+Fz^U*gK^g8zD!d~nA69_LN zT-fU<`6Wt~eWB~qpQUc+8dKKGYS?<+Rw8-)N?KW&u7y0KH=W#%wv;@6M=gx{B^&j# z6(s-2dgpRg>H5CWC2#1qfk!Q2l@`*Any9jGpX(bFZLc0Z5anIsViMc-J2`cCR^Z)+Lu(6o>?ep&INsR^YGB(I68Dql3lxSsZOwT_J8 z`eH0N$#|J^X^xv~F^Ow3v7$Eh?h3BaQt2zr*#DI`wF4J(w2Gf5>f~8i$I7~XT(|xe zjwn~m;3-Q&o$V50I%?656E|uxQ#G4opB5PFXD$M2QHF-(QT-WZt>)7()#djFJ1LVKk2jnOT3C+W_6?Mp)A zGyBDK)q|bQ^dRRJ)!A`CZ{)Z|4~}hT>mM`0Rz3RXsVhUf_8$=QrgA!Gs8Ht-`y-(@ z#@!V&LyvIIVVi^cZH}ic%^ZKTgvMs(tO@;|Z8CH}=SJ1q`Hf>`Xt}aEZIoxR zD#G!#?ibs7N>S)a%5zR{>RimabDV2JW&MpR$azjhJ07su9EbF<*uP{i4t<&RKGY+f zTlFxfjk=fVt(|K*Zl0yRBV6-ykRJPV&f3tP&g#+6=>g7fRG4$4ZE@%~?C%2m3($Hw zwyH?S!+JpMojFg2rm)^>%6_*cz`5GF)>!Xn)_YFHJH}XAIM!MMVjrR&4^xjCqwJB+ zcFre5ZCY!i9;2woTI%tnrA2Hc_2|ob1C-Rag>#lsk4U2)Yp6#r>aoTW5xawW1XGWe zdQ0bMON3F6(UwTULC!m`~6uq2s9UY}OlR>E&o|iF7=xEU~|3e{XS}nCHMk`Dr`q+}U!w zV-fqBsv5=KXuUf|&d)gZH-}?RwKQ^$W`Aoe(T?9z{?90voUeUs`#09>%z8Vu7S6V; zE9YaBStRXrrz6tR+GwXE97odruKT0|EzZ*1*_?Gc9ftb%`DBF zKXP44n>5#2yPI1g-B0LE-5=?G@OOXu&=aBea_&FUn>%aiQ?mSs^@}+laU7$$rJ4J@ z3U_bQEeLhL`p}BdnU>bhBU7IU-Nw4x=mXnW|3~^%t!`)irtTCK<}TA4p@n%^DoiSPf z=m(A!q37A}Hr?jFLD$`Vm4*m+-?Kd#^x`Q8D9vViU{WE1LW8E^n8G@WK_Ttc6sjrmhMHS-iMqRsc-n%_i8hW$Qf15g= zm|8}^Y)W4aa&DtMFSGBD^f32$Wpx*-7SP>=a|=U@IM+XBKTKVlQrBiieV=fYg&tzx zWz_X8uDy-abtC24ICpVqg|bt}FlU%i=P;wbKiVD+{f6^&PTAaFX%_c5>N<{cO`N+Z z^eYwa>`7h6F{X?oJdW~6eZ#b7?iG}&GuPcdEfQAup?QylK0-bBY2nV9*^B5e;l?;D z_3cT0<-D4GqPfv0exOghPn&$qnEV~{>S?zWuQn=EzxA)G<6?j{c*a*nXWYFjntVwNPji!Ytb6hCU*A(OAFSuqM6a(_NhkB`0NGL)k0lc zT&?eo)OQxw4Py-3`61jrj`qw^jj1DJfKlfbMt$RL3qspk?C#rXOO5{4Rs|r`=>O52 z-=B@Twxq6%H?+^E)OQHw_>3|QQPTEd@OST{{r51}k72zCqs|dVeSfCDL0UxYX04^8 zu@>RjtTm2p%=Px2))W?FY^tS9(wF7jc4A(=nf2ni-&ScYVtdgR%hs$+p7Pa;x%6pc zJ+oglGy4YpVl-paC`$|D+HPsF$Bt&)jI`Jtj8UJwj{Ab}hK~v}7B~X|!3S+>hxmmaBb6#)R!k z#yWGnzk~Lf!M*Qma@}@D4)%Uwh&pq+i+U1xg<4t}4i}??(7ipIv#yD8t z52YU+<~}5CbM<=RI=R!hW?IMAT`!Hf|9bbs3-rTZyIvahJ?U4{|72eEYu8J|{%89S zua}1XFQ)EV;Tn-^N3I)bhrx_XGGA!e@9v=PtBgLxoZ|LX$%6+~F_utX&zM7Bbkq0U z4f|e|r~gD4eIF>**g-|LfJaVSlP(9%hc0QrF0T zsc*x+G}|*y++mEBQs-;y+pz!0+)&0z^Il?(k>2%f*l)5t*T47u#Jj!?`%4_>Snd~Q zUCn!i^o6?f+pwQ};HIeAA95~#(#&hU?wmI44~d?>?%gI*$GU63C+BvX-ty`_ z$ZlNA;m*2ie7Mm*p~n4VIOnzteRMkW%WljEWgdT?e*K~za`oO~&M(Zlh17K+b2F#(jln5_fyrryI|F-8^%_Y0S-Jz94fhnKK6Kq0V6DA#XA^GZ%5+ zIJGo%5pxlldv$Y^hIV0|)0VlHJR?YXYBZS>Y0mE$lmEfICWpBf?Pkm^_G!BNj4^)* zHtI9Y#=MMqf?I3kY{dM3A9IK#<_r$w-q(n0+F|tLZyWP$PuL#Cb3gM3o91+$aPmHc zwz9R;Vxsjxr!83CDc;31`v9KZ`|}Lnk7xP56&G_7c+S_1=lmMad&Nwv+S(UsymyG< zy<(rXYWi-AN^$JhhRS;=-WvrE%F2qHY!56+)7pGw(_HbP@@`0T&9cw450BAWHF3=I zAMVy#H*wCh44MtZ}!M`@wR!^;ru-q-kT8)QcdLD z8GmahUfw^f<6UlQFEzcw^ZwRMGvDK7dX=%rs#0R#)uvsyjEdt;iELum^jQ9`4DYdA zvtn*o*o1c~j-mES?aEap@0X$hbz=UU2EPT8_{n&-M<+2okEtO%nWDTBPnHp=K-R$Ern zCiZY$&hyoLbGwix_L%FX2Q;w{yI#89#GY}z^uQ+e-q)u8>-$`JkE&Jvz%}inj2iFo zo(@uF^6q&3cC&7h{v>HfEln$r@!s!C-a8h{I$Up(cgzx6>HRMHksuZ39hYyJC9!Eudse&M*&u5;WzR&}<6ygQ{nin`fnrETw{>61CXDaxu!`zUoX-FyfB z*!9XO@0iz7$DUl5=j8Jeu1$IOd=v{vkD`3ic1QUfV$kW#{vlYu}AG zY}2b{H9m)+tj1?NdS${nDOXtKKLb_SEuL~!P#)fA8s#az%Ph|ff3rOQ$+4u)(k>6s z9?~vt8??)(981bmSC>n~w{h&TMjKJbHU-K2QN6NIDG%3_U2|1c@F%*8Z&LZT5LGH= zk@IqtypLG#KPgjP{lh)=-|4A;Ur+tzn8(+?6d@fOUyz3q3WQSL# z@UC`BZK}>a!NR@4%KKd2>Gsp=KTq@2|4YxY<+Cff_WJXVUEWJK^-~Aban;2Z+_|+q zczo-RC*{RCqN7`@>Kj@sTUP5*%4JitTA#ny79pR5l=-Uzu7s%8&*O#92gqpoj|3c1!0uBidTk0XaVlD5s47b>n`+K9vxlw#xV@ZKu?@)`_0;bixuH%V$?1 zF`8;}i(jHsu2bp5Ey%BVc6oAU@5R8UXk^M+LzqN$LW^)f* zdSU*-!S=nYH&+C%*=&Dz_2hZ>HA7hLt8lK_OZujez}Ud7TjH|WR?f>anmRk^>Up_# zEHTf=wP|u5*7>Qe3(+Uab#^RcrhLA{-;WEkZTKDcZd*xokSpHt=fY%%a+Jt?BC1$h zs~uN4&NB;=b(R+N51+sJu2yesQibiNwk>QwwQu1~Q^ytFJaw|Boo!1Wk1C8B;zAnK z_HIMizKdqnrmCf*FOk=ov_=kfQ|k`Qe>yVniLtxlC-d1z7IQr2c>~*MF_TX;d#0tF zN3M&j_wa`2Qtkm#&mxEU*>?iVV+*vdQf@i_FFVaKYaQc;oKLwI_GSGl(k1>1%Qm#b zx3q)ApCc}P`%c;;ie+z>N-a-rOL#STW`8sHqmw4<%Q!6gI_rJKKGu?E+&>6E?%CfL zH@MCoV~%!+c9(W8=JUL|c3z^J?R<3Jf3KYj9{JDP`8@3`b(l_B74=}O`j^keuXimq zJQrKp*2P#U-$Bq=uAgb1hY{>IinxsBb?rZjG->bAERFW(elGF5iI=e-DNnB6 zUU!bVv3**ux*+?KW63$X(@1k&@IFVkkXCn&VhPLnNxyg{B`w!=K{ev@@2?8^&H$gy zw#vVzFH}$a@13KDeZd)$A0HT=A0N~r-{=dIc~9ZioCEu4v6Iv7DuvJblewqH_u+dE zC;0wC)>un?@z;y#v-XlD_Qghj&5BhO_U6)$?In(2S7}zPR*|%{$Xus+v1c8A1dD$E@I#d-VJC(B} zt8+j_*49EJ@7;@L+T>VUMded*RIEFJD8~`wmOFzj@83vuvAYK9|VY@f`b!B2D^y7T1OJ+i1;J zB4cB$X7*WE+JEnQh+0otdtpP!(et!Dgn&YHa4m`D4Y^Juw`NS)*! z9LM%%*qlcnyLe@#%**>5 zGZ^(~TB$`9Bp+a(ZLI3W_1v>%j0(G2{(h9TFJ(?(9=OXm2Uqy6L&G}Mwf%X{+4mMp z<+CiKFWz&|rm1am-kGB^cGvHVeHiaIhejM`4#Uynp}BoQF2m9@#>06S^3|Fx@Mhh=9-ntvqhSgH2W0y3ki=8Nt#_l zSoTq*6?wi-^{>aS;n;l7V|%r(Zk6woI4EZatuVO*V?;LZQslaJ^Ui?po|X1F(aCs5 zxVm1#!fV#!UCK4<$vm0;ec)uDF>gPb%zN;Xj_kXm3M^TcH7QQUQ2wUxES}3sQy26! z_RYFR89Hw2R=O-}GRF^c%6=!a&U}04tLyCj)5D(qG+3v?-&jZHF48Y$+Ya>8t6@)n zHPV?&T}==13Ws}zTX=@J zS9q9Lc!XDYlvntEuW-6oIKwNP9>o-1D7d)m3i znK%AgA7@n${kW}3`#?cK~YTZn5GpZAqy z{XVcFoOb=lqHdi()_kV9-uahn?3b>MuiBXRe2r(*8(8n;r7J5L1A3VKF|6`jfLwFe zzpl#PemGgmk@;_qUDL)DU&K4NX!ae0rF>^ouHnD2-+y<_UazmzjbVwN`I*L&@1+`_ z6Uco0P4=mbIh(31`j+pQ`>E+ixu(jvF6-tnJvHVqT%Q%pUv4EV*QQ*TUr=wp2Rf^0 zQqO$39*ZX3nlI&SOPS5*_Rz{#jJ61^{DT~a^y{^C)GwraKUc^YYkW^TpJz$JYdrg# zPv7HxVGjA5({v3wEU>~4{+s9X?CL#NUuPVz{yY2sU+3aeIJWfVD9TYc7tbI~=Hf-I z{%3RX5o~YHBh9(^?=i|MJF@Ou=qXfFK{5aIL_u;U`|!R7^nwJws!-kA zRhY)RwCO`^JR3%_lxIZVD>_wg)kN;cjHkS_C`f*%v)LZ*QR(^adHV2F`iXn-GcBF{ zUE8A*Y_U$}teNwIhi9=}-RBjVd^TIRpDS;w19raG%(Jdr1zCq^HjW?JcB&qE17B^{ zHfzDvy%lj4T+lmn#ERs^5!-U3=h=8KI{u);Qjq+72lM#0jgE-Sr05cPjpo#qLq1QGxo9plD0!NsGPmlqIP0k9;<= zVDT4&UTCXIw{%mbZ6l+muGiGOok=R_j|r;u#bJzL!&HzqS_Qq3u1Ysg=ezX@YH(Y( z8ch1&^`q3_)0V)>$!*oy^?Y~UVRMwY?Z$WJ-?i;g2a>qg#PEHgqyc;m!{<{AcpjDO zeZERq+KDcocFKGFF%?*O%E;! z*4dW**+?tBT$(&x4=L$JS|8FfnQsF|d>mspbFqTUD~z-jr1c>!+DKbz zq%|e&3n?FMP;mK4Bdr-}S4gX&?-yKNW27n4jz*{pZF;D)#jGp+eLnBEY2Q+LR&V%u z&`%Q+_@2UFjrRdxHB%SPeWgkZy4y?SoyeCrt16w(?0>d6Dlb}`mH+6YD$d-kRkZZy z^BjK{>qV4Eep87%BpzwRn@GHo#KVnvBZ)J&D(K$ah&v?S)Wzput_ua-ZAO}(q%n7@ z38+uwAGs<^Z%vxBKJ8~e(rzHFaedkkl6I5qzooISe@Z-7;w_B$KP28+;!TbCw-WCz z@n%N+?-IY2eMZ#p^B8HFPIH_&b+fC=F`#2fBJ(F(&xal>nv}UcDM7~LhaM}Ql(pT> zoXt&m3D@K)<|-%YE6>=~bospxnL|Wr?%Dh!J7MzsV-nU0%e5=-Hst)AXvX|PQ}HXA z+x*(|SCMf~&@210G@id+Q&&HWc$_l3NSFJX%)jONYb9wi|60Y;Mqf(Q)i#MQCN9VR zrRR`ed-jrhzRYc=upjf8s{VaAmF1YtjQlToCX>%Ba!9LX8#(p_!ZPo?(nrO&u{1S) zKjy1GGLLNL`Rq5W@+|ZG^L@CMNgK!dQdaYGgX=#l{!+Wi+*Nr#yV=P&qHQ(Xi~d_C zpV>$~>e^}$Y4Qv?n5DE8{ff3~T6sHhnQPw3dF#ot7fX4rlCZQvNAkII@~*i4`7_=~ zGoO3pyANNH*O|1s=g;w>h0%q!(t_K&nh zILjK^gE66}4QlM^WxP3E0?{7kp&!V`??>*%*;TQC-JtOs;GegWf8 z5o7!llQQEZU&f(xlIKqzV^I-fy?5Se$#am$xKzZL@16H|$!kO&V^k4izjxjjlGlVh z#;YRk0p59sC9f%Yj9W$A3%v6VNM1|w7{7|RCwS+*BYCaKV;n2u-r$}0rsUl~9^+XN z_XzL29g=qwd5mpE+$+5Ewn<(rd5m*Kmsehs_eaU=Odexi5%&)7?Vgjo?&LB46>$$K zGukuEXwP-z<=v{sXL260X1l7E%;NJMK9}fYS7+VYGpjTCEGXr;GM=A`XJ_RzS1jQ> zW~G@9t|#Uk^sD5>JQrm;curZb8Sw>m@op9)KCdpm(`v+L)y0ST8}XTS@nZo-d^+(o z%ESHTLaxRbO?WJ2ORAlJa0zn&H)FJv(M37Zny3pSJ~zwv@e;dTanFobe3oi_aseKN!sL=t_!5i@}$j@ zb1_)XDd#ht^YN&hQwP@z*N=>?=lMLN?)s7V*}6E_kHk;c#kqbYexfeU^&|1G>*8EL z5|__)q}=vP_f+wDK#2WP<0>=W#)NWS!cBA3Do{xEV zvYT<>u(2#n{=`@=Oa9bY7AJpZEEgvqVd=RyB|l32tN+nvRyE_Nv`2{%?=!2KF*AYq z!^HU>&8%w1$#mk2jCjBPqwaq=0v77$M*ew63eYR0Se#D8PN zqh?8aWa@q6cQT)p`<2`erg5#Vqn?@mX1b(JmNe>`>8MYeAZgS$vr&Cox};I(%qI0| zV?^pPqeszjs*2 zzU4Xb+U?EnO=)2+=7XV?I^PMB@}%i^mdbrr;y)3$9bLrpj;%!Quad^Qn=;$}#bz4q zENN#Xt@>dzjdqr_lajWj*i56HCGGE$wywlXqn#z~n4~RVW~R~3l6FMW3LZ7nXlMPW zg5-}$oAE)D(nDN}X>T++pi!sYKhxF=LyYiS67Cypgx`>`-q;AgF5x$VjPMR){XipJ zWvuTs!Y>=^JB;v4#`-oRyv0~QzzA2 ze44Pdv4q!{>7^20Wv*|8S4j8`^IrX!gmph7{ZV6m^B%p_Sl_%q7aQx_jCFoztnV!n2L_8yn#VjrD_#aGtS#h!LJnc*er^rF_@%?1FPw_`Ul2 zcbC_D4=CRilDT^L{wAd#bB{0_-)5^_y` zvgC6vCI1%5|Df?T`EJSQ{7QZY$$zZTHTiudpK~txH%fkT&^7tDOa8(@BR@j&n*?5y z-(B+iI*t5L$^XD{O@6H8>kcE|Dfy4tugSkb^53u-`4-9N8;0KXZz=f;1C0Eif0E+| zT$A5K^85N5`QJ}uXQ$?K~bc^?{ikyrCh6PNM+eM!Gv&ZYU8-#6wqrLzCslJ{x-c|Iz63w0xJ zr{vAnu3iJ5NFLX_Z1;-fwbZZXeIR*U|C0BTY>RG;^n$4?|aotGsjO#Ncjd9&b^Nj1$B#m+1Nb`*AlO>ID-AMC{>k}l6aotGsjO*T? z&B#0Y`!yBT@Yz=0v&cPcrswmdw#H{i_22WqiTyVGY@{`5^4Un@TyxHR&G(ePwwz_o z_iw+a)QIi9KO6b;_vU9KElF3DrQuxvdSjxLNy>ezr`*RHd=I~t=YH?cMhZ9v?_RbV z$L0I*@;#+Uj(3oHG=0FVhkQ>-zK^)`+qtg15AYtx_`Lz+eNKHl@AZ^7%2xLoRCwhs(q7_w*tSx$d|B_A%lS>z*|C&K zo~NRj-%R@9p~v3kJ5`%*P^G7N&pCBxYJSeK)ck3hYu0o>*R1OE4;|DrRq`cEi>8-Y z`CSA*&02C3%K**4B#OKnNN*=;#J|vjr+4mJu=)zioURL3x6y;AZ|PdNx(~~!e|u*InE4nV7V>d6Z9kZktzJ?G!{J5T$*VJ<6ga^(-CoPj)}%5!Qe zt?|scIqxZGC zzE?rA)%#lIcRT97V^?>r_G5dqy#M;S-7mGGx?=9WBq2%@2@m#k0f;E%NW7_JU{DgJ~F}%uW%Eua8s`^&*WFvZ|xPn z!7F@|S2)%y+}SJK-79>nSNL|X@SR@azFy(Gyuv&;TrCgJ4p+m;Ug3Ma!lS*yzx4`_ z^$Jfg!$WeSGIDcsa@Ac~*%?tuUGDKjhock9{H1&b> z?5y!oGxE~&qB5q=oKl~X{y;|51a_i^%*@V?nwFC_Rkog%K4V74_^9+5ggkrXqrr@+ zsUwDWo|!ixPUVhO4>AC0Hx8Is{QP_0T|V;4ss~cK2P>rq@q3=Z&6+7|aF|lfTeVWk z8sG>DR<=fAEu*d|-;b{a%od1Zk$}EnY*PI(0C(YTBq9lX=T-6DR5b{UIcf;*!B7lC zGKPb}SdGBFxDO*S3Zub2QpMnQ+=1WVex!rTSdGJYWMBd&A`@AdgvsDup{8Ieaxe{y z$to8!kcXLg01qM`voISc@W1irW(vjUK#I?VR41{0e8C;w~9|8C=d!=qB7CPz(*`s~KfZv6X=-`x06 zyZPD@|n9{Lvf$=|^XKBXdzxx9;U0F1X()oLv7QTn0 z>lUS1blx86r1D^-G*60!HFP7v!YXD&S;*9lU64ggGdCtx)|6ee;D7wi2=^QLpHgFt z|0%V}_@B9~b;$CZ7S&j(z`zZGtDNSU+{?0u&i{xmxAH%o3AUC0v0P>4e=OtdMfRcq zrT$>it#W@FWG%Py46C9DS7RsMz}wi3J$MK2VlRd>Fu%ugA3nfA90Gs*Kz+jUQ+$R4 zc)GPxM_C@j6t??@Wew!KeT$Pgg@?%d2g~p9PkfJakbPcY`4fJ|S-gTu$o)lbA05z_ z?fYQ>?nV;iUc&E`s)q>=!VnBaGE#6aMq)I^;I~M_SY%)#vM>!Z@Bn6EE~X<74`Mdv zVH{rPc6&TR}{WxLm8TkOOx{1vsrsA^mIwq_5ov>2IST zeeO4qes@2l@1;WeUpk}@N`D%U3{1d8WFiZbFd5m9ab+rUAbnN(W-g@9N*|pG>ATWb z^C5j$`s^G?UzWZrr4(Ut3$Ftagjraqe zLpdr?iRU5xYBQv7y#VQ7FGBj*OOSrH4bs>C4C!xGkUsY+q~FQdA$?EA59xn9@dl(n z?ZR95E8fO#?7=&D7klv@_Tha}*q2c)R z6=}!uHU5roP=gcr7AJ8Er|}*BiSH47MX3-pK`6oyj;3ga=4gSoxB)k!9opk2+>B_% zAQm0a5uMN(UCgp+2YTXG+=e*B<8~yVFZ!WB2H-B-jYK5Dje!`1!5D&jFcia( zjNwSZ2;7VNFcPCM8uFvDYy*vU(DB_3=GfMlv_RrPXoSYFk!Htg9+1|+NjL~A*=7}5 z5tjY7LMDhTtA7X8`9*7wU05h8v?O2gjjW|IzrLz@IsS$(a1_VzCBA~( zJHE!>@eQswXFE-L-JI6|6X1tE^pE$k4u8U5;bPrMq7l|%!R;80-yj|Sw~0E>VpisdN7T0Dhkuny}{ zjtW#_6JEd;Y)2Jd#SXlNo!Eul*ozPGF^=LGj^i8D;9H!+cQ}Ky_#Wr+11{nc)MnZl z{s=@68Y2YF5s4_opd&h=2YMn7z0e;6a5s`L6e$>qbc{nbreGRoAP+O~0OnvW=3zb- zU?GZ7jHOtPwRj2}@MlzGCw5^s_TvB!;s}o7IBIbL7jXsZk6d4{!44;a5QeVkh90;L zakw2WB%mJ#;4Zi^2!k;MLy>}eF$VV|6=_IE1~QR_Y)nHwW?>HIVjc>y7)!AOui-DK z#xCr|dw3uFaR7($367u!Cvh6*P>YKQc!4@22*K!xPUwp6=z(77jXp>~U-UyFk}wow za6iT)1G7+oLKI;+O0fcKu^m;|foi;s-PnV7@gDZ!5RRY*CvXO5aSpYRK|+HSfe1zz zBGC%b=#K$Ngd2k}1jCVn5x5Vda6jf^9tu#1rC5eXQHoV~605Nm&tM(a1)j$y zY{nn)0$#*R*otk~jvd&Ax9~Q0V-NP@01n|Wj^bIO32YTW*#33FoB%nVMF%-j)f)N;rF-Su`W??Q0unXg=*}=ZtTa0ID*e{6kp*u z{*F^Pjqh+4wFuird!sob5Q%nZkDC#V7{sD0x}gW+;6eiWp+5#-AO>MDh9U)Ha6eL! zhIFjMdTc;BD)BtF;6=QIt=NWFu>-H68oRI;@8Nyy#{nG1DFnaF^@K1qM|*Tc4@B;6F7x4sKo{Rj7zZc0MZ;$=!M>Jp+5%U9t^`sjKUbC zAro1cj48;&OypxO3b7auqZmuD43A(FHe(C6Vh3Ks>)46i*n_>;hxf4`2k-$7;}d*_ z&+#`L!&f+tuTg_jIEVB25w*C0pCAuk8f*wh9OBUnF7!nrk}wd1F$BYrf)N;rF&K{w zOhhKKFb&g@hkPtTAr|9dEJZmg@H{qQ3;u-dsKTpw4ZE-#hw%w6LcPklLl7Dx1kDkN zD8!%xdY~t6MI7!xFZ9Np=#K%o8%Y?9doUC!7>RU@LpF-A6w9#z<=BL+_%o`p3%ju& z2T_X)xQHuIJ9ut{4R$yYh#)jZ2*MDKrf7!dh(IJ-p*7l|9opk&#Gn(pq8oZ34lX31 zANpeek}wE^F%dy5 zj#5016?hV>u@)P!1>125AL1~M-~`U#9BQHd!g~PtArL_bMi?T|3T@CI1CWS87=jdx zzgf!j9%>fe1vR6Gl6^`I@9K}~Sj*~cr)A$Z&@dIjc z0YBp+qosXt z(=Z(~kcXL=i+LzOAs)t3EW@KH#R{y%Dy+piRA4K%VLPhuDt6#C`~|!47XFI2u^W5v z4)$Un_TvB!;V_Qk7{0>SIEB;r2hQLee!!2oh)cMPE07NrH2A?E0k9zu!Dx;ah(ILT zp*^C}5uMN(U2zL~peJraJnn!C3FwbR48<@EM+!z@4DLr7vXO)7$j2O9NVlf^@5sI+{k6<}UQHCe5605Kp>#!crVgokf57>mw*n+Ltf!FXl zs<9Khu?Ksx5BqT#pW`@ca0>F_mIfP8bV;r(E4SAT0A{1jOmSYv3#2P$>YV5== zyp7#>2m5gV2k{|3!YB9?NANk0;!7OIH#mjU_zq`q7PYv5i;ypj*6IVj5;*6`sUetV1~}@H{qQGqz$Iwqpl&;Vrz4J=l*! zIF3^|1MNN95OxG27|qcF5om>Wh(<@mV+_(T9@&_J985<(icp3XScSFNfQ@(#71)AZ z*o*zB!6}?UEiT|^T!M8UWkevt&;n6ti*|@cS9HTI=!uaSg)vA)8q$%8EKJ4}$Pk%xQ~U@?|rJ<72KyKof8a2z!_gR}S^ z=W!A8Wdtii&>Wr613eLkUg(bjxEo0riWH1Q8nQ73(~yU`n1=<}fQ=}}CTztv{25iK z#!l?QZtTH+9Kb;w!iPA5&v6vTaSEsL9nRn^YQb-&tFGvV9*D#3a3KNx&>sUZ2!k;c zDHwzMk&1L=A{%p2h$5`RdTc;Bw%|p)gl%{QJ5Y_oIEPvUd_aFhFgl_Wx}pbqp*Q*< z0f`uc@hHFo6ru>rQHm8rjpgJde%TitX5eU3d$-u?PEc7{~AxPT@4p;2bXE60SfyMBha#xX>SCkcRP? zf*j;y7Up6;3a}7GC`JjEp$rw+i~Tr+BlrR}IE6E)#m~3|>xYy9fe1r5nxPkZ!-f7B zgu%E6!!Qz~Fa~MJKqj&<8B>slnaIan6k;(RMiGj!92>D4d$1S#@c|Cw6MTlxaU5Tx z2B&Zi=kX&hK)%$Z!3rCK5rR;JAsms2LOXOq9OBUnE(|~-k}wd1F$^gffsq)4iO9k< zOh+CTVKJ6s8J43APvIG?M>#fO3##xccHu4T#$Fu2A$*Kaa1_T;gEKgfi?{^&5|VCgAV9~9_WcU^g@5!jU)`kFr?sK+=r1Eg*2pN95RrFY)nHQ=3*Wepa{iS zise{^C$R=kfxlU$H0ZFv3P1QG0Q?(u$_@vd2t*JXp)rCHf+k4ESd7DXWMBd&A`@Ad zf~m;G49r9spWk%lJ;n|k;{8HL=4u*6i-aG#LVjea!$L777{HSCtZlHR2iFOSV%9?b z!;genR|Tq$ysDQyDJ__!S^~BFO2;5}wwGV!nCqwPY2iwXY|gqZl-8>S?H{3R=OR=< zbtLgt?5nlXY#b=@Mz(9G{O7i#JnfZ!u07?xiM&{)Z|K1I)J0ir6m&;dr5AKlmW$n# zmfcZzU;xshd7INa=Bd8P5jO1nh&N zTKT0EYXHK`>L}`9{Ajb2m6qRH3l3~!{Ei*PSDCY~7(d4wdsgb-Xxhl9wWsvQEoIgf zeoy$X3|M7*(!ScU#<@1ov&yxL-~wrT&TN4kT$a*?vXn-brO}cs{XKEcgOP6YEbX49 z!?SdHmgez-`KK-AC%B-IXK5BSxWKGeZ~>Quk>A9#4D~FjKR>|*;htqv&$5|kDfO3p zPM@({wa8ei^`7Mx&+={0@)OVUq_H$M^8Lrx0=^dTwScb$d@bN>0bdLFTEN!=z83Jc zfUgC7E#PYbUkmtJz}Eu47Vx!zuLXQ9;A;V23;0^V*8;v4@U?)i1$-^wYXM&i_*%f% z0=^dTwScb$d@bN>0bdLFTEN!=z83JcfUgC7E#PYbUkmtJz}Eu47Vx!zuLXQ9;A;V2 z3;0^V*8;v4@U?)i1$-^=zoG@AD24ppge_kKTR_p?QXGS}UQ}_us{(a5nh{mlLgwdFahwuniV+;O*cQ{gN zYU;Sm$usgMr;bn0eK2dPBuvSeGH%)|NtYP^2KuCc0z7OI;*mfv>6#0?0iCAMmBq#@L+CM z9;p+jtoK5m_*jO4ib=u?^=?|o;JFWatAR0g)o1RKShH_HMo2;sKqa=1S)1tbY%Q!24 ziJ$aTgxs4|^Xbm%}`wk@}q1af&q0fqpMJuSpL7#JqW!{M?)=sbkd}M+kn{HLRDrL*s7i3GbQBu_^ozkiw$lbsD>Zb3Rn|^C(<&*i(#VN8i&8|LWwP`c6)48a==P!Sh zPoW&=R(keT>)F>DtM|UvTdk^mh3sopHoKvq>ary-HzPMUCs%E^TGW;-c5>)vDdE_3 z^_rE__#xYD`V%SEZt8t&clC|6hdOQTslF$D`yQ$Mj?41jnnHTBK0(goMD?aMFNZ~` zpH&rI^6ag|kG(xh%F&n1y*=gEU2XI0pk_9aJs={GZLYThl~310HEsI8OO!G`s6SkG0o(0|-`wTi3s z)U$GkEeoWmJ=D|wJ=Gs2)vM@~af81Up1^+cY8IL6zQeko5m}zw0I~yG+a6pzYP>F4al3Z1pSDyKdEXX}h(({%b9p{P$~_5}g~J zxJ%!lZS~)-7g;t0?6vjZZ9Qt+s%_QI>4p5aK(o@mo}V`ewWd0AZ!;725pP7iBYz)8 zem?i)?;T{uPkZA1`TH>PbIB9m;fXim53|VrPI=<(Jn>aS%=Pc|#I5(3@#MOEPka(_ zIezwU%={&u{7n(P$P<6Z6OWu|=6~ghr)8S)E5v1gwNuS_D}S?m9UnB~y*=@~ zS!Vox;*F?NTA>-wt&10#@!xskTRrhLb@8QU{#H+XzbF1zPrU0gGyh9ZJk1lo?1@kF z#9Q)*Y~=W>Jn>sS@p4bxT^BDk_m}30_j=NdKOk`%e=n=rjB|yl#?;@+H7!5#_lzW7 zn`}gtoOX$C7;VNSS>kbYV)>Z_iEkfnM3wxR8YBK&GrranS3}LX+_NQr+AuR-?TObs zV8-Q7avAwk%=ovS_}W}Ee#H~NIMR%VvoBe{{|GbQ!4t2&&x|MhpYqN>a$r%RUowZ@z9Ip_A=+xxrs^n30f6*(q_ zasqN}GG#TgQBJuO*+)qkvNIQ7wV84!vSS2g$U>a|tUu*(w+Z%2_=6!LH(WjV6fhm;M-o%ngHk%NnYqgx7gJsWf{S}zC6wKfdvLx1$YNZd7~}@r4>II?xF52R+l(|`IdTTZZ$Q3- z<6lJ9qkk9}mKXlf*KLNU8HU_%(SIew9t?Xj?9H%0!@&%1VE6-uV;D|gSi*2B!w1dXH?3AAKrQfM-0a%d^g$g$$bAYUo})i|p~sB_H(D=&1dJ&H`!yS7}YOwpy} zbtw}~u(Pqu984rm*P;yJqjNS;B*>|}SfynHmF|L()2eJwPPy_%ell2g;QIxuMF7Fd zM4+=~BcPRufL7}We=mH6sp^TqH6yBc%?##p70tBr;54s=MUcN}g~G@zIw6bb#9$-3 zj@Q2!g)3>Oj0Fj7ZG;uHX@z2tuDn?QMW)!M)!)KO)Fv|&6`+;_QJdv3)MhydwV8$x z)HAAOewu<^5YM~^G`8iAg^)7SeiaHox=Lmr(#j*uLhvv%X6(@ae^sjEitAKTc-Gs) z*ZamoMXyt8v}%5bm~I2;?h>keNse44)k@UTEJ<1>6pOHO?EcG5flCCm3Jc9WG;g&#{HVN>o^U7y6!o;%R0tcte`$;;p(P!mN5|q^v$cVHsxGWB9-2C8@B3(E<6cGP#*>?atG{e?KeXfAWI^__Ilpc3 z15ty+E)_#Ae(POB@3(Ezzu|NEhSNu~>t*jQe(07z(xP5E|9$WsFO5fBWzVhzdB}bL z17iWBrH4bG7Vj<`UFQD0_5HX0Rh=b!&%|}x|K1A!LyODT$M4R5R`>Cb_G^CKR^HTq p-RJR4^Td;| + +#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 d2102f357b119d8d3cf2c8dda3aa2c157c05e281..19f427cb3dd9300428479273ef6e519a3bc54acc 100644 GIT binary patch delta 66 zcmZoMXfc=|#>B`mu~2NHo+2aj#DLw5%#(STj&7D_e#5e{!HaP-I|n}pP{n3N=I_jt U`9&-_7=VD0fq`jrfXEhR07};n)&Kwi delta 86 zcmZoMXfc=|#>B)qu~2NHo+2a5#DLw4A22d9vP|Y-JUY3ZQEhTEqX;(x5UBnKgUuHi iKeB9Q=iui6>H>1UGf(ChvE*Q6U;rWphRp#YTbKcrg&DvA From 195c1a93e79b42ad773063aa8eb74c14a40531ac Mon Sep 17 00:00:00 2001 From: Spencer Vaughn Date: Sat, 23 Sep 2023 10:19:28 -0500 Subject: [PATCH 2/3] refactor for v2 libpksav --- src/main.c | 297 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 195 insertions(+), 102 deletions(-) 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; } From cb6b9264a72c8ee27f53384439fcbb2dd117af37 Mon Sep 17 00:00:00 2001 From: Spencer Vaughn Date: Sat, 23 Sep 2023 10:35:17 -0500 Subject: [PATCH 3/3] initial build yml --- .github/workflows/build-test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build-test.yml 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