mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-25 12:14:24 -04:00
fusee_cpp: add logic for loading mtc overlays
This commit is contained in:
parent
4480e7a8a5
commit
3bcdd0c3c8
157 changed files with 2222 additions and 47 deletions
fusee_cpp/program
Makefilelz4_compress.py
mtc_tables
bin
T210SdevEmcDvfsTableH4gb01
T210SdevEmcDvfsTableS4gb01
T210SdevEmcDvfsTableS6gb01
T210b01SdevEmcDvfsTableH1y4gb01
T210b01SdevEmcDvfsTableH4gb03
T210b01SdevEmcDvfsTableM1y4gb01
T210b01SdevEmcDvfsTableM4gb03
T210b01SdevEmcDvfsTableS1y4gb01
T210b01SdevEmcDvfsTableS1y4gbX03
T210b01SdevEmcDvfsTableS1y4gbY01
T210b01SdevEmcDvfsTableS1y8gbX03
T210b01SdevEmcDvfsTableS1y8gbY01
T210b01SdevEmcDvfsTableS4gb01
T210b01SdevEmcDvfsTableS4gb03
T210b01SdevEmcDvfsTableS4gbY01
T210b01SdevEmcDvfsTableS8gb03
lz
|
@ -66,6 +66,7 @@ ATMOSPHERE_BUILD_CONFIGS += $(strip $1)
|
||||||
|
|
||||||
$(strip $1): check_libexo_$(strip $1) $$(ATMOSPHERE_BUILD_DIR)/$(strip $1)
|
$(strip $1): check_libexo_$(strip $1) $$(ATMOSPHERE_BUILD_DIR)/$(strip $1)
|
||||||
@$$(MAKE) __RECURSIVE__=1 OUTPUT=$$(OUTPUT_BASE)$(strip $2) $(3) \
|
@$$(MAKE) __RECURSIVE__=1 OUTPUT=$$(OUTPUT_BASE)$(strip $2) $(3) \
|
||||||
|
ATMOSPHERE_BUILD_TARGET=$(strip $2) \
|
||||||
DEPSDIR=$$(CURDIR)/$$(ATMOSPHERE_BUILD_DIR)/$(strip $1) \
|
DEPSDIR=$$(CURDIR)/$$(ATMOSPHERE_BUILD_DIR)/$(strip $1) \
|
||||||
LIBEXOSPHERE_NAME=exosphere$(strip $2) \
|
LIBEXOSPHERE_NAME=exosphere$(strip $2) \
|
||||||
--no-print-directory -C $$(ATMOSPHERE_BUILD_DIR)/$(strip $1) \
|
--no-print-directory -C $$(ATMOSPHERE_BUILD_DIR)/$(strip $1) \
|
||||||
|
@ -110,7 +111,7 @@ DEPENDS := $(OFILES:.o=.d)
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
$(OUTPUT).lz4 : $(OUTPUT).bin
|
$(OUTPUT).lz4 : $(OUTPUT).bin
|
||||||
@python $(TOPDIR)/lz4_compress.py $(OUTPUT).bin $(OUTPUT).lz4
|
@python $(TOPDIR)/split_bin.py "$(ATMOSPHERE_BUILD_TARGET)"
|
||||||
@echo built ... $(notdir $@)
|
@echo built ... $(notdir $@)
|
||||||
|
|
||||||
$(OUTPUT).bin : $(OUTPUT).elf
|
$(OUTPUT).bin : $(OUTPUT).elf
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
import sys, lz4
|
|
||||||
from struct import unpack as up
|
|
||||||
|
|
||||||
def lz4_compress(data):
|
|
||||||
try:
|
|
||||||
import lz4.block as block
|
|
||||||
except ImportError:
|
|
||||||
block = lz4.LZ4_compress
|
|
||||||
return block.compress(data, 'high_compression', store_size=False)
|
|
||||||
|
|
||||||
def main(argc, argv):
|
|
||||||
if argc != 3:
|
|
||||||
print('Usage: %s in out' % argv[0])
|
|
||||||
return 1
|
|
||||||
with open(argv[1], 'rb') as f:
|
|
||||||
data = f.read()
|
|
||||||
with open(argv[2], 'wb') as f:
|
|
||||||
f.write(lz4_compress(data[:0x2B000 + 0x11000]))
|
|
||||||
return 0
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.exit(main(len(sys.argv), sys.argv))
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/0.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/0.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/1.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/1.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/2.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/2.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/3.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/3.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/4.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/4.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/5.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/5.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/6.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/6.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/7.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/7.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/8.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/8.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/9.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableH4gb01/9.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/0.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/0.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/1.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/1.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/2.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/2.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/3.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/3.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/4.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/4.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/5.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/5.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/6.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/6.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/7.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/7.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/8.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/8.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/9.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS4gb01/9.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/0.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/0.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/1.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/1.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/2.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/2.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/3.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/3.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/4.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/4.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/5.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/5.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/6.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/6.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/7.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/7.lz4
Normal file
Binary file not shown.
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/8.lz4
Normal file
BIN
fusee_cpp/program/mtc_tables/lz/T210SdevEmcDvfsTableS6gb01/8.lz4
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue