Skip to content

Commit

Permalink
workflows revised, updated screenshot, e2db: maker, merge to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctlcltd committed Mar 30, 2024
1 parent 64ddab9 commit d34208e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
update: true
pacboy: >-
cc:i cmake:i ninja:i qt5-base:i qt5-translations:i curl:i
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-win64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
pacboy: >-
cc:x cmake:x ninja:x qt6-base:x qt6-translations:x curl:x
Expand Down
2 changes: 1 addition & 1 deletion dist/linux/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ parts:
cmake-parameters:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/usr
- -DRELEASE_MEDIUM=snap
- -DRELEASE_MEDIUM=snapstore
- -DWITHOUT_CLI=ON
build-packages:
- build-essential
Expand Down
Binary file modified res/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/screenshot.webp
Binary file not shown.
34 changes: 20 additions & 14 deletions src/e2db/e2db_maker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,26 +852,32 @@ void e2db_maker::make_tunersets_xml(string filename, int ytype, e2db_file& file)

//TODO FIX out of range substr (ie. merge without services file)

if (comments.count(iname))
try
{
int i = 0;
size_t pos = 0;
for (auto & s : comments[iname])
if (comments.count(iname))
{
string line;
while (s.ln != i)
int i = 0;
size_t pos = 0;
for (auto & s : comments[iname])
{
std::getline(ss, line, '>');
pos += line.size() + 1;
i++;
string line;
while (s.ln != i)
{
std::getline(ss, line, '>');
pos += line.size() + 1;
i++;
}
line = "<!--" + s.text + "-->";
if (s.type) // multiline
line = '\n' + line;
str = str.substr(0, pos) + line + str.substr(pos);
pos += line.size();
}
line = "<!--" + s.text + "-->";
if (s.type) // multiline
line = '\n' + line;
str = str.substr(0, pos) + line + str.substr(pos);
pos += line.size();
}
}
catch (...)
{
}

file.filename = filename;
file.mime = "text/xml";
Expand Down

0 comments on commit d34208e

Please sign in to comment.