Skip to content

Commit

Permalink
init: create a titledb if it doesn't exist
Browse files Browse the repository at this point in the history
This allows Universal-Updater.3dsx to function standalone without any
CIAs having been installed previously.
  • Loading branch information
lifehackerhansol committed Nov 12, 2024
1 parent b220f51 commit d97bcf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ Result Init::Initialize() {
mkdir("sdmc:/3ds/Universal-Updater/stores", 0777);
mkdir("sdmc:/3ds/Universal-Updater/shortcuts", 0777);

/* Create title database, if missing. */
AM_InitializeExternalTitleDatabase(false);

config = std::make_unique<Config>();
UIThemes = std::make_unique<Theme>();
UIThemes->LoadTheme(config->theme());
Expand Down

0 comments on commit d97bcf3

Please sign in to comment.