mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-06 05:38:02 +03:00
Renamed path to dir where appropriate
This commit is contained in:
@@ -216,19 +216,18 @@ void sprite_database_file::write(void** data, size_t* size) {
|
||||
s.copy(data, size);
|
||||
}
|
||||
|
||||
bool sprite_database_file::load_file(void* data, const char* path, const char* file, uint32_t hash) {
|
||||
bool sprite_database_file::load_file(void* data, const char* dir, const char* file, uint32_t hash) {
|
||||
size_t file_len = utf8_length(file);
|
||||
|
||||
const char* t = strrchr(file, '.');
|
||||
if (t)
|
||||
file_len = t - file;
|
||||
|
||||
std::string s;
|
||||
s.assign(path);
|
||||
s.append(file, file_len);
|
||||
std::string path(dir);
|
||||
path.append(file, file_len);
|
||||
|
||||
sprite_database_file* spr_db = (sprite_database_file*)data;
|
||||
spr_db->read(s.c_str(), spr_db->modern);
|
||||
spr_db->read(path.c_str(), spr_db->modern);
|
||||
|
||||
return spr_db->ready;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user