mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-09-13 05:24:58 -04:00
3a069e621e
* use size_t instead of uint8_t for hint ids * va_arg int instead of s16 warning: second argument to 'va_arg' is of promotable type 's16' (aka 'short'); this va_arg has undefined behavior because arguments will be promoted to 'int' [-Wvarargs] * more issues like #5443
20 lines
706 B
C++
20 lines
706 B
C++
#pragma once
|
|
|
|
#include "Resource.h"
|
|
#include "ResourceFactoryBinary.h"
|
|
#include "ResourceFactoryXML.h"
|
|
|
|
namespace SOH {
|
|
class ResourceFactoryBinaryPathV0 final : public Ship::ResourceFactoryBinary {
|
|
public:
|
|
std::shared_ptr<Ship::IResource> ReadResource(std::shared_ptr<Ship::File> file,
|
|
std::shared_ptr<Ship::ResourceInitData> initData) override;
|
|
};
|
|
|
|
class ResourceFactoryXMLPathV0 final : public Ship::ResourceFactoryXML {
|
|
public:
|
|
std::shared_ptr<Ship::IResource> ReadResource(std::shared_ptr<Ship::File> file,
|
|
std::shared_ptr<Ship::ResourceInitData> initData) override;
|
|
};
|
|
} // namespace SOH
|