Skip to content

Commit fb3ccdf

Browse files
committed
add const
1 parent c32fb00 commit fb3ccdf

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

LEGORacers/include/lavendervault0x764.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ class LavenderVault0x764 {
3636
void FUN_00498e90(GolFileParser& p_parser);
3737

3838
public:
39-
void FUN_00498f50(LegoS32 p_index, LegoChar* p_buffer);
40-
void FUN_00498f70(LegoS32 p_index, LegoChar* p_buffer1, LegoChar* p_buffer2);
41-
void FUN_00498fd0(LegoS32 p_index, LegoChar* p_buffer1, LegoChar* p_buffer2);
42-
void FUN_00499020(LegoS32 p_index, LegoChar* p_buffer1, LegoChar* p_buffer2);
43-
void FUN_00499070(LegoS32 p_index, LegoChar* p_buffer);
44-
void FUN_00499090(LegoS32 p_index, LegoChar* p_buffer);
45-
void FUN_004990b0(int p_index1, int p_index2, LegoChar* p_buffer);
39+
void FUN_00498f50(LegoS32 p_index, LegoChar* p_buffer) const;
40+
void FUN_00498f70(LegoS32 p_index, LegoChar* p_buffer1, LegoChar* p_buffer2) const;
41+
void FUN_00498fd0(LegoS32 p_index, LegoChar* p_buffer1, LegoChar* p_buffer2) const;
42+
void FUN_00499020(LegoS32 p_index, LegoChar* p_buffer1, LegoChar* p_buffer2) const;
43+
void FUN_00499070(LegoS32 p_index, LegoChar* p_buffer) const;
44+
void FUN_00499090(LegoS32 p_index, LegoChar* p_buffer) const;
45+
void FUN_004990b0(int p_index1, int p_index2, LegoChar* p_buffer) const;
4646

4747
private:
4848
LegoBool32 m_loaded; // 0x000

LEGORacers/src/lavendervault0x764.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,47 +281,47 @@ void LavenderVault0x764::FUN_00498e90(GolFileParser& p_parser)
281281
}
282282

283283
// FUNCTION: LEGORACERS 0x00498f50
284-
void LavenderVault0x764::FUN_00498f50(LegoS32 p_index, LegoChar* p_buffer)
284+
void LavenderVault0x764::FUN_00498f50(LegoS32 p_index, LegoChar* p_buffer) const
285285
{
286286
::strncpy(p_buffer, m_unk0x018[p_index], sizeof(m_unk0x018[p_index]));
287287
}
288288

289289
// FUNCTION: LEGORACERS 0x00498f70
290-
void LavenderVault0x764::FUN_00498f70(int p_index, LegoChar* p_buffer1, LegoChar* p_buffer2)
290+
void LavenderVault0x764::FUN_00498f70(int p_index, LegoChar* p_buffer1, LegoChar* p_buffer2) const
291291
{
292292
::strncpy(p_buffer1, m_unk0x180, sizeof(m_unk0x180));
293293
::strcpy(p_buffer2, m_unk0x188[p_index]);
294294
::strncat(p_buffer2, m_unk0x200[0], sizeOfArray(m_unk0x200) - 1);
295295
}
296296

297297
// FUNCTION: LEGORACERS 0x00498fd0
298-
void LavenderVault0x764::FUN_00498fd0(int p_index, LegoChar* p_buffer1, LegoChar* p_buffer2)
298+
void LavenderVault0x764::FUN_00498fd0(int p_index, LegoChar* p_buffer1, LegoChar* p_buffer2) const
299299
{
300300
::strncpy(p_buffer1, m_unk0x242[m_unk0x344[p_index]], sizeof(m_unk0x242[m_unk0x344[p_index]]));
301301
::strncpy(p_buffer2, m_unk0x252[p_index], sizeof(m_unk0x252[p_index]));
302302
}
303303

304304
// FUNCTION: LEGORACERS 0x00499020
305-
void LavenderVault0x764::FUN_00499020(int p_index, LegoChar* p_buffer1, LegoChar* p_buffer2)
305+
void LavenderVault0x764::FUN_00499020(int p_index, LegoChar* p_buffer1, LegoChar* p_buffer2) const
306306
{
307307
::strncpy(p_buffer1, m_unk0x3da[m_unk0x4dc[p_index]], sizeof(m_unk0x3da[m_unk0x4dc[p_index]]));
308308
::strncpy(p_buffer2, m_unk0x3ea[p_index], sizeof(m_unk0x3ea[p_index]));
309309
}
310310

311311
// FUNCTION: LEGORACERS 0x00499070
312-
void LavenderVault0x764::FUN_00499070(int p_index, LegoChar* p_buffer)
312+
void LavenderVault0x764::FUN_00499070(int p_index, LegoChar* p_buffer) const
313313
{
314314
::strncpy(p_buffer, m_unk0x6b2[p_index], sizeof(m_unk0x6b2[p_index]));
315315
}
316316

317317
// FUNCTION: LEGORACERS 0x00499090
318-
void LavenderVault0x764::FUN_00499090(int p_index, LegoChar* p_buffer)
318+
void LavenderVault0x764::FUN_00499090(int p_index, LegoChar* p_buffer) const
319319
{
320320
::strncpy(p_buffer, m_unk0x572[p_index], sizeof(m_unk0x572[p_index]));
321321
}
322322

323323
// FUNCTION: LEGORACERS 0x004990b0
324-
void LavenderVault0x764::FUN_004990b0(int p_index1, int p_index2, LegoChar* p_buffer)
324+
void LavenderVault0x764::FUN_004990b0(int p_index1, int p_index2, LegoChar* p_buffer) const
325325
{
326326
::strcpy(p_buffer, m_unk0x188[p_index1]);
327327
::strncpy(&p_buffer[3], m_unk0x200[p_index2], sizeOfArray(m_unk0x200[p_index2]) - 1);

0 commit comments

Comments
 (0)