22 #ifndef NUVIE_FILES_U6LIB_N_H 23 #define NUVIE_FILES_U6LIB_N_H 25 #include "common/str.h" 26 #include "common/stream.h" 55 bool open(
const Common::Path &filename, uint8 size, uint8 type = NUVIE_GAME_U6);
56 bool open(
NuvieIO *new_data, uint8 size, uint8 type = NUVIE_GAME_U6);
58 bool create(
const Common::Path &filename, uint8 size, uint8 type = NUVIE_GAME_U6);
59 uint8 get_game_type() {
63 unsigned char *get_item(uint32 item_number,
unsigned char *buf =
nullptr);
64 void set_item_data(uint32 item_number,
unsigned char *src, uint32 src_len);
66 uint32 get_num_items();
67 uint32 get_item_size(uint32 item_number);
68 uint32 get_item_offset(uint32 item_number);
69 const char *get_item_name(uint32 item_number);
70 bool is_compressed(uint32 item_number);
72 void add_item(uint32 offset32,
const char *name =
nullptr);
73 void write_item(uint32 item_number);
80 void calc_item_offsets();
84 void calculate_item_sizes();
85 uint32 calculate_item_uncomp_size(
U6LibItem *item);
86 uint32 calculate_num_offsets(
bool skip4);
92 uint32 zero_offset_count;
Definition: u6_lib_n.h:33
Definition: detection.h:27
Definition: u6_lib_n.h:42
Definition: nuvie_io.h:32