Skip to content

Commit

Permalink
Add settings for hydra core
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Jan 6, 2024
1 parent 0768342 commit e0d55d8
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
43 changes: 42 additions & 1 deletion src/hydra_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,47 @@
#include "hydra_icon.hpp"
#include "swap.hpp"

constexpr const char* settings = R"(
[aes_keys]
name = "AES Keys"
description = "AES keys to use for encrypted ROM decryption"
type = "filepicker"
extensions = "txt"
category = "General"
[UseVirtualSD]
name = "Use Virtual SD"
description = "Use a virtual SD card"
type = "checkbox"
category = "General"
[WriteProtectVirtualSD]
name = "Write Protect Virtual SD"
description = "Prevents the emulated 3DS from writing to the virtual SD card"
type = "checkbox"
category = "General"
[UseShaderJIT]
name = "Use Shader JIT"
description = "Use a shader JIT to recompile shaders at runtime"
type = "checkbox"
category = "Video"
[BatteryPercentage]
name = "Battery Percentage"
description = "Percentage of battery remaining"
type = "slider"
slider_min = 0
slider_max = 100
category = "Miscellaneous"
[ChargerPlugged]
name = "Charger Plugged"
description = "Whether the charger is plugged in"
type = "checkbox"
category = "Miscellaneous"
)";

class HC_GLOBAL HydraCore final : public hydra::IBase,
public hydra::IOpenGlRendered,
public hydra::IFrontendDriven,
Expand Down Expand Up @@ -172,7 +213,7 @@ HC_API const char* getInfo(hydra::InfoType type) {
case hydra::InfoType::License: return "GPLv3";
case hydra::InfoType::Website: return "https://panda3ds.com/";
case hydra::InfoType::Extensions: return "3ds,cci,cxi,app,3dsx,elf,axf";
case hydra::InfoType::Firmware: return "";
case hydra::InfoType::Settings: return settings;
case hydra::InfoType::IconWidth: return HYDRA_ICON_WIDTH;
case hydra::InfoType::IconHeight: return HYDRA_ICON_HEIGHT;
case hydra::InfoType::IconData: return (const char*)&HYDRA_ICON_DATA[0];
Expand Down
2 changes: 1 addition & 1 deletion third_party/hydra_core
Submodule hydra_core updated 1 files
+101 −36 include/hydra/core.hxx

0 comments on commit e0d55d8

Please # to comment.