23 #ifndef QDENGINE_QDCORE_QD_FILE_MANAGER_H 24 #define QDENGINE_QDCORE_QD_FILE_MANAGER_H 26 #include "qdengine/qdcore/qd_file_owner.h" 39 const char *file_name()
const;
41 void set_drive_ID(
int drive_id) {
43 void set_container_index(
int idx) {
44 _container_index = idx;
48 return _container !=
nullptr;
55 bool check_container();
68 bool init(
int cd_count);
71 void enable_packages() {}
75 int last_CD_id()
const {
78 void set_last_CD_id(
int cd_id) {
81 int CD_count()
const {
84 bool is_CD_available(
int cd_id)
const {
87 bool is_package_available(
int idx) {
88 assert(idx >= 0 && idx < _packageCount);
89 return _packages[idx].is_open();
91 bool is_package_available(
const qdFileOwner &file_owner);
92 int get_num_packages() {
return _packageCount; }
95 if (!_packages[idx].is_open())
96 _packages[idx].open();
98 return _packages[idx]._container;
101 bool scan_drives(
const qdFileOwner *file_owner = NULL) {
return true; }
102 bool scan_drives(
int cd_id) {
return true; }
103 void update_packages() {}
105 void toggle_silent_update_mode(
bool mode) {
108 bool check_drives(
const char *cdkey = NULL) {
return true; }
109 bool check_drive(
int drive_letter) {
return true; }
119 int _packageCount = 0;
124 #endif // QDENGINE_QDCORE_QD_FILE_MANAGER_H Definition: qd_file_owner.h:27
Менеджер файлов.
Definition: qd_file_manager.h:64
Definition: qd_file_manager.h:34
Definition: archive.h:141
Базовый класс для игровых ресурсов.
Definition: console.h:28
Definition: algorithm.h:29