mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
Compare commits
6 Commits
dc0de47eb1
...
b954aaf35d
Author | SHA1 | Date | |
---|---|---|---|
|
b954aaf35d | ||
|
8ce306b9b6 | ||
|
2e80cf9bba | ||
|
95f973fe98 | ||
|
6602c440b4 | ||
|
99a29b97ca |
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,3 +13,5 @@ debug/
|
|||||||
release/
|
release/
|
||||||
lib/
|
lib/
|
||||||
docs/
|
docs/
|
||||||
|
compile_commands.json
|
||||||
|
.clangd
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Version 4.4.2
|
||||||
|
|
||||||
|
#### system
|
||||||
|
* ensure correct addresses for bss
|
||||||
|
|
||||||
|
#### miscellaneous
|
||||||
|
* fix timezone to allow +/- and alphanumrics
|
||||||
|
* end compile_commmands generation when elf linked
|
||||||
|
|
||||||
## Version 4.4.1
|
## Version 4.4.1
|
||||||
|
|
||||||
#### miscellaneous
|
#### miscellaneous
|
||||||
|
@ -10,7 +10,7 @@ include $(DEVKITPRO)/devkitA64/base_rules
|
|||||||
|
|
||||||
export LIBNX_MAJOR := 4
|
export LIBNX_MAJOR := 4
|
||||||
export LIBNX_MINOR := 4
|
export LIBNX_MINOR := 4
|
||||||
export LIBNX_PATCH := 0
|
export LIBNX_PATCH := 2
|
||||||
|
|
||||||
|
|
||||||
VERSION := $(LIBNX_MAJOR).$(LIBNX_MINOR).$(LIBNX_PATCH)
|
VERSION := $(LIBNX_MAJOR).$(LIBNX_MINOR).$(LIBNX_PATCH)
|
||||||
|
@ -553,7 +553,7 @@ Result swkbdInlineGetImage(SwkbdInline* s, void* buffer, u64 size, bool *data_av
|
|||||||
if (!buffer || !size) return MAKERESULT(Module_Libnx, LibnxError_BadInput);
|
if (!buffer || !size) return MAKERESULT(Module_Libnx, LibnxError_BadInput);
|
||||||
|
|
||||||
if (_swkbdInlineHandleFinished(s)) {
|
if (_swkbdInlineHandleFinished(s)) {
|
||||||
data_available = false;
|
*data_available = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,10 +320,13 @@ void __libnx_init_time(void)
|
|||||||
hour = tmp_offset % 24;
|
hour = tmp_offset % 24;
|
||||||
|
|
||||||
memset(envstr, 0, sizeof(envstr));
|
memset(envstr, 0, sizeof(envstr));
|
||||||
|
strptr = envstr;
|
||||||
|
// Some tznames have numeric characters and '-'/'+', so quote tzname with <>.
|
||||||
|
*strptr++ = '<';
|
||||||
//Avoid using *printf.
|
//Avoid using *printf.
|
||||||
strncpy(envstr, /*info.timezoneName*/"NX", sizeof(envstr)-1); // Some tznames have numeric characters and '-'/'+', so the actual tzname can't be used.
|
strncpy(strptr, info.timezoneName, sizeof(envstr)-1);
|
||||||
strptr = &envstr[strlen(envstr)];
|
strptr = &envstr[strlen(envstr)];
|
||||||
|
*strptr++ = '>';
|
||||||
*strptr++ = is_west ? '+' : '-';
|
*strptr++ = is_west ? '+' : '-';
|
||||||
|
|
||||||
*strptr++ = '0' + (hour / 10);
|
*strptr++ = '0' + (hour / 10);
|
||||||
|
@ -134,7 +134,6 @@ SECTIONS
|
|||||||
SORT(CONSTRUCTORS)
|
SORT(CONSTRUCTORS)
|
||||||
} :data
|
} :data
|
||||||
|
|
||||||
__bss_start__ = .;
|
|
||||||
.bss ALIGN(8) :
|
.bss ALIGN(8) :
|
||||||
{
|
{
|
||||||
*(.dynbss)
|
*(.dynbss)
|
||||||
@ -147,7 +146,8 @@ SECTIONS
|
|||||||
. += + SIZEOF(.tdata) + SIZEOF(.tbss);
|
. += + SIZEOF(.tdata) + SIZEOF(.tbss);
|
||||||
__tls_end = .;
|
__tls_end = .;
|
||||||
} : data
|
} : data
|
||||||
__bss_end__ = .;
|
__bss_start__ = ADDR(.bss);
|
||||||
|
__bss_end__ = ADDR(.bss) + SIZEOF(.bss);
|
||||||
|
|
||||||
__end__ = ABSOLUTE(.) ;
|
__end__ = ABSOLUTE(.) ;
|
||||||
|
|
||||||
|
@ -77,5 +77,6 @@ endif
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.elf:
|
%.elf:
|
||||||
@echo linking $(notdir $@)
|
@echo linking $(notdir $@)
|
||||||
|
$(ADD_COMPILE_COMMAND) end
|
||||||
@$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@
|
@$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@
|
||||||
@$(NM) -CSn $@ > $(notdir $*.lst)
|
@$(NM) -CSn $@ > $(notdir $*.lst)
|
||||||
|
Loading…
Reference in New Issue
Block a user