Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kronos2308 committed Apr 14, 2024
1 parent 2ced5c9 commit a8e00ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES)))
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(CURDIR)/$(BUILD)
# Verifica si el sistema es Windows o no
ifeq ($(OS),Windows_NT)
# Comandos específicos para Windows
CM1:= cp -u -r lib $(PORTLIBS)/
CM2:= cp -u -r include $(PORTLIBS)/
else
# Comandos específicos para sistemas Unix-like (Linux, macOS, etc.)
CM1:= sudo cp -u -r lib $(PORTLIBS)/
CM2:= sudo cp -u -r include $(PORTLIBS)/
endif



.PHONY: $(BUILD) clean all release

Expand All @@ -108,9 +120,9 @@ release :$(BUILD)

portlib :$(BUILD)
$(info Installing PortLib...)
@mkdir -p $(PORTLIBS)
@sudo cp -u -r lib $(PORTLIBS)/
@sudo cp -u -r include $(PORTLIBS)/
@mkdir -p $(PORTLIBS)/
@$(CM1)
@$(CM2)
$(info Done)

#---------------------------------------------------------------------------------
Expand Down
9 changes: 7 additions & 2 deletions include/nspmini/nx/content_meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace nx::ncm
{
u8 hash[0x20];
NcmContentInfo content_info;
} PACKED;
};

struct PackagedContentMetaHeader
{
Expand Down Expand Up @@ -70,4 +70,9 @@ namespace nx::ncm

void GetInstallContentMeta(tin::data::ByteBuffer& installContentMetaBuffer, NcmContentInfo& cnmtContentInfo, bool ignoreReqFirmVersion);
};
}
}

// Lugar donde se usan las estructuras
#pragma pack(push, 1)
// Código que usa las estructuras empaquetadas
#pragma pack(pop)

0 comments on commit a8e00ad

Please sign in to comment.