Skip to content

Commit

Permalink
revert: 文件名
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxLHy0424 committed Sep 15, 2024
1 parent 39b962e commit 993242b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ CRCSN 使用 [MIT License](LICENSE), 详细内容请自行阅读.
非常欢迎大家二次开发 CRCSN!
二次开发时, 请务必修改 `dflt.hpp` 和 `launcher.cmd` 中的宏定义 `CHANNEL` 和 `CUSTOM_TITLE`, 以做区分.
二次开发时, 请务必修改 `def.hpp` 和 `launcher.cmd` 中的宏定义 `CHANNEL` 和 `CUSTOM_TITLE`, 以做区分.
> [!NOTE]
> **推荐做法**
> - 将 `CHANNEL` 修改为一个负整数, 整数位通常是修改版的发布日期.\
> 示例: `-240721`, `-231215`.
> - 将 `CUSTOM_TITLE` 修改为 `[Revised by xxx] ` 加上 `CRCSN` (`dflt.hpp`) 或 `CRCSN Launcher` (`launcher.cmd`). 在 `dflt.hpp` 中修改, 务必加上英文半角双引号, 并在最前面加上 `L` (不然无法通过编译).\
> - 将 `CUSTOM_TITLE` 修改为 `[Revised by xxx] ` 加上 `CRCSN` (`def.hpp`) 或 `CRCSN Launcher` (`launcher.cmd`). 在 `def.hpp` 中修改, 务必加上英文半角双引号, 并在最前面加上 `L` (不然无法通过编译).\
> 示例: `L"[Revised by Ethylene] CRCSN"`, `[Revised by Kendall] CRCSN Launcher`.
版权声明部分, 请在遵守许可证的情况下修改. 推荐将二次开发版本开源至 GitHub, 在许可证允许的情况下, 可能会被采纳.
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include"dflt.hpp"
#include"def.hpp"
#include"ui.hpp"
#include"mods.hpp"
#include"mod.hpp"
auto main(i32 argc,i8 *argv[])->i32{
bool optError{};
if(argc>1){
Expand Down
2 changes: 1 addition & 1 deletion src/mods.hpp → src/mod.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include"dflt.hpp"
#include"def.hpp"
#include"ui.hpp"
struct{
bool wndFrontShow,wndAlpha,wndSizeBox,viewWide;
Expand Down
6 changes: 3 additions & 3 deletions src/ui.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include"dflt.hpp"
#include"def.hpp"
#define MOUSE_BUTTON_LEFT FROM_LEFT_1ST_BUTTON_PRESSED
#define MOUSE_BUTTON_MIDDLE FROM_LEFT_2ND_BUTTON_PRESSED
#define MOUSE_BUTTON_RIGHT RIGHTMOST_BUTTON_PRESSED
Expand Down Expand Up @@ -32,8 +32,8 @@ class CUI final{
void *argv;
Item():
text{},colorDef{CON_WHITE},colorHighlight{CON_BLUE},colorLast{CON_WHITE},pos{},fn{nullptr}{}
Item(const i8 *text,i16 dflt,i16 highlight,fncall fn,void *argv):
text{text},colorDef{dflt},colorHighlight{highlight},colorLast{CON_WHITE},pos{},fn{fn},argv{argv}{}
Item(const i8 *text,i16 def,i16 highlight,fncall fn,void *argv):
text{text},colorDef{def},colorHighlight{highlight},colorLast{CON_WHITE},pos{},fn{fn},argv{argv}{}
auto setColor(i8 f){
switch(f){
case 'D':{
Expand Down

0 comments on commit 993242b

Please sign in to comment.