Skip to content

Commit

Permalink
Optimize font rendering and switch freetype2 to libschrift
Browse files Browse the repository at this point in the history
Optimized the text rendering which should look clearer but also be a lot faster. This won't make the dumping process faster but it should make it more responsive.
Switching to libschrift should resort to a 400kb decrease in binary size.
  • Loading branch information
Crementif committed Jan 19, 2023
1 parent ddd92b1 commit 89f85c6
Show file tree
Hide file tree
Showing 8 changed files with 1,735 additions and 158 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ BUILD := build
SOURCES := source/app \
source/app/interfaces \
source/utils \
source/utils/fatfs
source/utils/fatfs \
source/utils/libschrift
DATA := data
INCLUDES := include
CONTENT :=
Expand All @@ -55,7 +56,7 @@ DRC_SPLASH := assets/dumpling-drc-boot.png
# options for code generation
#-------------------------------------------------------------------------------
CFLAGS := -g -Wall -Os -ffunction-sections -fdata-sections -Wno-narrowing \
$(MACHDEP) $(shell $(DEVKITPRO)/portlibs/ppc/bin/freetype-config --cflags)
$(MACHDEP)

CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__ -D__wiiu__

Expand All @@ -76,7 +77,7 @@ CXXFLAGS := $(CFLAGS) -std=c++20
ASFLAGS := -g $(ARCH)
LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map)

LIBS := -lstdc++ -lwut -lmocha $(shell $(DEVKITPRO)/portlibs/ppc/bin/freetype-config --libs)
LIBS := -lstdc++ -lwut -lmocha

#-------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ You don't need to run/have Mocha CFW or Haxchi, just launch Dumpling from the Ho
## License
Dumpling is licensed under [MIT](https://github.com/emiyl/dumpling/blob/master/LICENSE.md).
Dumpling uses [fatfs](http://elm-chan.org/fsw/ff/00index_e.html), see its BSD-styled license [here](https://github.com/emiyl/dumpling/blob/master/source/utils/fatfs/LICENSE.txt).
Dumpling also includes [libschrift](https://github.com/tomolt/libschrift), see its ISC-styled license [here](https://github.com/tomolt/libschrift/blob/master/LICENSE).
2 changes: 1 addition & 1 deletion assets/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<app version="1">
<name>dumpling</name>
<coder>Crementif and emiyl</coder>
<version>2.6.1</version>
<version>2.6.2</version>
<release_date>20200813200000</release_date>
<short_description>Simple Cemu File Dumper</short_description>
<long_description>A simple, all-in-one Wii U file dumper! Developed with the intent of making dumping games and other files for Cemu faster and easier.</long_description>
Expand Down
4 changes: 2 additions & 2 deletions source/app/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void showLoadingScreen() {
WHBLogFreetypeSetBackgroundColor(0x0b5d5e00);
WHBLogFreetypeSetFontColor(0xFFFFFFFF);
WHBLogFreetypeSetFontSize(22);
WHBLogPrint("Dumpling V2.6.1");
WHBLogPrint("Dumpling V2.6.2");
WHBLogPrint("-- Made by Crementif and Emiyl --");
WHBLogPrint("");
WHBLogFreetypeDraw();
Expand All @@ -31,7 +31,7 @@ void showMainMenu() {
while(!startSelectedOption) {
// Print menu text
WHBLogFreetypeStartScreen();
WHBLogFreetypePrint(L"Dumpling V2.6.1");
WHBLogFreetypePrint(L"Dumpling V2.6.2");
WHBLogFreetypePrint(L"===============================");
WHBLogFreetypePrintf(L"%C Dump a game disc", OPTION(0));
WHBLogFreetypePrintf(L"%C Dump digital games", OPTION(1));
Expand Down
Loading

0 comments on commit 89f85c6

Please sign in to comment.