mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-10-25 08:53:04 -05:00
Applying formatting and moving libraries into specific folders
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
#include "text_tables.h"
|
||||
#include "translated_text.h"
|
||||
#include "compression_chunks.h"
|
||||
#include "translated_text.h"
|
||||
|
||||
void get_text_table_chunks(u32 tableIndex, const u8 ***chunkList, u32 *numChunks, u32 *chunkSize)
|
||||
void get_text_table_chunks(
|
||||
u32 tableIndex, const u8 ***chunkList, u32 *numChunks, u32 *chunkSize)
|
||||
{
|
||||
// every table except for RSEFRLG is 2048 bytes per chunk, so we can set that by default and only change it for RSEFRLG
|
||||
// every table except for RSEFRLG is 2048 bytes per chunk, so we can set
|
||||
// that by default and only change it for RSEFRLG
|
||||
*chunkSize = 2048;
|
||||
switch(tableIndex)
|
||||
switch (tableIndex)
|
||||
{
|
||||
case PTGB_INDEX:
|
||||
*chunkList = PTGB_chunk_list;
|
||||
@@ -26,11 +28,13 @@ void get_text_table_chunks(u32 tableIndex, const u8 ***chunkList, u32 *numChunks
|
||||
break;
|
||||
case PKMN_NAMES_INDEX:
|
||||
*chunkList = PKMN_NAMES_chunk_list;
|
||||
*numChunks = sizeof(PKMN_NAMES_chunk_list) / sizeof(PKMN_NAMES_chunk_list[0]);
|
||||
*numChunks =
|
||||
sizeof(PKMN_NAMES_chunk_list) / sizeof(PKMN_NAMES_chunk_list[0]);
|
||||
break;
|
||||
case TUTORIAL_INDEX:
|
||||
*chunkList = TUTORIAL_chunk_list;
|
||||
*numChunks = sizeof(TUTORIAL_chunk_list) / sizeof(TUTORIAL_chunk_list[0]);
|
||||
*numChunks =
|
||||
sizeof(TUTORIAL_chunk_list) / sizeof(TUTORIAL_chunk_list[0]);
|
||||
break;
|
||||
default:
|
||||
*chunkList = NULL;
|
||||
|
||||
Reference in New Issue
Block a user