# New Features #
- Installable via cmake - Dont run makerom and makebanner in 3dsx mode
This commit is contained in:
@ -3,7 +3,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct NpiProject {
|
||||
struct NpiProject
|
||||
{
|
||||
std::string name;
|
||||
std::string author;
|
||||
std::string description;
|
||||
@ -16,18 +17,19 @@ struct NpiProject {
|
||||
std::vector<std::string> lib_dirs;
|
||||
|
||||
std::string icon_path;
|
||||
std::string banner_path;
|
||||
std::string banner_a_path;
|
||||
std::string rsf_path;
|
||||
std::string logo_lz11_path;
|
||||
std::string banner_path; // depends ctr_type
|
||||
std::string banner_a_path; // depends ctr_type
|
||||
std::string rsf_path; // depends ctr_type
|
||||
std::string logo_lz11_path; // depends ctr_type
|
||||
|
||||
std::string dir_gfx;
|
||||
std::string dir_gfxbuild;
|
||||
std::string dir_romfs;
|
||||
|
||||
std::string unique_id;
|
||||
std::string prod;
|
||||
std::string platform; // Platforms: 3ds, desktop
|
||||
std::string unique_id; // depends ctr_type
|
||||
std::string prod; // depends ctr_type
|
||||
std::string platform; // Platforms: 3ds, desktop
|
||||
bool ctr_type; // depends platform
|
||||
|
||||
std::vector<std::string> arch_flags;
|
||||
std::vector<std::string> c_flags;
|
||||
@ -41,7 +43,8 @@ struct NpiProject {
|
||||
std::string asm_compiler;
|
||||
};
|
||||
|
||||
inline void Prj_InitDefault(NpiProject &project) {
|
||||
inline void Prj_InitDefault(NpiProject &project, bool cia)
|
||||
{
|
||||
project.name = "Sample";
|
||||
project.author = "Sample";
|
||||
project.description = "Description";
|
||||
@ -96,16 +99,22 @@ inline void Prj_InitDefault(NpiProject &project) {
|
||||
project.asm_compiler = "{DEVKITPRO}/devkitARM/bin/arm-none-eabi-gcc";
|
||||
|
||||
project.icon_path = "app/icon.png";
|
||||
project.banner_path = "app/banner.png";
|
||||
project.banner_a_path = "app/banner_audio.wav";
|
||||
project.rsf_path = "app/build-cia.rsf";
|
||||
project.logo_lz11_path = "app/logo.lz11";
|
||||
|
||||
if (cia)
|
||||
{
|
||||
project.banner_path = "app/banner.png";
|
||||
project.banner_a_path = "app/banner_audio.wav";
|
||||
project.rsf_path = "app/build-cia.rsf";
|
||||
project.logo_lz11_path = "app/logo.lz11";
|
||||
}
|
||||
project.dir_gfx = "gfx/";
|
||||
project.dir_gfxbuild = "romfs/gfx/";
|
||||
project.dir_romfs = "romfs/";
|
||||
|
||||
project.unique_id = "0xff3ff";
|
||||
project.prod = "NPI7";
|
||||
if (cia)
|
||||
{
|
||||
project.unique_id = "0xff3ff";
|
||||
project.prod = "NPI7";
|
||||
}
|
||||
project.platform = "3ds";
|
||||
project.ctr_type = cia;
|
||||
}
|
Reference in New Issue
Block a user