mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-16 04:32:29 +00:00
chore(style): normalize memory allocations
This commit is contained in:
parent
90403bfd29
commit
97a6a8dd91
27 changed files with 147 additions and 279 deletions
|
|
@ -36,8 +36,8 @@ CM2Shared* CM2Cache::CreateShared(const char* path, uint32_t flags) {
|
|||
SFile* fileptr;
|
||||
|
||||
if (SFile::OpenEx(nullptr, convertedPath, (flags >> 2) & 1, &fileptr)) {
|
||||
void* m = SMemAlloc(sizeof(CM2Shared), __FILE__, __LINE__, 0x0);
|
||||
CM2Shared* shared = new (m) CM2Shared(this);
|
||||
auto m = SMemAlloc(sizeof(CM2Shared), __FILE__, __LINE__, 0x0);
|
||||
auto shared = new (m) CM2Shared(this);
|
||||
|
||||
if (shared->Load(fileptr, flags & 0x4, &v28)) {
|
||||
strcpy(shared->m_filePath, convertedPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue