diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index f8a5ecdb..75a11042 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -2409,7 +2409,7 @@ void CMenu::_stopSounds(void) m_gameSound.Stop(); } -bool CMenu::_loadFile(u8 *buffer, u32 &size, const char *path, const char *file) +bool CMenu::_loadFile(u8 * &buffer, u32 &size, const char *path, const char *file) { size = 0; FILE *fp = fopen(file == NULL ? path : fmt("%s/%s", path, file), "rb"); diff --git a/source/menu/menu.hpp b/source/menu/menu.hpp index a8a4535e..e807b6fa 100644 --- a/source/menu/menu.hpp +++ b/source/menu/menu.hpp @@ -972,7 +972,7 @@ public: private: bool m_use_wifi_gecko; void _reload_wifi_gecko(); - bool _loadFile(u8 *buffer, u32 &size, const char *path, const char *file); + bool _loadFile(u8 * &buffer, u32 &size, const char *path, const char *file); int _loadIOS(u8 ios, int userIOS, string id); void _launch(dir_discHdr *hdr); void _launchGame(dir_discHdr *hdr, bool dvd);