mirror of
https://github.com/SMGCommunity/Petari.git
synced 2024-12-02 10:36:39 +00:00
some small FileHolder changes and a ltitle MemoryUtil decompilation
This commit is contained in:
parent
7210917e55
commit
fc54b2d1f1
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#ifndef JMAPINFO_H
|
||||
#define JMAPINFO_H
|
||||
|
||||
#include "bcsv.h"
|
||||
#include <revolution.h>
|
||||
|
||||
struct JMapData
|
||||
@ -56,4 +56,6 @@ public:
|
||||
|
||||
const JMapData* mData; // _0
|
||||
const char* mName; // _4
|
||||
};
|
||||
};
|
||||
|
||||
#endif // JMAPINFO_H
|
@ -18,6 +18,7 @@ namespace MR
|
||||
|
||||
void becomeCurrentHeap(JKRHeap *);
|
||||
JKRHeap* getCurrentHeap();
|
||||
bool isEqualCurrentHeap(JKRHeap *);
|
||||
|
||||
void zeroMemory(void *, u32);
|
||||
s32 calcCheckSum(const void *, u32);
|
||||
|
@ -25,6 +25,9 @@ public:
|
||||
class FileHolder
|
||||
{
|
||||
public:
|
||||
FileHolder();
|
||||
|
||||
void add(const char *, JKRHeap *, void *);
|
||||
bool isExist(const char *) const;
|
||||
void* getContext(const char *) const;
|
||||
|
||||
|
@ -1,24 +0,0 @@
|
||||
#ifndef BCSV_H
|
||||
#define BCSV_H
|
||||
|
||||
#include <revolution.h>
|
||||
|
||||
struct BCSVEntry
|
||||
{
|
||||
u32 mNameHash;
|
||||
u32 mMask;
|
||||
u16 mDataOffs;
|
||||
u8 mShift;
|
||||
u8 mField;
|
||||
};
|
||||
|
||||
struct BCSVHeader
|
||||
{
|
||||
u32 mEntryCount;
|
||||
u32 mFieldCount;
|
||||
u32 mDataOffs;
|
||||
u32 mEntrySize;
|
||||
BCSVEntry** mEntries;
|
||||
};
|
||||
|
||||
#endif // BCSV_H
|
@ -15,4 +15,9 @@ namespace MR
|
||||
MR::becomeCurrentHeap(mPreviousHeap);
|
||||
OSUnlockMutex(&MutexHolder<1>::sMutex);
|
||||
}
|
||||
|
||||
JKRHeap* getCurrentHeap()
|
||||
{
|
||||
return JKRHeap::sCurrentHeap;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user