mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-13 21:15:12 -05:00
29 lines
435 B
C++
29 lines
435 B
C++
|
#include "OTRArchive.h"
|
||
|
|
||
|
void SaveTest()
|
||
|
{
|
||
|
auto archPtr = OtrLib::OTRArchive::CreateArchive("myarch.mpq");
|
||
|
auto arch = archPtr.get();
|
||
|
|
||
|
char data[] = "ABCDEFG!";
|
||
|
|
||
|
arch->AddFile("test.txt", (uintptr_t)data, sizeof(data));
|
||
|
}
|
||
|
|
||
|
void LoadTest()
|
||
|
{
|
||
|
std::shared_ptr<OtrLib::OTRArchive> archPtr(new OtrLib::OTRArchive("myarch.mpq"));
|
||
|
|
||
|
archPtr->LoadFile("(crcfile)");
|
||
|
|
||
|
int bp = 0;
|
||
|
|
||
|
}
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
LoadTest();
|
||
|
//SaveTest();
|
||
|
|
||
|
return 0;
|
||
|
}
|