mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-05 12:00:05 +00:00
[meta] Discourage profanity usage
I'm not into millennial humor, personally. Proactively removed as much profanity as I could grep. Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
+5
-1
@@ -22,9 +22,13 @@ Eden is free, open-source, copyleft software, licensed under the terms of the [G
|
|||||||
|
|
||||||
- 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/policies/AI.md).
|
- For details on why, see the [detailed AI policy](docs/policies/AI.md).
|
||||||
|
- Usage of any form of profanity or otherwise unsavory language is generally discouraged.
|
||||||
|
- This is primarily because it rarely helps to actually understand what's going on.
|
||||||
|
- Remember that your comments should be focused and actually address what's happening. With very few exceptions, expletives are actively detrimental at best.
|
||||||
- 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.
|
||||||
|
|
||||||
|
|||||||
@@ -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++
|
||||||
|
|||||||
Vendored
+2
-2
@@ -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;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: Copyright 2025 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
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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)*/ \
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
@@ -157,8 +160,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();
|
auto dev_str = device.RawString();
|
||||||
if (fucker.find(vids[i]) != std::string::npos) {
|
if (dev_str.find(vids[i]) != std::string::npos) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user