Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
VER 2.1.1-beta.1
Browse files Browse the repository at this point in the history
*? Update readme.
^# Fix PowerShell script logical operating problem.
 : Use `-or` instead of incorrect `||`.
^- Fix assertion failed when starting program.
  • Loading branch information
ren-yc committed Oct 30, 2022
1 parent 6824b9e commit 32e5ddb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ A command line tool using with online class.

| <img src="https://avatars.githubusercontent.com/u/53416099?v=4" width="60px"></br> ren-yc (Yuchen Ren) | <img src="https://avatars.githubusercontent.com/u/68993466?v=4" width="60px"></br> jsh-jsh (jinshuhang) | <img src="https://avatars.githubusercontent.com/u/100132650?v=4" width="60px"></br> hjl2011 |
| :---: | :---: | :---: |
| ![](https://shields.io/badge/Coding-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Creator-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Coding-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) |
| ![](https://shields.io/badge/Maintainer-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Creator-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Coding-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) |

**For more information, please go to [Wiki](https://github.com/class-tools/Web-Class-Helper/wiki)**.
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@

| <img src="https://avatars.githubusercontent.com/u/53416099?v=4" width="60px"></br> ren-yc (Yuchen Ren) | <img src="https://avatars.githubusercontent.com/u/68993466?v=4" width="60px"></br> jsh-jsh (jinshuhang) | <img src="https://avatars.githubusercontent.com/u/100132650?v=4" width="60px"></br> hjl2011 |
| :---: | :---: | :---: |
| ![](https://shields.io/badge/Coding-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Creator-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Coding-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) |
| ![](https://shields.io/badge/Maintainer-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Creator-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) | ![](https://shields.io/badge/Coding-green?logo=visual-studio-code&style=for-the-badge)<br>![](https://shields.io/badge/BugTester-yellow?logo=open-bug-bounty&style=for-the-badge) |

**更多信息请至 [Wiki](https://github.com/class-tools/Web-Class-Helper/wiki)**
4 changes: 2 additions & 2 deletions WCH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Copyright (c) 2022 Class Tools Develop Team
Contributors: jsh-jsh ren-yc
*/
#define WCH_VER_MAIN TEXT("2.1.1")
#define WCH_VER_TYPE 1
#define WCH_VER_TYPE 2
#if WCH_VER_TYPE != 0
#define WCH_VER_BUILD 5
#define WCH_VER_BUILD 1
#endif
#include "./modules/file-process.hpp"
#include "./modules/init.hpp"
Expand Down
8 changes: 4 additions & 4 deletions modules/init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ void WCH_Init_Bind() {
// Initialization for bind.
atexit(WCH_exit);
WCH_signalHandler();
assert(CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE) == S_OK);
assert(WCH_TBL.CoCreateInstance(CLSID_TaskbarList) == S_OK);
ignore = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
ignore = WCH_TBL.CoCreateInstance(CLSID_TaskbarList);
JSON_SWB.settings_ = []() {
Json::Value def;
Json::StreamWriterBuilder::setDefaults(&def);
def["emitUTF8"] = true;
return def;
}();
WCH_window_handle = GetConsoleWindow();
assert(_setmode(_fileno(stdin), _O_WTEXT) != -1);
assert(_setmode(_fileno(stdout), _O_WTEXT) != -1);
ignore = _setmode(_fileno(stdin), _O_WTEXT);
ignore = _setmode(_fileno(stdout), _O_WTEXT);
wfin.imbue(locale(".UTF-8", LC_CTYPE));
wfout.imbue(locale(".UTF-8", LC_CTYPE));
_wsystem(L"CHCP 65001 > NUL");
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $devenv_path = (& (${env:ProgramFiles(x86)} + "\Microsoft Visual Studio\Installe
$solution_path = ".\WCH.sln"
$run_mode = "/Build"
$configarray = "x86", "x64", "ARM", "ARM64"
if ($args[0] -eq "Debug" || $args[0] -eq "Release") {
if ($args[0] -eq "Debug" -or $args[0] -eq "Release") {
foreach ($config in $configarray) {
& $devenv_path $solution_path $run_mode ($args[0] + "|" + $config)
}
Expand Down

0 comments on commit 32e5ddb

Please sign in to comment.