Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Plugin settings rendering #200

Merged
merged 41 commits into from
Jan 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
639390d
feat: Slightly Better Russian Translation (#187)
dotFelixan Dec 16, 2024
4ce6b5d
fix: Use correct classes for Field (#189)
ricewind012 Dec 17, 2024
a29c7df
fix: Fix plugin JS being removed from webkit when a new theme is sele…
shdwmtr Dec 19, 2024
1de0352
chore(release): bump version to v2.16.0 [skip ci]
invalid-email-address Dec 19, 2024
3e7d93e
chore(release): 2.16.0 [skip ci]
semantic-release-bot Dec 19, 2024
d25461d
fix: Properly handle theme config with invalid props.
shdwmtr Dec 19, 2024
8817735
fix: Catch installer socket being used instead of crashing.
shdwmtr Dec 19, 2024
07dc66c
fix: Fix unix pathing
shdwmtr Dec 20, 2024
9b7e1e5
fix: Fix crashing on new installs
shdwmtr Dec 20, 2024
4b085a2
chore(release): bump version to v2.16.1 [skip ci]
invalid-email-address Dec 20, 2024
0bc733d
chore(release): 2.16.1 [skip ci]
semantic-release-bot Dec 20, 2024
bfafcb7
fix: Fix installer crashes (again)
shdwmtr Dec 21, 2024
cae007a
chore(release): bump version to v2.16.2 [skip ci]
invalid-email-address Dec 21, 2024
eb2a567
chore(release): 2.16.2 [skip ci]
semantic-release-bot Dec 21, 2024
fb4053d
fix: Fix installer script
shdwmtr Dec 21, 2024
8990389
Merge branch 'main' of https://github.com/shdwmtr/millennium
shdwmtr Dec 21, 2024
71dabc6
fix: Add proxy support for web requests within Steam.
shdwmtr Dec 25, 2024
e2cd49d
fix: Fix webkit and CSP related issues. closes #197, #196, #194
shdwmtr Dec 27, 2024
2c91a95
fix: Fix webkit issues, Close #194, #196
shdwmtr Dec 28, 2024
2573215
fix: Fix webkit patcher edge cases on redirects
shdwmtr Dec 28, 2024
af602c3
feat: Add system accent color to webkit
shdwmtr Dec 28, 2024
65708de
chore: Rename pipe
shdwmtr Dec 28, 2024
d0ff106
chore: Remove debug logs
shdwmtr Dec 28, 2024
43b280a
chore: Fix linux
shdwmtr Dec 28, 2024
b9a6d0d
fix: Fix webkit patcher skipping non-secure requests.
shdwmtr Dec 29, 2024
861c845
Fix: prevent artifact builder from bumping the version
shdwmtr Dec 29, 2024
284a2a2
chore(release): bump version to v2.17.0 [skip ci]
invalid-email-address Dec 29, 2024
1f94b71
chore(release): 2.17.0 [skip ci]
semantic-release-bot Dec 29, 2024
4614cc8
fix: Fix workshop pages not rendering HTML.
shdwmtr Dec 29, 2024
6608125
chore(release): bump version to v2.17.1 [skip ci]
invalid-email-address Dec 29, 2024
2501c85
chore(release): 2.17.1 [skip ci]
semantic-release-bot Dec 29, 2024
7d0fbcf
fix: Fix overlay browser not loading on pages without a response phrase.
shdwmtr Dec 29, 2024
1ca25a5
chore(release): bump version to v2.17.2 [skip ci]
invalid-email-address Dec 29, 2024
900b7eb
chore(release): 2.17.2 [skip ci]
semantic-release-bot Dec 29, 2024
24de43b
feat: Add embedded updater
shdwmtr Dec 31, 2024
558a779
chore: CMake cleanup
shdwmtr Dec 31, 2024
aa4f054
fix: allow frontend function to send booleans & numbers to backend (#…
BossSloth Dec 31, 2024
e138118
feat(ipc): add support for fetching frontend settings from webkit con…
BossSloth Jan 2, 2025
9054c95
chore: integrate new settings framework in example plugin
BossSloth Jan 2, 2025
5423f61
feat: render plugin settings modal based on plugin settings object
BossSloth Jan 4, 2025
44ed4a4
fix: settings not receiving in other context when using tabs
BossSloth Jan 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Fix installer crashes (again)
  • Loading branch information
shdwmtr committed Dec 21, 2024
commit bfafcb79253fb0fb3475b35e87229dfa11c2471a
62 changes: 34 additions & 28 deletions src/pipes/terminal_pipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,46 @@
extern "C" {
const int CreateTerminalPipe()
{
HANDLE hPipe = CreateFileA(R"(\\.\pipe\MillenniumStdoutPipe)", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
try {
HANDLE hPipe = CreateFileA(R"(\\.\pipe\MillenniumStdoutPipe)", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

if (hPipe == INVALID_HANDLE_VALUE)
{
std::cerr << "Failed to connect to pipe. Error: " << GetLastError() << std::endl;
return 1;
}
if (hPipe == INVALID_HANDLE_VALUE)
{
std::cerr << "Failed to connect to pipe. Error: " << GetLastError() << std::endl;
return 1;
}

int pipeDescriptor = _open_osfhandle((intptr_t)hPipe, _O_WRONLY);
if (pipeDescriptor == -1)
{
std::cerr << "Failed to get pipe file descriptor. Error: " << errno << std::endl;
CloseHandle(hPipe);
return 1;
}
int pipeDescriptor = _open_osfhandle((intptr_t)hPipe, _O_WRONLY);
if (pipeDescriptor == -1)
{
std::cerr << "Failed to get pipe file descriptor. Error: " << errno << std::endl;
CloseHandle(hPipe);
return 1;
}

FILE* pipeFile = _fdopen(pipeDescriptor, "w");
if (!pipeFile)
{
std::cerr << "Failed to open pipe file descriptor as FILE*. Error: " << errno << std::endl;
CloseHandle(hPipe);
return 1;
}
FILE* pipeFile = _fdopen(pipeDescriptor, "w");
if (!pipeFile)
{
std::cerr << "Failed to open pipe file descriptor as FILE*. Error: " << errno << std::endl;
CloseHandle(hPipe);
return 1;
}

if (_dup2(_fileno(pipeFile), _fileno(stdout)) == -1)
{
std::cerr << "Failed to redirect stdout to pipe. Error: " << errno << std::endl;
fclose(pipeFile);
CloseHandle(hPipe);
return 1;
}

if (_dup2(_fileno(pipeFile), _fileno(stdout)) == -1)
{
std::cerr << "Failed to redirect stdout to pipe. Error: " << errno << std::endl;
fclose(pipeFile);
CloseHandle(hPipe);
setvbuf(stdout, NULL, _IONBF, 0);
return 0;
}
catch (std::system_error& ex) {
std::cerr << "Failed to create terminal pipe: " << ex.what() << std::endl;
return 1;
}

setvbuf(stdout, NULL, _IONBF, 0);
return 0;
}
}
#endif
Loading