diff --git a/arm9/source/animation.h b/arm9/source/animation.h
index 2e708ea..8f478a8 100644
--- a/arm9/source/animation.h
+++ b/arm9/source/animation.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _ANIMATION_H_
-#define _ANIMATION_H_
+#pragma once
#include "ui.h"
@@ -65,5 +64,3 @@ typedef t_singleton animationManager_s;
inline cAnimationManager& animationManager() {
return animationManager_s::instance();
}
-
-#endif //_ANIMATION_H_
diff --git a/arm9/source/bigclock.h b/arm9/source/bigclock.h
index f5deb5e..2c09ef5 100644
--- a/arm9/source/bigclock.h
+++ b/arm9/source/bigclock.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _BIGCLOCK_H_
-#define _BIGCLOCK_H_
+#pragma once
#include "bmp15.h"
#include "datetime.h"
@@ -61,5 +60,3 @@ typedef t_singleton bigClock_s;
inline cBigClock& bigClock() {
return bigClock_s::instance();
}
-
-#endif //_BIGCLOCK_H_
diff --git a/arm9/source/bmp15.h b/arm9/source/bmp15.h
index 788d716..35dbb81 100644
--- a/arm9/source/bmp15.h
+++ b/arm9/source/bmp15.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _BMP15_H_
-#define _BMP15_H_
+#pragma once
#include
#include
@@ -64,5 +63,3 @@ cBMP15 createBMP15FromFile(const std::string& filename);
cBMP15 createBMP15FromMem(void* mem);
// void destroyBMP15( cBMP15 * bmp );
// void destroyBMP15ByFilename( const char * filename );
-
-#endif //_BMP15_H_
diff --git a/arm9/source/calendar.h b/arm9/source/calendar.h
index 4306534..61ab51f 100644
--- a/arm9/source/calendar.h
+++ b/arm9/source/calendar.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _CALENDAR_H_
-#define _CALENDAR_H_
+#pragma once
#include "bmp15.h"
#include "datetime.h"
@@ -68,5 +67,3 @@ typedef t_singleton calendar_s;
inline cCalendar& calendar() {
return calendar_s::instance();
}
-
-#endif //_CALENDAR_H_
diff --git a/arm9/source/calendarwnd.h b/arm9/source/calendarwnd.h
index d5b0216..80b2af3 100644
--- a/arm9/source/calendarwnd.h
+++ b/arm9/source/calendarwnd.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _CALENDARWND_H_
-#define _CALENDARWND_H_
+#pragma once
#include
#include "form.h"
@@ -46,5 +45,3 @@ typedef t_singleton calendarWnd_s;
inline cCalendarWnd& calendarWnd() {
return calendarWnd_s::instance();
}
-
-#endif //_CALENDARWND_H_
diff --git a/arm9/source/cheatwnd.h b/arm9/source/cheatwnd.h
index 101ef01..af8330f 100644
--- a/arm9/source/cheatwnd.h
+++ b/arm9/source/cheatwnd.h
@@ -16,8 +16,7 @@
along with this program. If not, see .
*/
-#ifndef __CHEATWND_H__
-#define __CHEATWND_H__
+#pragma once
#include "button.h"
#include "form.h"
@@ -92,5 +91,3 @@ class cCheatWnd : public akui::cForm {
std::vector _indexes;
std::string _fileName;
};
-
-#endif
diff --git a/arm9/source/datetime.h b/arm9/source/datetime.h
index 66b0ca2..20316e3 100644
--- a/arm9/source/datetime.h
+++ b/arm9/source/datetime.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _DATETIME_H_
-#define _DATETIME_H_
+#pragma once
#include
#include
@@ -57,5 +56,3 @@ typedef t_singleton dateTime_s;
inline cDateTime& datetime() {
return dateTime_s::instance();
}
-
-#endif //_DATETIME_H_
diff --git a/arm9/source/dbgtool.h b/arm9/source/dbgtool.h
index 79aa6cc..ccd317e 100644
--- a/arm9/source/dbgtool.h
+++ b/arm9/source/dbgtool.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _DBG_TOOL_H_
-#define _DBG_TOOL_H_
+#pragma once
#include
#include
@@ -70,5 +69,3 @@ static inline void wait_press_b() {
#else
#define wait_press_b()
#endif // DEBUG
-
-#endif //_DBG_TOOL_H_
diff --git a/arm9/source/diskicon.h b/arm9/source/diskicon.h
index b0dd6b4..ffe9ccd 100644
--- a/arm9/source/diskicon.h
+++ b/arm9/source/diskicon.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _DISKICON_H_
-#define _DISKICON_H_
+#pragma once
#include
#include "singleton.h"
@@ -55,5 +54,3 @@ typedef t_singleton diskIcon_s;
inline cDiskIcon& diskIcon() {
return diskIcon_s::instance();
}
-
-#endif //_DISKIOICON_H_
diff --git a/arm9/source/dsrom.h b/arm9/source/dsrom.h
index d25f98e..a6caf53 100644
--- a/arm9/source/dsrom.h
+++ b/arm9/source/dsrom.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _DSROM_H_
-#define _DSROM_H_
+#pragma once
#include
#include
@@ -76,5 +75,3 @@ class DSRomInfo {
};
void setBanner(const std::string& anExtIcon, const u8* aBanner);
};
-
-#endif //_DSROM_H_
diff --git a/arm9/source/exptools.h b/arm9/source/exptools.h
index 1293766..686e44e 100644
--- a/arm9/source/exptools.h
+++ b/arm9/source/exptools.h
@@ -17,8 +17,7 @@
along with this program. If not, see .
*/
-#ifndef __EXPTOOLS_H__
-#define __EXPTOOLS_H__
+#pragma once
#include
#include "singleton.h"
@@ -71,5 +70,3 @@ typedef t_singleton cExpansion_s;
inline cExpansion& expansion() {
return cExpansion_s::instance();
}
-
-#endif
diff --git a/arm9/source/expwnd.h b/arm9/source/expwnd.h
index 7566849..1b85489 100644
--- a/arm9/source/expwnd.h
+++ b/arm9/source/expwnd.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef __EXPWND_H__
-#define __EXPWND_H__
+#pragma once
#include
#include "dsrom.h"
@@ -55,5 +54,3 @@ class cExpWnd : public akui::cForm {
akui::cFormDesc _renderDesc;
std::string _romName;
};
-
-#endif //_HELPWND_H_
diff --git a/arm9/source/favorites.h b/arm9/source/favorites.h
index 33b4bf3..468667f 100644
--- a/arm9/source/favorites.h
+++ b/arm9/source/favorites.h
@@ -17,8 +17,7 @@
along with this program. If not, see .
*/
-#ifndef __FAVORITES_H__
-#define __FAVORITES_H__
+#pragma once
#include
@@ -28,5 +27,3 @@ class cFavorites {
static bool UpdateFavorites(const std::string& aOldFileName, const std::string& aNewFileName);
static bool RemoveFromFavorites(const std::string& aFileName);
};
-
-#endif
diff --git a/arm9/source/fileicons.h b/arm9/source/fileicons.h
index 93453d9..7c46a87 100644
--- a/arm9/source/fileicons.h
+++ b/arm9/source/fileicons.h
@@ -16,8 +16,7 @@
along with this program. If not, see .
*/
-#ifndef __FILEICONS_H__
-#define __FILEICONS_H__
+#pragma once
#include
#include
@@ -63,5 +62,3 @@ typedef t_singleton fileIcons_s;
inline cFileIcons& fileIcons() {
return fileIcons_s::instance();
}
-
-#endif
diff --git a/arm9/source/flags.h b/arm9/source/flags.h
index 2f16c93..378789f 100644
--- a/arm9/source/flags.h
+++ b/arm9/source/flags.h
@@ -17,8 +17,7 @@
along with this program. If not, see .
*/
-#ifndef __FLAGS_H__
-#define __FLAGS_H__
+#pragma once
#include
@@ -36,5 +35,3 @@
#define PATCH_LANGUAGE_MASK 0x0000e000
#define PATCH_LANGUAGE_SHIFT 13
//#define PATCH_NEXT BIT(16)
-
-#endif
diff --git a/arm9/source/font/font.h b/arm9/source/font/font.h
index e7faff3..ae630ad 100644
--- a/arm9/source/font/font.h
+++ b/arm9/source/font/font.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _FONT_H_
-#define _FONT_H_
+#pragma once
#include
#include "gdi.h"
@@ -40,5 +39,3 @@ class cFont {
virtual bool Load(const char* aFileName) = 0;
virtual u32 FontRAM(void);
};
-
-#endif //_FONT_H_
diff --git a/arm9/source/font/font_pcf.h b/arm9/source/font/font_pcf.h
index 2ce9ddf..05e3075 100644
--- a/arm9/source/font/font_pcf.h
+++ b/arm9/source/font/font_pcf.h
@@ -22,8 +22,7 @@
supported only fonts with ...
*/
-#ifndef __FONT_PCF_H__
-#define __FONT_PCF_H__
+#pragma once
#include "font.h"
@@ -81,5 +80,3 @@ class cFontPcf : public cFont {
void Info(const char* aString, u32* aWidth, u32* aSymbolCount);
u32 FontRAM(void);
};
-
-#endif
diff --git a/arm9/source/font/font_pcf_internals.h b/arm9/source/font/font_pcf_internals.h
index 67412b1..bfa67f5 100644
--- a/arm9/source/font/font_pcf_internals.h
+++ b/arm9/source/font/font_pcf_internals.h
@@ -17,8 +17,7 @@
along with this program. If not, see .
*/
-#ifndef __FONT_PCF_INTERNALS_H__
-#define __FONT_PCF_INTERNALS_H__
+#pragma once
#include
@@ -84,5 +83,3 @@ struct SPcfAccel {
u32 iFontDescent;
u32 iMaxOverlap;
};
-
-#endif
diff --git a/arm9/source/gamecode.h b/arm9/source/gamecode.h
index 8f2ec02..034a506 100644
--- a/arm9/source/gamecode.h
+++ b/arm9/source/gamecode.h
@@ -16,13 +16,10 @@
along with this program. If not, see .
*/
-#ifndef __GAMECODE_H__
-#define __GAMECODE_H__
+#pragma once
inline u32 gamecode(const char* aGameCode) {
u32 gameCode;
memcpy(&gameCode, aGameCode, sizeof(gameCode));
return gameCode;
}
-
-#endif
diff --git a/arm9/source/gbaloader.h b/arm9/source/gbaloader.h
index 85dae47..338c906 100644
--- a/arm9/source/gbaloader.h
+++ b/arm9/source/gbaloader.h
@@ -17,8 +17,7 @@
along with this program. If not, see .
*/
-#ifndef __GBALOADER_H__
-#define __GBALOADER_H__
+#pragma once
#include
#include
@@ -46,5 +45,3 @@ class CGbaLoader {
static bool CheckPSRAM(u32 aSize);
static void StartGBA(void);
};
-
-#endif
diff --git a/arm9/source/gbapatcher.h b/arm9/source/gbapatcher.h
index 89cc120..fdea6a8 100644
--- a/arm9/source/gbapatcher.h
+++ b/arm9/source/gbapatcher.h
@@ -17,8 +17,7 @@
along with this program. If not, see .
*/
-#ifndef __GBAPATCHER_H__
-#define __GBAPATCHER_H__
+#pragma once
#include
#include
@@ -148,5 +147,3 @@ class CGbaPatcher {
return iResultSize;
};
};
-
-#endif
diff --git a/arm9/source/gdi.h b/arm9/source/gdi.h
index 0e081e0..86aa5eb 100644
--- a/arm9/source/gdi.h
+++ b/arm9/source/gdi.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _GDI_H_
-#define _GDI_H_
+#pragma once
#include
#include
@@ -143,5 +142,3 @@ typedef t_singleton cGdi_s;
inline cGdi& gdi() {
return cGdi_s::instance();
}
-
-#endif //_GDI_H_
diff --git a/arm9/source/globalsettings.h b/arm9/source/globalsettings.h
index 229fe12..f3ee8ee 100644
--- a/arm9/source/globalsettings.h
+++ b/arm9/source/globalsettings.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _GLOBALSETTINGS_H_
-#define _GLOBALSETTINGS_H_
+#pragma once
#include
#include
@@ -79,5 +78,3 @@ typedef t_singleton globalSettings_s;
inline cGlobalSettings& gs() {
return globalSettings_s::instance();
}
-
-#endif //_GLOBALSETTINGS_H_
diff --git a/arm9/source/helpwnd.h b/arm9/source/helpwnd.h
index 723b949..fb02865 100644
--- a/arm9/source/helpwnd.h
+++ b/arm9/source/helpwnd.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _HELPWND_H_
-#define _HELPWND_H_
+#pragma once
#include
#include "dsrom.h"
@@ -55,5 +54,3 @@ class cHelpWnd : public akui::cForm {
std::string _helpText;
};
-
-#endif //_HELPWND_H_
diff --git a/arm9/source/icons.h b/arm9/source/icons.h
index ae3d772..31944ab 100644
--- a/arm9/source/icons.h
+++ b/arm9/source/icons.h
@@ -16,8 +16,7 @@
along with this program. If not, see .
*/
-#ifndef __ICONS_H__
-#define __ICONS_H__
+#pragma once
#include
@@ -25,5 +24,3 @@ class cIcons {
public:
static void maskBlt(const u16* aSrc, u16* aDst);
};
-
-#endif
diff --git a/arm9/source/inifile.h b/arm9/source/inifile.h
index 5eb23ff..7b4a119 100644
--- a/arm9/source/inifile.h
+++ b/arm9/source/inifile.h
@@ -18,8 +18,7 @@
along with this program. If not, see .
*/
-#ifndef _INIFILE_H_
-#define _INIFILE_H_
+#pragma once
#include