mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-01 15:26:01 +00:00
3d9db8d34d
* decompress baserom * cleanup * specific hash check * rename baserom * git subrepo clone (merge) --branch=5da3132606e4fd427a8d72b8428e4f921cd6e56f git@github.com:z64tools/z64compress.git tools/z64compress subrepo: subdir: "tools/z64compress" merged: "5da313260" upstream: origin: "git@github.com:z64tools/z64compress.git" branch: "5da3132606e4fd427a8d72b8428e4f921cd6e56f" commit: "5da313260" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * setup compression * Add all compressed segments to the spec * Update md5 files * readme instructions * cleanup * Setup python dependencies on Jenkinsfile * Update Makefile Co-authored-by: cadmic <cadmic24@gmail.com> * review * . .venv/bin/activate * update readme * whoops * Yeet other versions from decompress_baserom.py * my bad * Move everything to baseroms/VERSION/ * Active venv on each command * jenkinsfile: use multiline syntax * Put the correct path on the jenkinsfile * Forgot to call per_version_fixes * CC0 * Update readme * Change where baserom segments are put into * Update Makefile Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Update crunch64 * Label compressed instead of uncompressed * Update README.md Co-authored-by: fig02 <fig02srl@gmail.com> * Fix * `make rom` * baserom-uncompressed * Update README.md Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Update README.md Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Update README.md Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Update README.md Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Update README.md Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * review * baserom-decompressed.z64 * ignore baseroms * rm -rf tools/z64compress * wip crunch64-based compress.py * OK compress * use ipl3checksum sum directly for cic update on compressed rom * multithreading * "docs" * fix MT: move set_sigint_ignored to global level for pickling * license compress.py * rm junk * Fix (or at least sort out) compress_ranges.txt dependencies * Update tools/overlayhelpers/damage_table.py Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> --------- Co-authored-by: cadmic <cadmic24@gmail.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> Co-authored-by: fig02 <fig02srl@gmail.com>
63 lines
1.2 KiB
C
63 lines
1.2 KiB
C
#ifndef SPEC_H
|
|
#define SPEC_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef enum {
|
|
STMT_address,
|
|
STMT_after,
|
|
STMT_align,
|
|
STMT_beginseg,
|
|
STMT_compress,
|
|
STMT_endseg,
|
|
STMT_entry,
|
|
STMT_flags,
|
|
STMT_include,
|
|
STMT_include_data_with_rodata,
|
|
STMT_name,
|
|
STMT_number,
|
|
STMT_romalign,
|
|
STMT_stack,
|
|
STMT_increment,
|
|
STMT_pad_text,
|
|
} STMTId;
|
|
|
|
enum {
|
|
FLAG_BOOT = (1 << 0),
|
|
FLAG_OBJECT = (1 << 1),
|
|
FLAG_RAW = (1 << 2),
|
|
};
|
|
|
|
struct Include {
|
|
char* fpath;
|
|
int linkerPadding;
|
|
uint8_t dataWithRodata;
|
|
};
|
|
|
|
typedef struct Segment {
|
|
uint32_t fields;
|
|
char* name;
|
|
char* after;
|
|
uint32_t flags;
|
|
uint32_t address;
|
|
uint32_t stack;
|
|
uint32_t align;
|
|
uint32_t romalign;
|
|
uint32_t increment;
|
|
uint32_t entry;
|
|
uint32_t number;
|
|
struct Include* includes;
|
|
int includesCount;
|
|
bool compress;
|
|
} Segment;
|
|
|
|
void parse_rom_spec(char* spec, struct Segment** segments, int* segment_count);
|
|
|
|
bool get_single_segment_by_name(struct Segment* dstSegment, char *spec, const char *segmentName);
|
|
|
|
void free_single_segment_elements(struct Segment *segment);
|
|
|
|
void free_rom_spec(struct Segment* segments, int segment_count);
|
|
|
|
#endif
|