mirror of
https://github.com/projectPiki/pikmin2.git
synced 2025-02-13 18:19:40 +00:00
Add newlines to files
This commit is contained in:
parent
798210c5f5
commit
e6938f6330
@ -18,8 +18,21 @@ def format_folders(folder_to_iter):
|
||||
for name in files:
|
||||
if name.lower().endswith(".h") or name.lower().endswith(".cpp"):
|
||||
relative_path = os.path.join(dirpath, name)
|
||||
print(relative_path)
|
||||
launch_no_console("clang-format.exe", [relative_path, "-style=file", "-i"])
|
||||
print(relative_path, end="\t")
|
||||
launch_no_console("clang-format.exe", [relative_path, "-style=file", "-i"])
|
||||
|
||||
if os.stat(relative_path).st_size < 1:
|
||||
print("")
|
||||
continue
|
||||
|
||||
with open(relative_path, "r+") as f:
|
||||
f.seek(0, 2)
|
||||
f.seek(f.tell() - 1, 0)
|
||||
if f.read() != '\n':
|
||||
f.write("\n");
|
||||
print("added newline", end="")
|
||||
|
||||
print("")
|
||||
|
||||
if __name__ == "__main__":
|
||||
if os.path.exists("clang-format.exe"):
|
||||
|
@ -8,4 +8,4 @@ struct AppThread : public JKRThread {
|
||||
virtual ~AppThread();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -32,4 +32,4 @@ struct BitFlags {
|
||||
bool isFlag(u16);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -38,4 +38,4 @@ struct Camera {
|
||||
void updateSoundCamera(float);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -8,4 +8,4 @@ struct Controller : public JUTGamePad {
|
||||
virtual ~Controller();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -21,4 +21,4 @@ void GXSetTevSwapModeTable(int, uint, uint, uint, uint);
|
||||
};
|
||||
#endif // ifdef __cplusplus
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -35,4 +35,4 @@ BOOL OSSendMessage(OSMessageQueue* queue, OSMessage message, int flags);
|
||||
};
|
||||
#endif // ifdef __cplusplus
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -6,4 +6,4 @@
|
||||
void srand(u32);
|
||||
s16 rand(void);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -32,4 +32,4 @@ int vsnprintf(char*, size_t, const char*, va_list);
|
||||
};
|
||||
#endif // ifdef __cplusplus
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -15,4 +15,4 @@ int strcmp(char*, char*);
|
||||
};
|
||||
#endif // ifdef __cplusplus
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -26,4 +26,4 @@ struct AABBWaterBox {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -5,4 +5,4 @@ struct AILOD {
|
||||
AILOD();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -5,4 +5,4 @@ struct AILODParm {
|
||||
AILODParm();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -174,4 +174,4 @@ struct Armor {
|
||||
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -160,4 +160,4 @@ struct BaseGameSection {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -9,4 +9,4 @@ struct BaseItem {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -15,4 +15,4 @@ struct Creature {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -9,4 +9,4 @@ struct EnemyBase {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -15,4 +15,4 @@ extern GameSystem* gameSystem;
|
||||
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -35,4 +35,4 @@ namespace MemoryCard {
|
||||
} // namespace MemoryCard
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -25,4 +25,4 @@ namespace MemoryCard {
|
||||
} // namespace MemoryCard
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -32,4 +32,4 @@ namespace MemoryCard {
|
||||
} // namespace MemoryCard
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -21,4 +21,4 @@ namespace MemoryCard {
|
||||
} // namespace MemoryCard
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -135,4 +135,4 @@ struct Navi {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -9,4 +9,4 @@ struct Onyon {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -9,4 +9,4 @@ struct Pellet {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -9,4 +9,4 @@ struct Piki {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -446,4 +446,4 @@ struct PikiAI {
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -19,4 +19,4 @@ struct TSoundEvent {
|
||||
};
|
||||
} // namespace Game
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -5,4 +5,4 @@ struct GameFlow {
|
||||
static void createSection(struct JKRHeap*);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -5,4 +5,4 @@
|
||||
struct Graphics {
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -27,4 +27,4 @@ struct J3DAnmBase { /* PlaceHolder Class Structure */
|
||||
virtual J3DAnmKind getKind();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -6,4 +6,4 @@ struct JADHioNode {
|
||||
virtual ~JADHioNode();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -5,4 +5,4 @@ struct JFWSystem {
|
||||
static u32* mainThread;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -13,4 +13,4 @@ struct JKRArchive {
|
||||
JKRArchive::EMountDirection);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -17,4 +17,4 @@ struct JKRDecomp {
|
||||
void sendCommand(struct JKRDecompCommand*);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -8,4 +8,4 @@ struct JKRDisposer {
|
||||
virtual ~JKRDisposer();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -10,4 +10,4 @@ struct JKRHeap {
|
||||
|
||||
void* operator new(size_t, JKRHeap*, int);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -10,4 +10,4 @@ struct JKRThread {
|
||||
virtual void run();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -12,4 +12,4 @@ extern const TAtanTable<1024, float> atanTable_;
|
||||
|
||||
} // namespace JMath
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -26,4 +26,4 @@ struct JMessage {
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -19,4 +19,4 @@ struct JUTException {
|
||||
#define P2ASSERT_BROKEN(cond) JUT_ASSERT(cond, nullptr)
|
||||
#define P2ASSERT(cond) JUT_ASSERT(cond, "P2Assert")
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -4,4 +4,4 @@
|
||||
struct JUTFont {
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -15,4 +15,4 @@ struct JUTGamePad {
|
||||
virtual ~JUTGamePad();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -27,4 +27,4 @@ struct SimpleMessage {
|
||||
|
||||
} // namespace P2JME
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -20,4 +20,4 @@ struct TRenderingProcessor : public JMessage::TRenderingProcessor {
|
||||
};
|
||||
} // namespace P2JME
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -10,4 +10,4 @@ public:
|
||||
};
|
||||
} // namespace PSGame
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -17,4 +17,4 @@ struct BankMgr {
|
||||
};
|
||||
} // namespace PSSystem
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -25,4 +25,4 @@ struct DirectorBase {
|
||||
};
|
||||
} // namespace PSSystem
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -25,4 +25,4 @@ struct Scene {
|
||||
};
|
||||
} // namespace PSSystem
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -34,4 +34,4 @@ struct Radar {
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -8,4 +8,4 @@ template <typename T> struct Rect {
|
||||
typedef Rect<int> Recti;
|
||||
typedef Rect<float> Rectf;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -38,4 +38,4 @@ struct Resource {
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -23,4 +23,4 @@ struct RootMenuSection : public MenuSection {
|
||||
virtual void setChildSection(JKRHeap*);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -33,4 +33,4 @@ struct Section : public ISection {
|
||||
virtual void isFinishable();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -15,4 +15,4 @@ struct Cylinder {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -17,4 +17,4 @@ struct DrawBuffer {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -14,4 +14,4 @@ struct DrawBuffers {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -28,4 +28,4 @@ struct GridDivider {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -10,4 +10,4 @@ struct IndexList {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -8,4 +8,4 @@ struct MatBaseAnimation {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -15,4 +15,4 @@ struct MatBaseAnimator {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -9,4 +9,4 @@ struct MatLoopAnimator {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -8,4 +8,4 @@ struct MatRepeatAnimator {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -12,4 +12,4 @@ struct MatTevRegAnimation {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -12,4 +12,4 @@ struct MatTexAnimation {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -48,4 +48,4 @@ struct OBB {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -34,4 +34,4 @@ struct OBBTree {
|
||||
};
|
||||
} // namespace Sys
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -17,4 +17,4 @@ struct AnimInfo {
|
||||
};
|
||||
} // namespace SysShape
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -26,4 +26,4 @@ struct Animator : public BaseAnimator {
|
||||
|
||||
} // namespace SysShape
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -38,4 +38,4 @@ struct Model {
|
||||
};
|
||||
} // namespace SysShape
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -67,4 +67,4 @@ struct System {
|
||||
u8 _40[0xE0 - 0x40]; // _40
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -5,4 +5,4 @@
|
||||
|
||||
void THPGXRestore(void);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -18,4 +18,4 @@ template <typename T> struct Vector3 {
|
||||
// Use instead of Vector3<float> or Vector3<f32>
|
||||
typedef Vector3<float> Vector3f;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -28,4 +28,4 @@ namespace title {
|
||||
} // namespace title
|
||||
} // namespace ebi
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -31,4 +31,4 @@ private:
|
||||
void updateString(); // done
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -51,4 +51,4 @@ typedef int BOOL;
|
||||
#define nullptr 0
|
||||
#endif // ifndef nullptr
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -2630,4 +2630,4 @@ void JSUConvertOffsetToPtr<J3DAnmTransformKeyTable>(const void*, const void*)
|
||||
add r3, r3, r4
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -928,4 +928,4 @@ void J2DGrafContext::setLookat()
|
||||
.loc_0x0:
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -323,4 +323,4 @@ void J2DResReference::getName(unsigned short) const
|
||||
addi r3, r3, 0x418
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -13047,4 +13047,4 @@ void J2DTevBlock::shiftDeleteFlag(unsigned char, bool)
|
||||
.loc_0x0:
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -2242,4 +2242,4 @@ void JSUConvertOffsetToPtr<J2DMaterialInitData>(const void*, const void*)
|
||||
add r3, r3, r4
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -786,4 +786,4 @@ void J2DGrafContext::place(float, float, float, float)
|
||||
addi r1, r1, 0x20
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -4397,4 +4397,4 @@ void __sinit_J2DPane_cpp(void)
|
||||
stfs f0, 0xC(r3)
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -317,4 +317,4 @@ void J2DPerspGraph::getGrafType() const
|
||||
li r3, 0x2
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -6082,4 +6082,4 @@ void J2DPictureEx::setAnimation(J2DAnmBase*)
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -2441,4 +2441,4 @@ void J2DPrint::getNumberF32(const unsigned char**, float, float, int)
|
||||
addi r1, r1, 0x40
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -2525,4 +2525,4 @@ void J2DScreen::setAnimationVC(J2DAnmVtxColor*)
|
||||
.loc_0x0:
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -642,4 +642,4 @@ void J2DSaverList<J2DAlphaComp>::searchID(J2DAlphaComp&)
|
||||
void J2DSaverList<J2DBlend>::searchID(J2DBlend&)
|
||||
{
|
||||
// UNUSED FUNCTION
|
||||
}
|
||||
}
|
||||
|
@ -1951,4 +1951,4 @@ void J2DTextBox::rewriteAlpha()
|
||||
.loc_0x0:
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -2218,4 +2218,4 @@ void J2DTextBoxEx::setAnimation(J2DAnmBase*)
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -3290,4 +3290,4 @@ void J2DWindow::rewriteAlpha()
|
||||
.loc_0x0:
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -3746,4 +3746,4 @@ void J2DWindowEx::setAnimation(J2DAnmBase*)
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -3897,4 +3897,4 @@ void J3DGetKeyFrameInterpolation<float>(float, J3DAnmKeyTableBase*, float*)
|
||||
fnmsubs f1, f5, f1, f0
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -2788,4 +2788,4 @@ void JSUConvertOffsetToPtr<J3DAnmClusterFullTable>(const void*, const void*)
|
||||
add r3, r3, r4
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -1295,4 +1295,4 @@ void J3DSaverList<J3DNBTScaleInfo>::append(J3DSaverLink<J3DNBTScaleInfo>*)
|
||||
void J3DSaverList<long>::append(J3DSaverLink<long>*)
|
||||
{
|
||||
// UNUSED FUNCTION
|
||||
}
|
||||
}
|
||||
|
@ -1105,4 +1105,4 @@ void J3DDeformer::normalizeWeight(int, float*)
|
||||
blt+ .loc_0x138
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -874,4 +874,4 @@ void __sinit_J3DDrawBuffer_cpp(void)
|
||||
addi r1, r1, 0x50
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -3453,4 +3453,4 @@ void J3DFifoLoadTexCached(_GXTexMapID, unsigned long, _GXTexCacheSize,
|
||||
stw r0, -0x8000(r9)
|
||||
blr
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -1757,4 +1757,4 @@ void J3DMtxCalcAnimation<
|
||||
J3DMtxCalcJ3DSysInitMaya>::calc()
|
||||
{
|
||||
// UNUSED FUNCTION
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user