Skip to content

Commit 3c3e1ae

Browse files
authored
Merge branch 'grumpycoders:main' into main
2 parents 6b19b76 + 3a15445 commit 3c3e1ae

File tree

8 files changed

+478
-0
lines changed

8 files changed

+478
-0
lines changed

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
redux@grumpycoder.net.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Introduction
2+
3+
## Acknowledgements
4+
5+
Thank you for considering contributing to PCSX-Redux. The main aim of the project is to
6+
be a useful development, debugging, and reverse engineering tool, but any sort of help is greatly
7+
appreciated. There are various areas of the project that can be improved, and lots
8+
of work is still required. Feel free to open a discussion if there's anything
9+
you'd like to talk about.
10+
11+
## Licensing your contribution
12+
13+
By submitting a pull request, you represent that you have the right to license your contribution
14+
to the PCSX-Redux authors and the community, and agree by submitting the patch that
15+
your contributions are licensed under the project's license.
16+
17+
## Why should you read this guideline?
18+
19+
Following this guideline will help you to keep contact with the PCSX-Redux team.
20+
This will result in shorter time to process your bug reports, suggestions and pull requests.
21+
22+
## Ways of contributing to PCSX-Redux
23+
24+
You may contribute in a number of ways, including:
25+
26+
* Contributing new features or bugfixes.
27+
* Filing detailed bug reports.
28+
* Suggesting new features.
29+
* Contributing to the [documentation](https://pcsx-redux.consoledev.net/) in the [docs](https://github.com/grumpycoders/pcsx-redux/tree/docs) branch.
30+
* Contributing unit test cases.
31+
32+
# Contributing to PCSX-Redux
33+
34+
## Code of conduct
35+
36+
Please read and follow the [Code of Conduct](CODE_OF_CONDUCT.md) before contributing.
37+
38+
## Contributing documentation
39+
40+
* Provide improvements as small as possible, as pull requests.
41+
* If a change in documentation structure is needed, we prefer that you file a suggestion.
42+
43+
## Contributing code
44+
45+
* For non-trivial issues or changes, please file an issue where we can discuss the course of action.
46+
* Software pull requests should be as small as possible and providing only one feature per pull request.
47+
* The codebase is using C++-20, so all features from there are fair game, provided it builds on all of the supported platforms. Submitting a pull request should trigger builds for all supported platforms.
48+
* Please try and follow the codestyle, which is enforced by the [clang-format](https://github.com/grumpycoders/pcsx-redux/blob/main/src/.clang-format) rules. Worst case scenario, a bot will issue another PR to fix the codestyle however, so no need to sweat it too much.
49+
50+
## Filing a bug report
51+
52+
If you find a bug, please as much as possible try to file a detailed bug report using the [issue template](https://github.com/grumpycoders/pcsx-redux/issues/new?assignees=&labels=&template=bug_report.yml).

src/gui/gui.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ in Configuration->Emulation, restart PCSX-Redux, then try again.)"));
912912
m_biosEditor.MenuItem();
913913
ImGui::EndMenu();
914914
}
915+
ImGui::MenuItem(_("Show Memory Observer"), nullptr, &m_memoryObserver.m_show);
915916
ImGui::MenuItem(_("Show Interrupts Scaler"), nullptr, &m_showInterruptsScaler);
916917
ImGui::MenuItem(_("Kernel Events"), nullptr, &m_events.m_show);
917918
ImGui::MenuItem(_("Kernel Calls"), nullptr, &m_kernelLog.m_show);
@@ -1108,6 +1109,10 @@ in Configuration->Emulation, restart PCSX-Redux, then try again.)"));
11081109
m_breakpoints.draw(_("Breakpoints"));
11091110
}
11101111

1112+
if (m_memoryObserver.m_show) {
1113+
m_memoryObserver.draw(_("Memory Observer"));
1114+
}
1115+
11111116
changed |= about();
11121117
interruptsScaler();
11131118

src/gui/gui.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "magic_enum/include/magic_enum.hpp"
5151
#include "support/eventbus.h"
5252
#include "support/settings.h"
53+
#include "widgets/memory_observer.h"
5354

5455
#if defined(__APPLE__)
5556
#define GL_SHADER_VERSION "#version 410\n"
@@ -247,6 +248,7 @@ class GUI final {
247248
MemoryEditorWrapper m_scratchPadEditor;
248249
MemoryEditorWrapper m_hwrEditor;
249250
MemoryEditorWrapper m_biosEditor;
251+
Widgets::MemoryObserver m_memoryObserver;
250252
Widgets::MemcardManager m_memcardManager;
251253
Widgets::Registers m_registers;
252254
Widgets::Assembly m_assembly;

0 commit comments

Comments
 (0)