diff --git a/include/JSystem/JAudio/JAD/JADDataMgr.h b/include/JSystem/JAudio/JAD/JADDataMgr.h index 01fe730dc..91a947d39 100644 --- a/include/JSystem/JAudio/JAD/JADDataMgr.h +++ b/include/JSystem/JAudio/JAD/JADDataMgr.h @@ -79,11 +79,11 @@ struct DataLoadMgrNode : virtual public DataMgrBase { // _00 = DataMgrBase* // _04 = VTABLE - int mFlagState; // _08 - char mPath[0x100]; // _0C - char mLoadPath[0x100]; // _10C, best guess as to name - u32 _20C; // _20C - u32 _210; // _210 + int mFlagState; // _08 + char mPath[PATH_MAX]; // _0C + char mLoadPath[PATH_MAX]; // _10C, best guess as to name + u32 _20C; // _20C + u32 _210; // _210 // _214 - _234 = DataMgrBase (virtual) }; @@ -131,7 +131,7 @@ struct PrmDataMgrNode : public DataMgrNode { return true; } return false; - } // _1C (weak) + } // _1C (weak) virtual bool initInstance() // _20 (weak) { if (!mPrmSetRc) { diff --git a/src/plugProjectKandoU/gameStages.cpp b/src/plugProjectKandoU/gameStages.cpp index 092c50edb..9208172e6 100644 --- a/src/plugProjectKandoU/gameStages.cpp +++ b/src/plugProjectKandoU/gameStages.cpp @@ -399,32 +399,32 @@ inline void Stages::draw2d() */ void Stages::createMapMgr(Game::CourseInfo* info, Game::RouteMgr* routeMgr) { - char modelPathTxt[0x100]; + char modelPathTxt[PATH_MAX]; if (info->mModelPath) { sprintf(modelPathTxt, "%s/%s", info->mFolder, info->mModelPath); } - char collPathTxt[0x100]; + char collPathTxt[PATH_MAX]; if (info->mCollisionPath) { sprintf(collPathTxt, "%s/%s", info->mFolder, info->mCollisionPath); } - char wboxPathTxt[0x100]; + char wboxPathTxt[PATH_MAX]; if (info->mWaterboxPath) { sprintf(wboxPathTxt, "%s/%s", info->mFolder, info->mWaterboxPath); } - char codePathTxt[0x100]; + char codePathTxt[PATH_MAX]; if (info->mMapcodePath) { sprintf(codePathTxt, "%s/%s", info->mFolder, info->mMapcodePath); } - char farmPathTxt[0x100]; + char farmPathTxt[PATH_MAX]; if (info->mFarmPath) { sprintf(farmPathTxt, "%s/%s", info->mFolder, info->mFarmPath); } - char routePathTxt[0x100]; + char routePathTxt[PATH_MAX]; if (info->mRoutePath) { sprintf(routePathTxt, "%s/%s", info->mAbeFolder, info->mRoutePath); } diff --git a/src/sysGCU/pikmin2AramMgr.cpp b/src/sysGCU/pikmin2AramMgr.cpp index f461f3154..6ebb71248 100644 --- a/src/sysGCU/pikmin2AramMgr.cpp +++ b/src/sysGCU/pikmin2AramMgr.cpp @@ -180,7 +180,7 @@ void Mgr::load2D() JKRAram::sAramObject->mAramHeap->getFreeSize(); for (u32 i = 0; i < 13; i++) { - char langResName[0x100]; + char langResName[PATH_MAX]; og::newScreen::makeLanguageResName(langResName, sAramResName2D[i]); gAramMgr->dvdToAram(langResName, !mLoadPermission); }