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

Commit

Permalink
0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Mar 6, 2021
1 parent 0bd4eec commit 44893c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Chakra/Chakra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

void preload() {
static std::vector<std::pair<std::wstring, HMODULE>> libs;
std::filesystem::create_directory("plugins");
std::filesystem::create_directory("plugins\\preload");
std::filesystem::directory_iterator ent("plugins\\preload");
std::cout << "[Chakra] Loading preload plugins\n";
for (auto& i : ent) {
if (i.is_regular_file() && i.path().extension() == ".dll") {
auto lib = LoadLibrary(i.path().c_str());
Expand Down
3 changes: 1 addition & 2 deletions LiteLoader/LiteLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ static void fixupLIBDIR() {
}
static void loadPlugins() {
static std::vector<std::pair<std::wstring, HMODULE>> libs;
std::filesystem::create_directory("plugins");
fixupLIBDIR();
std::filesystem::directory_iterator ent("plugins");
std::cout << "[LiteLoader] Loading plugins\n";
Expand Down Expand Up @@ -65,7 +64,7 @@ static void loadPlugins() {
((void (*)()) FN)();
}
catch (...) {
std::wcerr << "[Error] mod" << name << " throws an exception when onPostInit\n";
std::wcerr << "[Error] plugin " << name << " throws an exception when onPostInit\n";
exit(1);
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Based on [BedrockX](https://github.com/Sysca11/BedrockX)

## Usage
Put .dll plugins(build for LiteLoader) into `plugins\` directory
Put .dll plugins(with builtin HookLib) into `plugin_preload\` directory
Put .dll plugins(need preload, for example: BDSNetRunner) into `plugin\preload\` directory

## More
See [Wiki](https://github.com/LiteLDev/LiteLoader/wiki)
Expand Down
2 changes: 1 addition & 1 deletion README_zhcn.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## Usage
把.dll插件放到`plugins\`目录
把如BDSNetRunner需要预先加载的插件放到`plugin_preload\`目录
把如BDSNetRunner需要预先加载的插件放到`plugin\preload\`目录

## More
请参见[Wiki](https://github.com/LiteLDev/LiteLoader/wiki)
Expand Down
2 changes: 1 addition & 1 deletion headers/liteloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#define LIAPI __declspec(dllexport)
#endif
typedef unsigned char uchar;
#define LiteLoaderVersion "0.1.8"
#define LiteLoaderVersion "0.1.9"

0 comments on commit 44893c8

Please sign in to comment.