Update comments
Co-Authored-By: Mireille <13669774+fleroviux@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
|
||||||
// Remember to initialize everything field here to its default value otherwise bad things will happen
|
// Remember to initialize every field here to its default value otherwise bad things will happen
|
||||||
struct EmulatorConfig {
|
struct EmulatorConfig {
|
||||||
bool shaderJitEnabled = false;
|
bool shaderJitEnabled = false;
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
#include "toml.hpp"
|
#include "toml.hpp"
|
||||||
|
|
||||||
// Largely based on https://github.com/nba-emu/NanoBoyAdvance/blob/master/src/platform/core/src/config.cpp
|
// Largely based on https://github.com/nba-emu/NanoBoyAdvance/blob/master/src/platform/core/src/config.cpp
|
||||||
|
// We are legally allowed, as per the author's wish, to use the above code without any licensing restrictions
|
||||||
|
// However we still want to follow the license as closely as possible and offer the proper attributions.
|
||||||
|
|
||||||
void EmulatorConfig::load(const std::filesystem::path& path) {
|
void EmulatorConfig::load(const std::filesystem::path& path) {
|
||||||
// If the configuration file does not exist, create it and return
|
// If the configuration file does not exist, create it and return
|
||||||
|
|||||||
Reference in New Issue
Block a user