-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.cpp
62 lines (46 loc) · 1.23 KB
/
Global.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include "stdafx.h"
#include "Global.h"
#include "IdeaTech.h"
CString g_CurrentDirString;
CString g_StartupShortcutPath;
CString g_ApplicationDataPath;
CString g_PictureFolderPath;
int CX_FRAME = 32;
BOOL Global_Initialize()
{
// カレントフォルダを取得
g_CurrentDirString = ITech_GetCurrentDir();
// スタートアップショートカットパス名を取得
g_StartupShortcutPath = ITech_GetStartupDir() + STARTUP_SHORTCUT;
// アプリケーションデータパス名を取得
g_ApplicationDataPath = ITech_GetAppDataDir();
g_ApplicationDataPath = g_ApplicationDataPath + PICSTAND_APPDATA_FOLDER;
// 写真たて用フォルダを確認
ITech_MakeAndGetDir( g_ApplicationDataPath );
// Picture フォルダを取得
g_PictureFolderPath = g_ApplicationDataPath + PICTURE_FOLDER;
if( ITech_MakeAndGetDir( g_PictureFolderPath ) ){
ITech_CopyFiles( g_CurrentDirString + PICTURE_FOLDER, g_PictureFolderPath );
ITech_AddAppPathToTempFile( g_ApplicationDataPath );
}
return TRUE;
}
void Global_Finalize()
{
}
CString Global_GetCurrentDir()
{
return g_CurrentDirString;
}
CString Global_GetStartupShorcutPath()
{
return g_StartupShortcutPath;
}
CString Global_GetAppDataDir()
{
return g_ApplicationDataPath;
}
CString Global_GetPictureDataDir()
{
return g_PictureFolderPath;
}