mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-11 00:28:21 +03:00
aet_manager: added get_set
This commit is contained in:
+7
-1
@@ -6,7 +6,6 @@
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "auth_2d.hpp"
|
||||
#include "../KKdLib/aet.hpp"
|
||||
#include "../KKdLib/str_utils.hpp"
|
||||
#include "data.hpp"
|
||||
#include "file_handler.hpp"
|
||||
@@ -393,6 +392,13 @@ uint32_t aet_manager_get_scenes_count(uint32_t set_id, const aet_database* aet_d
|
||||
return aet_manager->GetSetScenesCount(aet_db->get_aet_set_by_id(set_id)->index);
|
||||
}
|
||||
|
||||
::aet_set* aet_manager_get_set(uint32_t set_id, const aet_database* aet_db) {
|
||||
AetSet* set = aet_manager->GetSet(aet_db->get_aet_set_by_id(set_id)->index);
|
||||
if (set)
|
||||
return set->aet_set;
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool aet_manager_get_set_ready(uint32_t set_id, const aet_database* aet_db) {
|
||||
return aet_manager->GetSetReady(aet_db->get_aet_set_by_id(set_id)->index);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user