Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.

Commit 9fe55a7

Browse files
committed
Update version 1.1.1
1 parent 1977464 commit 9fe55a7

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

Diff for: ATRACTool/ATRACTool.rc

16 Bytes
Binary file not shown.

Diff for: ATRACTool/ATRACToolDlg.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ BOOL CATRACToolDlg::OnInitDialog()
203203

204204
CFileFind init;
205205

206+
SetWindowText(_T("ATRACTool [") + CURRENTTEXT + _T(", Feb. 14, 2021]"));
207+
206208
OutputDebugString(_T("Initializing...\n"));
207209
if (init.FindFile(_T(".\\Resources\\at3tool.exe"))) {
208210
if (init.FindFile(_T(".\\Resources\\at9tool.exe"))) {
@@ -286,7 +288,7 @@ void CATRACToolDlg::OnOpenFile()
286288
CButton* BUTTON_ENCODE = (CButton*)GetDlgItem(IDC_BUTTON_ENCODE);
287289
CButton* RADIO_AT3 = (CButton*)GetDlgItem(IDC_RADIO_AT3);
288290
CButton* RADIO_AT9 = (CButton*)GetDlgItem(IDC_RADIO_AT9);
289-
wchar_t Drive[10] = { NULL }, Dir[MAX_PATH] = { NULL }, Name[MAX_PATH] = { NULL }, Ext[MAX_PATH] = { NULL };
291+
wchar_t Drive[10]{}, Dir[MAX_PATH]{}, Name[MAX_PATH]{}, Ext[MAX_PATH]{};
290292
CString DRIVE, DIR, NAME, EXT, SIZE, AT3EXT = _T(".AT3"), AT9EXT = _T(".AT9"), WAVEEXT = _T(".WAV"), FLAG;
291293
CString filter("Adaptive TRansform Acoustic Coding 3 (*.at3)|*.at3|Adaptive TRansform Acoustic Coding 9 (*.at9)|*.at9|Microsoft Wave サウンド (*.wav)|*.wav|サポートされているすべてのファイル (*.at3,*.at9,*.wav)|*.at3;*.at9;*.wav||");
292294
CFileDialog selDlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST, filter);

Diff for: ATRACTool/common.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ CString READ_TEXT() {
8686
return FUNCTION;
8787
}
8888

89+
CString CURRENT_VER() {
90+
CString FUNCTION = AppCurrentVersionCheck();
91+
return FUNCTION;
92+
}
93+
8994
DWORD GetFileSizeStat(const wchar_t* fp) {
9095
struct _stat st;
9196
if (_wstat(fp, &st) != 0) {
@@ -180,7 +185,7 @@ CString AppUpdateCheck() {
180185
DWORD StatusCode = sizeof(DWORD);
181186
DWORD StatusCode_Size = sizeof(DWORD);
182187
wchar_t Path[MAX_PATH + 1], Drive[10], Dir[MAX_PATH], Name[MAX_PATH], Ext[MAX_PATH];
183-
wchar_t ptr[MAX_PATH] = { 0 };
188+
wchar_t ptr[MAX_PATH]{};
184189
TCHAR m_cPath[MAX_PATH + 1];
185190

186191
CString URL;

Diff for: ATRACTool/common.define.h

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
#define DEFAULTTEXT DEF_TEXT()
66
#define READEDTEXT READ_TEXT()
7+
#define CURRENTTEXT CURRENT_VER()

Diff for: ATRACTool/common.h

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
void LoadResources();
1717
CString DEF_TEXT();
1818
CString READ_TEXT();
19+
CString CURRENT_VER();
1920
DWORD GetFileSizeStat(const wchar_t* fp);
2021
BOOL DeleteDirectory(LPCTSTR lpPathName);
2122
bool checkExistenceOfFolder(const std::string folder_name);

0 commit comments

Comments
 (0)