diff --git a/LICENSE b/LICENSE index de2c221c..1ccef1f1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,10 +1,10 @@ - "libstratosphere", "loader" from Atmosphere-NX and "memtester" are licensed under GPL v2. -- "libultrahand" by b0redtoauth is licensed under the CC-BY-4.0 license, which is compatible with GPLv2 +- "libultrahand" by b0redt0death is licensed under the CC-BY-4.0 license, which is compatible with GPLv2 - Tinymembench is under MIT license, which is compatible with GPL v2. -- Although "sys-clk" uses permissive license, all modifications towards it in this repo ("sys-clk-OC") are licensed under GPL v2. +- Although "sys-clk" uses permissive license, all modifications towards it in this repo ("hoc-sys") are licensed under GPL v2. GNU GENERAL PUBLIC LICENSE diff --git a/Source/sys-clk/build.sh b/Source/sys-clk/build.sh index 1485b076..e429231b 100644 --- a/Source/sys-clk/build.sh +++ b/Source/sys-clk/build.sh @@ -40,6 +40,6 @@ mkdir -p "$DIST_DIR/switch/.overlays" cp -vf "$ROOT_DIR/overlay/out/horizon-oc-overlay.ovl" "$DIST_DIR/switch/.overlays/horizon-oc-overlay.ovl" echo "*** assets ***" -mkdir -p "$DIST_DIR/config/sys-clk" -cp -vf "$ROOT_DIR/config.ini.template" "$DIST_DIR/config/sys-clk/config.ini.template" +mkdir -p "$DIST_DIR/config/horizon-oc" +cp -vf "$ROOT_DIR/config.ini.template" "$DIST_DIR/config/horizon-oc/config.ini.template" cp -vf "$ROOT_DIR/../../README.md" "$DIST_DIR/README.md" diff --git a/Source/sys-clk/common/include/sysclk.h b/Source/sys-clk/common/include/sysclk.h index d4e5b6cb..e1c5753d 100644 --- a/Source/sys-clk/common/include/sysclk.h +++ b/Source/sys-clk/common/include/sysclk.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include #ifdef __cplusplus diff --git a/Source/sys-clk/common/include/sysclk/apm.h b/Source/sys-clk/common/include/sysclk/apm.h index c2106517..5eb8da28 100644 --- a/Source/sys-clk/common/include/sysclk/apm.h +++ b/Source/sys-clk/common/include/sysclk/apm.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include "board.h" diff --git a/Source/sys-clk/common/include/sysclk/board.h b/Source/sys-clk/common/include/sysclk/board.h index 6def5a8d..3184bbb2 100644 --- a/Source/sys-clk/common/include/sysclk/board.h +++ b/Source/sys-clk/common/include/sysclk/board.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/common/include/sysclk/client/ipc.h b/Source/sys-clk/common/include/sysclk/client/ipc.h index c903807f..d455907e 100644 --- a/Source/sys-clk/common/include/sysclk/client/ipc.h +++ b/Source/sys-clk/common/include/sysclk/client/ipc.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include "types.h" diff --git a/Source/sys-clk/common/include/sysclk/client/types.h b/Source/sys-clk/common/include/sysclk/client/types.h index 2e67315a..7cd898e3 100644 --- a/Source/sys-clk/common/include/sysclk/client/types.h +++ b/Source/sys-clk/common/include/sysclk/client/types.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __SWITCH__ diff --git a/Source/sys-clk/common/include/sysclk/clock_manager.h b/Source/sys-clk/common/include/sysclk/clock_manager.h index d428b548..887d13a4 100644 --- a/Source/sys-clk/common/include/sysclk/clock_manager.h +++ b/Source/sys-clk/common/include/sysclk/clock_manager.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/common/include/sysclk/config.h b/Source/sys-clk/common/include/sysclk/config.h index bd44ee15..ae5a4dbc 100644 --- a/Source/sys-clk/common/include/sysclk/config.h +++ b/Source/sys-clk/common/include/sysclk/config.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/common/include/sysclk/errors.h b/Source/sys-clk/common/include/sysclk/errors.h index 6d94908e..57cf9c80 100644 --- a/Source/sys-clk/common/include/sysclk/errors.h +++ b/Source/sys-clk/common/include/sysclk/errors.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #define SYSCLK_ERROR_MODULE 388 diff --git a/Source/sys-clk/common/include/sysclk/ipc.h b/Source/sys-clk/common/include/sysclk/ipc.h index 48437c8d..3d9d277e 100644 --- a/Source/sys-clk/common/include/sysclk/ipc.h +++ b/Source/sys-clk/common/include/sysclk/ipc.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/common/src/apm_profile_table.c b/Source/sys-clk/common/src/apm_profile_table.c index 23a95438..17ff6227 100644 --- a/Source/sys-clk/common/src/apm_profile_table.c +++ b/Source/sys-clk/common/src/apm_profile_table.c @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include SysClkApmConfiguration sysclk_g_apm_configurations[] = { diff --git a/Source/sys-clk/common/src/client/ipc.c b/Source/sys-clk/common/src/client/ipc.c index 8bc6801a..89a7b5ec 100644 --- a/Source/sys-clk/common/src/client/ipc.c +++ b/Source/sys-clk/common/src/client/ipc.c @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #define NX_SERVICE_ASSUME_NON_DOMAIN #include #include diff --git a/Source/sys-clk/manager/lib/borealis/library/include/borealis/view.hpp b/Source/sys-clk/manager/lib/borealis/library/include/borealis/view.hpp index 88f0980f..d1c53673 100644 --- a/Source/sys-clk/manager/lib/borealis/library/include/borealis/view.hpp +++ b/Source/sys-clk/manager/lib/borealis/library/include/borealis/view.hpp @@ -213,7 +213,7 @@ class View /** * Called each frame - * Do not override it to draw your view, + * Default it to draw your view, * override draw() instead */ virtual void frame(FrameContext* ctx); diff --git a/Source/sys-clk/manager/src/utils.h b/Source/sys-clk/manager/src/utils.h index dad9ef93..316fa5b2 100644 --- a/Source/sys-clk/manager/src/utils.h +++ b/Source/sys-clk/manager/src/utils.h @@ -33,7 +33,7 @@ extern uint32_t g_freq_table_hz[SysClkModule_EnumMax][SYSCLK_FREQ_LIST_MAX+1]; Result cacheFreqList(); std::string formatListItemTitle(const std::string str, size_t maxScore = 140); -brls::SelectListItem* createFreqListItem(SysClkModule module, uint32_t selectedFreqInMHz, std::string defaultString = "Do not override"); +brls::SelectListItem* createFreqListItem(SysClkModule module, uint32_t selectedFreqInMHz, std::string defaultString = "Default"); std::string formatFreq(uint32_t freq); std::string formatTid(uint64_t tid); diff --git a/Source/sys-clk/overlay/lang/de.json b/Source/sys-clk/overlay/lang/de.json index f2f9af1d..ff105584 100644 --- a/Source/sys-clk/overlay/lang/de.json +++ b/Source/sys-clk/overlay/lang/de.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Offizielles Ladegerät   Reset", "USB Charger   Reset": "USB-Ladegerät   Reset", "Memory": "Speicher", - "Do not override": "Nicht überschreiben", + "Default": "Nicht überschreiben", "Profile": "Profil" } diff --git a/Source/sys-clk/overlay/lang/en.json b/Source/sys-clk/overlay/lang/en.json index 0168f6e8..a3ea6ac8 100644 --- a/Source/sys-clk/overlay/lang/en.json +++ b/Source/sys-clk/overlay/lang/en.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "PD Charger   Reset", "USB Charger   Reset": "USB Charger   Reset", "Memory": "Memory", - "Do not override": "Do not overrride", + "Default": "Do not overrride", "Profile": "Profile" } diff --git a/Source/sys-clk/overlay/lang/es.json b/Source/sys-clk/overlay/lang/es.json index 0bff493c..b617839f 100644 --- a/Source/sys-clk/overlay/lang/es.json +++ b/Source/sys-clk/overlay/lang/es.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Cargador oficial   Reiniciar", "USB Charger   Reset": "Cargador USB   Reiniciar", "Memory": "Memoria", - "Do not override": "No sobrescribir", + "Default": "No sobrescribir", "Profile": "Perfil" } diff --git a/Source/sys-clk/overlay/lang/fr.json b/Source/sys-clk/overlay/lang/fr.json index fa5dc822..2098edb9 100644 --- a/Source/sys-clk/overlay/lang/fr.json +++ b/Source/sys-clk/overlay/lang/fr.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Chargeur off.   Réinitialiser", "USB Charger   Reset": "Chargeur USB   Réinitialiser", "Memory": "Mémoire", - "Do not override": "Ne pas remplacer", + "Default": "Ne pas remplacer", "Profile": "Profil" } diff --git a/Source/sys-clk/overlay/lang/it.json b/Source/sys-clk/overlay/lang/it.json index 09a0b891..52ae8be9 100644 --- a/Source/sys-clk/overlay/lang/it.json +++ b/Source/sys-clk/overlay/lang/it.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Caricatore ufficiale   Reimposta", "USB Charger   Reset": "Caricatore USB   Reimposta", "Memory": "Memoria", - "Do not override": "Non sovrascrivere", + "Default": "Non sovrascrivere", "Profile": "Profilo" } diff --git a/Source/sys-clk/overlay/lang/ja.json b/Source/sys-clk/overlay/lang/ja.json index c75eb047..b3e48afa 100644 --- a/Source/sys-clk/overlay/lang/ja.json +++ b/Source/sys-clk/overlay/lang/ja.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "公式充電器   リセット", "USB Charger   Reset": "USB充電器   リセット", "Memory": "メモリ", - "Do not override": "オーバーライドしない", + "Default": "オーバーライドしない", "Profile": "プロフィール" } diff --git a/Source/sys-clk/overlay/lang/ko.json b/Source/sys-clk/overlay/lang/ko.json index 9bc03beb..880485f5 100644 --- a/Source/sys-clk/overlay/lang/ko.json +++ b/Source/sys-clk/overlay/lang/ko.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "공식 충전기   리셋", "USB Charger   Reset": "USB 충전기   리셋", "Memory": "메모리", - "Do not override": "오버라이드 안 함", + "Default": "오버라이드 안 함", "Profile": "프로필" } diff --git a/Source/sys-clk/overlay/lang/nl.json b/Source/sys-clk/overlay/lang/nl.json index 0b6579ab..86945f25 100644 --- a/Source/sys-clk/overlay/lang/nl.json +++ b/Source/sys-clk/overlay/lang/nl.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Officiële oplader   Resetten", "USB Charger   Reset": "USB-oplader   Resetten", "Memory": "Geheugen", - "Do not override": "Niet overschrijven", + "Default": "Niet overschrijven", "Profile": "Profiel" } diff --git a/Source/sys-clk/overlay/lang/pl.json b/Source/sys-clk/overlay/lang/pl.json index fe0739cf..2a9d54ad 100644 --- a/Source/sys-clk/overlay/lang/pl.json +++ b/Source/sys-clk/overlay/lang/pl.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Oficjalna ładowarka   Resetuj", "USB Charger   Reset": "Ładowarka USB   Resetuj", "Memory": "Pamięć", - "Do not override": "Nie nadpisuj", + "Default": "Nie nadpisuj", "Profile": "Profil" } diff --git a/Source/sys-clk/overlay/lang/pt.json b/Source/sys-clk/overlay/lang/pt.json index 25e225a0..d442444b 100644 --- a/Source/sys-clk/overlay/lang/pt.json +++ b/Source/sys-clk/overlay/lang/pt.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Carreg. of.   Reiniciar", "USB Charger   Reset": "Carregador USB   Reiniciar", "Memory": "Memória", - "Do not override": "Não substituir", + "Default": "Não substituir", "Profile": "Perfil" } diff --git a/Source/sys-clk/overlay/lang/ru.json b/Source/sys-clk/overlay/lang/ru.json index 501b62f6..2d424157 100644 --- a/Source/sys-clk/overlay/lang/ru.json +++ b/Source/sys-clk/overlay/lang/ru.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Офиц. зарядка   Сброс", "USB Charger   Reset": "USB зарядка   Сброс", "Memory": "RAM", - "Do not override": "По умолчанию", + "Default": "По умолчанию", "Profile": "Профиль" } diff --git a/Source/sys-clk/overlay/lang/uk.json b/Source/sys-clk/overlay/lang/uk.json index ae08ce1d..313fe33d 100644 --- a/Source/sys-clk/overlay/lang/uk.json +++ b/Source/sys-clk/overlay/lang/uk.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "Оф. зарядка   Скидання", "USB Charger   Reset": "USB зарядка   Скидання", "Memory": "Пам’ять", - "Do not override": "Не змінювати", + "Default": "Не змінювати", "Profile": "Профіль" } diff --git a/Source/sys-clk/overlay/lang/zh-cn.json b/Source/sys-clk/overlay/lang/zh-cn.json index e1487637..655ff113 100644 --- a/Source/sys-clk/overlay/lang/zh-cn.json +++ b/Source/sys-clk/overlay/lang/zh-cn.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "官方充电器   重置", "USB Charger   Reset": "USB充电器   重置", "Memory": "内存", - "Do not override": "不覆盖", + "Default": "不覆盖", "Profile": "配置文件" } diff --git a/Source/sys-clk/overlay/lang/zh-tw.json b/Source/sys-clk/overlay/lang/zh-tw.json index 3bd6a25e..a68a66fe 100644 --- a/Source/sys-clk/overlay/lang/zh-tw.json +++ b/Source/sys-clk/overlay/lang/zh-tw.json @@ -30,6 +30,6 @@ "PD Charger   Reset": "官方充電器   重置", "USB Charger   Reset": "USB充電器   重置", "Memory": "記憶體", - "Do not override": "不覆蓋", + "Default": "不覆蓋", "Profile": "設定檔" } diff --git a/Source/sys-clk/overlay/src/ipc.h b/Source/sys-clk/overlay/src/ipc.h index 282cc427..b03f0573 100644 --- a/Source/sys-clk/overlay/src/ipc.h +++ b/Source/sys-clk/overlay/src/ipc.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #if defined(__cplusplus) diff --git a/Source/sys-clk/overlay/src/main.cpp b/Source/sys-clk/overlay/src/main.cpp index 03c69f35..f9fe83e5 100644 --- a/Source/sys-clk/overlay/src/main.cpp +++ b/Source/sys-clk/overlay/src/main.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #define TESLA_INIT_IMPL #include diff --git a/Source/sys-clk/overlay/src/ui/elements/base_frame.h b/Source/sys-clk/overlay/src/ui/elements/base_frame.h index 053ef26a..034aba90 100644 --- a/Source/sys-clk/overlay/src/ui/elements/base_frame.h +++ b/Source/sys-clk/overlay/src/ui/elements/base_frame.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/overlay/src/ui/format.h b/Source/sys-clk/overlay/src/ui/format.h index e20c5b5b..5f9ab2ad 100644 --- a/Source/sys-clk/overlay/src/ui/format.h +++ b/Source/sys-clk/overlay/src/ui/format.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,11 +28,12 @@ * -------------------------------------------------------------------------- */ + #pragma once #include -#define FREQ_DEFAULT_TEXT "Do not override" +#define FREQ_DEFAULT_TEXT "Default" static inline std::string formatListFreqMHz(std::uint32_t mhz) { diff --git a/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.cpp index 52c2aa7c..e282b669 100644 --- a/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "app_profile_gui.h" #include "../format.h" @@ -62,7 +83,7 @@ void AppProfileGui::addModuleListItem(SysClkProfile profile, SysClkModule module } else if((keys & HidNpadButton_Y) == HidNpadButton_Y) { - // Reset to "Do not override" (0 MHz) + // Reset to "Default" (0 MHz) this->profileList->mhzMap[profile][module] = 0; listItem->setValue(formatListFreqMHz(0)); diff --git a/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.h b/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.h index 5e1ecc6d..23939394 100644 --- a/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/app_profile_gui.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include "../../ipc.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/base_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/base_gui.cpp index d32986b2..7d38134f 100644 --- a/Source/sys-clk/overlay/src/ui/gui/base_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/base_gui.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "base_gui.h" #include "../elements/base_frame.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/base_gui.h b/Source/sys-clk/overlay/src/ui/gui/base_gui.h index a3a7f8cc..a5a00045 100644 --- a/Source/sys-clk/overlay/src/ui/gui/base_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/base_gui.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.cpp index f999b7a1..9b906bc6 100644 --- a/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "base_menu_gui.h" #include "fatal_gui.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.h b/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.h index d9c061ea..461926c4 100644 --- a/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/base_menu_gui.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include "../../rgltr_services.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/fatal_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/fatal_gui.cpp index a1f225a0..bd5760a7 100644 --- a/Source/sys-clk/overlay/src/ui/gui/fatal_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/fatal_gui.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "fatal_gui.h" FatalGui::FatalGui(const std::string message, const std::string info) diff --git a/Source/sys-clk/overlay/src/ui/gui/fatal_gui.h b/Source/sys-clk/overlay/src/ui/gui/fatal_gui.h index e20b6cc9..77d04136 100644 --- a/Source/sys-clk/overlay/src/ui/gui/fatal_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/fatal_gui.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.cpp index 242ac0f5..912266ce 100644 --- a/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "freq_choice_gui.h" #include "../format.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.h b/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.h index c0956007..466bb9bb 100644 --- a/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/freq_choice_gui.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include @@ -16,7 +37,7 @@ using FreqChoiceListener = std::function; -#define FREQ_DEFAULT_TEXT "Do not override" +#define FREQ_DEFAULT_TEXT "Default" class FreqChoiceGui : public BaseMenuGui { diff --git a/Source/sys-clk/overlay/src/ui/gui/global_override_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/global_override_gui.cpp index d36624f5..2e49ac6c 100644 --- a/Source/sys-clk/overlay/src/ui/gui/global_override_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/global_override_gui.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "global_override_gui.h" #include "fatal_gui.h" @@ -59,7 +80,7 @@ void GlobalOverrideGui::addModuleListItem(SysClkModule module) } else if((keys & HidNpadButton_Y) == HidNpadButton_Y) { - // Reset override to "Do not override" (0 Hz) + // Reset override to "Default" (0 Hz) Result rc = sysclkIpcSetOverride(module, 0); if(R_FAILED(rc)) { diff --git a/Source/sys-clk/overlay/src/ui/gui/global_override_gui.h b/Source/sys-clk/overlay/src/ui/gui/global_override_gui.h index 3dc9caf5..bb4dcafa 100644 --- a/Source/sys-clk/overlay/src/ui/gui/global_override_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/global_override_gui.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include "../../ipc.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/main_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/main_gui.cpp index 9fd8e11b..0524f4fa 100644 --- a/Source/sys-clk/overlay/src/ui/gui/main_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/main_gui.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "main_gui.h" #include "fatal_gui.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/main_gui.h b/Source/sys-clk/overlay/src/ui/gui/main_gui.h index ea54ef53..07d3db2d 100644 --- a/Source/sys-clk/overlay/src/ui/gui/main_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/main_gui.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include "base_menu_gui.h" diff --git a/Source/sys-clk/overlay/src/ui/gui/misc_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/misc_gui.cpp index d3732048..89867f2d 100644 --- a/Source/sys-clk/overlay/src/ui/gui/misc_gui.cpp +++ b/Source/sys-clk/overlay/src/ui/gui/misc_gui.cpp @@ -1,3 +1,25 @@ +/* + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + + #include "misc_gui.h" #include "fatal_gui.h" #include "../format.h" @@ -15,6 +37,8 @@ MiscGui::~MiscGui() delete this->configList; this->configToggles.clear(); this->configTrackbars.clear(); + this->configButtons.clear(); + this->configRanges.clear(); } void MiscGui::addConfigToggle(SysClkConfigValue configVal, const char* altName) { @@ -31,68 +55,142 @@ void MiscGui::addConfigToggle(SysClkConfigValue configVal, const char* altName) this->configToggles[configVal] = toggle; } -void MiscGui::addConfigButton(SysClkConfigValue configVal, const char* altName, SysClkModule module) { +void MiscGui::addConfigButton(SysClkConfigValue configVal, + const char* altName, + const ValueRange& range, + const std::string& categoryName, + const ValueThresholds* thresholds) +{ const char* configName = altName ? altName : sysclkFormatConfigValue(configVal, true); - // Create button list item + + tsl::elm::ListItem* listItem = new tsl::elm::ListItem(configName); + + uint64_t currentValue = this->configList->values[configVal]; + char valueText[32]; + if (currentValue == 0) { + snprintf(valueText, sizeof(valueText), "%s", VALUE_DEFAULT_TEXT); + } else { + uint64_t displayValue = currentValue / range.divisor; + if (!range.suffix.empty()) { + snprintf(valueText, sizeof(valueText), "%lu %s", displayValue, range.suffix.c_str()); + } else { + snprintf(valueText, sizeof(valueText), "%lu", displayValue); + } + } + listItem->setValue(valueText); + + ValueThresholds thresholdsCopy = (thresholds ? *thresholds : ValueThresholds{}); + + listItem->setClickListener( + [this, configVal, range, categoryName, thresholdsCopy](u64 keys) + { + if ((keys & HidNpadButton_A) == 0) + return false; + + std::uint32_t currentValue = this->configList->values[configVal]; + + if (thresholdsCopy.warning != 0 || thresholdsCopy.danger != 0) { + + tsl::changeTo( + currentValue, + range, + categoryName, + [this, configVal](std::uint32_t value) { + this->configList->values[configVal] = value; + Result rc = sysclkIpcSetConfigValues(this->configList); + if (R_FAILED(rc)) { + FatalGui::openWithResultCode("sysclkIpcSetConfigValues", rc); + return false; + } + this->lastContextUpdate = armGetSystemTick(); + return true; + }, + thresholdsCopy, + true + ); + } else { + + tsl::changeTo( + currentValue, + range, + categoryName, + [this, configVal](std::uint32_t value) { + this->configList->values[configVal] = value; + Result rc = sysclkIpcSetConfigValues(this->configList); + if (R_FAILED(rc)) { + FatalGui::openWithResultCode("sysclkIpcSetConfigValues", rc); + return false; + } + this->lastContextUpdate = armGetSystemTick(); + return true; + } + ); + } + + return true; + }); + + this->listElement->addItem(listItem); + this->configButtons[configVal] = listItem; + this->configRanges[configVal] = range; +} + +void MiscGui::addFreqButton(SysClkConfigValue configVal, const char* altName, SysClkModule module) { + const char* configName = altName ? altName : sysclkFormatConfigValue(configVal, true); + tsl::elm::ListItem* listItem = new tsl::elm::ListItem(configName); - // Set initial label text (MHz) uint64_t currentMHz = this->configList->values[configVal]; char valueText[32]; snprintf(valueText, sizeof(valueText), "%lu MHz", currentMHz); listItem->setValue(valueText); - // Click listener to open FreqChoiceGui listItem->setClickListener([this, configVal, module](u64 keys) { if ((keys & HidNpadButton_A) == 0) return false; - + std::uint32_t hzList[SYSCLK_FREQ_LIST_MAX]; std::uint32_t hzCount; - - // Get frequency list from sys-clk + Result rc = sysclkIpcGetFreqList(module, hzList, SYSCLK_FREQ_LIST_MAX, &hzCount); if (R_FAILED(rc)) { FatalGui::openWithResultCode("sysclkIpcGetFreqList", rc); return false; } - + std::uint32_t currentHz = this->configList->values[configVal] * 1'000'000; - + tsl::changeTo( currentHz, hzList, hzCount, module, [this, configVal](std::uint32_t hz) { - // Convert to MHz for config storage + uint64_t mhz = hz / 1'000'000; this->configList->values[configVal] = mhz; - - // Push new config value + Result rc = sysclkIpcSetConfigValues(this->configList); if (R_FAILED(rc)) { FatalGui::openWithResultCode("sysclkIpcSetConfigValues", rc); return false; } - + this->lastContextUpdate = armGetSystemTick(); return true; }, false ); - - + return true; }); - // Add to UI and internal map for refresh updates this->listElement->addItem(listItem); this->configButtons[configVal] = listItem; + + this->configRanges[configVal] = ValueRange(0, 0, 0, "MHz", 1); } - - void MiscGui::updateConfigToggles() { for (const auto& [value, toggle] : this->configToggles) { if (toggle != nullptr) @@ -110,22 +208,42 @@ void MiscGui::listUI() addConfigToggle(HocClkConfigValue_ThermalThrottle, nullptr); addConfigToggle(HocClkConfigValue_HandheldTDP, nullptr); -// addConfigToggle(HocClkConfigValue_DockedGovernor, nullptr); -// addConfigToggle(HocClkConfigValue_HandheldGovernor, nullptr); + ValueThresholds tdpThresholds(8600, 9500); + addConfigButton( + HocClkConfigValue_HandheldTDPLimit, + "TDP Threshold", + ValueRange(5000, 10000, 100, "mW", 1), + "Power", + &tdpThresholds + ); + ValueThresholds tdpThresholdsLite(6400, 7500); + addConfigButton( + HocClkConfigValue_LiteTDPLimit, + "Lite TDP Threshold", + ValueRange(4000, 8000, 100, "mW", 1), + "Power", + &tdpThresholdsLite + ); + ValueThresholds throttleThresholds(70, 80); + addConfigButton( + HocClkConfigValue_ThermalThrottleThreshold, + "Thermal Throttle Limit", + ValueRange(50, 85, 1, "°C", 1), + "Temp", + &throttleThresholds + ); this->listElement->addItem(new tsl::elm::CategoryHeader("Max Clocks")); if(IsMariko()) { - addConfigButton(HocClkConfigValue_MarikoMaxCpuClock, nullptr, SysClkModule_CPU); - addConfigButton(HocClkConfigValue_MarikoMaxGpuClock, nullptr, SysClkModule_GPU); - addConfigButton(HocClkConfigValue_MarikoMaxMemClock, nullptr, SysClkModule_MEM); + addFreqButton(HocClkConfigValue_MarikoMaxCpuClock, nullptr, SysClkModule_CPU); + addFreqButton(HocClkConfigValue_MarikoMaxGpuClock, nullptr, SysClkModule_GPU); + addFreqButton(HocClkConfigValue_MarikoMaxMemClock, nullptr, SysClkModule_MEM); } else { - addConfigButton(HocClkConfigValue_EristaMaxCpuClock, nullptr, SysClkModule_CPU); - addConfigButton(HocClkConfigValue_EristaMaxGpuClock, nullptr, SysClkModule_GPU); - addConfigButton(HocClkConfigValue_EristaMaxMemClock, nullptr, SysClkModule_MEM); + addFreqButton(HocClkConfigValue_EristaMaxCpuClock, nullptr, SysClkModule_CPU); + addFreqButton(HocClkConfigValue_EristaMaxGpuClock, nullptr, SysClkModule_GPU); + addFreqButton(HocClkConfigValue_EristaMaxMemClock, nullptr, SysClkModule_MEM); } -// this->listElement->addItem(new tsl::elm::CategoryHeader("Voltages")); - } void MiscGui::refresh() { @@ -139,10 +257,21 @@ void MiscGui::refresh() { updateConfigToggles(); for (const auto& [configVal, button] : this->configButtons) { - uint64_t mhz = this->configList->values[configVal]; + uint64_t currentValue = this->configList->values[configVal]; + const ValueRange& range = this->configRanges[configVal]; + char valueText[32]; - snprintf(valueText, sizeof(valueText), "%lu MHz", mhz); + if (currentValue == 0) { + snprintf(valueText, sizeof(valueText), "%s", VALUE_DEFAULT_TEXT); + } else { + uint64_t displayValue = currentValue / range.divisor; + if (!range.suffix.empty()) { + snprintf(valueText, sizeof(valueText), "%lu %s", displayValue, range.suffix.c_str()); + } else { + snprintf(valueText, sizeof(valueText), "%lu", displayValue); + } + } button->setValue(valueText); } } -} +} \ No newline at end of file diff --git a/Source/sys-clk/overlay/src/ui/gui/misc_gui.h b/Source/sys-clk/overlay/src/ui/gui/misc_gui.h index 8bb6e1c4..0192b888 100644 --- a/Source/sys-clk/overlay/src/ui/gui/misc_gui.h +++ b/Source/sys-clk/overlay/src/ui/gui/misc_gui.h @@ -5,25 +5,32 @@ #include #include #include "freq_choice_gui.h" +#include "value_choice_gui.h" + class MiscGui : public BaseMenuGui { public: MiscGui(); ~MiscGui(); - void listUI() override; void refresh() override; - + protected: std::map configButtons; + std::map configRanges; // Store ranges for refresh SysClkConfigValueList* configList; std::map configToggles; std::map>> configTrackbars; + void addConfigToggle(SysClkConfigValue configVal, const char* altName); - void addConfigButton(SysClkConfigValue configVal, const char* altName, SysClkModule module); - + void addConfigButton(SysClkConfigValue configVal, + const char* altName, + const ValueRange& range, + const std::string& categoryName, + const ValueThresholds* thresholds = nullptr); + void addFreqButton(SysClkConfigValue configVal, const char* altName, SysClkModule module); void updateConfigToggles(); - + tsl::elm::ToggleListItem* enabledToggle; u8 frameCounter = 60; -}; +}; \ No newline at end of file diff --git a/Source/sys-clk/overlay/src/ui/gui/value_choice_gui.cpp b/Source/sys-clk/overlay/src/ui/gui/value_choice_gui.cpp new file mode 100644 index 00000000..659062db --- /dev/null +++ b/Source/sys-clk/overlay/src/ui/gui/value_choice_gui.cpp @@ -0,0 +1,149 @@ +/* + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- + * "THE BEER-WARE LICENSE" (Revision 42): + * , , + * wrote this file. As long as you retain this notice you can do whatever you + * want with this stuff. If you meet any of us some day, and you think this + * stuff is worth it, you can buy us a beer in return. - The sys-clk authors + * -------------------------------------------------------------------------- + */ + + + #include "value_choice_gui.h" + #include "../format.h" + #include "fatal_gui.h" + #include + #include + + ValueChoiceGui::ValueChoiceGui(std::uint32_t selectedValue, + const ValueRange& range, + const std::string& categoryName, + ValueChoiceListener listener, + const ValueThresholds& thresholds, + bool enableThresholds) + : selectedValue(selectedValue), + range(range), + categoryName(categoryName), + listener(listener), + thresholds(thresholds), + enableThresholds(enableThresholds) + { + } + + ValueChoiceGui::~ValueChoiceGui() + { + } + + std::string ValueChoiceGui::formatValue(std::uint32_t value) + { + std::ostringstream oss; + + if (value == 0) { + + return VALUE_DEFAULT_TEXT; + } + + std::uint32_t displayValue = value / range.divisor; + + oss << displayValue; + if (!range.suffix.empty()) { + oss << " " << range.suffix; + } + return oss.str(); + } + + int ValueChoiceGui::getSafetyLevel(std::uint32_t value) + { + if (!enableThresholds) { + return 0; + } + + std::uint32_t scaledValue = value / range.divisor; + + if (scaledValue > thresholds.danger) { + return 2; + } + if (scaledValue > thresholds.warning) { + return 1; + } + return 0; + } + + tsl::elm::ListItem* ValueChoiceGui::createValueListItem(std::uint32_t value, bool selected, int safety) + { + std::string text = formatValue(value); + if (selected) { + text += " \uE14B"; + } + + tsl::elm::ListItem* listItem = new tsl::elm::ListItem(text, "", false); + + switch (safety) + { + case 0: + listItem->setTextColor(tsl::Color(255, 255, 255, 255)); + listItem->setValueColor(tsl::Color(255, 255, 255, 255)); + break; + case 1: + listItem->setTextColor(tsl::Color(255, 165, 0, 255)); + listItem->setValueColor(tsl::Color(255, 165, 0, 255)); + break; + case 2: + listItem->setTextColor(tsl::Color(255, 0, 0, 255)); + listItem->setValueColor(tsl::Color(255, 0, 0, 255)); + break; + } + + listItem->setClickListener([this, value](u64 keys) + { + if ((keys & HidNpadButton_A) == HidNpadButton_A && this->listener) { + + if (this->listener(value)) { + tsl::goBack(); + } + return true; + } + return false; + }); + + return listItem; + } + + void ValueChoiceGui::listUI() + { + + if (!categoryName.empty()) { + this->listElement->addItem(new tsl::elm::CategoryHeader(categoryName)); + } + + this->listElement->addItem(this->createValueListItem(0, this->selectedValue == 0, 0)); + + for (std::uint32_t value = range.min; value <= range.max; value += range.step) + { + int safety = getSafetyLevel(value); + bool selected = (value == this->selectedValue); + this->listElement->addItem(this->createValueListItem(value, selected, safety)); + } + + this->listElement->jumpToItem("", "\uE14B"); + } \ No newline at end of file diff --git a/Source/sys-clk/overlay/src/ui/gui/value_choice_gui.h b/Source/sys-clk/overlay/src/ui/gui/value_choice_gui.h new file mode 100644 index 00000000..42fce323 --- /dev/null +++ b/Source/sys-clk/overlay/src/ui/gui/value_choice_gui.h @@ -0,0 +1,90 @@ +/* + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- + * "THE BEER-WARE LICENSE" (Revision 42): + * , , + * wrote this file. As long as you retain this notice you can do whatever you + * want with this stuff. If you meet any of us some day, and you think this + * stuff is worth it, you can buy us a beer in return. - The sys-clk authors + * -------------------------------------------------------------------------- + */ + + + #pragma once + + #include + #include + #include + #include "base_menu_gui.h" + + using ValueChoiceListener = std::function; + + #define VALUE_DEFAULT_TEXT "Default" + + struct ValueRange { + std::uint32_t min; + std::uint32_t max; + std::uint32_t step; + std::string suffix; + std::uint32_t divisor; // Divide input values by this for display + + // Default constructor + ValueRange() : min(0), max(0), step(1), suffix(""), divisor(1) {} + + ValueRange(std::uint32_t min, std::uint32_t max, std::uint32_t step, + const std::string& suffix = "", std::uint32_t divisor = 1) + : min(min), max(max), step(step), suffix(suffix), divisor(divisor) {} + }; + + struct ValueThresholds { + std::uint32_t warning; // Values >= this show orange + std::uint32_t danger; // Values >= this show red + + ValueThresholds(std::uint32_t warning = 0, std::uint32_t danger = 0) + : warning(warning), danger(danger) {} + }; + + class ValueChoiceGui : public BaseMenuGui + { + protected: + std::uint32_t selectedValue; + ValueRange range; + std::string categoryName; + ValueChoiceListener listener; + ValueThresholds thresholds; + bool enableThresholds; + + tsl::elm::ListItem* createValueListItem(std::uint32_t value, bool selected, int safety); + std::string formatValue(std::uint32_t value); + int getSafetyLevel(std::uint32_t value); + + public: + ValueChoiceGui(std::uint32_t selectedValue, + const ValueRange& range, + const std::string& categoryName, + ValueChoiceListener listener, + const ValueThresholds& thresholds = ValueThresholds(), + bool enableThresholds = false); + ~ValueChoiceGui(); + + void listUI() override; + }; \ No newline at end of file diff --git a/Source/sys-clk/overlay/src/ui/style.h b/Source/sys-clk/overlay/src/ui/style.h index 86b56d89..23bfa723 100644 --- a/Source/sys-clk/overlay/src/ui/style.h +++ b/Source/sys-clk/overlay/src/ui/style.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/sysmodule/lib/minIni/include/minIni.h b/Source/sys-clk/sysmodule/lib/minIni/include/minIni.h index b4f10673..362bbb81 100644 --- a/Source/sys-clk/sysmodule/lib/minIni/include/minIni.h +++ b/Source/sys-clk/sysmodule/lib/minIni/include/minIni.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -7,6 +27,7 @@ * stuff is worth it, you can buy us a beer in return. - The sys-clk authors * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt.h index 6361703d..13e362cb 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include "nxExt/apm_ext.h" diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/apm_ext.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/apm_ext.h index e1ad78cf..36a28672 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/apm_ext.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/apm_ext.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/cpp/lockable_mutex.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/cpp/lockable_mutex.h index 44f19f2d..a2cf96b2 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/cpp/lockable_mutex.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/cpp/lockable_mutex.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/i2c.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/i2c.h index 48656424..72d0c272 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/i2c.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/i2c.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/ipc_server.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/ipc_server.h index 4dd8f88f..afcd67c9 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/ipc_server.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/ipc_server.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/max17050.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/max17050.h index 05924dd7..d9067f04 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/max17050.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/max17050.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/t210.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/t210.h index 334691e9..85e8ac09 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/t210.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/t210.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/tmp451.h b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/tmp451.h index 587596b6..63e3d046 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/tmp451.h +++ b/Source/sys-clk/sysmodule/lib/nxExt/include/nxExt/tmp451.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #ifdef __cplusplus diff --git a/Source/sys-clk/sysmodule/lib/nxExt/src/apm_ext.c b/Source/sys-clk/sysmodule/lib/nxExt/src/apm_ext.c index 7815e0a1..045d6551 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/src/apm_ext.c +++ b/Source/sys-clk/sysmodule/lib/nxExt/src/apm_ext.c @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "nxExt/apm_ext.h" #include diff --git a/Source/sys-clk/sysmodule/lib/nxExt/src/i2c.c b/Source/sys-clk/sysmodule/lib/nxExt/src/i2c.c index 9a82cc1d..4389dbef 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/src/i2c.c +++ b/Source/sys-clk/sysmodule/lib/nxExt/src/i2c.c @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "nxExt/i2c.h" #define I2C_CMD_SND 0 diff --git a/Source/sys-clk/sysmodule/lib/nxExt/src/ipc_server.c b/Source/sys-clk/sysmodule/lib/nxExt/src/ipc_server.c index 1953c707..cc988be1 100644 --- a/Source/sys-clk/sysmodule/lib/nxExt/src/ipc_server.c +++ b/Source/sys-clk/sysmodule/lib/nxExt/src/ipc_server.c @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "nxExt/ipc_server.h" #include diff --git a/Source/sys-clk/sysmodule/src/board.cpp b/Source/sys-clk/sysmodule/src/board.cpp index f72921bf..4c12131f 100644 --- a/Source/sys-clk/sysmodule/src/board.cpp +++ b/Source/sys-clk/sysmodule/src/board.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include #include "board.h" #include "errors.h" diff --git a/Source/sys-clk/sysmodule/src/board.h b/Source/sys-clk/sysmodule/src/board.h index a3828dea..ab027fbe 100644 --- a/Source/sys-clk/sysmodule/src/board.h +++ b/Source/sys-clk/sysmodule/src/board.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include #include diff --git a/Source/sys-clk/sysmodule/src/clock_manager.cpp b/Source/sys-clk/sysmodule/src/clock_manager.cpp index 44728f74..dd488337 100644 --- a/Source/sys-clk/sysmodule/src/clock_manager.cpp +++ b/Source/sys-clk/sysmodule/src/clock_manager.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "clock_manager.h" #include #include "file_utils.h" diff --git a/Source/sys-clk/sysmodule/src/clock_manager.h b/Source/sys-clk/sysmodule/src/clock_manager.h index 8b6fe18a..e5a032d7 100644 --- a/Source/sys-clk/sysmodule/src/clock_manager.h +++ b/Source/sys-clk/sysmodule/src/clock_manager.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/sysmodule/src/config.cpp b/Source/sys-clk/sysmodule/src/config.cpp index 52d656c0..24e2c495 100644 --- a/Source/sys-clk/sysmodule/src/config.cpp +++ b/Source/sys-clk/sysmodule/src/config.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "config.h" #include #include diff --git a/Source/sys-clk/sysmodule/src/config.h b/Source/sys-clk/sysmodule/src/config.h index 8893fd62..1d50548d 100644 --- a/Source/sys-clk/sysmodule/src/config.h +++ b/Source/sys-clk/sysmodule/src/config.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include #include diff --git a/Source/sys-clk/sysmodule/src/errors.cpp b/Source/sys-clk/sysmodule/src/errors.cpp index c4913050..255354c4 100644 --- a/Source/sys-clk/sysmodule/src/errors.cpp +++ b/Source/sys-clk/sysmodule/src/errors.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "errors.h" #include #include diff --git a/Source/sys-clk/sysmodule/src/errors.h b/Source/sys-clk/sysmodule/src/errors.h index d626d920..7f5ff76e 100644 --- a/Source/sys-clk/sysmodule/src/errors.h +++ b/Source/sys-clk/sysmodule/src/errors.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/sysmodule/src/fancontrol.h b/Source/sys-clk/sysmodule/src/fancontrol.h index f1f0c67e..d7d16030 100644 --- a/Source/sys-clk/sysmodule/src/fancontrol.h +++ b/Source/sys-clk/sysmodule/src/fancontrol.h @@ -13,10 +13,10 @@ extern "C" { #include #include -#define LOG_DIR "./config/hoc-clk/" -#define LOG_FILE "./config/hoc-clk/fan_log.txt" -#define CONFIG_DIR "./config/hoc-clk/" -#define CONFIG_FILE "./config/hoc-clk/config.dat" +#define LOG_DIR "./config/horizon-oc/" +#define LOG_FILE "./config/horizon-oc/fan_log.txt" +#define CONFIG_DIR "./config/horizon-oc/" +#define CONFIG_FILE "./config/horizon-oc/config.dat" #define TABLE_SIZE sizeof(TemperaturePoint) * 10 diff --git a/Source/sys-clk/sysmodule/src/file_utils.cpp b/Source/sys-clk/sysmodule/src/file_utils.cpp index ceed6a50..31d718e4 100644 --- a/Source/sys-clk/sysmodule/src/file_utils.cpp +++ b/Source/sys-clk/sysmodule/src/file_utils.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "file_utils.h" #include diff --git a/Source/sys-clk/sysmodule/src/file_utils.h b/Source/sys-clk/sysmodule/src/file_utils.h index 681fd9ed..918ea034 100644 --- a/Source/sys-clk/sysmodule/src/file_utils.h +++ b/Source/sys-clk/sysmodule/src/file_utils.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include #include diff --git a/Source/sys-clk/sysmodule/src/ipc_service.cpp b/Source/sys-clk/sysmodule/src/ipc_service.cpp index 44d02b5a..e7ec2e9e 100644 --- a/Source/sys-clk/sysmodule/src/ipc_service.cpp +++ b/Source/sys-clk/sysmodule/src/ipc_service.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "ipc_service.h" #include #include diff --git a/Source/sys-clk/sysmodule/src/ipc_service.h b/Source/sys-clk/sysmodule/src/ipc_service.h index de74082e..88f7e187 100644 --- a/Source/sys-clk/sysmodule/src/ipc_service.h +++ b/Source/sys-clk/sysmodule/src/ipc_service.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include diff --git a/Source/sys-clk/sysmodule/src/main.cpp b/Source/sys-clk/sysmodule/src/main.cpp index 7c1c6ed5..0f5efee2 100644 --- a/Source/sys-clk/sysmodule/src/main.cpp +++ b/Source/sys-clk/sysmodule/src/main.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include #include #include diff --git a/Source/sys-clk/sysmodule/src/process_management.cpp b/Source/sys-clk/sysmodule/src/process_management.cpp index 8cb369cc..81cd7ee9 100644 --- a/Source/sys-clk/sysmodule/src/process_management.cpp +++ b/Source/sys-clk/sysmodule/src/process_management.cpp @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #include "process_management.h" #include "file_utils.h" #include "errors.h" diff --git a/Source/sys-clk/sysmodule/src/process_management.h b/Source/sys-clk/sysmodule/src/process_management.h index 0727c276..7a38e736 100644 --- a/Source/sys-clk/sysmodule/src/process_management.h +++ b/Source/sys-clk/sysmodule/src/process_management.h @@ -1,5 +1,25 @@ /* - * -------------------------------------------------------------------------- + * Copyright (C) Switch-OC-Suite + * + * Copyright (c) 2023 hanai3Bi + * + * Copyright (c) Souldbminer and Horizon OC Contributors + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +/* -------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * , , * wrote this file. As long as you retain this notice you can do whatever you @@ -8,6 +28,7 @@ * -------------------------------------------------------------------------- */ + #pragma once #include #include diff --git a/Ultrahand/OC Toolkit/data/EOS/erista/ram_vdd2.json b/Ultrahand/OC Toolkit/data/EOS/erista/ram_vdd2.json index b68569e5..dcd6eb64 100644 --- a/Ultrahand/OC Toolkit/data/EOS/erista/ram_vdd2.json +++ b/Ultrahand/OC Toolkit/data/EOS/erista/ram_vdd2.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vdd2.json b/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vdd2.json index 1f12cc94..47717c22 100644 --- a/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vdd2.json +++ b/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vdd2.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vddq.json b/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vddq.json index 896f6975..8daa177b 100644 --- a/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vddq.json +++ b/Ultrahand/OC Toolkit/data/EOS/mariko/ram_vddq.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/data/SC/erista/ram_vdd2.json b/Ultrahand/OC Toolkit/data/SC/erista/ram_vdd2.json index d795f038..2114e2f1 100644 --- a/Ultrahand/OC Toolkit/data/SC/erista/ram_vdd2.json +++ b/Ultrahand/OC Toolkit/data/SC/erista/ram_vdd2.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/data/SC/mariko/ram_vdd2.json b/Ultrahand/OC Toolkit/data/SC/mariko/ram_vdd2.json index 9dc6f83b..9d03a342 100644 --- a/Ultrahand/OC Toolkit/data/SC/mariko/ram_vdd2.json +++ b/Ultrahand/OC Toolkit/data/SC/mariko/ram_vdd2.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/data/SC/mariko/ram_vddq.json b/Ultrahand/OC Toolkit/data/SC/mariko/ram_vddq.json index 683429e4..12b6ef57 100644 --- a/Ultrahand/OC Toolkit/data/SC/mariko/ram_vddq.json +++ b/Ultrahand/OC Toolkit/data/SC/mariko/ram_vddq.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/erista/ram_vdd2.json b/Ultrahand/OC Toolkit/erista/ram_vdd2.json index b68569e5..dcd6eb64 100644 --- a/Ultrahand/OC Toolkit/erista/ram_vdd2.json +++ b/Ultrahand/OC Toolkit/erista/ram_vdd2.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/json/mv.json b/Ultrahand/OC Toolkit/json/mv.json index 9ccfd4f1..9db6a7c7 100644 --- a/Ultrahand/OC Toolkit/json/mv.json +++ b/Ultrahand/OC Toolkit/json/mv.json @@ -1 +1 @@ -[{"0000":"Do not override", "E001": "480mV", "E501": "485mV", "EA01": "490mV", "EF01": "495mV", "F401":"500 mV", "F901":"505 mV", "FE01":"510 mV", "0302":"515 mV", "0802":"520 mV", "0D02":"525 mV", "1202":"530 mV", "1702":"535 mV", "1C02":"540 mV", "2102":"545 mV", "2602":"550 mV", "2B02":"555 mV", "3002":"560 mV", "3502":"565 mV", "3A02":"570 mV", "3F02":"575 mV", "4402":"580 mV", "4902":"585 mV", "4E02":"590 mV", "5302":"595 mV", "5802":"600 mV", "5D02":"605 mV", "6202":"610 mV", "6702":"615 mV", "6C02":"620 mV", "7102":"625 mV", "7602":"630 mV", "7B02":"635 mV", "8002":"640 mV", "8502":"645 mV", "8A02":"650 mV", "8F02":"655 mV", "9402":"660 mV", "9902":"665 mV", "9E02":"670 mV", "A302":"675 mV", "A802":"680 mV", "AD02":"685 mV", "B202":"690 mV", "B702":"695 mV", "BC02":"700 mV", "C102":"705 mV", "C602":"710 mV", "CB02":"715 mV", "D002":"720 mV", "D502":"725 mV", "DA02":"730 mV", "DF02":"735 mV", "E402":"740 mV", "E902":"745 mV", "EE02":"750 mV", "F302":"755 mV", "F802":"760 mV", "FD02":"765 mV", "0203":"770 mV", "0703":"775 mV", "0C03":"780 mV", "1103":"785 mV", "1603":"790 mV", "1B03":"795 mV", "2003":"800 mV", "2503":"805 mV", "2A03":"810 mV", "2F03":"815 mV", "3403":"820 mV", "3903":"825 mV", "3E03":"830 mV", "4303":"835 mV", "4803":"840 mV", "5203":"850 mV", "4D03":"845 mV", "5203":"850 mV", "5703":"855 mV", "5C03":"860 mV", "6103":"865 mV", "6603":"870 mV", "6B03":"875 mV", "7003":"880 mV", "7503":"885 mV", "7A03":"890 mV", "7F03":"895 mV", "8403":"900 mV", "8903":"905 mV", "8E03":"910 mV", "9303":"915 mV", "9803":"920 mV", "9D03":"925 mV", "A203":"930 mV", "A703":"935 mV", "AC03":"940 mV", "B103":"945 mV", "B603":"950 mV", "BB03":"955 mV", "C003":"960 mV", "C503":"965 mV", "CA03":"970 mV", "CF03":"975 mV", "D403":"980 mV", "D903":"985 mV", "DE03":"990 mV", "E303":"995 mV", "E803":"1000 mV"}] \ No newline at end of file +[{"0000":"Default", "E001": "480mV", "E501": "485mV", "EA01": "490mV", "EF01": "495mV", "F401":"500 mV", "F901":"505 mV", "FE01":"510 mV", "0302":"515 mV", "0802":"520 mV", "0D02":"525 mV", "1202":"530 mV", "1702":"535 mV", "1C02":"540 mV", "2102":"545 mV", "2602":"550 mV", "2B02":"555 mV", "3002":"560 mV", "3502":"565 mV", "3A02":"570 mV", "3F02":"575 mV", "4402":"580 mV", "4902":"585 mV", "4E02":"590 mV", "5302":"595 mV", "5802":"600 mV", "5D02":"605 mV", "6202":"610 mV", "6702":"615 mV", "6C02":"620 mV", "7102":"625 mV", "7602":"630 mV", "7B02":"635 mV", "8002":"640 mV", "8502":"645 mV", "8A02":"650 mV", "8F02":"655 mV", "9402":"660 mV", "9902":"665 mV", "9E02":"670 mV", "A302":"675 mV", "A802":"680 mV", "AD02":"685 mV", "B202":"690 mV", "B702":"695 mV", "BC02":"700 mV", "C102":"705 mV", "C602":"710 mV", "CB02":"715 mV", "D002":"720 mV", "D502":"725 mV", "DA02":"730 mV", "DF02":"735 mV", "E402":"740 mV", "E902":"745 mV", "EE02":"750 mV", "F302":"755 mV", "F802":"760 mV", "FD02":"765 mV", "0203":"770 mV", "0703":"775 mV", "0C03":"780 mV", "1103":"785 mV", "1603":"790 mV", "1B03":"795 mV", "2003":"800 mV", "2503":"805 mV", "2A03":"810 mV", "2F03":"815 mV", "3403":"820 mV", "3903":"825 mV", "3E03":"830 mV", "4303":"835 mV", "4803":"840 mV", "5203":"850 mV", "4D03":"845 mV", "5203":"850 mV", "5703":"855 mV", "5C03":"860 mV", "6103":"865 mV", "6603":"870 mV", "6B03":"875 mV", "7003":"880 mV", "7503":"885 mV", "7A03":"890 mV", "7F03":"895 mV", "8403":"900 mV", "8903":"905 mV", "8E03":"910 mV", "9303":"915 mV", "9803":"920 mV", "9D03":"925 mV", "A203":"930 mV", "A703":"935 mV", "AC03":"940 mV", "B103":"945 mV", "B603":"950 mV", "BB03":"955 mV", "C003":"960 mV", "C503":"965 mV", "CA03":"970 mV", "CF03":"975 mV", "D403":"980 mV", "D903":"985 mV", "DE03":"990 mV", "E303":"995 mV", "E803":"1000 mV"}] \ No newline at end of file diff --git a/Ultrahand/OC Toolkit/json/vdd2.json b/Ultrahand/OC Toolkit/json/vdd2.json index 71e9077d..fd5072eb 100644 --- a/Ultrahand/OC Toolkit/json/vdd2.json +++ b/Ultrahand/OC Toolkit/json/vdd2.json @@ -1 +1 @@ -[{"000000":"Do not override", "74EC0D":"912.5 mV", "481D0E":"925 mV", "1C4E0E":"937.5 mV", "F07E0E":"950 mV", "C4AF0E":"962.5 mV", "98E00E":"975 mV", "6CZZ0F":"987.5 mV", "40420F":"1000 mV", "14730F":"1012.5 mV", "E8A30F":"1025 mV", "BCD40F":"1037.5 mV", "900510":"1050 mV", "643610":"1062.5 mV", "386710":"1075 mV", "0C9810":"1087.5 mV", "E0C810":"1100 mV", "B4F910":"1112.5 mV", "882A11":"1125 mV", "5C5B11":"1137.5 mV", "308C11":"1150 mV", "04BD11":"1162.5 mV", "D8ED11":"1175 mV", "AC1E12":"1187.5 mV", "804F12":"1200 mV", "548012":"1212.5 mV", "28B112":"1225 mV", "FCE112":"1237.5 mV", "D01213":"1250 mV", "A44313":"1262.5 mV", "787413":"1275 mV", "4CA513":"1287.5 mV", "20D613":"1300 mV", "F40614":"1312.5 mV", "C83714":"1325 mV", "9C6814":"1337.5 mV", "709914":"1350 mV", "44CA14": "1362.5 mV", "18FB14": "1375 mV", "EC2B15": "1387.5 mV", "C05C15": "1400 mV"}] \ No newline at end of file +[{"000000":"Default", "74EC0D":"912.5 mV", "481D0E":"925 mV", "1C4E0E":"937.5 mV", "F07E0E":"950 mV", "C4AF0E":"962.5 mV", "98E00E":"975 mV", "6CZZ0F":"987.5 mV", "40420F":"1000 mV", "14730F":"1012.5 mV", "E8A30F":"1025 mV", "BCD40F":"1037.5 mV", "900510":"1050 mV", "643610":"1062.5 mV", "386710":"1075 mV", "0C9810":"1087.5 mV", "E0C810":"1100 mV", "B4F910":"1112.5 mV", "882A11":"1125 mV", "5C5B11":"1137.5 mV", "308C11":"1150 mV", "04BD11":"1162.5 mV", "D8ED11":"1175 mV", "AC1E12":"1187.5 mV", "804F12":"1200 mV", "548012":"1212.5 mV", "28B112":"1225 mV", "FCE112":"1237.5 mV", "D01213":"1250 mV", "A44313":"1262.5 mV", "787413":"1275 mV", "4CA513":"1287.5 mV", "20D613":"1300 mV", "F40614":"1312.5 mV", "C83714":"1325 mV", "9C6814":"1337.5 mV", "709914":"1350 mV", "44CA14": "1362.5 mV", "18FB14": "1375 mV", "EC2B15": "1387.5 mV", "C05C15": "1400 mV"}] \ No newline at end of file diff --git a/Ultrahand/OC Toolkit/json/vddq.json b/Ultrahand/OC Toolkit/json/vddq.json index a7a28fab..81235394 100644 --- a/Ultrahand/OC Toolkit/json/vddq.json +++ b/Ultrahand/OC Toolkit/json/vddq.json @@ -1 +1 @@ -[{"000000":"Do not override", "50A505":"370 mV", "D8B805":"375 mV", "60CC05":"380 mV", "E8DF05":"385 mV", "70F305":"390 mV", "F80606":"395 mV", "801A06":"400 mV", "082E06":"405 mV", "904106":"410 mV", "185506":"415 mV", "A06806":"420 mV", "287C06":"425 mV", "B08F06":"430 mV", "38A306":"435 mV", "C0B606":"440 mV", "48CA06":"445 mV", "D0DD06":"450 mV", "58F106":"455 mV", "E00407":"460 mV", "681807":"465 mV", "F02B07":"470 mV", "783F07":"475 mV", "005307":"480 mV", "886607":"485 mV", "107A07":"490 mV", "988D07":"495 mV", "20A107":"500 mV", "A8B407":"505 mV", "30C807":"510 mV", "B8DB07":"515 mV", "40EF07":"520 mV", "C80208":"525 mV", "501608":"530 mV", "D82908":"535 mV", "603D08":"540 mV", "E85008":"545 mV", "706408":"550 mV", "F87708":"555 mV", "808B08":"560 mV", "089F08":"565 mV", "90B208":"570 mV", "18C608":"575 mV", "A0D908":"580 mV", "28ED08":"585 mV", "B00009":"590 mV", "381409":"595 mV", "C02709":"600 mV", "483B09":"605 mV", "D04E09":"610 mV", "586209":"615 mV", "E07509":"620 mV", "688909":"625 mV", "F09C09":"630 mV", "78B009":"635 mV", "00C409":"640 mV", "88D709":"645 mV", "10EB09":"650 mV", "98FE09":"655 mV", "20120A":"660 mV", "A8250A":"665 mV", "30390A":"670 mV", "B84C0A":"675 mV", "40600A":"680 mV", "C8730A":"685 mV", "50870A":"690 mV", "D89A0A":"695 mV", "60AE0A":"700 mV"}] \ No newline at end of file +[{"000000":"Default", "50A505":"370 mV", "D8B805":"375 mV", "60CC05":"380 mV", "E8DF05":"385 mV", "70F305":"390 mV", "F80606":"395 mV", "801A06":"400 mV", "082E06":"405 mV", "904106":"410 mV", "185506":"415 mV", "A06806":"420 mV", "287C06":"425 mV", "B08F06":"430 mV", "38A306":"435 mV", "C0B606":"440 mV", "48CA06":"445 mV", "D0DD06":"450 mV", "58F106":"455 mV", "E00407":"460 mV", "681807":"465 mV", "F02B07":"470 mV", "783F07":"475 mV", "005307":"480 mV", "886607":"485 mV", "107A07":"490 mV", "988D07":"495 mV", "20A107":"500 mV", "A8B407":"505 mV", "30C807":"510 mV", "B8DB07":"515 mV", "40EF07":"520 mV", "C80208":"525 mV", "501608":"530 mV", "D82908":"535 mV", "603D08":"540 mV", "E85008":"545 mV", "706408":"550 mV", "F87708":"555 mV", "808B08":"560 mV", "089F08":"565 mV", "90B208":"570 mV", "18C608":"575 mV", "A0D908":"580 mV", "28ED08":"585 mV", "B00009":"590 mV", "381409":"595 mV", "C02709":"600 mV", "483B09":"605 mV", "D04E09":"610 mV", "586209":"615 mV", "E07509":"620 mV", "688909":"625 mV", "F09C09":"630 mV", "78B009":"635 mV", "00C409":"640 mV", "88D709":"645 mV", "10EB09":"650 mV", "98FE09":"655 mV", "20120A":"660 mV", "A8250A":"665 mV", "30390A":"670 mV", "B84C0A":"675 mV", "40600A":"680 mV", "C8730A":"685 mV", "50870A":"690 mV", "D89A0A":"695 mV", "60AE0A":"700 mV"}] \ No newline at end of file diff --git a/Ultrahand/OC Toolkit/mariko/ram_vdd2.json b/Ultrahand/OC Toolkit/mariko/ram_vdd2.json index 1f12cc94..47717c22 100644 --- a/Ultrahand/OC Toolkit/mariko/ram_vdd2.json +++ b/Ultrahand/OC Toolkit/mariko/ram_vdd2.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/Ultrahand/OC Toolkit/mariko/ram_vddq.json b/Ultrahand/OC Toolkit/mariko/ram_vddq.json index 896f6975..8daa177b 100644 --- a/Ultrahand/OC Toolkit/mariko/ram_vddq.json +++ b/Ultrahand/OC Toolkit/mariko/ram_vddq.json @@ -1,7 +1,7 @@ [ { - "name": "Do not override", - "label": "Do not override", + "name": "Default", + "label": "Default", "hex": "000000" }, { diff --git a/dist/README.md b/dist/README.md index 4bf17ffe..73219487 100644 --- a/dist/README.md +++ b/dist/README.md @@ -1,58 +1,111 @@ +
+logo -![alt text](assets/logo.png "logo") +--- +![License: GPL-2.0](https://img.shields.io/badge/GPL--2.0-red?style=for-the-badge) +![Nintendo Switch](https://img.shields.io/badge/Nintendo_Switch-E60012?style=for-the-badge\&logo=nintendo-switch\&logoColor=white) +[![Discord](https://img.shields.io/badge/Discord-5865F2?style=for-the-badge\&logo=discord\&logoColor=white)](https://discord.com/invite/S3eX47dHsB) +![VSCode](https://img.shields.io/badge/VSCode-0078D4?style=for-the-badge\&logo=visual%20studio%20code\&logoColor=white) +![C++](https://img.shields.io/badge/C%2B%2B-00599C?style=for-the-badge\&logo=c%2B%2B\&logoColor=white) +![Downloads](https://img.shields.io/github/downloads/souldbminersmwc/Horizon-OC/total.svg?style=for-the-badge) -![alt text](https://img.shields.io/badge/GPL--2.0-red?style=for-the-badge "logo") ![alt text](https://img.shields.io/badge/Nintendo_Switch-E60012?style=for-the-badge&logo=nintendo-switch&logoColor=white "logo") [![alt text](https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.com/invite/S3eX47dHsB) ![alt text](https://img.shields.io/badge/VSCode-0078D4?style=for-the-badge&logo=visual%20studio%20code&logoColor=white) ![alt text](https://img.shields.io/badge/C%2B%2B-00599C?style=for-the-badge&logo=c%2B%2B&logoColor=white) [![Github All Releases](https://img.shields.io/github/downloads/souldbminersmwc/Horizon-OC/total.svg)]() +---
-### DISCLAIMER: THIS TOOL CAN BE DANGEROUS IF MISUSED. PROCEED WITH CAUTION -* Due to the design of Horizon OS, overclocking RAM can cause **NAND DAMAGE**. Ensure to have a NAND Backup
+## ⚠️ Disclaimer -A open source overclocking tool for Nintendo Switch consoles running Atmosphere custom firmware
+> **THIS TOOL CAN BE DANGEROUS IF MISUSED. PROCEED WITH CAUTION.** +> Due to the design of Horizon OS, **overclocking RAM can cause NAND DAMAGE.** +> Ensure you have a **full NAND backup** before proceeding. +--- -## Features: -CPU overclock up to 2397MHz on Mariko units, 2091MHz on Erista units
-GPU up to 1305MHz on Mariko units, 998MHz on Erista units
-RAM up to 3200MHz on Mariko units, 2360MHz on Erista units
-Over/undervolting
-Configurator
-Works with most homebrew
+## 🌀 About -*Higher (potentially dangerous) frequencies are unlockable*
-*The exact maximum overclock varies per console*
-## Installation -Ensure you have the latest version of [Atmosphere](https://github.com/Atmosphere-NX/Atmosphere) and [Ultrahand](https://github.com/ppkantorski/Ultrahand-Overlay) installed before continuing
-Grab latest hoc.kip from releases tab
-If using hekate, edit hekate_ipl.ini to include "kip1=atmosphere/kips/*". No need for editing if using fusee
-Download latest Horizon OC sysmodule from releases tab
-Extract sysmodule into root of SD card
+**Horizon OC** is an open-source overclocking tool for Nintendo Switch consoles running **Atmosphere custom firmware**. +It enables advanced CPU, GPU, and RAM tuning with user-friendly configuration tools. -Alternatively, you can download the configurator and click the two install buttons
+--- +## 🚀 Features -## Configuration -Download the latest configurator on your computer
-Run the file
-Select the drive your SD card or UMS device is mounted as
-Configure the kip to your liking, and in the end, save it
+* **CPU:** Up to `2397MHz` (Mariko) / `2091MHz` (Erista) +* **GPU:** Up to `1305MHz` (Mariko) / `998MHz` (Erista) +* **RAM:** Up to `3200MHz` (Mariko) / `2360MHz` (Erista) +* Over/undervolting support +* Built-in configurator +* Compatible with most homebrew -## Building -Set up a development enviorment ready to compile Atmosphere
-Git clone Atmosphere, and move the cloned folder into build/
-Insert Source/stratosphere folder into build/
-Run build.sh +> ⚡ *Higher (potentially dangerous) frequencies are unlockable.* +> ⚙️ *Exact maximum values vary per console.* -To build the configurator, cd into Source/Configurator
-Run build.bat or run "python -m PyInstaller --onefile --add-data "assets;assets" --icon=assets/icon.ico --noconsole src/main.py"
+--- +## 🧩 Installation + +1. Ensure you have the latest versions of + + * [Atmosphere](https://github.com/Atmosphere-NX/Atmosphere) + * [Ultrahand Overlay](https://github.com/ppkantorski/Ultrahand-Overlay) +2. Download the latest **hoc.kip** file from the [Releases](../../releases) tab. +3. If using **Hekate**, edit `hekate_ipl.ini` to include: + + ``` + kip1=atmosphere/kips/* + ``` + + *(No changes needed if using fusee.)* +4. Download and extract the **Horizon OC sysmodule** to the root of your SD card. +5. Alternatively, use the **Configurator** and click the **Install** buttons for automatic setup. + +--- + +## ⚙️ Configuration + +1. Download the latest **Configurator** on your computer. +2. Run the executable. +3. Select your SD card or UMS drive. +4. Adjust overclocking settings as desired. +5. Click **Save** to apply your configuration. + +--- + +## 🧱 Building from Source + +1. Set up a development environment for compiling **Atmosphere**. +2. Clone Atmosphere: + + ```bash + git clone https://github.com/Atmosphere-NX/Atmosphere.git + ``` +3. Move the cloned folder into `build/`. +4. Insert your `Source/stratosphere` folder into `build/`. +5. Run: + + ```bash + ./build.sh + ``` + +To build the Configurator: + +```bash +cd Source/Configurator +build.bat +# or +python -m PyInstaller --onefile --add-data "assets;assets" --icon=assets/icon.ico --noconsole src/main.py +``` + +--- + +## 💎 Credits + +* **Lightos** & **Dominatorul** – RAM timings +* **KazushiMe** & **meha** – Switch-OC-Suite +* **sys-clk team** – sys-clk +* **b0rd2death** – Ultrahand sys-clk fork +* **Lightos** & **Sammybigio2011** – Early testing -## Credits -Lightos for RAM timings
-KazushiMe and meha for Switch-Oc-Suite
-sys-clk team for sys-clk
-b0rd2death for Ultrahand sys-clk fork
-Lightos and Sammybigio2011 for early testing
diff --git a/dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp b/dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp index 33c59990..c077c923 100644 Binary files a/dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp and b/dist/atmosphere/contents/00FF0000636C6BFF/exefs.nsp differ diff --git a/dist/atmosphere/kips/hoc.kip b/dist/atmosphere/kips/hoc.kip index ed5bae8f..95138588 100644 Binary files a/dist/atmosphere/kips/hoc.kip and b/dist/atmosphere/kips/hoc.kip differ diff --git a/dist/switch/.overlays/sys-clk-overlay.ovl b/dist/switch/.overlays/sys-clk-overlay.ovl deleted file mode 100644 index f87960d0..00000000 Binary files a/dist/switch/.overlays/sys-clk-overlay.ovl and /dev/null differ diff --git a/dist/switch/sys-clk-manager.nro b/dist/switch/sys-clk-manager.nro deleted file mode 100644 index 9a8914f6..00000000 Binary files a/dist/switch/sys-clk-manager.nro and /dev/null differ