Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ CFLAGS := -g -Wall -Wno-psabi -O2 -mword-relocations \

CFLAGS += $(INCLUDE) -D__3DS__ -D_GNU_SOURCE=1

CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17 $(CITRA)
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17

ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
Expand Down Expand Up @@ -221,16 +221,12 @@ ifneq ($(ROMFS),)
export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS)
endif

.PHONY: all citra clean cppcheck
.PHONY: all clean cppcheck

#---------------------------------------------------------------------------------
all: $(BUILD) $(GFXBUILD) $(DEPSDIR) $(ROMFS_T3XFILES) $(T3XHFILES)
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile

#---------------------------------------------------------------------------------
citra: $(BUILD) $(GFXBUILD) $(DEPSDIR) $(ROMFS_T3XFILES) $(T3XHFILES)
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile CITRA=-DCITRA

#------------------------------------------------------------------------------
clean:
@echo clean ...
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ git submodule update --init --recursive

Once you've cloned the repository (with submodules), simply run `make` in the root of the repository.

If you're testing in Citra, run `make citra` instead of just `make` to disable the Wi-Fi check. (Note: `source/utils/download.cpp` must be rebuilt for this to take affect, save the file if it's already been built)

## Screenshots

<details><summary>Screenshots</summary>
Expand Down
4 changes: 3 additions & 1 deletion include/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@

#define _STORE_PATH "sdmc:/3ds/Universal-Updater/stores/"
#define _META_PATH "sdmc:/3ds/Universal-Updater/MetaData.json"
#define _THEME_AMOUNT 2
#define _THEME_PATH "sdmc:/3ds/Universal-Updater/Themes.json"
#define _CONFIG_PATH "sdmc:/3ds/Universal-Updater/Config.json"
#define _UNISTORE_VERSION 4
#define UU_TITLE_ID 0x0004000004391700

inline std::unique_ptr<Config> config;
inline uint32_t hRepeat, hUp, hDown, hHeld;
Expand Down
6 changes: 3 additions & 3 deletions include/gui/gfx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <citro2d.h>
#include <string>

extern std::unique_ptr<Theme> UIThemes;
extern Theme UITheme;

/* Standard Colors. */
#define WHITE C2D_Color32(255, 255, 255, 255)
Expand All @@ -52,8 +52,8 @@ namespace GFX {
void DrawBattery();
void HandleBattery();
void DrawWifi();
void DrawIcon(const int Idx, int X, int Y, uint32_t Color = UIThemes->SideBarIconColor(), float BlendPower = 1.0f, float ScaleX = 1.0f, float ScaleY = 1.0f);
void DrawIconRotated(const int Idx, int X, int Y, float Angle = 0.0f, uint32_t Color = UIThemes->SideBarIconColor(), float BlendPower = 1.0f, float ScaleX = 1.0f, float ScaleY = 1.0f);
void DrawIcon(const int Idx, int X, int Y, uint32_t Color = UITheme.SideBarIconColor(), float BlendPower = 1.0f, float ScaleX = 1.0f, float ScaleY = 1.0f);
void DrawIconRotated(const int Idx, int X, int Y, float Angle = 0.0f, uint32_t Color = UITheme.SideBarIconColor(), float BlendPower = 1.0f, float ScaleX = 1.0f, float ScaleY = 1.0f);
};

#endif
Loading
Loading