Browse Source

[meta] Explicitly disallow profanity

At this point, profanity has no place within our source code. Sorry
millennials

Proactively removed as much profanity as I could grep.

Signed-off-by: crueter <crueter@eden-emu.dev>
no-profanity
crueter 2 days ago
parent
commit
c5506b3511
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 8
      CONTRIBUTING.md
  2. 2
      docs/policies/Coding.md
  3. 4
      externals/stb/stb_image.h
  4. 2
      src/core/hle/service/pctl/parental_control_service.h
  5. 2
      src/core/hle/service/set/system_settings_server.cpp
  6. 3
      src/core/internal_network/network.cpp
  7. 2
      src/dynarmic/src/dynarmic/backend/x64/a32_interface.cpp
  8. 2
      src/dynarmic/src/dynarmic/backend/x64/emit_x64_vector_floating_point.cpp
  9. 2
      src/dynarmic/src/dynarmic/ir/opt_passes.cpp
  10. 4
      src/input_common/drivers/android.cpp
  11. 2
      src/video_core/engines/maxwell_3d.h
  12. 1
      src/video_core/engines/nv01_timer.h
  13. 2
      src/video_core/host1x/vic.cpp
  14. 2
      src/video_core/macro.cpp
  15. 2
      src/video_core/renderer_opengl/gl_device.cpp
  16. 3
      src/yuzu/main_window.cpp
  17. 2
      src/yuzu/migration_worker.cpp

8
CONTRIBUTING.md

@ -21,10 +21,14 @@ Eden is free, open-source, copyleft software, licensed under the terms of the [G
### Policies ### Policies
- No LLM or AI usage, *period*, for patches, pull requests, issues, comments, debugging, brainstorming, etc. - No LLM or AI usage, *period*, for patches, pull requests, issues, comments, debugging, brainstorming, etc.
- For details on why, see the [detailed AI policy](docs/AI.md).
- For details on why, see the [detailed AI policy](docs/policies/AI.md).
- Usage of profanity (including within abbreviations) is prohibited within source code, commits, pull request/issue descriptions, and comments. Patching dependencies to remove profanity is generally not needed, as they are not stored in-tree.
- If profane licenses such as the WTFPL are used within a dependency or properly accredited code, it's fine to mention it for the purposes of REUSE.
- Very light profanity (crap, heck, etc) is not explicitly disallowed, but is still heavily discouraged.
- New code must follow the same general style as the surrounding codebase. Exceptions may be granted in certain cases. - New code must follow the same general style as the surrounding codebase. Exceptions may be granted in certain cases.
- Maintainers reserve the right to change your patches and pull requests at will. We will try to avoid this. - Maintainers reserve the right to change your patches and pull requests at will. We will try to avoid this.
- You should respect all decisions made by the [code owners](docs/CODEOWNERS) in your particular subsystem. If you feel they are overstepping or are incorrect, don't be afraid to stand your ground!
- You should generally respect all decisions made by the [code owners](docs/CODEOWNERS) in your particular subsystem.
- However, if you feel they are overstepping or are incorrect, don't be afraid to stand your ground! Maintainers are not always correct.
- While we do *not* adhere to the terms of a formal code of conduct, you will generally be expected to respect other developers, contributors, and community members. - While we do *not* adhere to the terms of a formal code of conduct, you will generally be expected to respect other developers, contributors, and community members.
- You **must** have basic knowledge of [Git](https://git-scm.com/learn). Knowing how to manage your branches and follow proper fork policies is a necessity. - You **must** have basic knowledge of [Git](https://git-scm.com/learn). Knowing how to manage your branches and follow proper fork policies is a necessity.

2
docs/policies/Coding.md

@ -34,7 +34,7 @@ Everyone has their own way of viewing good/bad C++ practices, my general outline
- The reason is because the project has `-fno-rtti` disabled by default, due to the costs of dynamic polymorphism. - The reason is because the project has `-fno-rtti` disabled by default, due to the costs of dynamic polymorphism.
- Always copy-on-value for objects with `sizeof(void *) >= sizeof(T) * 2`, i.e objects sized as 2 pointers or less, for bigger objects you can use ref/pointer as usual. - Always copy-on-value for objects with `sizeof(void *) >= sizeof(T) * 2`, i.e objects sized as 2 pointers or less, for bigger objects you can use ref/pointer as usual.
- Try using move semantics instead of references, whenever possible. - Try using move semantics instead of references, whenever possible.
- Remember function parameters are extremelly cheap as fuck, don't be afraid to place upto 8 parameters on a given function.
- Function parameters are cheap. Don't be afraid to use as many as needed (API usability permitting).
- Don't save a reference in structures of a parent object, i.e: - Don't save a reference in structures of a parent object, i.e:
```c++ ```c++

4
externals/stb/stb_image.h

@ -1177,7 +1177,7 @@ static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int re
#endif #endif
#ifndef STBI_NO_TGA #ifndef STBI_NO_TGA
// test tga last because it's a crappy test!
// test tga last because it's a bad test!
if (stbi__tga_test(s)) if (stbi__tga_test(s))
return stbi__tga_load(s,x,y,comp,req_comp, ri); return stbi__tga_load(s,x,y,comp,req_comp, ri);
#endif #endif
@ -7662,7 +7662,7 @@ static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)
if (stbi__hdr_info(s, x, y, comp)) return 1; if (stbi__hdr_info(s, x, y, comp)) return 1;
#endif #endif
// test tga last because it's a crappy test!
// test tga last because it's a bad test!
#ifndef STBI_NO_TGA #ifndef STBI_NO_TGA
if (stbi__tga_info(s, x, y, comp)) if (stbi__tga_info(s, x, y, comp))
return 1; return 1;

2
src/core/hle/service/pctl/parental_control_service.h

@ -84,7 +84,7 @@ private:
RestrictionSettings restriction_settings{}; RestrictionSettings restriction_settings{};
std::array<char, 8> pin_code{}; std::array<char, 8> pin_code{};
Capability capability{}; Capability capability{};
// TODO: this is RAW as fuck
// TODO: this is raw
PlayTimerSettings raw_play_timer_settings{}; PlayTimerSettings raw_play_timer_settings{};
KernelHelpers::ServiceContext service_context; KernelHelpers::ServiceContext service_context;

2
src/core/hle/service/set/system_settings_server.cpp

@ -1020,7 +1020,7 @@ Result ISystemSettingsServer::GetBatteryLot(Out<BatteryLot> out_battery_lot) {
c.lot_number[1] = 'H'; c.lot_number[1] = 'H';
c.lot_number[2] = 'A'; c.lot_number[2] = 'A';
c.lot_number[3] = 'C'; c.lot_number[3] = 'C';
// TODO: I have no fucking idea what the letters mean
// TODO: what do the letters mean?
c.lot_number[4] = 'H'; c.lot_number[4] = 'H';
c.lot_number[5] = 'Z'; c.lot_number[5] = 'Z';
c.lot_number[6] = 'Z'; c.lot_number[6] = 'Z';

3
src/core/internal_network/network.cpp

@ -531,7 +531,8 @@ int TranslateTypeToNative(Type type) {
NETWORK_PROTOCOL_TRANSLATE_ELEM(MPLS) \ NETWORK_PROTOCOL_TRANSLATE_ELEM(MPLS) \
NETWORK_PROTOCOL_TRANSLATE_ELEM(PFSYNC) NETWORK_PROTOCOL_TRANSLATE_ELEM(PFSYNC)
#elif defined(__linux__) #elif defined(__linux__)
// Other platforms get fucked
// Other platforms may not support some niche protocols.
// This is usually not an issue
#define NETWORK_PROTOCOL_TRANSLATE_LIST \ #define NETWORK_PROTOCOL_TRANSLATE_LIST \
NETWORK_PROTOCOL_TRANSLATE_ELEM(IP) \ NETWORK_PROTOCOL_TRANSLATE_ELEM(IP) \
/*NETWORK_PROTOCOL_TRANSLATE_ELEM(HOPOPTS)*/ \ /*NETWORK_PROTOCOL_TRANSLATE_ELEM(HOPOPTS)*/ \

2
src/dynarmic/src/dynarmic/backend/x64/a32_interface.cpp

@ -234,7 +234,7 @@ private:
BlockOfCode block_of_code; BlockOfCode block_of_code;
A32EmitX64 emitter; A32EmitX64 emitter;
Optimization::PolyfillOptions polyfill_options; Optimization::PolyfillOptions polyfill_options;
// Keep it here, you don't wanna mess with the fuckery that's initializer lists
// Keep it here in order to not mess with initializer lists
const A32::UserConfig conf; const A32::UserConfig conf;
Jit* jit_interface; Jit* jit_interface;

2
src/dynarmic/src/dynarmic/backend/x64/emit_x64_vector_floating_point.cpp

@ -2160,8 +2160,6 @@ void EmitFPVectorToFixed(BlockOfCode& code, EmitContext& ctx, IR::Inst* inst) {
ROUNDING_MODE_CASE(CASE, 0x3e) \ ROUNDING_MODE_CASE(CASE, 0x3e) \
ROUNDING_MODE_CASE(CASE, 0x3f) ROUNDING_MODE_CASE(CASE, 0x3f)
// FUCK YOU MSVC, FUCKING DEPTH CANT EVEN HANDLE 8+16+32+64 DEPTH OF A ELSE STATMENT YOU FUCKING STUPID
// BURN MSVC BURN IT STUPID COMPILER CAN'T EVEN COMPILE THE MOST BASIC C++
ROUNDING_MODE_SWITCH(ToNearest_TieEven) ROUNDING_MODE_SWITCH(ToNearest_TieEven)
ROUNDING_MODE_SWITCH(TowardsPlusInfinity) ROUNDING_MODE_SWITCH(TowardsPlusInfinity)
ROUNDING_MODE_SWITCH(TowardsMinusInfinity) ROUNDING_MODE_SWITCH(TowardsMinusInfinity)

2
src/dynarmic/src/dynarmic/ir/opt_passes.cpp

@ -787,7 +787,7 @@ static void FoldCountLeadingZeros(IR::Inst& inst, bool is_32_bit) {
/// Folds division operations based on the following: /// Folds division operations based on the following:
/// ///
/// 1. x / 0 -> 0 (NOTE: This is an ARM-specific behavior defined in the architecture reference manual) /// 1. x / 0 -> 0 (NOTE: This is an ARM-specific behavior defined in the architecture reference manual)
/// 2a. 0x8000_0000 / 0xFFFF_FFFF -> 0x8000_0000 (NOTE: More ARM bullshit)
/// 2a. 0x8000_0000 / 0xFFFF_FFFF -> 0x8000_0000 (NOTE: More ARM errata)
/// 2b. 0x8000_0000_0000_0000 / 0xFFFF_FFFF_FFFF_FFFF -> 0x8000_0000_0000_0000 /// 2b. 0x8000_0000_0000_0000 / 0xFFFF_FFFF_FFFF_FFFF -> 0x8000_0000_0000_0000
/// 3. imm_x / imm_y -> result /// 3. imm_x / imm_y -> result
/// 4. x / 1 -> x /// 4. x / 1 -> x

4
src/input_common/drivers/android.cpp

@ -157,8 +157,8 @@ Common::ParamPackage Android::BuildButtonParamPackageForButton(PadIdentifier ide
bool Android::MatchVID(Common::UUID device, const std::vector<std::string>& vids) const { bool Android::MatchVID(Common::UUID device, const std::vector<std::string>& vids) const {
for (size_t i = 0; i < vids.size(); ++i) { for (size_t i = 0; i < vids.size(); ++i) {
auto fucker = device.RawString();
if (fucker.find(vids[i]) != std::string::npos) {
auto dev_str = device.RawString();
if (dev_str.find(vids[i]) != std::string::npos) {
return true; return true;
} }
} }

2
src/video_core/engines/maxwell_3d.h

@ -2257,7 +2257,7 @@ public:
/// Returns whether the vertex array specified by index is supposed to be /// Returns whether the vertex array specified by index is supposed to be
/// accessed per instance or not. /// accessed per instance or not.
bool IsInstancingEnabled(std::size_t index) const { bool IsInstancingEnabled(std::size_t index) const {
return bool(is_instanced[index]); //FUCK YOU MSVC
return bool(is_instanced[index]);
} }
}; };

1
src/video_core/engines/nv01_timer.h

@ -40,7 +40,6 @@ public:
} }
struct Regs { struct Regs {
// No fucking idea
INSERT_PADDING_BYTES_NOINIT(0x48); INSERT_PADDING_BYTES_NOINIT(0x48);
} regs{}; } regs{};
private: private:

2
src/video_core/host1x/vic.cpp

@ -963,7 +963,7 @@ void Vic::WriteABGR(const OutputSurfaceConfig& output_surface_config, VideoPixel
auto pixel1213 = _mm_load_si128((__m128i*)&inp[src + x + 12]); auto pixel1213 = _mm_load_si128((__m128i*)&inp[src + x + 12]);
auto pixel1415 = _mm_load_si128((__m128i*)&inp[src + x + 14]); auto pixel1415 = _mm_load_si128((__m128i*)&inp[src + x + 14]);
// Right-shift the channels by 16 to un-do the left shit on read and bring the range
// Right-shift the channels by 16 to un-do the left shift on read and bring the range
// back to 8-bit. // back to 8-bit.
pixel01 = _mm_srli_epi16(pixel01, 2); pixel01 = _mm_srli_epi16(pixel01, 2);
pixel23 = _mm_srli_epi16(pixel23, 2); pixel23 = _mm_srli_epi16(pixel23, 2);

2
src/video_core/macro.cpp

@ -441,7 +441,7 @@ void MacroInterpreterImpl::Reset() {
pc = 0; pc = 0;
delayed_pc = {}; delayed_pc = {};
method_address.raw = 0; method_address.raw = 0;
// Vector must hold its last indices otherwise wonky shit will happen
// Vector must hold its last indices otherwise chaos will ensue
// The next parameter index starts at 1, because $r1 already has the value of the first // The next parameter index starts at 1, because $r1 already has the value of the first
// parameter. // parameter.
next_parameter_index = 1; next_parameter_index = 1;

2
src/video_core/renderer_opengl/gl_device.cpp

@ -59,7 +59,7 @@ std::vector<std::string> GetExtensions() {
std::vector<std::string> extensions; std::vector<std::string> extensions;
for (GLint index = 0; index < num_extensions; ++index) { for (GLint index = 0; index < num_extensions; ++index) {
auto const* p = reinterpret_cast<const char*>(glGetStringi(GL_EXTENSIONS, GLuint(index))); auto const* p = reinterpret_cast<const char*>(glGetStringi(GL_EXTENSIONS, GLuint(index)));
if (p != nullptr) // Fuck you? - sincerely, buggy mesa drivers
if (p != nullptr)
extensions.push_back(std::string{p}); extensions.push_back(std::string{p});
} }
return extensions; return extensions;

3
src/yuzu/main_window.cpp

@ -1,7 +1,8 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
// Qt on macOS doesn't define VMA shit
// Static Qt on macOS doesn't use Vulkan
// Other platforms do, and thus have conflicting VulkanMemoryAllocator symbols
#if defined(QT_STATICPLUGIN) && !defined(__APPLE__) #if defined(QT_STATICPLUGIN) && !defined(__APPLE__)
#undef VMA_IMPLEMENTATION #undef VMA_IMPLEMENTATION
#endif #endif

2
src/yuzu/migration_worker.cpp

@ -38,7 +38,7 @@ void MigrationWorker::process() {
try { try {
fs::remove_all(eden_dir); fs::remove_all(eden_dir);
} catch (fs::filesystem_error& _) { } catch (fs::filesystem_error& _) {
// ignore because linux does stupid crap sometimes
// directory may not exist at this point, that's fine
} }
switch (strategy) { switch (strategy) {

Loading…
Cancel
Save