Mark string pointers as const
This commit is contained in:
parent
421a3c46cd
commit
25e68bfb9d
8 changed files with 10 additions and 10 deletions
|
@ -59,7 +59,7 @@ void PutStripper()
|
||||||
}
|
}
|
||||||
|
|
||||||
//Create a cast object
|
//Create a cast object
|
||||||
void SetStripper(int x, int y, char *text, int cast)
|
void SetStripper(int x, int y, const char *text, int cast)
|
||||||
{
|
{
|
||||||
for (int s = 0; s < MAX_STRIP; s++)
|
for (int s = 0; s < MAX_STRIP; s++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,7 +37,7 @@ struct ISLAND_SPRITE
|
||||||
|
|
||||||
void ActionStripper();
|
void ActionStripper();
|
||||||
void PutStripper();
|
void PutStripper();
|
||||||
void SetStripper(int x, int y, char *text, int cast);
|
void SetStripper(int x, int y, const char *text, int cast);
|
||||||
void RestoreStripper();
|
void RestoreStripper();
|
||||||
void ActionIllust();
|
void ActionIllust();
|
||||||
void PutIllust();
|
void PutIllust();
|
||||||
|
|
|
@ -53,7 +53,7 @@ void SetUniqueParameter(NPCHAR *npc)
|
||||||
npc->view.bottom = gNpcTable[code].view.bottom << 9;
|
npc->view.bottom = gNpcTable[code].view.bottom << 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoadEvent(char *path_event)
|
bool LoadEvent(const char *path_event)
|
||||||
{
|
{
|
||||||
char path[PATH_LENGTH];
|
char path[PATH_LENGTH];
|
||||||
sprintf(path, "%s/%s", gDataPath, path_event);
|
sprintf(path, "%s/%s", gDataPath, path_event);
|
||||||
|
|
|
@ -83,7 +83,7 @@ extern int gSuperXpos;
|
||||||
extern int gSuperYpos;
|
extern int gSuperYpos;
|
||||||
|
|
||||||
void InitNpChar();
|
void InitNpChar();
|
||||||
bool LoadEvent(char *path_event);
|
bool LoadEvent(const char *path_event);
|
||||||
void SetNpChar(int code_char, int x, int y, int xm, int ym, int dir, NPCHAR *npc, int start_index);
|
void SetNpChar(int code_char, int x, int y, int xm, int ym, int dir, NPCHAR *npc, int start_index);
|
||||||
void SetDestroyNpChar(int x, int y, int w, int num);
|
void SetDestroyNpChar(int x, int y, int w, int num);
|
||||||
void SetDestroyNpCharUp(int x, int y, int w, int num);
|
void SetDestroyNpCharUp(int x, int y, int w, int num);
|
||||||
|
|
|
@ -40,7 +40,7 @@ bool IsProfile()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SaveProfile(char *name)
|
bool SaveProfile(const char *name)
|
||||||
{
|
{
|
||||||
//Get path
|
//Get path
|
||||||
char path[PATH_LENGTH];
|
char path[PATH_LENGTH];
|
||||||
|
@ -119,7 +119,7 @@ bool SaveProfile(char *name)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LoadProfile(char *name)
|
bool LoadProfile(const char *name)
|
||||||
{
|
{
|
||||||
//Get path
|
//Get path
|
||||||
char path[PATH_LENGTH];
|
char path[PATH_LENGTH];
|
||||||
|
|
|
@ -31,6 +31,6 @@ struct PROFILE
|
||||||
};
|
};
|
||||||
|
|
||||||
bool IsProfile();
|
bool IsProfile();
|
||||||
bool SaveProfile(char *name);
|
bool SaveProfile(const char *name);
|
||||||
bool LoadProfile(char *name);
|
bool LoadProfile(const char *name);
|
||||||
bool InitializeGame();
|
bool InitializeGame();
|
||||||
|
|
|
@ -141,7 +141,7 @@ bool LoadTextScript2(const char *name)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Load stage .tsc
|
//Load stage .tsc
|
||||||
bool LoadTextScript_Stage(char *name)
|
bool LoadTextScript_Stage(const char *name)
|
||||||
{
|
{
|
||||||
//Open Head.tsc
|
//Open Head.tsc
|
||||||
char path[PATH_LENGTH];
|
char path[PATH_LENGTH];
|
||||||
|
|
|
@ -61,7 +61,7 @@ BOOL InitTextScript2();
|
||||||
void EndTextScript();
|
void EndTextScript();
|
||||||
void EncryptionBinaryData2(uint8_t *pData, int size);
|
void EncryptionBinaryData2(uint8_t *pData, int size);
|
||||||
bool LoadTextScript2(const char *name);
|
bool LoadTextScript2(const char *name);
|
||||||
bool LoadTextScript_Stage(char *name);
|
bool LoadTextScript_Stage(const char *name);
|
||||||
void GetTextScriptPath(char *path);
|
void GetTextScriptPath(char *path);
|
||||||
BOOL StartTextScript(int no);
|
BOOL StartTextScript(int no);
|
||||||
void StopTextScript();
|
void StopTextScript();
|
||||||
|
|
Loading…
Add table
Reference in a new issue