mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-04 02:01:51 +00:00
refactor: image and obj data loading
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "SearchPaths.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <filesystem>
|
||||
|
||||
SearchPathOpenFile SearchPaths::Open(const std::string& fileName)
|
||||
@ -38,11 +39,13 @@ void SearchPaths::CommitSearchPath(std::unique_ptr<ISearchPath> searchPath)
|
||||
|
||||
void SearchPaths::IncludeSearchPath(ISearchPath* searchPath)
|
||||
{
|
||||
assert(searchPath);
|
||||
m_search_paths.push_back(searchPath);
|
||||
}
|
||||
|
||||
void SearchPaths::RemoveSearchPath(ISearchPath* searchPath)
|
||||
void SearchPaths::RemoveSearchPath(const ISearchPath* searchPath)
|
||||
{
|
||||
assert(searchPath);
|
||||
for (auto i = m_search_paths.begin(); i != m_search_paths.end(); ++i)
|
||||
{
|
||||
if (*i == searchPath)
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
* \brief Removes a search path from the \c SearchPaths object. If the search path was committed then it will \b NOT be deleted when destructing the \c
|
||||
* SearchPaths object. \param searchPath The search path to remove.
|
||||
*/
|
||||
void RemoveSearchPath(ISearchPath* searchPath);
|
||||
void RemoveSearchPath(const ISearchPath* searchPath);
|
||||
|
||||
iterator begin();
|
||||
iterator end();
|
||||
|
Reference in New Issue
Block a user