File size + credits

This commit is contained in:
furrtek 2017-04-07 00:41:32 +01:00
parent f6b02c31b5
commit 5ce1b8fa60
2 changed files with 6 additions and 1 deletions

View File

@ -97,6 +97,10 @@ File::Result<File::Offset> File::seek(const Offset new_position) {
return { static_cast<File::Offset>(old_position) };
}
File::Size File::size() {
return { static_cast<File::Size>(f_size(&f)) };
}
Optional<File::Error> File::write_line(const std::string& s) {
const auto result_s = write(s.c_str(), s.size());
if( result_s.is_error() ) {

View File

@ -86,7 +86,7 @@ private:
flags flag;
} credits_t;
const credits_t credits[13] = { {"Portapack|HAVOC", "Git hash " GIT_REVISION, SECTION},
const credits_t credits[14] = { {"Portapack|HAVOC", "Git hash " GIT_REVISION, SECTION},
{"Gurus", "J. Boone", TITLE},
{"M. Ossmann", "", MEMBER_LF},
{"Immaturity", "Furrtek", TITLE_LF},
@ -96,6 +96,7 @@ private:
{"Xy. infos", "cLx", TITLE_LF},
{"Thanks", "", SECTION},
{"Rainer Matla", "Keld Norman", TITLE},
{"Giorgio Campiotti", "DC1RDB", TITLE},
{"Sigmounte", "Waax", TITLE},
{"Windyoona", "Channels", TITLE_LF},
{"", "MMXVII", END}