Added splash support

This commit is contained in:
2017-09-01 03:18:06 -04:00
parent 4af7d5741b
commit 4ed0ea3c52
6 changed files with 312 additions and 41 deletions

View File

@@ -33,7 +33,8 @@
#include <stdlib.h>
#include <string.h>
#define THEMES_PATH "/Themes/"
#define THEMES_PATH "/Themes/"
#define SPLASHES_PATH "/Splashes/"
static const int THEMES_PER_SCREEN = 4;

View File

@@ -28,11 +28,13 @@
#define DRAW_H
#include "themes.h"
#include "splashes.h"
void init_screens(void);
void exit_screens(void);
void draw_theme_interface(Theme_s * themes_list, int theme_count, int selected_theme, bool preview_mode);
void draw_theme_install(bool shuffle_install);
void draw_theme_interface(Theme_s * themes_list, int theme_count, int selected_theme, bool preview_mode);
void draw_splash_interface(Splash_s *splashes_list, int splash_count, int selected_splash, bool preview_mode);
#endif

41
include/splashes.h Normal file
View File

@@ -0,0 +1,41 @@
/*
* This file is part of Anemone3DS
* Copyright (C) 2016-2017 Alex Taber ("astronautlevel"), Dawid Eckert ("daedreth")
*
* This program 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
* Additional Terms 7.b and 7.c of GPLv3 apply to this file:
* * Requiring preservation of specified reasonable legal notices or
* author attributions in that material or in the Appropriate Legal
* Notices displayed by works containing it.
* * Prohibiting misrepresentation of the origin of that material,
* or requiring that modified versions of such material be marked in
* reasonable ways as different from the original version.
*/
#ifndef SPLASHES_H
#define SPLASHES_H
#include "common.h"
typedef struct{
u16 name[0x106];
u16 top_path[0x106];
u16 bottom_path[0x106];
} Splash_s;
Result get_splashes(Splash_s** splashes_list, int *splash_count);
void splash_install(Splash_s splash_to_install);
#endif