-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TgBot++: android_builder: Further fixup
- ForkAndRun provides a shmem interface for interaction with forked process - ROMBuildTask splitted to cpp
- Loading branch information
Showing
10 changed files
with
409 additions
and
225 deletions.
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
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
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
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,14 +1,22 @@ | ||
#pragma once | ||
|
||
#include <ConfigParsers.hpp> | ||
#include <absl/log/check.h> | ||
|
||
struct PerBuildData { | ||
enum class Result { SUCCESS, ERROR_NONFATAL, ERROR_FATAL }; | ||
BuildConfig bConfig; | ||
RomConfig rConfig; | ||
std::filesystem::path scriptDirectory; | ||
struct ResultData { | ||
Result value; | ||
std::string msg; | ||
Result value{}; | ||
std::array<char, 250> msg{}; | ||
void setMessage(const std::string& message) { | ||
CHECK(message.size() < msg.size()); | ||
std::strncpy(msg.data(), message.c_str(), msg.size() - 1); | ||
} | ||
[[nodiscard]] std::string getMessage() const noexcept { | ||
return msg.data(); | ||
} | ||
} *result; | ||
}; |
Oops, something went wrong.