Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion OnlineCore/include/Core/StorageUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class StorageUnit {
virtual void Truncate();
virtual size_t Read(u64, u64, u8*) const;
virtual size_t Write(u64, u64, u8*);
virtual bool Reserve(u64);

virtual bool Reserve(u64) { return false; }

virtual u32 GetReservedSize();
};
} // namespace nn::nex
3 changes: 2 additions & 1 deletion OnlineCore/include/Platform/Core/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class Log : public RootObject {
virtual ~Log();
virtual void Output(const char*, ...);
virtual void OutputString(const char*, ...);
virtual void AddCustomPrefix(char*, s32, void*);

virtual void AddCustomPrefix(char*, s32, void*) {}

void OutputImpl(const char*, std::va_list, void*);
void PrepareOutput(char*, u32, void*);
Expand Down
7 changes: 5 additions & 2 deletions OnlineCore/include/Platform/Core/MemoryManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ class MemoryManager : public RootObject {
MemoryManager(const char* watermarkName);

virtual ~MemoryManager();
virtual void BeginProtection();
virtual void EndProtection();

virtual void BeginProtection() {}

virtual void EndProtection() {}

static void* Allocate(u64);
static void* GenericMalloc(u64);
static void AllocateForPbPool(void*, fcnFree, void*);
Expand Down
2 changes: 1 addition & 1 deletion OnlineCore/include/Platform/Core/OutputFormat.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace nn::nex {
class OutputFormat : public RootObject {
public:
OutputFormat();
virtual ~OutputFormat();
virtual ~OutputFormat() = default;

virtual void StartString(char*, u32);
virtual u32 StartPrefixes(char*, u32);
Expand Down
4 changes: 0 additions & 4 deletions OnlineCore/src/Core/StorageUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ bool StorageUnit::CopyData(const StorageUnit* source, StorageUnit* destination)
return AppendData(source, destination);
}

bool StorageUnit::Reserve(u64) {
return false;
}

u32 StorageUnit::GetReservedSize() {
return 0;
}
Expand Down
2 changes: 0 additions & 2 deletions OnlineCore/src/Platform/Core/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ void Log::OutputString(const char* str, ...) {
OutputImpl(str, va, nullptr);
}

void Log::AddCustomPrefix(char*, s32, void*) {}

void Log::OutputImpl(const char* str, std::va_list va, void* ptr) {
if (!m_LogDevice)
return;
Expand Down
4 changes: 0 additions & 4 deletions OnlineCore/src/Platform/Core/MemoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,4 @@ const char* MemoryManager::GetInstructionTypeString(_InstructionType instruction
return "UNDEFINED INSTRUCTION TYPE!";
}

void MemoryManager::BeginProtection() {}

void MemoryManager::EndProtection() {}

} // namespace nn::nex
2 changes: 0 additions & 2 deletions OnlineCore/src/Platform/Core/OutputFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ OutputFormat::OutputFormat() {
m_ulTime = Time::GetTime();
}

OutputFormat::~OutputFormat() {}

void OutputFormat::StartString(char* str, u32) {
*str = 0;
}
Expand Down