yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
common.h File Reference
#include <cstdint>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include "absl/status/statusor.h"
#include "absl/strings/str_format.h"
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  yaze::app::core::ExperimentFlags
 A class to manage experimental feature flags. More...
 
struct  yaze::app::core::ExperimentFlags::Flags
 
struct  yaze::app::core::ExperimentFlags::Flags::Overworld
 
class  yaze::app::core::NotifyValue< T >
 A class to manage a value that can be modified and notify when it changes. More...
 
class  yaze::app::core::Logger
 
struct  yaze::app::core::FolderItem
 

Namespaces

namespace  yaze
 
namespace  yaze::app
 Main namespace for the ImGui application.
 
namespace  yaze::app::core
 Core application logic and utilities.
 

Typedefs

typedef struct FolderItem yaze::app::core::FolderItem
 

Functions

std::string yaze::app::core::UppercaseHexByte (uint8_t byte, bool leading)
 
std::string yaze::app::core::UppercaseHexWord (uint16_t word, bool leading)
 
std::string yaze::app::core::UppercaseHexLong (uint32_t dword)
 
std::string yaze::app::core::UppercaseHexLongLong (uint64_t qword)
 
bool yaze::app::core::StringReplace (std::string &str, const std::string &from, const std::string &to)
 
uint32_t yaze::app::core::SnesToPc (uint32_t addr) noexcept
 
uint32_t yaze::app::core::PcToSnes (uint32_t addr)
 
int yaze::app::core::AddressFromBytes (uint8_t bank, uint8_t high, uint8_t low) noexcept
 
uint32_t yaze::app::core::MapBankToWordAddress (uint8_t bank, uint16_t addr) noexcept
 
uint32_t yaze::app::core::Get24LocalFromPC (uint8_t *data, int addr, bool pc)
 
void yaze::app::core::stle16b_i (uint8_t *const p_arr, size_t const p_index, uint16_t const p_val)
 Store little endian 16-bit value using a byte pointer, offset by an index before dereferencing.
 
void yaze::app::core::stle16b (uint8_t *const p_arr, uint16_t const p_val)
 
uint16_t yaze::app::core::ldle16b_i (uint8_t const *const p_arr, size_t const p_index)
 Load little endian halfword (16-bit) dereferenced from an arrays of bytes. This version provides an index that will be multiplied by 2 and added to the base address.
 
uint16_t yaze::app::core::ldle16b (uint8_t const *const p_arr)
 
void yaze::app::core::CreateBpsPatch (const std::vector< uint8_t > &source, const std::vector< uint8_t > &target, std::vector< uint8_t > &patch)
 
void yaze::app::core::ApplyBpsPatch (const std::vector< uint8_t > &source, const std::vector< uint8_t > &patch, std::vector< uint8_t > &target)
 
absl::StatusOr< std::string > yaze::app::core::CheckVersion (const char *version)
 

Variables

constexpr std::string_view yaze::app::core::kYazeVersion = "0.2.1"
 
constexpr uint32_t yaze::app::core::kFastRomRegion = 0x808000