summaryrefslogtreecommitdiff
path: root/spuregion.c
diff options
context:
space:
mode:
Diffstat (limited to 'spuregion.c')
-rw-r--r--spuregion.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/spuregion.c b/spuregion.c
index 6055ec3..973b787 100644
--- a/spuregion.c
+++ b/spuregion.c
@@ -39,6 +39,15 @@ uint8_t cSpuRegion::openSections()
return usedSections + 1;
}
+sSection *cSpuRegion::section(uint8_t num)
+{
+ if (usedSections == MAX_SECTIONS) {
+ return NULL;
+ }
+
+ return &sections[num];
+}
+
bool cSpuRegion::addColIndex(tIndex idx)
{
sSection *sec = &sections[usedSections];