summaryrefslogtreecommitdiff
path: root/src/JSystem/JHostIO/JHICommonMem.cpp
blob: f16701ffce03aa542b493bcd64cc4dfa9c33a38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Debug-only file. This file is known to have existed for TWW based on the debug maps.
// The contents of this are based on the TP debug build decomp and may or may not match the actual TWW debug build.

#include "JSystem/JSystem.h" // IWYU pragma: keep

#include "JSystem/JHostIO/JHICommonMem.h"

JHIMemBuf* JHICommonMem::instance;

JHIMemBuf* JHICommonMem::Instance() {
    if (instance == NULL) {
        instance = new JHIMemBuf();
    }

    return instance;
}

JHIMemBuf::JHIMemBuf() {
    mp_buffer = NULL;
    create();
}