A modded EditSaber for making beat saber maps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
617 B

// Fill out your copyright notice in the Description page of Project Settings.
#include "RegReader.h"
FString URegReader::ReadRegistryValue(const FString& KeyName, const FString& ValueName)
{
HKEY hKey;
LONG Result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, *KeyName, 0, KEY_READ | KEY_WOW64_32KEY, &hKey);
if (Result != ERROR_SUCCESS)
{
// Handle error
}
TCHAR Buffer[MAX_PATH];
DWORD BufferSize = sizeof(Buffer);
HRESULT hResult = RegQueryValueEx(hKey, *ValueName, 0, nullptr, reinterpret_cast<LPBYTE>(Buffer), &BufferSize);
if (hResult != ERROR_SUCCESS)
{
// Handle error
}
return FString(Buffer);
}