mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-19 11:17:57 -05:00
Unlinker/ObjLoading: Add skeleton for dynamically loading search paths based on current zone
This commit is contained in:
@ -0,0 +1,32 @@
|
||||
#include "IWD.h"
|
||||
|
||||
IWD::IWD(std::string path)
|
||||
{
|
||||
m_path = std::move(path);
|
||||
}
|
||||
|
||||
FileAPI::IFile* IWD::Open(const std::string& fileName)
|
||||
{
|
||||
// TODO
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void IWD::FindAll(std::function<void(const std::string&)> callback)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void IWD::FindAllOnDisk(std::function<void(const std::string&)> callback)
|
||||
{
|
||||
// Files inside an IWD are not on the disk's file system directly. Therefore do nothing here.
|
||||
}
|
||||
|
||||
void IWD::FindByExtension(const std::string& extension, std::function<void(const std::string&)> callback)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
void IWD::FindOnDiskByExtension(const std::string& extension, std::function<void(const std::string&)> callback)
|
||||
{
|
||||
// Files inside an IWD are not on the disk's file system directly. Therefore do nothing here.
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "SearchPath/ISearchPath.h"
|
||||
|
||||
class IWD final : public ISearchPath
|
||||
{
|
||||
std::string m_path;
|
||||
|
||||
public:
|
||||
explicit IWD(std::string path);
|
||||
|
||||
FileAPI::IFile* Open(const std::string& fileName) override;
|
||||
void FindAll(std::function<void(const std::string&)> callback) override;
|
||||
void FindAllOnDisk(std::function<void(const std::string&)> callback) override;
|
||||
void FindByExtension(const std::string& extension, std::function<void(const std::string&)> callback) override;
|
||||
void FindOnDiskByExtension(const std::string& extension, std::function<void(const std::string&)> callback) override;
|
||||
};
|
Reference in New Issue
Block a user