mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-07-01 01:12:13 +02:00
Merge 3f428ffc98
into 3cf70237fe
This commit is contained in:
commit
2e5f0f7e07
@ -16,6 +16,7 @@ include $(DEVKITPRO)/libnx/switch_rules
|
||||
# DATA is a list of directories containing data files
|
||||
# INCLUDES is a list of directories containing header files
|
||||
# EXEFS_SRC is the optional input directory containing data copied into exefs, if anything this normally should only contain "main.npdm".
|
||||
# ROMFS is the directory containing data to be added to RomFS, relative to the Makefile (Optional)
|
||||
#
|
||||
# NO_ICON: if set to anything, do not use icon.
|
||||
# NO_NACP: if set to anything, no .nacp file is generated.
|
||||
@ -132,7 +133,7 @@ ifneq ($(APP_TITLEID),)
|
||||
endif
|
||||
|
||||
ifneq ($(ROMFS),)
|
||||
export NROFLAGS += --romfs=$(CURDIR)/$(ROMFS)
|
||||
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
|
||||
endif
|
||||
|
||||
.PHONY: $(BUILD) clean all
|
||||
|
6
fs/romfs/romfs/folder/file.txt
Normal file
6
fs/romfs/romfs/folder/file.txt
Normal file
@ -0,0 +1,6 @@
|
||||
Hello, this is the libnx romfs example.
|
||||
This text is being read off a file in romfs.
|
||||
|
||||
>>Switch Homebrew is Cool<<
|
||||
|
||||
Signed off, fincs & WinterMute
|
2
fs/romfs/romfs/フォルダ/ファイル.txt
Normal file
2
fs/romfs/romfs/フォルダ/ファイル.txt
Normal file
@ -0,0 +1,2 @@
|
||||
The path to this file contains Unicode
|
||||
characters that fall outside ASCII.
|
@ -1,5 +1,6 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
@ -22,6 +23,8 @@ void printfile(const char* path)
|
||||
}
|
||||
printf(">>EOF<<\n");
|
||||
fclose(f);
|
||||
} else {
|
||||
printf("errno is %d, %s\n", errno, strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user