mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-23 13:17:53 -05:00
refactor: image and obj data loading
This commit is contained in:
@ -9,9 +9,9 @@ namespace
|
||||
{
|
||||
std::unique_ptr<GenericGraph2D> LoadAccuracyGraph(const IAssetLoadingManager* manager, const std::string& graphName, const std::string& subFolder)
|
||||
{
|
||||
auto* searchPath = manager->GetAssetLoadingContext()->m_raw_search_path;
|
||||
auto& searchPath = manager->GetAssetLoadingContext()->m_raw_search_path;
|
||||
const auto fileName = std::format("accuracy/{}/{}", subFolder, graphName);
|
||||
const auto file = searchPath->Open(fileName);
|
||||
const auto file = searchPath.Open(fileName);
|
||||
if (!file.IsOpen())
|
||||
{
|
||||
std::cerr << std::format("Failed to open file for accuracy graph: {}/{}\n", subFolder, graphName);
|
||||
|
Reference in New Issue
Block a user