2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 05:07:43 +00:00

LogVisor report additions; Updated RetroCommon

This commit is contained in:
Jack Andersen
2015-07-05 15:35:08 -10:00
parent cd0b2f0926
commit 14a368553d
13 changed files with 94 additions and 91 deletions

View File

@@ -15,6 +15,7 @@
#include <stdint.h>
#include <Athena/IStreamReader.hpp>
#include <LogVisor/LogVisor.hpp>
#include "HECL.hpp"
@@ -24,6 +25,8 @@ namespace Database
{
class Project;
extern LogVisor::LogModule LogModule;
/**
* @brief Nodegraph class for gathering dependency-resolved objects for packaging
*/
@@ -71,8 +74,8 @@ public:
ProjectPath subpath;
bool cookedonly;
};
virtual bool canExtract(const ExtractPassInfo& info, SystemString& reasonNo)
{(void)info;reasonNo=_S("not implemented");return false;}
virtual bool canExtract(const ExtractPassInfo& info)
{(void)info;LogModule.report(LogVisor::Error, "not implemented");return false;}
virtual void doExtract(const Project& project, const ExtractPassInfo& info)
{(void)project;(void)info;}
@@ -234,7 +237,6 @@ public:
private:
ProjectRootPath m_rootPath;
CompiledSpecs m_compiledSpecs;
FLogger m_logger;
public:
Project(const HECL::ProjectRootPath& rootPath);
@@ -286,14 +288,6 @@ public:
C_HEAVY
};
/**
* @brief Register an optional callback to report log-messages using
* @param logger logger-callback
*
* If this method is never called, all project operations will run silently.
*/
void registerLogger(HECL::FLogger logger);
/**
* @brief Get the path of the project's root-directory
* @param absolute return as absolute-path