mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 17:49:16 +01:00
fix some string sizes to be MAX_PATH
This commit is contained in:
parent
d31a7e24a8
commit
abe57fefa0
@ -540,7 +540,11 @@ GetNameOfSavedGame(int32 slot)
|
|||||||
bool
|
bool
|
||||||
CheckDataNotCorrupt(int32 slot, char *name)
|
CheckDataNotCorrupt(int32 slot, char *name)
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
char filename[MAX_PATH];
|
||||||
|
#else
|
||||||
char filename[100];
|
char filename[100];
|
||||||
|
#endif
|
||||||
|
|
||||||
int32 blocknum = 0;
|
int32 blocknum = 0;
|
||||||
eLevelName level = LEVEL_GENERIC;
|
eLevelName level = LEVEL_GENERIC;
|
||||||
|
@ -25,7 +25,11 @@ C_PcSave::SetSaveDirectory(const char *path)
|
|||||||
bool
|
bool
|
||||||
C_PcSave::DeleteSlot(int32 slot)
|
C_PcSave::DeleteSlot(int32 slot)
|
||||||
{
|
{
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
char FileName[MAX_PATH];
|
||||||
|
#else
|
||||||
char FileName[200];
|
char FileName[200];
|
||||||
|
#endif
|
||||||
|
|
||||||
PcSaveHelper.nErrorCode = SAVESTATUS_SUCCESSFUL;
|
PcSaveHelper.nErrorCode = SAVESTATUS_SUCCESSFUL;
|
||||||
sprintf(FileName, "%s%i.b", DefaultPCSaveFileName, slot + 1);
|
sprintf(FileName, "%s%i.b", DefaultPCSaveFileName, slot + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user