Add const qualifiers to scrcmd
This commit is contained in:
@@ -28,8 +28,8 @@ void StopScript(struct ScriptContext *ctx);
|
||||
bool8 RunScriptCommand(struct ScriptContext *ctx);
|
||||
u8 ScriptPush(struct ScriptContext *ctx, const u8 *ptr);
|
||||
const u8 *ScriptPop(struct ScriptContext *ctx);
|
||||
void ScriptJump(struct ScriptContext *ctx, u8 *ptr);
|
||||
void ScriptCall(struct ScriptContext *ctx, u8 *ptr);
|
||||
void ScriptJump(struct ScriptContext *ctx, const u8 *ptr);
|
||||
void ScriptCall(struct ScriptContext *ctx, const u8 *ptr);
|
||||
void ScriptReturn(struct ScriptContext *ctx);
|
||||
u16 ScriptReadHalfword(struct ScriptContext *ctx);
|
||||
u32 ScriptReadWord(struct ScriptContext *ctx);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef GUARD_SCRIPT_MOVEMENT_H
|
||||
#define GUARD_SCRIPT_MOVEMENT_H
|
||||
|
||||
bool8 ScriptMovement_StartObjectMovementScript(u8, u8, u8, u8 *);
|
||||
bool8 ScriptMovement_StartObjectMovementScript(u8, u8, u8, const u8 *);
|
||||
bool8 ScriptMovement_IsObjectMovementFinished(u8, u8, u8);
|
||||
void sub_80D338C(void);
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#ifndef GUARD_SHOP_H
|
||||
#define GUARD_SHOP_H
|
||||
|
||||
void CreatePokemartMenu(u16 *);
|
||||
void CreateDecorationShop1Menu(u16 *);
|
||||
void CreateDecorationShop2Menu(u16 *);
|
||||
void CreatePokemartMenu(const u16 *);
|
||||
void CreateDecorationShop1Menu(const u16 *);
|
||||
void CreateDecorationShop2Menu(const u16 *);
|
||||
|
||||
#endif // GUARD_SHOP_H
|
||||
|
||||
@@ -196,7 +196,7 @@ u8 gGlyphDimensions[0x2];
|
||||
|
||||
void SetFontsPointer(const struct FontInfo *fonts);
|
||||
void DeactivateAllTextPrinters(void);
|
||||
u16 PrintTextOnWindow(u8 windowId, u8 fontId, u8 *str, u8 x, u8 y, u8 speed, void (*callback)(struct TextSubPrinter *, u16));
|
||||
u16 PrintTextOnWindow(u8 windowId, u8 fontId, const u8 *str, u8 x, u8 y, u8 speed, void (*callback)(struct TextSubPrinter *, u16));
|
||||
bool16 AddTextPrinter(struct TextSubPrinter *textSubPrinter, u8 speed, void (*callback)(struct TextSubPrinter *, u16));
|
||||
void RunTextPrinters(void);
|
||||
bool16 IsTextPrinterActive(u8 id);
|
||||
|
||||
Reference in New Issue
Block a user