22 #ifndef NUVIE_FILES_U6LIB_N_H 23 #define NUVIE_FILES_U6LIB_N_H 25 #include "ultima/shared/std/containers.h" 26 #include "common/str.h" 27 #include "common/stream.h" 56 bool open(
const Common::Path &filename, uint8 size, uint8 type = NUVIE_GAME_U6);
57 bool open(
NuvieIO *new_data, uint8 size, uint8 type = NUVIE_GAME_U6);
59 bool create(
const Common::Path &filename, uint8 size, uint8 type = NUVIE_GAME_U6);
60 uint8 get_game_type() {
64 unsigned char *get_item(uint32 item_number,
unsigned char *buf =
nullptr);
65 void set_item_data(uint32 item_number,
unsigned char *src, uint32 src_len);
67 uint32 get_num_items();
68 uint32 get_item_size(uint32 item_number);
69 uint32 get_item_offset(uint32 item_number);
70 const char *get_item_name(uint32 item_number);
71 bool is_compressed(uint32 item_number);
73 void add_item(uint32 offset32,
const char *name =
nullptr);
74 void write_item(uint32 item_number);
81 void calc_item_offsets();
85 void calculate_item_sizes();
86 uint32 calculate_item_uncomp_size(
U6LibItem *item);
87 uint32 calculate_num_offsets(
bool skip4);
93 uint32 zero_offset_count;
Definition: u6_lib_n.h:34
Definition: detection.h:27
Definition: u6_lib_n.h:43
Definition: nuvie_io.h:32