rename LInkedList -> cdc::SList, Array -> cdc::Array

This commit is contained in:
Adam Jensen 2022-11-06 17:43:50 +00:00
parent 4ab6258e75
commit de7e24d21a
4 changed files with 16 additions and 8 deletions

View File

@ -2,6 +2,8 @@
#include <cstdint>
#include "Allocator.h"
namespace cdc {
template <typename T>
struct Array {
uint32_t m_size;
@ -36,3 +38,5 @@ struct Array {
}
}
};
}

View File

@ -1,5 +1,7 @@
#pragma once
namespace cdc {
template <typename T>
struct Link {
Link *next;
@ -15,7 +17,7 @@ struct LinkIterator {
};
template <typename T>
struct LinkedList {
struct SList {
Link<T> *head = nullptr;
inline void insert(T item) {
@ -25,3 +27,5 @@ struct LinkedList {
inline LinkIterator<T> begin() { return {head}; }
inline LinkIterator<T> end() { return {nullptr}; }
};
}

View File

@ -1,6 +1,6 @@
#pragma once
#include <cstdint>
#include "cdcSys/LinkedList.h"
#include "cdcSys/SList.h"
namespace cdc {
@ -15,9 +15,9 @@ public:
DRMReadDets *drmReadDets = nullptr; // C
const char *path; // 18
uint32_t rootSection = ~0u; // 1C
LinkedList<ResolveObject *> dependencies; // 20
SList<ResolveObject *> dependencies; // 20
uint32_t numPendingDependencies = 0; // 24
LinkedList<ResolveObject *> dependants; // 28
SList<ResolveObject *> dependants; // 28
ResolveReceiver *resolveReceiver = nullptr; // 38
static ResolveObject *create(

View File

@ -30,16 +30,16 @@ struct PPUnknown2 {
class PPManager {
public:
Array<dtp::PPActiveSet*> activeSets; // 4
Array<PPTexture> textures; // 10
Array<PPVariable> variables; // 1C
cdc::Array<dtp::PPActiveSet*> activeSets; // 4
cdc::Array<PPTexture> textures; // 10
cdc::Array<PPVariable> variables; // 1C
uint32_t rootPasses28;
uint32_t dwords2C[32];
uint32_t dwordsAC[32];
uint32_t dwords12C[32];
uint32_t width;
uint32_t height;
Array<PPUnknown2*> unknowns2; // 1B4
cdc::Array<PPUnknown2*> unknowns2; // 1B4
PPManager();
virtual ~PPManager() = default;