Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Apr 25, 2021
1 parent e803d46 commit c9c3c0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions LiteLoader/LiteLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static void PrintErrorMessage() {
LocalFree(messageBuffer);
}

static void pluginsLibDir() {
static void pluginsLibDir() {//add plugins folder to path to fix dependent problem
WCHAR* buffer = new WCHAR[8192];
auto sz = GetEnvironmentVariableW(TEXT("PATH"), buffer, 8192);
std::wstring PATH{ buffer, sz };
Expand Down Expand Up @@ -129,15 +129,17 @@ static void entry(bool fixcwd) {
if (fixcwd)
FixUpCWD();
std::filesystem::create_directory("logs");
Event::addEventListener([](RegCmdEV ev) {

Event::addEventListener([](RegCmdEV ev) { //Register commands
CMDREG::SetCommandRegistry(ev.CMDRg);
MakeCommand("version", "Gets the version of this server", 0);
CmdOverload(version, versionCommand);
});

loadPlugins();
XIDREG::initAll();
Event::addEventListener([](ServerStartedEV) {
XIDREG::initAll();//Initialize the xuid database

Event::addEventListener([](ServerStartedEV) {//Server started event
startWBThread();
LOG("LiteLoader is distributed under the GPLv3 License");
#ifdef LiteLoaderVersionGithub
Expand All @@ -148,7 +150,8 @@ static void entry(bool fixcwd) {
LOG(u8"感谢旋律云(rhymc.com)对本项目的支持 | Thanks to [rhymc.com] for supporting this project");
updateCheck();
});
PostInitEV PostInitEV;

PostInitEV PostInitEV;//Register plugin loading event
for (size_t count = 0; count < PostInitCallBacks.size(); count++) {
PostInitCallBacks[count](PostInitEV);
}
Expand Down
4 changes: 2 additions & 2 deletions headers/liteloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
#define LIAPI __declspec(dllexport)
#endif
typedef unsigned char uchar;
#define LiteLoaderVersion "1.0.0"
#define LiteLoaderVersionNum (unsigned short) 6
#define LiteLoaderVersion "1.0.1"
#define LiteLoaderVersionNum (unsigned short) 7

0 comments on commit c9c3c0c

Please sign in to comment.