treewide: use pragma once

This commit is contained in:
lifehackerhansol 2024-10-04 22:59:31 -07:00
parent 220e82fcbd
commit 800aa07da8
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E
73 changed files with 73 additions and 288 deletions

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _ANIMATION_H_
#define _ANIMATION_H_
#pragma once
#include "ui.h"
@ -65,5 +64,3 @@ typedef t_singleton<cAnimationManager> animationManager_s;
inline cAnimationManager& animationManager() {
return animationManager_s::instance();
}
#endif //_ANIMATION_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _BIGCLOCK_H_
#define _BIGCLOCK_H_
#pragma once
#include "bmp15.h"
#include "datetime.h"
@ -61,5 +60,3 @@ typedef t_singleton<cBigClock> bigClock_s;
inline cBigClock& bigClock() {
return bigClock_s::instance();
}
#endif //_BIGCLOCK_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _BMP15_H_
#define _BMP15_H_
#pragma once
#include <nds.h>
#include <memory>
@ -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_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CALENDAR_H_
#define _CALENDAR_H_
#pragma once
#include "bmp15.h"
#include "datetime.h"
@ -68,5 +67,3 @@ typedef t_singleton<cCalendar> calendar_s;
inline cCalendar& calendar() {
return calendar_s::instance();
}
#endif //_CALENDAR_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _CALENDARWND_H_
#define _CALENDARWND_H_
#pragma once
#include <nds.h>
#include "form.h"
@ -46,5 +45,3 @@ typedef t_singleton<cCalendarWnd> calendarWnd_s;
inline cCalendarWnd& calendarWnd() {
return calendarWnd_s::instance();
}
#endif //_CALENDARWND_H_

View File

@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#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<size_t> _indexes;
std::string _fileName;
};
#endif

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DATETIME_H_
#define _DATETIME_H_
#pragma once
#include <nds.h>
#include <time.h>
@ -57,5 +56,3 @@ typedef t_singleton<cDateTime> dateTime_s;
inline cDateTime& datetime() {
return dateTime_s::instance();
}
#endif //_DATETIME_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DBG_TOOL_H_
#define _DBG_TOOL_H_
#pragma once
#include <nds.h>
#include <stdarg.h>
@ -70,5 +69,3 @@ static inline void wait_press_b() {
#else
#define wait_press_b()
#endif // DEBUG
#endif //_DBG_TOOL_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DISKICON_H_
#define _DISKICON_H_
#pragma once
#include <nds.h>
#include "singleton.h"
@ -55,5 +54,3 @@ typedef t_singleton<cDiskIcon> diskIcon_s;
inline cDiskIcon& diskIcon() {
return diskIcon_s::instance();
}
#endif //_DISKIOICON_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _DSROM_H_
#define _DSROM_H_
#pragma once
#include <nds.h>
#include <string.h>
@ -76,5 +75,3 @@ class DSRomInfo {
};
void setBanner(const std::string& anExtIcon, const u8* aBanner);
};
#endif //_DSROM_H_

View File

@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EXPTOOLS_H__
#define __EXPTOOLS_H__
#pragma once
#include <nds.h>
#include "singleton.h"
@ -71,5 +70,3 @@ typedef t_singleton<cExpansion> cExpansion_s;
inline cExpansion& expansion() {
return cExpansion_s::instance();
}
#endif

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __EXPWND_H__
#define __EXPWND_H__
#pragma once
#include <string>
#include "dsrom.h"
@ -55,5 +54,3 @@ class cExpWnd : public akui::cForm {
akui::cFormDesc _renderDesc;
std::string _romName;
};
#endif //_HELPWND_H_

View File

@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FAVORITES_H__
#define __FAVORITES_H__
#pragma once
#include <string>
@ -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

View File

@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FILEICONS_H__
#define __FILEICONS_H__
#pragma once
#include <set>
#include <vector>
@ -63,5 +62,3 @@ typedef t_singleton<cFileIcons> fileIcons_s;
inline cFileIcons& fileIcons() {
return fileIcons_s::instance();
}
#endif

View File

@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FLAGS_H__
#define __FLAGS_H__
#pragma once
#include <nds.h>
@ -36,5 +35,3 @@
#define PATCH_LANGUAGE_MASK 0x0000e000
#define PATCH_LANGUAGE_SHIFT 13
//#define PATCH_NEXT BIT(16)
#endif

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _FONT_H_
#define _FONT_H_
#pragma once
#include <string>
#include "gdi.h"
@ -40,5 +39,3 @@ class cFont {
virtual bool Load(const char* aFileName) = 0;
virtual u32 FontRAM(void);
};
#endif //_FONT_H_

View File

@ -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

View File

@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FONT_PCF_INTERNALS_H__
#define __FONT_PCF_INTERNALS_H__
#pragma once
#include <nds.h>
@ -84,5 +83,3 @@ struct SPcfAccel {
u32 iFontDescent;
u32 iMaxOverlap;
};
#endif

View File

@ -16,13 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GAMECODE_H__
#define __GAMECODE_H__
#pragma once
inline u32 gamecode(const char* aGameCode) {
u32 gameCode;
memcpy(&gameCode, aGameCode, sizeof(gameCode));
return gameCode;
}
#endif

View File

@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GBALOADER_H__
#define __GBALOADER_H__
#pragma once
#include <nds/ndstypes.h>
#include <string>
@ -46,5 +45,3 @@ class CGbaLoader {
static bool CheckPSRAM(u32 aSize);
static void StartGBA(void);
};
#endif

View File

@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GBAPATCHER_H__
#define __GBAPATCHER_H__
#pragma once
#include <nds.h>
#include <setjmp.h>
@ -148,5 +147,3 @@ class CGbaPatcher {
return iResultSize;
};
};
#endif

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _GDI_H_
#define _GDI_H_
#pragma once
#include <nds.h>
#include <vector>
@ -143,5 +142,3 @@ typedef t_singleton<cGdi> cGdi_s;
inline cGdi& gdi() {
return cGdi_s::instance();
}
#endif //_GDI_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _GLOBALSETTINGS_H_
#define _GLOBALSETTINGS_H_
#pragma once
#include <nds.h>
#include <string>
@ -79,5 +78,3 @@ typedef t_singleton<cGlobalSettings> globalSettings_s;
inline cGlobalSettings& gs() {
return globalSettings_s::instance();
}
#endif //_GLOBALSETTINGS_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _HELPWND_H_
#define _HELPWND_H_
#pragma once
#include <string>
#include "dsrom.h"
@ -55,5 +54,3 @@ class cHelpWnd : public akui::cForm {
std::string _helpText;
};
#endif //_HELPWND_H_

View File

@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __ICONS_H__
#define __ICONS_H__
#pragma once
#include <nds.h>
@ -25,5 +24,3 @@ class cIcons {
public:
static void maskBlt(const u16* aSrc, u16* aDst);
};
#endif

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _INIFILE_H_
#define _INIFILE_H_
#pragma once
#include <map>
#include <string>
@ -66,5 +65,3 @@ class CIniFile {
std::string GetString(const std::string& Section, const std::string& Item);
int GetInt(const std::string& Section, const std::string& Item);
};
#endif // _INIFILE_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _IRQS_H_
#define _IRQS_H_
#pragma once
#include <nds.h>
#include "singleton.h"
@ -49,5 +48,3 @@ typedef t_singleton<cIRQ> irq_s;
inline cIRQ& irq() {
return irq_s::instance();
}
#endif //_IRQS_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LANGUAGE_H_
#define _LANGUAGE_H_
#pragma once
#include "dbgtool.h"
#include "globalsettings.h"
@ -45,5 +44,3 @@ inline cLanguageFile& lang() {
#define LANG(i, t) lang().GetString(i, t, t)
bool stringComp(const std::string& item1, const std::string& item2);
#endif //_LANGUAGE_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MAINLIST_H_
#define _MAINLIST_H_
#pragma once
#include <nds.h>
#include "dsrom.h"
@ -134,5 +133,3 @@ class cMainList : public akui::cListView {
public:
u32 Slot2(void) { return _topSlot2; }
};
#endif //_MAINLIST_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MAINWND_H_
#define _MAINWND_H_
#pragma once
#include "button.h"
#include "form.h"
@ -98,5 +97,3 @@ class cMainWnd : public akui::cForm {
bool _processL;
};
#endif //_MAINWND_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _ROMINFOWND_H_
#define _ROMINFOWND_H_
#pragma once
#include <string>
#include "dsrom.h"
@ -104,5 +103,3 @@ class cRomInfoWnd : public akui::cForm {
const std::vector<std::string>* _saves;
};
#endif //_ROMINFOWND_H_

View File

@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __ROMLAUNCHER_H__
#define __ROMLAUNCHER_H__
#pragma once
#include "dsrom.h"
@ -31,5 +30,3 @@ enum TLaunchResult {
TLaunchResult launchRom(const std::string& aFullPath, DSRomInfo& aRomInfo, bool aMenu);
void autoLaunchRom(const std::string& aFullPath);
#endif

View File

@ -18,13 +18,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _ROMLOADER_H_
#define _ROMLOADER_H_
#pragma once
#include <nds/ndstypes.h>
#include <string>
bool loadRom(const std::string& filename, const std::string& savename, u32 flags, long cheatOffset,
size_t cheatSize);
#endif //_ROMLOADER_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SAVEMNGR_H_
#define _SAVEMNGR_H_
#pragma once
#include <nds.h>
#include <string>
@ -239,5 +238,3 @@ typedef t_singleton<cSaveManager> SaveManager_s;
inline cSaveManager& saveManager() {
return SaveManager_s::instance();
}
#endif //_SAVEMNGR_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SETTINGWND_H_
#define _SETTINGWND_H_
#pragma once
#include <string>
#include "form.h"
@ -98,5 +97,3 @@ class cSettingWnd : public akui::cForm {
akui::cFormDesc _renderDesc;
akui::cButton _buttonY;
};
#endif //_SETTINGWND_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SINGLETON_H_
#define _SINGLETON_H_
#pragma once
#include <cstdlib>
template <class T>
@ -55,5 +54,3 @@ class t_singleton {
template <class T>
T* t_singleton<T>::_instance = NULL;
#endif //_AGL_SINGLETON_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SPRITE_H_
#define _SPRITE_H_
#pragma once
#include <nds.h>
@ -87,5 +86,3 @@ class cSprite {
// void destroySprite( cSprite * pointer );
//
// };
#endif //_SPRITE_H_

View File

@ -17,8 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __SRAM_H__
#define __SRAM_H__
#pragma once
#include <nds.h>
#include <stdio.h>
@ -52,5 +51,3 @@ class cSram {
static void BlankSram(u16 aStartPage);
static void NormalizeSize(sSaveInfo& anInfo);
};
#endif

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _STARTMENU_H_
#define _STARTMENU_H_
#pragma once
#include "popmenu.h"
@ -41,5 +40,3 @@ class cStartMenu : public akui::cPopMenu {
cWindow& loadAppearance(const std::string& aFileName);
};
#endif //_STARTMENU_H_

View File

@ -24,11 +24,8 @@ THE SOFTWARE.
---------------------------------------------------------------------------------*/
#ifndef _STRINGTOOL_H_
#define _STRINGTOOL_H_
#pragma once
#include <string>
std::string formatString(const char* fmt, ...);
#endif //_STRINGTOOL_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SYSTEMFILENAMES_H_
#define _SYSTEMFILENAMES_H_
#pragma once
#define SFN_SYSTEM_DIR "fat:/__rpg/"
#define SFN_OFFICIAL_SAVELIST SFN_SYSTEM_DIR "savelist.bin"
@ -67,5 +66,3 @@
#define SFN_ICONS_DIRECTORY SFN_SYSTEM_DIR "icons/"
#define SFN_CHEATS SFN_SYSTEM_DIR "cheats/usrcheat.dat"
#endif //_SYSTEMFILENAMES_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TESTCASES_H_
#define _TESTCASES_H_
#pragma once
int PrintFreeMem(void);
@ -40,5 +39,3 @@ void testViolenceEEP512Kauto(u32 count);
void testViolenceEEP8Mauto(u32 count);
void testEEPReadStatus();
#endif //_TESTCASES_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TIMER_H_
#define _TIMER_H_
#pragma once
#include <nds.h>
#include "singleton.h"
@ -59,5 +58,3 @@ typedef t_singleton<cTimer> timer_s;
inline cTimer& timer() {
return timer_s::instance();
}
#endif //_TIMER_H_

View File

@ -24,9 +24,6 @@ THE SOFTWARE.
---------------------------------------------------------------------------------*/
#ifndef _TIMETOOL_H_
#define _TIMETOOL_H_
#pragma once
void waitMs(unsigned int requestTime);
#endif //_TIMETOOL_H_

View File

@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __BINARYFIND_H__
#define __BINARYFIND_H__
#pragma once
#include <algorithm>
@ -33,5 +32,3 @@ Iterator binary_find(Iterator first, Iterator last, const T& value, Compare cmp)
return last;
}
} // namespace akui
#endif

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _BMPWINDOWDESC_H_
#define _BMPWINDOWDESC_H_
#pragma once
#include <string>
#include "bmp15.h"
@ -52,5 +51,3 @@ class cBitmapDesc : public cRenderDesc {
};
} // namespace akui
#endif //_BMPWINDOWDESC_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_BUTTON_H_
#define _AKUI_BUTTON_H_
#pragma once
#include "bmp15.h"
#include "rectangle.h"
@ -112,5 +111,3 @@ class cButtonDesc : public cRenderDesc {
COLOR _textColor;
};
} // namespace akui
#endif //_AKUI_BUTTON_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_FORM_H_
#define _AKUI_FORM_H_
#pragma once
#include <list>
#include "bitmapdesc.h"
@ -77,5 +76,3 @@ class cForm : public cWindow {
};
} // namespace akui
#endif //_AKUI_FORM_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _FORMDESC_H_
#define _FORMDESC_H_
#pragma once
#include <string>
#include "bmp15.h"
@ -53,5 +52,3 @@ class cFormDesc : public cRenderDesc {
};
} // namespace akui
#endif //_FORMDESC_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_KEYMESSAGE_H_
#define _AKUI_KEYMESSAGE_H_
#pragma once
#include "message.h"
@ -91,5 +90,3 @@ class cKeyMessage : public cMessage {
// const unsigned char cKeyMessage::UI_KEY_LID = 14; //!< Lid state.
} // namespace akui
#endif //_AKUI_cKeyMessage_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_LISTVIEW_H_
#define _AKUI_LISTVIEW_H_
#pragma once
#include <string>
#include <vector>
@ -181,4 +180,3 @@ class cListView : public cWindow {
};
} // namespace akui
#endif //_LISTVIEW_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_MESSAGE_H_
#define _AKUI_MESSAGE_H_
#pragma once
namespace akui {
@ -67,5 +66,3 @@ class cMessage {
};
} // namespace akui
#endif //_AKUI_MESSAGE_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_MESSAGEBOX_H_
#define _AKUI_MESSAGEBOX_H_
#pragma once
#include "button.h"
#include "form.h"
@ -90,5 +89,3 @@ class cMessageBox : public cForm {
u32 messageBox(cWindow* parent, const std::string& title, const std::string& msg, u32 style);
} // namespace akui
#endif //_MESSAGEBOX_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_POINT_H_
#define _AKUI_POINT_H_
#pragma once
#include <algorithm>
@ -72,5 +71,3 @@ typedef t_point<float> cPointf;
typedef t_point<int> cSize;
} // namespace akui
#endif //_AKUI_POINT_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _POPMENU_H_
#define _POPMENU_H_
#pragma once
#include <nds.h>
#include <vector>
@ -86,4 +85,3 @@ class cPopMenu : public cWindow {
};
} // namespace akui
#endif //_POPMENU_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _PROGRESSBAR_H_
#define _PROGRESSBAR_H_
#pragma once
#include "bmp15.h"
#include "ui.h"
@ -46,5 +45,3 @@ class cProgressBar : public cWindow {
};
} // namespace akui
#endif //_PROGRESSBAR_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _PROGRESSWND_H_
#define _PROGRESSWND_H_
#pragma once
#include "progressbar.h"
#include "singleton.h"
@ -64,5 +63,3 @@ typedef t_singleton<akui::cProgressWnd> progressWnd_s;
inline akui::cProgressWnd& progressWnd() {
return progressWnd_s::instance();
}
#endif //_PROGRESSWND_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_RECTANGLE_H_
#define _AKUI_RECTANGLE_H_
#pragma once
#include "point.h"
@ -150,5 +149,3 @@ class cRect {
// *************************************************************************************************
} // namespace akui
#endif //_AKUI_RECTANGLE_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_RENDERDESC_H_
#define _AKUI_RENDERDESC_H_
#pragma once
#include "gdi.h"
#include "rectangle.h"
@ -46,4 +45,3 @@ class cRenderDesc {
};
} // namespace akui
#endif //_AKUI_RENDERDESC_H_

View File

@ -22,8 +22,7 @@
// The original version of this code was written and placed in the public domain by Sarah Thompson
// See http://sigslot.sourceforge.net/
// __________________________________________________________________________________________________
#ifndef SIGSLOT__H
#define SIGSLOT__H
#pragma once
#include <list>
#include <set>
@ -465,5 +464,3 @@ class Signal1 : public BasicSignal1<Type1> {
};
} // namespace akui
#endif // SIGSLOT__H

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SPINBOX_H_
#define _SPINBOX_H_
#pragma once
#include <string>
#include <vector>
@ -80,5 +79,3 @@ class cSpinBox : public cForm {
};
} // namespace akui
#endif //_SPINBOX_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _STATICTEXT_H_
#define _STATICTEXT_H_
#pragma once
#include "bmp15.h"
#include "window.h"
@ -44,5 +43,3 @@ class cStaticText : public cWindow {
};
} // namespace akui
#endif //_STATICTEXT_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_TOUCHMESSAGE_H_
#define _AKUI_TOUCHMESSAGE_H_
#pragma once
#include "message.h"
@ -58,5 +57,3 @@ class cTouchMessage : public cMessage {
};
} // namespace akui
#endif //_AKUI_TOUCHMESSAGE_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_H_
#define _AKUI_H_
#pragma once
#include <nds.h>
#include "../../share/memtool.h"
@ -60,5 +59,3 @@
#include "globalsettings.h"
#include "systemfilenames.h"
#include "uisettings.h"
#endif //_AKUI_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _UISETTINGS_H_
#define _UISETTINGS_H_
#pragma once
#include <nds.h>
#include "gdi.h"
@ -65,5 +64,3 @@ inline cUISettings& uiSettings() {
inline cUISettings& uis() {
return uiSettings_s::instance();
}
#endif //_UISETTINGS_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_WINDOW_H_
#define _AKUI_WINDOW_H_
#pragma once
#include <string>
#include "dbgtool.h"
@ -183,4 +182,3 @@ class cWindow : public SlotHolder {
};
} // namespace akui
#endif //_AKUI_WINDOW_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AKUI_WINDOWMANAGER_H_
#define _AKUI_WINDOWMANAGER_H_
#pragma once
#include <list>
#include <string>
@ -72,5 +71,3 @@ inline cWindowManager& windowManager(void) {
return cWindowManager_s::instance();
}
} // namespace akui
#endif //_AKUI_WINDOWMANAGER_H_

View File

@ -18,13 +18,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _UNICODE_H_
#define _UNICODE_H_
#pragma once
#include <nds.h>
#include <string>
std::string unicode_to_local_string(const u16* unicode_string, size_t length,
bool* defCharUsed = NULL);
#endif //_UNICODE_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __USERINPUT_H__
#define __USERINPUT_H__
#pragma once
#include <nds.h>
@ -53,5 +52,3 @@ INPUT& getInput();
u32 getInputIdleMs();
void resetInputIdle(void);
bool processInput(INPUT& inputs);
#endif //_INPUT_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _USERWINDOW_H_
#define _USERWINDOW_H_
#pragma once
#include "bmp15.h"
#include "datetime.h"
@ -63,5 +62,3 @@ typedef t_singleton<cUserWindow> UserWindow_s;
inline cUserWindow& userWindow() {
return UserWindow_s::instance();
}
#endif //_UserWindow_H_

View File

@ -18,8 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _ZOOMINGICON_H_
#define _ZOOMINGICON_H_
#pragma once
#include <nds.h>
#include "animation.h"
@ -57,5 +56,3 @@ class cZoomingIcon : public cAnimation {
float _scale;
bool _needUpdateBuffer;
};
#endif //_ZOOMINGICON_H_

View File

@ -16,8 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FIFOTOOL_H__
#define __FIFOTOOL_H__
#pragma once
#define MENU_MSG_GBA 1
#define MENU_MSG_ARM7_REBOOT 2
@ -30,5 +29,3 @@
#define MENU_MSG_BRIGHTNESS_SET2 10
#define MENU_MSG_BRIGHTNESS_SET3 11
#define MENU_MSG_SHUTDOWN 12
#endif

View File

@ -24,8 +24,7 @@ THE SOFTWARE.
---------------------------------------------------------------------------------*/
#ifndef _MEMTOOL_H_
#define _MEMTOOL_H_
#pragma once
inline void fillMemory(void* addr, u32 count, u32 value) {
swiFastCopy((void*)(&value), addr, (count >> 2) | COPY_MODE_WORD | COPY_MODE_FILL);
@ -34,5 +33,3 @@ inline void fillMemory(void* addr, u32 count, u32 value) {
inline void zeroMemory(void* addr, u32 count) {
fillMemory(addr, count, 0);
}
#endif //_MEMTOOL_H_