diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-04-28 05:19:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-28 05:19:50 -0400 |
| commit | b9120803e6094a54192ed67d9585ab046101c816 (patch) | |
| tree | df259449343cd0c5230dd2a5e1e9d5293d20c563 /ZAPD/ZRoom/Commands/SetPathways.cpp | |
| parent | 50ad2fe786af4cf66998028a08c767e16a416a60 (diff) | |
Use OutputFormatter for every C and H file, to improve the generated output (#122)
* Small changes in collision
* Use outputformatter to write C files
* Outputformatter for .h files
* Use more fs::path
* Use gfxd_udata_set and gfxd_udata_get instead of an instance
* Fix merge issues and warnings
* run format
Diffstat (limited to 'ZAPD/ZRoom/Commands/SetPathways.cpp')
| -rw-r--r-- | ZAPD/ZRoom/Commands/SetPathways.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ZAPD/ZRoom/Commands/SetPathways.cpp b/ZAPD/ZRoom/Commands/SetPathways.cpp index c51c580..149f4fa 100644 --- a/ZAPD/ZRoom/Commands/SetPathways.cpp +++ b/ZAPD/ZRoom/Commands/SetPathways.cpp @@ -9,7 +9,7 @@ REGISTER_ZFILENODE(Path, ZSetPathways); using namespace std; -ZSetPathways::ZSetPathways(ZFile* nParent) : ZResource(parent) +ZSetPathways::ZSetPathways(ZFile* nParent) : ZResource(nParent) { } @@ -71,7 +71,7 @@ string ZSetPathways::GenerateSourceCodePass2(string roomName, uint32_t baseAddre { string sourceOutput = ""; - sourceOutput += StringHelper::Sprintf("%s 0, (u32)%sPathway0x%06X };", + sourceOutput += StringHelper::Sprintf("\n\t%s 0, (u32)%sPathway0x%06X\n};", ZRoomCommand::GenerateSourceCodePass1("", 0).c_str(), parent->GetName().c_str(), segmentOffset); |
