mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-19 19:26:36 +02:00
reworked the general update strategy interface
This commit is contained in:
@ -22,7 +22,7 @@
|
||||
|
||||
namespace MM::Services {
|
||||
|
||||
bool FilesystemService::enable(Engine&) {
|
||||
bool FilesystemService::enable(Engine&, std::vector<UpdateStrategies::TaskInfo>&) {
|
||||
if (PHYSFS_isInit()) {
|
||||
LOG_ERROR("physfs already initialized!!");
|
||||
return false;
|
||||
|
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "mm/services/service.hpp"
|
||||
#include "mm/update_strategies/update_strategy.hpp"
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
|
||||
@ -20,7 +22,7 @@ class FilesystemService : public Service {
|
||||
|
||||
|
||||
public:
|
||||
bool enable(Engine&) override;
|
||||
bool enable(Engine&, std::vector<UpdateStrategies::TaskInfo>&) override;
|
||||
void disable(Engine&) override;
|
||||
|
||||
const char* name(void) override { return "Filesystem"; }
|
||||
|
Reference in New Issue
Block a user