Skip to content

Commit 56fef3b

Browse files
authored
Merge v0.4
2 parents 013ee88 + 55e3f87 commit 56fef3b

27 files changed

+1459
-615
lines changed

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ["https://chaoses-ib.github.io/funding/微信赞赏码.png", "https://chaoses-ib.github.io/funding/支付宝收款码.png", "感谢捐赠,捐赠时请备注仓库名,便于记录。"]

Hijacker/Hijacker.rc

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ END
5151
//
5252

5353
VS_VERSION_INFO VERSIONINFO
54-
FILEVERSION 0,3,0,1
55-
PRODUCTVERSION 0,3,0,1
54+
FILEVERSION 0,4,0,1
55+
PRODUCTVERSION 0,4,0,1
5656
FILEFLAGSMASK 0x3fL
5757
#ifdef _DEBUG
5858
FILEFLAGS 0x1L
@@ -69,12 +69,12 @@ BEGIN
6969
BEGIN
7070
VALUE "CompanyName", "https://github.com/Chaoses-Ib/IbEverythingExt"
7171
VALUE "FileDescription", "Everything ƴ��������չ"
72-
VALUE "FileVersion", "0.3.0.1"
72+
VALUE "FileVersion", "0.4.0.1"
7373
VALUE "InternalName", "Hijacker.dll"
7474
VALUE "LegalCopyright", "Copyright (C) 2021 ����Ib"
7575
VALUE "OriginalFilename", "WindowsCodecs.dll"
7676
VALUE "ProductName", "IbEverythingExt"
77-
VALUE "ProductVersion", "0.3.0.1"
77+
VALUE "ProductVersion", "0.4.0.1"
7878
END
7979
END
8080
BLOCK "VarFileInfo"

Hijacker/Hijacker.vcxproj

+6
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,20 @@
171171
</Link>
172172
</ItemDefinitionGroup>
173173
<ItemGroup>
174+
<ClInclude Include="config.hpp" />
174175
<ClInclude Include="framework.h" />
175176
<ClInclude Include="helper.hpp" />
177+
<ClInclude Include="ipc.hpp" />
176178
<ClInclude Include="pch.h" />
177179
<ClInclude Include="pinyin.hpp" />
180+
<ClInclude Include="quick_select.hpp" />
178181
<ClInclude Include="resource.h" />
179182
<ClInclude Include="search_history.hpp" />
180183
</ItemGroup>
181184
<ItemGroup>
185+
<ClCompile Include="config.cpp" />
182186
<ClCompile Include="dllmain.cpp" />
187+
<ClCompile Include="ipc.cpp" />
183188
<ClCompile Include="pch.cpp">
184189
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
185190
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
@@ -188,6 +193,7 @@
188193
</ClCompile>
189194
<ClCompile Include="pinyin.cpp" />
190195
<ClCompile Include="pinyin_data.cpp" />
196+
<ClCompile Include="quick_select.cpp" />
191197
<ClCompile Include="search_history.cpp" />
192198
</ItemGroup>
193199
<ItemGroup>

Hijacker/Hijacker.vcxproj.filters

+18
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333
<ClInclude Include="search_history.hpp">
3434
<Filter>Header Files</Filter>
3535
</ClInclude>
36+
<ClInclude Include="ipc.hpp">
37+
<Filter>Header Files</Filter>
38+
</ClInclude>
39+
<ClInclude Include="quick_select.hpp">
40+
<Filter>Header Files</Filter>
41+
</ClInclude>
42+
<ClInclude Include="config.hpp">
43+
<Filter>Header Files</Filter>
44+
</ClInclude>
3645
</ItemGroup>
3746
<ItemGroup>
3847
<ClCompile Include="dllmain.cpp">
@@ -50,6 +59,15 @@
5059
<ClCompile Include="search_history.cpp">
5160
<Filter>Source Files</Filter>
5261
</ClCompile>
62+
<ClCompile Include="ipc.cpp">
63+
<Filter>Source Files</Filter>
64+
</ClCompile>
65+
<ClCompile Include="quick_select.cpp">
66+
<Filter>Source Files</Filter>
67+
</ClCompile>
68+
<ClCompile Include="config.cpp">
69+
<Filter>Source Files</Filter>
70+
</ClCompile>
5371
</ItemGroup>
5472
<ItemGroup>
5573
<ResourceCompile Include="Hijacker.rc">

Hijacker/config.cpp

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include "pch.h"
2+
#include "config.hpp"
3+
#include <fstream>
4+
#include <Shlwapi.h>
5+
#include <yaml-cpp/yaml.h>
6+
7+
#pragma comment(lib, "Shlwapi.lib")
8+
9+
Config config{};
10+
11+
void config_init() {
12+
wchar_t path[MAX_PATH];
13+
GetModuleFileNameW(nullptr, path, std::size(path));
14+
PathRemoveFileSpecW(path);
15+
PathAppendW(path, L"IbEverythingExt.yaml");
16+
17+
std::ifstream in(path);
18+
if (in) {
19+
YAML::Node root = YAML::Load(in);
20+
config.pinyin_search = root["pinyin_search"].as<bool>();
21+
config.quick_select = root["quick_select"].as<bool>();
22+
}
23+
}
24+
25+
void config_destroy() {}

Hijacker/config.hpp

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#pragma once
2+
3+
struct Config {
4+
bool pinyin_search = true;
5+
bool quick_select = true;
6+
};
7+
extern Config config;
8+
9+
void config_init();
10+
void config_destroy();

0 commit comments

Comments
 (0)