mirror of
https://github.com/libretro/RetroArch.git
synced 2025-12-28 13:31:49 +00:00
Move SWITCH_CPU_* array definitions from header to platform_switch.c. Use extern declarations in the header. Add NULL/0 terminators to the arrays and update size calculation and loops to use the terminators where the number of elements can't be calculated. The motivation for this change is to remove code duplication and silence warnings about unused arrays in translation units that only used a subset of them.
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2018-2018 - Natinusala
|
|
* Copyright (C) 2018-2018 - M4xw
|
|
*
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* RetroArch is distributed in the hope that 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 RetroArch.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __SWITCH_PERFORMANCE_PROFILES_H
|
|
#define __SWITCH_PERFORMANCE_PROFILES_H
|
|
|
|
#if defined(HAVE_LIBNX)
|
|
|
|
extern char *SWITCH_CPU_PROFILES[];
|
|
extern char *SWITCH_CPU_SPEEDS[];
|
|
extern unsigned SWITCH_CPU_SPEEDS_VALUES[];
|
|
#define SWITCH_DEFAULT_CPU_PROFILE 3 /* Stock Performance */
|
|
|
|
#endif
|
|
|
|
#endif
|