ultimatepp/uppdev/brc/ship/ship.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

14 lines
275 B
C++

#include <Core/Core.h>
#include <plugin/bz2/bz2.h>
using namespace Upp;
#include "ship.brc"
CONSOLE_APP_MAIN
{
puts("Unpacking BRC.exe...");
MemReadStream in(BRC, BRC_length);
if(!SaveFile("BRC.exe", BZ2Decompress(in)))
puts("Error unpacking file!");
}