|
2 | 2 | * SPDX-License-Identifier: GPL-3.0-or-later |
3 | 3 | * ------------------------------------------------------------- |
4 | 4 | * File Name : core.c |
5 | | - * File Authors : 曾奥然 <[email protected]> |
6 | | - |
7 | | - * Contributors : Peng Gao <[email protected]> |
8 | | - * | Happy Game <[email protected]> |
9 | | - |
10 | | - * | BingChunMoLi <[email protected]> |
| 5 | + * File Authors : 曾奥然 <[email protected]> |
| 6 | + |
| 7 | + * Contributors : Peng Gao <[email protected]> |
| 8 | + * | Happy Game <[email protected]> |
| 9 | + |
| 10 | + * | BingChunMoLi <[email protected]> |
| 11 | + * | Mikachu2333 <[email protected]> |
11 | 12 | * | |
12 | 13 | * Created On : <2023-08-29> |
13 | | - * Last Modified : <2025-09-12> |
| 14 | + * Last Modified : <2025-09-29> |
14 | 15 | * |
15 | 16 | * chsrc framework |
16 | 17 | * ------------------------------------------------------------*/ |
@@ -239,9 +240,9 @@ chsrc_init_framework () |
239 | 240 |
|
240 | 241 |
|
241 | 242 | void |
242 | | -chsrc_log_write (const char *filename) |
| 243 | +chsrc_log_write (const char *filename, bool is_overwrite) |
243 | 244 | { |
244 | | - char *msg = ENGLISH ? "WRITE" : "写入"; |
| 245 | + char *msg = is_overwrite ? (ENGLISH ? "OVERWRITE" : "覆写") : (ENGLISH ? "WRITE" : "写入"); |
245 | 246 |
|
246 | 247 | xy_log_brkt (blue(App_Name), bdblue(msg), blue(filename)); |
247 | 248 | } |
@@ -1673,7 +1674,7 @@ chsrc_append_to_file (const char *str, const char *filename) |
1673 | 1674 |
|
1674 | 1675 | log_anyway: |
1675 | 1676 | /* 输出recipe指定的文件名 */ |
1676 | | - chsrc_log_write (filename); |
| 1677 | + chsrc_log_write (filename, false); |
1677 | 1678 |
|
1678 | 1679 | /* |
1679 | 1680 | char *cmd = NULL; |
@@ -1714,7 +1715,7 @@ chsrc_prepend_to_file (const char *str, const char *filename) |
1714 | 1715 |
|
1715 | 1716 | log_anyway: |
1716 | 1717 | /* 输出recipe指定的文件名 */ |
1717 | | - chsrc_log_write (filename); |
| 1718 | + chsrc_log_write (filename, false); |
1718 | 1719 | } |
1719 | 1720 |
|
1720 | 1721 | static void |
@@ -1742,7 +1743,7 @@ chsrc_overwrite_file (const char *str, const char *filename) |
1742 | 1743 |
|
1743 | 1744 | log_anyway: |
1744 | 1745 | /* 输出recipe指定的文件名 */ |
1745 | | - chsrc_log_write (filename); |
| 1746 | + chsrc_log_write (filename, true); |
1746 | 1747 | } |
1747 | 1748 |
|
1748 | 1749 | static void |
|
0 commit comments