fix for sparse games

This commit is contained in:
mrdude2478 2021-09-30 15:19:29 +01:00
parent 7271369d70
commit d6e94b604d
3 changed files with 6 additions and 5 deletions

View File

@ -44,7 +44,7 @@ DATA := data
INCLUDES := include include/ui include/data include/install include/nx include/nx/ipc include/util include/Plutonium/Plutonium/Output-switch/include INCLUDES := include include/ui include/data include/install include/nx include/nx/ipc include/util include/Plutonium/Plutonium/Output-switch/include
APP_TITLE := TinWoo Installer APP_TITLE := TinWoo Installer
APP_AUTHOR := MrDude APP_AUTHOR := MrDude
APP_VERSION := 1.0.3 APP_VERSION := 1.0.4
ROMFS := romfs ROMFS := romfs
APP_ICON := icon.jpg APP_ICON := icon.jpg
@ -165,17 +165,17 @@ all: $(BUILD)
$(BUILD): $(BUILD):
@[ -d $@ ] || mkdir -p $@ @[ -d $@ ] || mkdir -p $@
# $(MAKE) --no-print-directory -C include/Plutonium -f Makefile lib $(MAKE) --no-print-directory -C include/Plutonium -f Makefile lib
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
clean: clean:
@echo clean ... @echo clean ...
ifeq ($(strip $(APP_JSON)),) ifeq ($(strip $(APP_JSON)),)
# @$(MAKE) --no-print-directory -C include/Plutonium/Plutonium -f Makefile clean @$(MAKE) --no-print-directory -C include/Plutonium/Plutonium -f Makefile clean
@rm -fr $(BUILD) $(TARGET).nro $(TARGET).nacp $(TARGET).elf @rm -fr $(BUILD) $(TARGET).nro $(TARGET).nacp $(TARGET).elf
else else
# @$(MAKE) --no-print-directory -C include/Plutonium/Plutonium -f Makefile clean @$(MAKE) --no-print-directory -C include/Plutonium/Plutonium -f Makefile clean
@rm -fr $(BUILD) $(TARGET).nsp $(TARGET).nso $(TARGET).npdm $(TARGET).elf @rm -fr $(BUILD) $(TARGET).nsp $(TARGET).nso $(TARGET).npdm $(TARGET).elf
endif endif

View File

@ -5,7 +5,7 @@
namespace inst::config { namespace inst::config {
static const std::string appDir = "sdmc:/switch/tinwoo"; static const std::string appDir = "sdmc:/switch/tinwoo";
static const std::string configPath = appDir + "/config.json"; static const std::string configPath = appDir + "/config.json";
static const std::string appVersion = "1.0.3"; static const std::string appVersion = "1.0.4";
extern std::string gAuthKey; extern std::string gAuthKey;
extern std::string sigPatchesUrl; extern std::string sigPatchesUrl;

View File

@ -94,6 +94,7 @@ namespace nx::ncm
contentMetaHeader.extended_header_size = packagedContentMetaHeader.extended_header_size; contentMetaHeader.extended_header_size = packagedContentMetaHeader.extended_header_size;
contentMetaHeader.content_count = contentInfos.size() + 1; // Add one for the cnmt content record contentMetaHeader.content_count = contentInfos.size() + 1; // Add one for the cnmt content record
contentMetaHeader.content_meta_count = packagedContentMetaHeader.content_meta_count; contentMetaHeader.content_meta_count = packagedContentMetaHeader.content_meta_count;
contentMetaHeader.attributes = packagedContentMetaHeader.attributes;
installContentMetaBuffer.Append<NcmContentMetaHeader>(contentMetaHeader); installContentMetaBuffer.Append<NcmContentMetaHeader>(contentMetaHeader);