mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Cosmetics
This commit is contained in:
parent
cd4bf6d17a
commit
fed4b080b0
@ -80,7 +80,7 @@ echo * Updated Version.h
|
|||||||
:: Set vcbuild environment variables and begin build
|
:: Set vcbuild environment variables and begin build
|
||||||
echo * Starting build for %VERSION%
|
echo * Starting build for %VERSION%
|
||||||
for /F "tokens=1-4 delims=:.," %%a in ("%TIME%") do (
|
for /F "tokens=1-4 delims=:.," %%a in ("%TIME%") do (
|
||||||
set /A "BUILD_BEGIN_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60+1%%c %% 100) * 100 + 1%%d %% 100"
|
set /A "BUILD_BEGIN_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60 + 1%%c %% 100) * 100 + 1%%d %% 100"
|
||||||
)
|
)
|
||||||
|
|
||||||
:: Build Library
|
:: Build Library
|
||||||
@ -158,7 +158,7 @@ if not "%CERTFILE%" == "" (
|
|||||||
if exist "BuildLog.txt" del "BuildLog.txt"
|
if exist "BuildLog.txt" del "BuildLog.txt"
|
||||||
|
|
||||||
for /F "tokens=1-4 delims=:.," %%a in ("%TIME%") do (
|
for /F "tokens=1-4 delims=:.," %%a in ("%TIME%") do (
|
||||||
set /A "BUILD_END_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60+1%%c %% 100) * 100 + 1%%d %% 100"
|
set /A "BUILD_END_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60 + %%c %% 100) * 100 + 1%%d %% 100"
|
||||||
)
|
)
|
||||||
set /A "BUILD_ELAPSED_TIME=(%BUILD_END_TIMESTAMP% - %BUILD_BEGIN_TIMESTAMP%) / 100"
|
set /A "BUILD_ELAPSED_TIME=(%BUILD_END_TIMESTAMP% - %BUILD_BEGIN_TIMESTAMP%) / 100"
|
||||||
echo * Build complete. Elapsed time: %BUILD_ELAPSED_TIME% sec
|
echo * Build complete. Elapsed time: %BUILD_ELAPSED_TIME% sec
|
||||||
|
@ -102,7 +102,7 @@ void ExpandEnvironmentVariables(std::wstring& path)
|
|||||||
DWORD bufSize = 4096;
|
DWORD bufSize = 4096;
|
||||||
WCHAR* buffer = new WCHAR[bufSize];
|
WCHAR* buffer = new WCHAR[bufSize];
|
||||||
|
|
||||||
// %APPDATA% is a special casem
|
// %APPDATA% is a special case.
|
||||||
pos = path.find(L"%APPDATA%", pos);
|
pos = path.find(L"%APPDATA%", pos);
|
||||||
if (pos != std::wstring::npos)
|
if (pos != std::wstring::npos)
|
||||||
{
|
{
|
||||||
@ -146,5 +146,4 @@ void ExpandEnvironmentVariables(std::wstring& path)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace PathUtil
|
} // namespace PathUtil
|
||||||
|
Loading…
Reference in New Issue
Block a user