mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
Kernel.Fs: Device file cleanup and /dev/rng implementation (#3682)
* Add RNG device * rng device implementation Tailored around libSceSsl2's usage, and based on fpPS4's implementation. * Device file function types and log fixups * Updated creates Updates device file create functions to be the same as the directory file create functions. * Fix compile * Includes cleanup Generally preferred to have full paths. Also removed some unused imports too. * Fix buffer size * Bring back cstdlib imports Needed for Mac OS.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "core/file_sys/devices/logger.h"
|
||||
#include "core/file_sys/devices/nop_device.h"
|
||||
#include "core/file_sys/devices/random_device.h"
|
||||
#include "core/file_sys/devices/rng_device.h"
|
||||
#include "core/file_sys/devices/srandom_device.h"
|
||||
#include "core/file_sys/devices/urandom_device.h"
|
||||
#include "core/file_sys/directories/normal_directory.h"
|
||||
@@ -64,7 +65,8 @@ static std::map<std::string, FactoryDevice> available_device = {
|
||||
{"/dev/random", &D::RandomDevice::Create },
|
||||
{"/dev/srandom", &D::SRandomDevice::Create },
|
||||
{"/dev/console", &D::ConsoleDevice::Create },
|
||||
{"/dev/deci_tty6",&D::DeciTty6Device::Create }
|
||||
{"/dev/deci_tty6",&D::DeciTty6Device::Create },
|
||||
{"/dev/rng", &D::RngDevice::Create },
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user