Integrate vcpkg support for Windows builds and enhance documentation

- Added vcpkg integration in CMake for Windows, enabling automatic dependency management.
- Updated CMakePresets.json to include presets for debug and release builds with vcpkg.
- Created setup scripts for easy vcpkg installation on Windows.
- Enhanced documentation to guide users on vcpkg setup and usage with YAZE.
- Improved logging in Overworld class to track expanded tile flags during map assembly.
This commit is contained in:
scawful
2025-09-27 20:05:00 -04:00
parent 7815f8cc85
commit 5e45c94e59
8 changed files with 344 additions and 4 deletions

View File

@@ -216,7 +216,9 @@ absl::Status Overworld::AssembleMap32Tiles() {
// Check if expanded tile32 data is actually present in ROM
// The flag position should contain 0x04 for vanilla, something else for expanded
uint8_t asm_version = (*rom_)[OverworldCustomASMHasBeenApplied];
if (rom()->data()[kMap32ExpandedFlagPos] != 0x04 || asm_version >= 3) {
uint8_t expanded_flag = rom()->data()[kMap32ExpandedFlagPos];
util::logf("Expanded tile32 flag: %d", expanded_flag);
if (expanded_flag != 0x04 || asm_version >= 3) {
// ROM has expanded tile32 data - use expanded addresses
map32address[0] = rom()->version_constants().kMap32TileTL;
map32address[1] = kMap32TileTRExpanded;
@@ -270,6 +272,8 @@ absl::Status Overworld::AssembleMap16Tiles() {
// Check if expanded tile16 data is actually present in ROM
// The flag position should contain 0x0F for vanilla, something else for expanded
uint8_t asm_version = (*rom_)[OverworldCustomASMHasBeenApplied];
uint8_t expanded_flag = rom()->data()[kMap16ExpandedFlagPos];
util::logf("Expanded tile16 flag: %d", expanded_flag);
if (rom()->data()[kMap16ExpandedFlagPos] == 0x0F || asm_version >= 3) {
// ROM has expanded tile16 data - use expanded addresses
tpos = kMap16TilesExpanded;