22 #ifndef NUVIE_FILES_U6LIB_N_H 23 #define NUVIE_FILES_U6LIB_N_H 25 #include "ultima/shared/std/containers.h" 26 #include "ultima/shared/std/string.h" 27 #include "common/stream.h" 59 bool open(
const Common::Path &filename, uint8 size, uint8 type = NUVIE_GAME_U6);
60 bool open(
NuvieIO *new_data, uint8 size, uint8 type = NUVIE_GAME_U6);
62 bool create(
const Common::Path &filename, uint8 size, uint8 type = NUVIE_GAME_U6);
63 uint8 get_game_type() {
67 unsigned char *get_item(uint32 item_number,
unsigned char *buf =
nullptr);
68 void set_item_data(uint32 item_number,
unsigned char *src, uint32 src_len);
70 uint32 get_num_items();
71 uint32 get_item_size(uint32 item_number);
72 uint32 get_item_offset(uint32 item_number);
73 const char *get_item_name(uint32 item_number);
74 bool is_compressed(uint32 item_number);
76 void add_item(uint32 offset32,
const char *name =
nullptr);
77 void write_item(uint32 item_number);
84 void calc_item_offsets();
88 void calculate_item_sizes();
89 uint32 calculate_item_uncomp_size(
U6LibItem *item);
90 uint32 calculate_num_offsets(
bool skip4);
96 uint32 zero_offset_count;
Definition: u6_lib_n.h:37
Definition: detection.h:27
Definition: u6_lib_n.h:46
Definition: nuvie_io.h:32