16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 19:29:19 +02:00

EU7 scenery format and models streaming

This commit is contained in:
maj00r
2026-06-13 15:43:44 +02:00
parent f07c8fdcd2
commit 876a4c7c18
171 changed files with 27924 additions and 281 deletions

View File

@@ -120,6 +120,15 @@ TModelsManager::GetModel(std::string const &Name, bool const Dynamic, bool const
return model; // NULL jeśli błąd
};
bool
TModelsManager::IsModelCached( std::string const &Name ) {
std::string filename { Name };
erase_extension( filename );
filename = ToLower( filename );
return find_in_databank( filename ).first;
}
std::pair<bool, TModel3d *>
TModelsManager::find_in_databank( std::string const &Name ) {