Files
jsix_import/src/tools/makerd/entry.cpp
Justin C. Miller e7a509176d Move makerd to TOML-based manifest
Added the cpptoml library (and license), and moved to using that for
the initrd manifest. It's now possible to specify the `executable`
flag for files, and the kernel correctly only launches new processes
for the initrd files marked `executable`.
2018-09-08 12:54:35 -07:00

14 lines
266 B
C++

#include "entry.h"
entry::entry(const std::string &in, const std::string &out, bool executable) :
m_in(in),
m_out(out),
m_file(in, std::ios_base::binary),
m_exec(executable)
{
m_file.seekg(0, std::ios_base::end);
m_size = m_file.tellg();
m_file.seekg(0);
}