Skip to content

Commit

Permalink
Merge pull request #28 from YuzukiTsuru/master
Browse files Browse the repository at this point in the history
Sync with master
  • Loading branch information
YuzukiTsuru committed Aug 2, 2022
2 parents f4008df + 9f4c78e commit 028dffa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -54,7 +54,7 @@ yay -S openixcard

```
# Download the source code
git clone --recursive https://github.com/YuzukiTsuru/OpenixCard
git clone --recursive --depth 1 https://github.com/YuzukiTsuru/OpenixCard
# Download the depends
sudo apt install cmake build-essential automake autoconf libconfuse-dev pkg-config aclocal
Expand Down
11 changes: 10 additions & 1 deletion src/OpenixCard/FEX2CFG.cpp
Expand Up @@ -78,7 +78,14 @@ void FEX2CFG::open_file(const std::string &file_path) {
void FEX2CFG::classify_fex() {
int occ = 0;
std::string::size_type pos = 0;
std::string _temp = awImgFex;
std::string _temp = {};
std::string _temp_str = {};

while (std::getline(awImgFex, _temp_str)){
if (_temp_str.substr(0, 1) != ";"){
_temp.insert(0, _temp_str);
}
}

_temp = _temp.substr(_temp.find("[partition_start]"));

Expand All @@ -93,6 +100,8 @@ void FEX2CFG::classify_fex() {
_less_out = _less_out.substr(0, _less_out.rfind("[partition]"));
awImgFexClassed.insert(0, "[partition" + std::to_string(occ - i) + "]" + _section);
}

LOG::DATA(awImgFexClassed);
}

void FEX2CFG::parse_fex() {
Expand Down
3 changes: 2 additions & 1 deletion src/main.cpp
Expand Up @@ -18,6 +18,7 @@ int main(int argc, char *argv[]) {
OpenixCard openixCard(argc, argv);
} catch (const std::runtime_error& error) {
LOG::ERROR(error.what());
return -1;
}
return 0;
}
}

0 comments on commit 028dffa

Please sign in to comment.