mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-07 12:11:22 -06:00
* Implemented Windows registry read/write * Simplify registry API and handle path writes * Linux SetWorkingDirectory * Implement reading path and unicode string from windows registry * Use string_view value names for registry * Use RegGetValueW * Paths adjustments * / * Update working directory update failure message * Updated linux SetWorkingDirectory * Update flatpak define * Remove RootDirectoryPath and save registry at startup * dont save registry on exit * Slight formatting update --------- Co-authored-by: Sajid <sajidur78@gmail.com>
19 lines
357 B
C++
19 lines
357 B
C++
#pragma once
|
|
|
|
namespace os::registry
|
|
{
|
|
bool Init();
|
|
|
|
template<typename T>
|
|
bool ReadValue(const std::string_view& name, T& data);
|
|
|
|
template<typename T>
|
|
bool WriteValue(const std::string_view& name, const T& data);
|
|
}
|
|
|
|
#if _WIN32
|
|
#include <os/win32/registry_win32.inl>
|
|
#elif defined(__linux__)
|
|
#include <os/linux/registry_linux.inl>
|
|
#endif
|