generated from gdt050579/appcui-template
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dropper] + add dummy integration for Dropper with a multimedia mini …
- Loading branch information
1 parent
2029f47
commit de14263
Showing
3 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma once | ||
|
||
#include "IDrop.hpp" | ||
|
||
namespace GView::GenericPlugins::Droppper::Multimedia | ||
{ | ||
class PNG : public IDrop | ||
{ | ||
private: | ||
public: | ||
PNG() = default; | ||
|
||
virtual const char* GetName() override; | ||
virtual ObjectCategory GetGroup() override; | ||
virtual const char* GetOutputExtension() override; | ||
virtual Priority GetPriority() override; | ||
virtual bool ShouldGroupInOneFile() override; | ||
|
||
virtual Result Check(uint64 offset, DataCache& file, BufferView precachedBuffer, uint64& start, uint64& end) override; | ||
}; | ||
} // namespace GView::GenericPlugins::Droppper::Multimedia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
target_sources(Dropper PRIVATE | ||
Dropper.cpp | ||
SpecialStrings/IpAddress.cpp | ||
Executables/MZPE.cpp) | ||
Executables/MZPE.cpp | ||
Multimedia/PNG.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include "Multimedia.hpp" | ||
|
||
namespace GView::GenericPlugins::Droppper::Multimedia | ||
{ | ||
constexpr uint32 IMAGE_PNG_MAGIC = 0x474E5089; | ||
|
||
const char* PNG::GetName() | ||
{ | ||
return "PNG"; | ||
} | ||
|
||
ObjectCategory PNG::GetGroup() | ||
{ | ||
return ObjectCategory::Multimedia; | ||
} | ||
|
||
const char* PNG::GetOutputExtension() | ||
{ | ||
return "png"; | ||
} | ||
|
||
Priority PNG::GetPriority() | ||
{ | ||
return Priority::Binary; | ||
} | ||
|
||
bool PNG::ShouldGroupInOneFile() | ||
{ | ||
return false; | ||
} | ||
|
||
Result PNG::Check(uint64 offset, DataCache& file, BufferView precachedBuffer, uint64& start, uint64& end) | ||
{ | ||
return Result::NotFound; | ||
} | ||
|
||
} // namespace GView::GenericPlugins::Droppper::Multimedia |