-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
468cac1
commit c829d53
Showing
8 changed files
with
72 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "FanyUtils.h" | ||
#include "Define.h" | ||
#include "Globals.h" | ||
|
||
namespace FanyUtuils | ||
{ | ||
std::string GetIMEDataDirPath() | ||
{ | ||
const char *localAppDataPath = std::getenv("LOCALAPPDATA"); | ||
std::string IMEDataPath = std::string(localAppDataPath) + "\\" + Global::wstring_to_string(std::wstring(IME_NAME)); | ||
return IMEDataPath; | ||
} | ||
|
||
std::string GetLogFilePath() | ||
{ | ||
const char *localAppDataPath = std::getenv("LOCALAPPDATA"); | ||
std::string logPath = GetIMEDataDirPath() + "\\log\\" + FANYLOGFILE_; | ||
return logPath; | ||
} | ||
|
||
std::wstring GetLogFilePathW() | ||
{ | ||
std::wstring logPathW = Global::string_to_wstring(GetIMEDataDirPath()) + L"\\log\\" + FANYLOGFILE; | ||
return logPathW; | ||
} | ||
} // namespace FanyUtuils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <string> | ||
|
||
namespace FanyUtuils | ||
{ | ||
std::string GetIMEDataDirPath(); | ||
std::string GetLogFilePath(); | ||
std::wstring GetLogFilePathW(); | ||
} // namespace FanyUtuils |