Skip to content

Commit dac4a1c

Browse files
fix(toolpp): in FGDWriter return bool from bake on successful file write
1 parent d737c22 commit dac4a1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/toolpp/FGD.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class FGDWriter {
191191

192192
[[nodiscard]] std::string bake();
193193

194-
void bake(const std::string& fgdPath);
194+
bool bake(const std::string& fgdPath);
195195

196196
protected:
197197
FGDWriter();

src/toolpp/FGD.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,6 @@ std::string FGDWriter::bake() {
837837
return this->backingData;
838838
}
839839

840-
void FGDWriter::bake(const std::string& fgdPath) {
841-
fs::writeFileText(fgdPath, this->bake());
840+
bool FGDWriter::bake(const std::string& fgdPath) {
841+
return fs::writeFileText(fgdPath, this->bake());
842842
}

0 commit comments

Comments
 (0)