yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
common.cc File Reference
#include "common.h"
#include <zlib.h>
#include <cstdint>
#include <cstring>
#include <fstream>
#include <memory>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
#include "absl/status/statusor.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "app/core/constants.h"
#include "app/gui/icons.h"
#include "imgui/imgui.h"
#include "imgui/misc/cpp/imgui_stdlib.h"
Include dependency graph for common.cc:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::app
 Main namespace for the ImGui application.
 
namespace  yaze::app::core
 Core application logic and utilities.
 
namespace  yaze::app::core::anonymous_namespace{common.cc}
 

Functions

void yaze::app::core::anonymous_namespace{common.cc}::encode (uint64_t data, std::vector< uint8_t > &output)
 
uint64_t yaze::app::core::anonymous_namespace{common.cc}::decode (const std::vector< uint8_t > &input, size_t &offset)
 
uint32_t yaze::app::core::anonymous_namespace{common.cc}::crc32 (const std::vector< uint8_t > &data)
 
unsigned yaze::app::core::anonymous_namespace{common.cc}::ldle (uint8_t const *const p_arr, unsigned const p_index)
 
void yaze::app::core::anonymous_namespace{common.cc}::stle (uint8_t *const p_arr, size_t const p_index, unsigned const p_val)
 
void yaze::app::core::anonymous_namespace{common.cc}::stle0 (uint8_t *const p_arr, unsigned const p_val)
 
void yaze::app::core::anonymous_namespace{common.cc}::stle1 (uint8_t *const p_arr, unsigned const p_val)
 
void yaze::app::core::anonymous_namespace{common.cc}::stle2 (uint8_t *const p_arr, unsigned const p_val)
 
void yaze::app::core::anonymous_namespace{common.cc}::stle3 (uint8_t *const p_arr, unsigned const p_val)
 
uint32_t yaze::app::core::anonymous_namespace{common.cc}::ldle0 (uint8_t const *const p_arr)
 
uint32_t yaze::app::core::anonymous_namespace{common.cc}::ldle1 (uint8_t const *const p_arr)
 
uint32_t yaze::app::core::anonymous_namespace{common.cc}::ldle2 (uint8_t const *const p_arr)
 
uint32_t yaze::app::core::anonymous_namespace{common.cc}::ldle3 (uint8_t const *const p_arr)
 
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::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 (uint8_t const *const p_arr)
 
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.
 
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)