2018-10-06 20:39:24 -07:00
|
|
|
#pragma once
|
2015-06-26 12:30:03 -07:00
|
|
|
|
2015-09-27 18:55:59 -07:00
|
|
|
#include <functional>
|
2019-08-30 00:52:22 -07:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "nod/Util.hpp"
|
2015-06-26 12:30:03 -07:00
|
|
|
|
2018-12-07 21:21:47 -08:00
|
|
|
namespace nod {
|
2015-06-26 12:30:03 -07:00
|
|
|
|
2015-06-27 22:43:53 -07:00
|
|
|
class DiscBase;
|
|
|
|
|
2018-12-07 21:21:47 -08:00
|
|
|
struct ExtractionContext final {
|
|
|
|
bool force : 1;
|
2021-06-22 12:16:56 -07:00
|
|
|
std::function<void(std::string_view, float)> progressCB;
|
2015-09-27 18:55:59 -07:00
|
|
|
};
|
|
|
|
|
2021-06-22 12:16:56 -07:00
|
|
|
std::unique_ptr<DiscBase> OpenDiscFromImage(std::string_view path);
|
|
|
|
std::unique_ptr<DiscBase> OpenDiscFromImage(std::string_view path, bool& isWii);
|
2015-06-26 12:30:03 -07:00
|
|
|
|
2018-12-07 21:21:47 -08:00
|
|
|
} // namespace nod
|