Batch #1397 by Yommy: 0 byte-identical, 4 confirmed by peer review. - fn_19376 NavigationManager::FindObject: logic confirmed by peer review - fn_19434 NavigationObject::HasName: logic confirmed by peer review - fn_19613 NavigationManager::LoadSettings: logic confirmed by peer review - fn_19618 NavigationManager::FitToSquare: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Contents/NavigationRoute.cpp
28 lines
675 B
C++
28 lines
675 B
C++
#ifndef RAGNAROK_SOURCE_UTILITY_REGISTRYKEY_H
|
|
#define RAGNAROK_SOURCE_UTILITY_REGISTRYKEY_H
|
|
|
|
#include <windows.h>
|
|
|
|
class RegistryKey {
|
|
public:
|
|
RegistryKey() : handle(nullptr) {}
|
|
~RegistryKey() {
|
|
if (this->handle != nullptr) {
|
|
RegCloseKey(this->handle);
|
|
}
|
|
this->handle = nullptr;
|
|
}
|
|
|
|
/* 0000 */ HKEY handle;
|
|
|
|
bool Create(HKEY parent, const char* subKey);
|
|
bool Open(HKEY parent, const char* subKey);
|
|
bool Query(const char* name, DWORD expectedType, BYTE* data, DWORD size);
|
|
bool Set(const char* name, DWORD type, const BYTE* data, DWORD size);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(RegistryKey) == 4);
|
|
#endif
|
|
|
|
#endif
|