blawar / tinleaf

A No-Bullshit-No-Bullshit NSP, NSZ, XCI, and XCZ Installer for Nintendo Switch
Other
298 stars 18 forks source link

I complie the code.And I get something wrong. Do i use the too high level version complie? #14

Closed tiansongyu closed 4 years ago

tiansongyu commented 4 years ago
/home/tian/Desktop/tinleaf/source/nx/content_meta.cpp: In member function 'void nx::ncm::ContentMeta::GetInstallContentMeta(tin::data::ByteBuffer&, NcmContentInfo&, bool)':
/home/tian/Desktop/tinleaf/source/nx/content_meta.cpp:93:30: error: 'contentMetaHeader.NcmContentMetaHeader::attributes' may be used uninitialized in this function [-Werror=maybe-uninitialized]
   93 |         NcmContentMetaHeader contentMetaHeader;
      |                              ^~~~~~~~~~~~~~~~~
``

I just cannot find the define of NcmContentMetaHeader . it's so wired .

/home/tian/Desktop/tinleaf/source/nx/content_meta.cpp:93:30: error: 'contentMetaHeader.NcmContentMetaHeader::storage_id' may be used uninitialized in this function [-Werror=maybe-uninitialized]
title_util.cpp

and this

/home/tian/Desktop/tinleaf/source/ui/optionsPage.cpp: In member function 'void inst::ui::optionsPage::onInput(u64, u64, u64, pu::ui::Touch)': /home/tian/Desktop/tinleaf/source/ui/optionsPage.cpp:180:123: error: cannot convert 'vector<std::__cxx11::basic_string>' to 'vector' 180 rc = inst::ui::mainApp->CreateShowDialog("options.language.title"_lang, "options.language.desc"_lang, languageList, false); ^~~~
vector<std::__cxx11::basic_string>
tiansongyu commented 4 years ago

The newer version of Plutonium cannot use in the project . so I use the old but correct version to complie , And it still have some error. Can you help me?thanks sir