Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik committed Jan 14, 2024
1 parent 089ae13 commit a52618e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 32 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -65,6 +60,7 @@ jobs:
with:
patterns: |
-**/*
include/**/*
src/**/*
input: sarif-results/cpp.sarif
output: sarif-results/cpp.sarif
Expand Down
54 changes: 27 additions & 27 deletions src/tool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,33 +129,33 @@ auto operator |=(result& lhs, result rhs) -> void
lhs = static_cast<result>(static_cast<i32>(lhs) | static_cast<i32>(rhs));
}

auto overwrite_prompt(std::string const& file) -> bool
{
auto overwrite = true;

if (utils::file::exists(file))
{
do
{
std::cout << "File \"" << file << "\" already exists, overwrite? [Y/n]: ";
auto result = std::getchar();

if (result == '\n' || result == 'Y' || result == 'y')
{
break;
}
else if (result == 'N' || result == 'n')
{
overwrite = false;
break;
}
} while (true);
}

return overwrite;
}

namespace gsc
// auto overwrite_prompt(std::string const& file) -> bool
// {
// auto overwrite = true;

// if (utils::file::exists(file))
// {
// do
// {
// std::cout << "File \"" << file << "\" already exists, overwrite? [Y/n]: ";
// auto result = std::getchar();

// if (result == '\n' || result == 'Y' || result == 'y')
// {
// break;
// }
// else if (result == 'N' || result == 'n')
// {
// overwrite = false;
// break;
// }
// } while (true);
// }

// return overwrite;
// }

// namespace gsc
{

Check failure on line 159 in src/tool/main.cpp

View workflow job for this annotation

GitHub Actions / Build Windows (release, x64)

'{': missing function header (old-style formal list?) [D:\a\gsc-tool\gsc-tool\build\xsk-tool.vcxproj]

Check failure on line 159 in src/tool/main.cpp

View workflow job for this annotation

GitHub Actions / Build Windows (release, x64)

'{': missing function header (old-style formal list?) [D:\a\gsc-tool\gsc-tool\build\xsk-tool.vcxproj]

Check failure on line 159 in src/tool/main.cpp

View workflow job for this annotation

GitHub Actions / Build Windows (release, x86)

'{': missing function header (old-style formal list?) [D:\a\gsc-tool\gsc-tool\build\xsk-tool.vcxproj]

Check failure on line 159 in src/tool/main.cpp

View workflow job for this annotation

GitHub Actions / Build Windows (release, x86)

'{': missing function header (old-style formal list?) [D:\a\gsc-tool\gsc-tool\build\xsk-tool.vcxproj]

std::map<game, std::map<mach, std::unique_ptr<context>>> contexts;
Expand Down

0 comments on commit a52618e

Please sign in to comment.