diff --git a/libctru/include/3ds/gpu/gpu.h b/libctru/include/3ds/gpu/gpu.h index aefdef2..38d0fca 100644 --- a/libctru/include/3ds/gpu/gpu.h +++ b/libctru/include/3ds/gpu/gpu.h @@ -41,7 +41,7 @@ void GPUCMD_GetBuffer(u32** adr, u32* size, u32* offset); * @param cmd Buffer containing commands to add. * @param size Size of the buffer. */ -void GPUCMD_AddRawCommands(u32* cmd, u32 size); +void GPUCMD_AddRawCommands(const u32* cmd, u32 size); /// Executes the GPU command buffer. void GPUCMD_Run(void); @@ -55,7 +55,7 @@ void GPUCMD_FlushAndRun(void); * @param param Parameters of the command. * @param paramlength Size of the parameter buffer. */ -void GPUCMD_Add(u32 header, u32* param, u32 paramlength); +void GPUCMD_Add(u32 header, const u32* param, u32 paramlength); /// Finalizes the GPU command buffer. void GPUCMD_Finalize(void); diff --git a/libctru/source/gpu/gpu.c b/libctru/source/gpu/gpu.c index 9146c10..7029622 100644 --- a/libctru/source/gpu/gpu.c +++ b/libctru/source/gpu/gpu.c @@ -32,7 +32,7 @@ void GPUCMD_GetBuffer(u32** adr, u32* size, u32* offset) if(offset)*offset=gpuCmdBufOffset; } -void GPUCMD_AddRawCommands(u32* cmd, u32 size) +void GPUCMD_AddRawCommands(const u32* cmd, u32 size) { if(!cmd || !size)return; @@ -55,7 +55,7 @@ void GPUCMD_FlushAndRun(void) GX_ProcessCommandList(gpuCmdBuf, gpuCmdBufOffset*4, 0x0); } -void GPUCMD_Add(u32 header, u32* param, u32 paramlength) +void GPUCMD_Add(u32 header, const u32* param, u32 paramlength) { u32 zero=0x0;