Some minor improvements

o Reload current dir after updating embedded backup
o Payload is now available in mem for GW entyrpoint, too
o Fix building .3DSX file
This commit is contained in:
d0k3 2017-02-23 19:08:15 +01:00
parent d0c4e11bad
commit fe62480cd3
3 changed files with 3 additions and 4 deletions

View File

@ -111,7 +111,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
.PHONY: common clean all gateway a9lh cakehax cakerop brahma release
.PHONY: common clean all gateway binary cakehax cakerop brahma release
#---------------------------------------------------------------------------------
all: binary
@ -137,7 +137,7 @@ cakerop: cakehax
@make DATNAME=$(TARGET).dat DISPNAME=$(TARGET) GRAPHICS=../resources/CakesROP -C CakesROP
@mv CakesROP/CakesROP.nds $(OUTPUT_D)/$(TARGET).nds
brahma: submodules a9lh
brahma: submodules binary
@[ -d BrahmaLoader/data ] || mkdir -p BrahmaLoader/data
@cp $(OUTPUT).bin BrahmaLoader/data/payload.bin
@cp resources/BrahmaAppInfo BrahmaLoader/resources/AppInfo

View File

@ -1018,6 +1018,7 @@ u32 FileHandlerMenu(char* current_path, u32* cursor, u32* scroll, DirStruct* cur
bool success = (required && (EmbedEssentialBackup(curr_entry->path) == 0));
ShowPrompt(false, "%s\nBackup update: %s", pathstr, (!required) ? "not required" :
(success) ? "completed" : "failed!");
GetDirContents(current_dir, current_path);
return 0;
} else if ((user_select == launch)) {
size_t payload_size = FileGetSize(curr_entry->path);

View File

@ -17,9 +17,7 @@ static const VirtualFile vMemFileTemplates[] = {
// { "otp.mem" , 0x10012000, 0x00000108, 0xFF, 0 },
{ "bootrom.mem" , 0xFFFF0000, 0x00010000, 0xFF, 0 },
{ "bootrom_unp.mem" , 0xFFFF0000, 0x00008000, 0xFF, 0 },
#ifdef EXEC_A9LH
{ "godmode9.bin" , 0x23F00000, 0x00040000, 0xFF, 0 } // arbitrary size
#endif
};
bool ReadVMemDir(VirtualFile* vfile, VirtualDir* vdir) { // uses a generic vdir object generated in virtual.c