Skip to content

Commit

Permalink
fix: fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Apr 28, 2024
1 parent 9752be8 commit 09d5588
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.1] - 2024-04-28

- Fix loading

## [0.4.0] - 2024-04-28

- Adapt to LeviLamina 0.12.x
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"type": "native",
"description": "A LeviLamina plugin which is port from LiteLoaderBDS to help you backup more easily",
"author": "yqs112358 & ShrBox",
"version": "0.4.0"
"version": "0.4.1"
}
8 changes: 4 additions & 4 deletions src/OldBackupHelper/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ BackupHelper& BackupHelper::getInstance() { return *instance; }
bool BackupHelper::load() {
getSelf().getLogger().info("Loading...");
// Code for loading the plugin goes here.
Raw_IniOpen(_CONFIG_FILE, "");
ll::i18n::load("./plugins/BackupHelper/lang/");
ll::i18n::getInstance()->mDefaultLocaleName = ini.GetValue("Main", "Language", "en_US");
getSelf().getLogger().info("BackupHelper loaded! Author: yqs112358, ported by: ShrBox"_tr());
return true;
}

Expand All @@ -94,10 +98,6 @@ bool BackupHelper::enable() {
bool BackupHelper::disable() {
getSelf().getLogger().info("Disabling...");
// Code for disabling the plugin goes here.
Raw_IniOpen(_CONFIG_FILE, "");
ll::i18n::MultiFileI18N i18n("./plugins/BackupHelper/lang/", ini.GetValue("Main", "Language", "en_US"));
ll::i18n::getInstance() = std::make_unique<ll::i18n::MultiFileI18N>(i18n);
getSelf().getLogger().info("BackupHelper loaded! Author: yqs112358, ported by: ShrBox"_tr());
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "github.com/ShrBox/BackupHelper",
"version": "0.4.0",
"version": "0.4.1",
"info": {
"name": "BackupHelper",
"description": "A LeviLamina plugin which is port from LiteLoaderBDS to help you backup more easily",
Expand All @@ -11,7 +11,7 @@
"plugin"
]
},
"asset_url": "https://github.com/ShrBox/BackupHelper/releases/download/v0.4.0/BackupHelper-windows-x64.zip",
"asset_url": "https://github.com/ShrBox/BackupHelper/releases/download/v0.4.1/BackupHelper-windows-x64.zip",
"dependencies": {
"gitea.litebds.com/ShrBox/7-zip": "23.x"
},
Expand Down

0 comments on commit 09d5588

Please sign in to comment.