Compare commits

...

4 Commits

Author SHA1 Message Date
Deukhoofd 7da2e27d22
Set ninja as generator
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2022-02-12 13:19:26 +01:00
Deukhoofd 3df014f332
Merge remote-tracking branch 'origin/master'
continuous-integration/drone/push Build is failing Details
2022-02-12 13:15:22 +01:00
Deukhoofd 0d627d3e7b
Fixes CI 2022-02-12 13:12:43 +01:00
Deukhoofd 003e33c05a
If key is "key" and value is "value" ignore the line.
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is failing Details
2021-11-12 12:20:53 +01:00
2 changed files with 13 additions and 6 deletions

View File

@ -9,16 +9,21 @@ steps:
CC: /usr/bin/clang
CXX: /usr/bin/clang++
commands:
- cmake -DCMAKE_BUILD_TYPE=Release . -B build-release
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release . -B build-release
- cmake --build build-release --target all -- -j 4
- name: build-release-windows
image: deukhoofd/windowsbuilder
environment:
CHOST: x86_64-w64-mingw32
AR: x86_64-w64-mingw32-ar
AS: x86_64-w64-mingw32-as
RANLIB: x86_64-w64-mingw32-ranlib
CC: x86_64-w64-mingw32-gcc
CXX: x86_64-w64-mingw32-g++
STRIP: x86_64-w64-mingw32-strip
RC: x86_64-w64-mingw32-windres
commands:
- update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
- update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
- update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
- update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
- cmake -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++
- cmake --build build-release-windows --target all -- -j 4
- name: gitea_release
image: plugins/gitea-release

View File

@ -49,6 +49,8 @@ void LocalizationFile::LoadFile(const std::filesystem::path& path) {
std::getline(linestream, value, sep);
if (key.empty())
continue;
if (key == "key" && value == "value")
continue;
if (!IsKeyValid(key)){
std::cout << "Key not valid: '" << key << "'. Skipping key." << std::endl;
}