instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zeek__zeek__4714 | zeek/zeek | 4,714 | defect | cd7836dda21008e08e0541c4c9a9333b5bce4732 | 9c7190033bccafc7c0d28b9b0d7a75698d4a32e1 | cluster: Move cluster::detail::Event to cluster::Event | This class is a parameter of virtual methods of the Backend API for users to implement and also a parameter to the HookPublishEvent() API. Seems it shouldn't be in detail and instead we should own it.
Alternatively, could mark the cluster APIs as not-stable-yet, but I think we can move forward and make it non-detail... | diff --git a/src/broker/Manager.cc b/src/broker/Manager.cc
index 67204893f77..a4290eb0469 100644
--- a/src/broker/Manager.cc
+++ b/src/broker/Manager.cc
@@ -828,7 +828,7 @@ std::vector<broker::peer_info> Manager::Peers() const {
std::string Manager::NodeID() const { return to_string(bstate->endpoint.node_id()); }
... | 1 | 1 | 0 | [{"id": "G0", "claim": "In src/cluster/serializer/broker/Serializer.cc the spelling of the event type should be picked consistently, either `cluster::Event` or the fully-qualified `zeek::cluster::Event`, since it switches back and forth a couple of times in the file.", "category": "maintainability", "verdict": "support... | null |
zeek__zeek__4782 | zeek/zeek | 4,782 | defect | ce7ba36b3c0fd1375c34b62ec45d2ea5686cd24d | b068d870f7a1ad847be7c5f071fc23530546f6e3 | Enable clang-tidy for binpac and bifcl | Now that these tools are part of the zeek repo and are being maintained alongside it, we can enable clang-tidy for them as part of the Zeek build. This PR enables it for binpac and bifcl and fixes a bunch of findings. It also reformats utility code embedded in the bison/flex files to use the clang-format style. | diff --git a/tools/binpac/src/pac_analyzer.cc b/tools/binpac/src/pac_analyzer.cc
index d128afadabf..f06a0dd0b8f 100644
--- a/tools/binpac/src/pac_analyzer.cc
+++ b/tools/binpac/src/pac_analyzer.cc
@@ -34,57 +34,58 @@ AnalyzerDecl::AnalyzerDecl(ID* id, DeclType decl_type, ParamList* params) : Type
}
AnalyzerDecl::~A... | 3 | 2 | 0 | [{"id": "G0", "claim": "In AnalyzerDecl::AddElements an early `if ( ! elemlist ) return;` would have avoided the extra indentation and made the diff a bit smaller (self-described nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The 'Remove f... | null |
zeek__zeek__5174 | zeek/zeek | 5,174 | defect | 170525f027094adda5ec0c3592fa8c69f771a66c | c7dcc4177ff9e4db2bcd9ae2bfcbc14ec1707a04 | Fixing findings from new clang-tidy modernize-avoid-c-style-cast checker | clang-tidy recently added a `modernize-avoid-c-style-cast` checker, which is basically a much higher-powered version of the `cppcoreguidelines-pro-type-cstyle-cast` checker. It finds a lot more that weren't covered when we fixed those (https://github.com/zeek/zeek/pull/4615). This PR fixes what should be all of the res... | diff --git a/src/Attr.cc b/src/Attr.cc
index dbaaddedc19..f52839abb1b 100644
--- a/src/Attr.cc
+++ b/src/Attr.cc
@@ -15,7 +15,7 @@ namespace zeek::detail {
const char* attr_name(AttrTag t) {
// Do not collapse the list.
// clang-format off
- static const char* attr_names[int(NUM_ATTRS)] = {
+ static const ch... | 27 | 25 | 1 | [{"id": "G0", "claim": "The (const void*) casts on memcmp's arguments in const_datastring::operator== should be dropped; the pointers should convert implicitly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The enum-to-int casts in attr_name ar... | null |
zeek__zeek__5189 | zeek/zeek | 5,189 | defect | 601505737d4832e4fb21864dd3641a13676d7484 | 9d059c7f857d3adcba3979d5ea041c229b5c93d9 | cluster/experimental: Add non-Broker backend support | There are users and packages (logschema ...) that rely on Experimental::cluster_started() and will not function otherwise.
Implement support for ZeroMQ with semantics of all nodes have seen Cluster::node_up() from all other nodes, report to the manager which then broadcasts to all other nodes.
This switches to use ... | diff --git a/scripts/policy/frameworks/cluster/experimental.zeek b/scripts/policy/frameworks/cluster/experimental.zeek
index 83e6febdcad..f6ac6d7430e 100644
--- a/scripts/policy/frameworks/cluster/experimental.zeek
+++ b/scripts/policy/frameworks/cluster/experimental.zeek
@@ -10,6 +10,9 @@ export {
## conducted clust... | 6 | 3 | 1 | [{"id": "G0", "claim": "The runtime `Cluster::backend` checks should be `@if` preprocessor directives for easier readability.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'This is only needed for Broker' comment in Cluster::node_up should use `@if` d... | null |
zeek__zeek__5312 | zeek/zeek | 5,312 | defect | 22b2cb75a3aaa4dbd42f6acb4b3644aea712d7d5 | 370b382566e2c16002a97ca7bb0e4d2a5d654406 | Support loading of .so files | This allows to load `.so` files directly from scripts using `@load ./plugin.so`. See the added tests.
There might be different opinions how to exactly do this and the implementation is fairly ad-hoc, but having this in 8.2 would allow to experiment with self-contained package+plugin directories and can fix up any hu... | diff --git a/NEWS b/NEWS
index 299dd82d0e5..0564af38496 100644
--- a/NEWS
+++ b/NEWS
@@ -70,6 +70,20 @@ New Functionality
messages for events: Publishing a single event currently counts as four messages
as we're simply exposing ZeroMQ's low-level ``zmq::proxy_steerable()`` statistics.
+- The ``@load`` directive... | 5 | 5 | 0 | [{"id": "G0", "claim": "In LoadDynamicPlugin(), both failure returns construct zeek::unexpected<std::string> from a copy of the error string, which Coverity would likely flag; they should use std::move(error) instead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
zefchain__serde-reflection__11 | zefchain/serde-reflection | 11 | defect | 3bc9fa7422a2e725960ae8a1166f6929961f6128 | ebf0301fdca9790b0ac60040f5329d55a0b148b5 | [swift] Write enum variants as camelCase | ## Summary
Changes Swift enum variants to be expressed in camelCase, rather than Rust's UpperCamelCase. Addresses #10
## Test Plan
Swift tests are passing. It would be nice to have better testing in general on the generated code, as the coverage for a change like this is very small (as you can see in the test ... | diff --git a/serde-generate/src/common.rs b/serde-generate/src/common.rs
index f301e8e46..88e5e93c7 100644
--- a/serde-generate/src/common.rs
+++ b/serde-generate/src/common.rs
@@ -42,10 +42,18 @@ pub(crate) fn mangle_type(format: &Format) -> String {
}
}
-pub(crate) fn capitalize(s: &str) -> String {
+pub(crat... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the `capitalize_first_letter` helper to `uppercase_first_letter` since it uppercases the first letter rather than capitalizing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zefchain__serde-reflection__50 | zefchain/serde-reflection | 50 | defect | d1a1ff0494fa3396af0423950cd43b7141890045 | f36ad1e3540dc23e3095e2b88d3bedabf79cf283 | Stabilize Dart | ## Summary
Fixes #49
- Added tests for Dart, just like Golang
- Made bool check more strict
- Fixed some parts that were reading container length as Int64, not Uint64: This wasn't a problem when the number is small(0x00000000~0x01111111), but was one of the problems that were causing the tests to fail
- ... | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 98efcf245..296986760 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -90,7 +90,7 @@ jobs:
- name: Setup Additional Languages (dart)
uses: dart-lang/setup-dart@v1
with:
- sdk: 2.14.0
+... | 3 | 2 | 1 | [{"id": "G0", "claim": "Changing the shared ComplexMap test value is not ideal because the feature will be tested less in other languages (existing or future); please keep the existing complex map test, e.g. via the matcher package.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
zefchain__serde-reflection__72 | zefchain/serde-reflection | 72 | defect | 2626b3ecbe7203e44bbec6debc3f78f4c519ef4d | d702d269e3c90032ad73d38fd1ddf31100c361a2 | Support following case convention for Swift. | ## Summary
* Introduces a new configuration option to handle case conventions in the `serde-generate` library and updates the Swift code generation to respect this option. The main changes include the addition of a new field to the `CodeGeneratorConfig` struct, updates to the Swift code generator to transform names... | diff --git a/serde-generate/src/config.rs b/serde-generate/src/config.rs
index c964bb9de..5055d7081 100644
--- a/serde-generate/src/config.rs
+++ b/serde-generate/src/config.rs
@@ -14,6 +14,7 @@ pub struct CodeGeneratorConfig {
pub custom_code: CustomCode,
pub c_style_enums: bool,
pub package_manifest: b... | 3 | 2 | 1 | [{"id": "G0", "claim": "Drop the new config option and helper method and just call `.to_mixed_case()` in the few places where it's needed, since Swift already auto-fixes the case.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Changing the names in the g... | null |
zegl__kube-score__110 | zegl/kube-score | 110 | defect | 4a634587eb05d68ca0ff842299cc3382d19294be | 1e6f63699aaa30ed66b912bc464cffe59ef1080e | ignore probes on CronJobs and enhance pod checks to be aware of the r… | …oot type that created them
Resolves #108 | diff --git a/.gitignore b/.gitignore
index 8d9db1d5..5d8ce8fc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/.idea
/cmd/kube-score/dist/
/cmd/kube-score/kube-score
+vendor
diff --git a/score/checks/checks.go b/score/checks/checks.go
index 61bd5b4c..bf4c47d8 100644
--- a/score/checks/checks.go
+++ b/score/... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pod-check function argument should be a metav1.TypeMeta instead of a string, for type safety and clarity and because it also carries the APIVersion.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CronJob probe-ignoring che... | null |
zegl__kube-score__317 | zegl/kube-score | 317 | defect | 8baae6fa33e05956e5aef6e056d479b7ed6dc9ad | ceffbf4456a14e47ca3542fd4f480ef35edf9072 | score/apps: StatefulSets should have a valid headless serviceName | <!--
Optional: Add this change to the release notes by adding a RELNOTE comment
If this shouldn't appear in the notes, simply remove this.
-->
```
RELNOTE: Validate serviceName of a StatefulSet
```
This PR closes #315
This adds `statefulset-has-servicename` that checks following rules:
- Statef... | diff --git a/README_CHECKS.md b/README_CHECKS.md
index 8db3c0f8..2f5ef731 100644
--- a/README_CHECKS.md
+++ b/README_CHECKS.md
@@ -22,5 +22,6 @@
| deployment-has-host-podantiaffinity | Deployment | Makes sure that a podAntiAffinity has been set that prevents multiple pods from being scheduled on the same node. https:/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hand-written label matcher in statefulsetHasServiceName should be replaced with a built-in Kubernetes API (e.g. via a LabelSelector) to check if the Service selector matches the StatefulSet template labels, since custom matcher implementations have caused bugs before.", "category": "maintain... | null |
zegl__kube-score__326 | zegl/kube-score | 326 | defect | d9be66a97141a270ba0bb44e87347ce1dfd96256 | 576930c69313d2e25b9f599f00d67e417f2eb4ec | score/security: added optional, splitted probes as future replacemnt … | …for security context probe
Fixes #325
```
RELNOTE: container-security-context now deprecated and added optional probes container-security-context-user-group-id, container-security-context-privileged and container-security-context-readonlyrootfilesystem as replacement
```
| diff --git a/README.md b/README.md
index f96c5226..a0ab6a0f 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ For a full list of checks, see [README_CHECKS.md](README_CHECKS.md).
* Deployments and StatefulSets should have a `PodDisruptionPolicy`
* Deployments and StatefulSets should have host PodAntiAffinity c... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new README_SECURITYCONTEXT.md should state the committed release timeline (v1.10 introduce the new checks, v1.11 make container-security-context optional and default to the new checks, v1.12 remove it) so users get clear warning about the upcoming breaking change.", "category": "documentatio... | null |
zegl__kube-score__429 | zegl/kube-score | 429 | defect | 4780749f65afa8bc82315b0d3824c05255ffa775 | 9613bf76be2d3c125338aac9c26df2f456d155d8 | Feature #413: container ephemeral storage request and limit check | <!--
Optional: Add this change to the release notes by adding a RELNOTE comment
If this shouldn't appear in the notes, simply remove this.
-->
```
RELNOTE: Implement new Pod container resource checks for ephemeral storage. Default tests for request and limit settings. Optional test to ensure matching eph... | diff --git a/score/container/container.go b/score/container/container.go
index 09d6d735..6d24db37 100644
--- a/score/container/container.go
+++ b/score/container/container.go
@@ -17,6 +17,8 @@ func Register(allChecks *checks.Checks, cnf config.Configuration) {
allChecks.RegisterOptionalPodCheck("Container Memory Requ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test that checks \"Container Ephemeral Storage Request and Limit\" returns GradeAllOK, since the happy path is currently untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
zegl__kube-score__451 | zegl/kube-score | 451 | defect | 0484d969a24e617863fade8f89ef174a91b96786 | b07607a2e924b78fe1cfac83c0161ffb1760908c | Implement feature request: To detect duplicate defined environment variables | score/container: To detect duplicate defined environment variables.
Fixes #448
### behaviour
```
$ ./kube-score score ~/test.yaml
apps/v1/Deployment sample-deployment 💥
[CRITICAL] Environment Variable Key Duplication
· sampleA -> Environment Variab... | diff --git a/README_CHECKS.md b/README_CHECKS.md
index adfab299..696d23ce 100644
--- a/README_CHECKS.md
+++ b/README_CHECKS.md
@@ -33,3 +33,4 @@
| statefulset-pod-selector-labels-match-template-metadata-labels | StatefulSet | Ensure the StatefulSet selector labels match the template metadata labels. | default |
| lab... | 2 | 2 | 0 | [{"id": "G0", "claim": "The check description registered for Environment Variable Key Duplication should be reworded instead of \"`Makes sure that no duplicated environment variable keys.`\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The dupl... | null |
zegl__kube-score__576 | zegl/kube-score | 576 | defect | b6269bed3a9fb94e2a40f2fbefda4f5065854313 | f23a1c5893857bd485552f2a1c32e3eecea9e155 | Add deployment checks | Fixes #569
Fixes #570
```
RELNOTE: Adding Deployment checks verifying if update strategy and replicas are correct
```
| diff --git a/go.mod b/go.mod
index 74303c90..68dae4ed 100644
--- a/go.mod
+++ b/go.mod
@@ -11,6 +11,7 @@ require (
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.29.0
k8s.io/apimachinery v0.29.0
+ k8s.io/utils v0.0.0-20230726121419-3b25d923346b
)
require (
@@ -29,7 +30,6 @@ require (
gopkg.in/inf.v0 v0.9.1 // indire... | 5 | 5 | 2 | [{"id": "G0", "claim": "The strategy check should not require the deployment strategy to be explicitly set: since RollingUpdate is the Kubernetes default, a Deployment with no .spec.strategy.type set should be graded GradeAllOK instead of GradeWarning.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
zeitgeistpm__zeitgeist__1193 | zeitgeistpm/zeitgeist | 1,193 | defect | 1cc3803fe5c59f54149c6336903a6a75dff78aa7 | 403f4f39bb2907410a2cc2db8c5a1ffd43550603 | Ensure MinBetSize after fee | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
Ensure the amount minus fees is above the MinBetSize for parimutuels.
Adds `require_transactional`, because this PR breaks the rule `verify first, write last`.
An ... | diff --git a/zrml/parimutuel/src/lib.rs b/zrml/parimutuel/src/lib.rs
index 5029336c6..ebc5fd26a 100644
--- a/zrml/parimutuel/src/lib.rs
+++ b/zrml/parimutuel/src/lib.rs
@@ -144,7 +144,7 @@ mod pallet {
/// The market is not active.
MarketIsNotActive,
/// The specified amount is below the mini... | 2 | 2 | 2 | [{"id": "G0", "claim": "Instead of the TODO'd verify-first/write-last workaround (reading minimum balances after `distribute` already modified storage, with a plan to mitigate via `get_fee`), add `require_transactional` to the `do_*` functions; using `get_fee` has its own issues.", "category": "design", "verdict": "sup... | null |
zeitgeistpm__zeitgeist__1253 | zeitgeistpm/zeitgeist | 1,253 | defect | 761cc598a6eb168a3377831d0addc69f36069f65 | 36edc48b55868ea7752bfb4574e405d0254e8ac9 | Migrate neo-swaps pools to bounded storage | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
Migrates neo-swaps pools from `BTreeMap` to `BoundedBTreeMap` to avoid potentially faulty manual `MaxEncodedLen` implementations. Fixes #1214.
### What important poin... | diff --git a/runtime/common/src/lib.rs b/runtime/common/src/lib.rs
index 12e5a57cb..37abc22b4 100644
--- a/runtime/common/src/lib.rs
+++ b/runtime/common/src/lib.rs
@@ -55,12 +55,13 @@ macro_rules! decl_common_types {
use orml_traits::MultiCurrency;
use sp_runtime::{generic, DispatchError, DispatchRes... | 5 | 2 | 0 | [{"id": "G0", "claim": "Changing MAX_ASSETS from u16 to u32 is questioned as unnecessary and inconsistent with the MaxCategories type in prediction-markets.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `as` cast in `ensure!(market.outcomes() as u32 <... | null |
zeitgeistpm__zeitgeist__1281 | zeitgeistpm/zeitgeist | 1,281 | defect | c6c1f4964a6c558490d2b8e72b2363895d51f48a | d572a64244e07af707c2aafa1f1f7b6320ee237c | New Asset System - Add Sub Asset Classes and extended Market functionality | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
- Add sub asset classes `BaseAssetClass`, `ParimutuelAssetClass`, `XcmAssetClass`
- This allows specifying proper types for extrinsics (i.e. not allowing `ForeignAsset`... | diff --git a/Cargo.lock b/Cargo.lock
index 44c60c1df..190de72c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14399,6 +14399,7 @@ dependencies = [
"fixed",
"frame-support",
"frame-system",
+ "impl-trait-for-tuples",
"more-asserts",
"num-traits",
"orml-currencies",
@@ -14677,6 +14678,7 @@ dependencies = [
"... | 8 | 5 | 3 | [{"id": "G0", "claim": "Tests should be added for the new `MarketTransitionApi` trait in primitives/src/traits/market_transition_api.rs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Removing `#[require_transactional]` from `managed_destroy_multi` seem... | null |
zeitgeistpm__zeitgeist__1284 | zeitgeistpm/zeitgeist | 1,284 | defect | 52fba8a530c6d56175b7b50572b257b39c88cbf7 | ed53c47e6034713faaff9d964b402a795790e3b0 | New Asset System - Integrate into remaining pallets | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
- Adjust all remaining pallets to work with the new asset system.
### What important points should reviewers know?
- This is a part of https://github.com/zeitgeistpm/z... | diff --git a/Cargo.lock b/Cargo.lock
index b5f6d5206..190de72c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14678,6 +14678,7 @@ dependencies = [
"orml-currencies",
"orml-tokens",
"orml-traits",
+ "pallet-assets",
"pallet-balances",
"pallet-randomness-collective-flip",
"pallet-timestamp",
@@ -14694,6 +14695... | 3 | 1 | 0 | [{"id": "G0", "claim": "Delete the stray blank line added before the assert_noop! call in join_fails_on_insufficient_funds.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Question asking why a failed join raises pallet_assets::NoAccount while a failed dep... | null |
zeitgeistpm__zeitgeist__1287 | zeitgeistpm/zeitgeist | 1,287 | defect | 7fd695ef0a94e4d326de1c1b77f924bce19093a9 | c1af787a164285d278d8e77270bf5acf4fbd47eb | New Asset System - Integrate into XCM | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
- Ensures that `XTokens` and `AssetRegistry` use the `XcmAsset` asset class.
- Improves tests.
### What important points should reviewers know?
### Is there somethi... | diff --git a/primitives/src/types.rs b/primitives/src/types.rs
index 76290a56d..68ce0b1c1 100644
--- a/primitives/src/types.rs
+++ b/primitives/src/types.rs
@@ -104,9 +104,12 @@ pub type Currencies = CurrencyClass<MarketId>;
/// Asset type representing assets used by prediction markets.
pub type MarketAsset = MarketA... | 1 | 1 | 1 | [{"id": "G0", "claim": "The literal merge-conflict markers committed into zrml/orderbook/src/lib.rs need to be resolved instead of left in the code.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
zeitgeistpm__zeitgeist__1291 | zeitgeistpm/zeitgeist | 1,291 | defect | f840ee7abc52dd0c7b9bc138029baac0f65470cd | 2b1fef5a8869e3c3a39234a8eabd3f90ab87da73 | Fix Hybrid Router clippy and tests | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
I can successfully run `./scripts/tests/clippy.sh` and `cargo test --all-features` now.
### What important points should reviewers know?
### Is there something lef... | diff --git a/Cargo.lock b/Cargo.lock
index 4f18e6f92..ef242b4dc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14594,6 +14594,7 @@ dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
+ "orml-asset-registry",
"orml-currencies",
"orml-tokens",
"orml-traits",
@@ -14601,21 +14602,25 @@ depende... | 3 | 2 | 1 | [{"id": "G0", "claim": "The hybrid-router Cargo.toml should not declare all these dependencies as regular optional dependencies — reduce them to a minimal set and remove or mark everything else as dev dependencies; at the very least zrml-swaps is not needed in the dependencies.", "category": "correctness", "verdict": "... | null |
zeitgeistpm__zeitgeist__1293 | zeitgeistpm/zeitgeist | 1,293 | defect | 3747b3d870a5993bf1c43f97bf816c1e217f3f2c | 14b3819a096faa1b51d04dce4dba21c96e30cc34 | AMM-CDA-8 Add event information for fees and aggregated amount_out | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
### What important points should reviewers know?
### Is there something left for follow-up PRs?
### What alternative implementations were considered?
### Are th... | diff --git a/Cargo.lock b/Cargo.lock
index ea3695b84..ef242b4dc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14622,6 +14622,7 @@ dependencies = [
"zrml-orderbook",
"zrml-prediction-markets",
"zrml-simple-disputes",
+ "zrml-swaps",
]
[[package]]
diff --git a/primitives/src/hybrid_router_api_types.rs b/primitiv... | 2 | 2 | 1 | [{"id": "G0", "claim": "The doc comments of `buy` and `sell` in primitives/src/traits/hybrid_router_amm_api.rs are outdated now that the pull request changed their return type from `DispatchResult` to `Result<AmmTradeOf<Self>, DispatchError>`; they still say the functions return `Ok(())` on success.", "category": "docu... | null |
zeitgeistpm__zeitgeist__1309 | zeitgeistpm/zeitgeist | 1,309 | defect | 17cd19cef58496e4afe02d2fe9f606e08242d506 | e3ebf720489f9a8e9a25a0f8b3983a957080d409 | Fix of Hybrid Router after asset system merge | <!-- Please adhere to the style guide at -->
<!-- https://github.com/zeitgeistpm/zeitgeist/blob/main/docs/STYLE_GUIDE.md -->
### What does it do?
After there happened some commits to the main branch, I needed to adjust the Hybrid Router implementation again to have a working version.
### What important points s... | diff --git a/Cargo.lock b/Cargo.lock
index 4d3e64a4d..1aa9ce2f7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14631,6 +14631,7 @@ dependencies = [
"orml-currencies",
"orml-tokens",
"orml-traits",
+ "pallet-assets",
"pallet-balances",
"pallet-randomness-collective-flip",
"pallet-timestamp",
@@ -14645,6 +14646... | 5 | 4 | 1 | [{"id": "G0", "claim": "Scoring rules other than AmmCdaHybrid (e.g. pure orderbook or Lmsr) will no longer be usable, since the match arms for Orderbook and Lmsr are removed and replaced by a single AmmCdaHybrid arm.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", ... | null |
zeitgeistpm__zeitgeist__470 | zeitgeistpm/zeitgeist | 470 | defect | 1a57c861ed17af6eaabe881e90324934a2a1458b | 95dd51420add0bb73b8c84996bd7b8a64a0fef4e | Remove panickers from Rikiddo code | Removed all instances of `to_num`, `from_num`, `to_fixed` and `from_fixed`. Some repeated code is now abstracted into utility functions.
To remove panickers from implementations of the `Default` trait, we've added a `From<u32>` or `From<i32>` trait bounds to some Rikiddo structs. These do not seem to be serious rest... | diff --git a/zrml/rikiddo/src/lib.rs b/zrml/rikiddo/src/lib.rs
index 57e15c075..56576e5b8 100644
--- a/zrml/rikiddo/src/lib.rs
+++ b/zrml/rikiddo/src/lib.rs
@@ -24,6 +24,7 @@ pub mod mock;
mod tests;
pub mod traits;
pub mod types;
+pub mod utils;
pub use pallet::*;
/// The pallet that bridges Rikiddo instances t... | 3 | 3 | 0 | [{"id": "G0", "claim": "The final conversion in `convert_common` should use `num_u128.checked_to_fixed().ok_or(...)` instead of the `if let Some / else Err` block to stay consistent with the style used in the rest of the function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
zeitgeistpm__zeitgeist__734 | zeitgeistpm/zeitgeist | 734 | defect | 8faf2be6f2a37838cd700e8cadb2ee93f262e777 | 93370f7cbc2033a356725cba79ccf1ee918756b9 | Fix rust toolchain install | It appears that when you're not using `actions-rs/toolchain@v1` with this configuration (`override = true`), the nightly version lags a couple of months behind. This caused a compiler error in the newest version of `libc`. For example, you can check these logs: https://github.com/zeitgeistpm/zeitgeist/runs/7680926301?c... | diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index b160e14a8..a91c91170 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -45,16 +45,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- - name: Install Rust toolchain
- run: |... | 1 | 1 | 0 | [{"id": "G0", "claim": "The rust toolchain should also be installed with the new actions-rs/toolchain action in the `tests` job above in .github/workflows/rust.yml, as was done for the fuzz job.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
zeldaret__af__111 | zeldaret/af | 111 | defect | 7c16d393b0ca7969a075555d4618b6b1d037841e | 5d1d269c6976b0a9d54bb076861212b8574f9a3a | ac_set_manager OK | Implements the Manager of the Managers for each fish and insect overlays
Also moves them into their own overlay folder | diff --git a/include/m_field_info.h b/include/m_field_info.h
index 85da72a23..35180d4e8 100644
--- a/include/m_field_info.h
+++ b/include/m_field_info.h
@@ -160,7 +160,7 @@ s32 func_8008B3E8_jp(xyz_t* arg0, UNK_TYPE arg1);
// void func_8008BF34_jp();
// void func_8008BFC4_jp();
// void func_8008C058_jp();
-// void f... | 8 | 7 | 0 | [{"id": "G0", "claim": "The reviewer still dislikes the GET_CURRENT_PLAYER_ACTOR() macro added to include/m_player_lib.h and would prefer it reworked or removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fish and insect overlay directories and s... | null |
zeldaret__mm__1030 | zeldaret/mm | 1,030 | defect | f3a51c5403c74770e0b7661170df6de080ce8397 | b6b760503402dcd097e30bc66ae60bb3de20bf6b | `ovl_En_Nb` OK | I did this actor expecting to know how this actor handled the story telling, but it seems to be handled by the z_msgevent system, which isn't decomped yet, so it was a bit of a disappointment.
I also did some minor documentation to both the actor and the object. | diff --git a/assets/xml/objects/object_nb.xml b/assets/xml/objects/object_nb.xml
index 511fddd6c30..c61599c73b5 100644
--- a/assets/xml/objects/object_nb.xml
+++ b/assets/xml/objects/object_nb.xml
@@ -1,46 +1,59 @@
<Root>
+ <!-- Assets for Anju's Grandma -->
<File Name="object_nb" Segment="6">
- <Anima... | 26 | 21 | 0 | [{"id": "G0", "claim": "Use UNK_TYPE1 instead of char for the unknown byte-padding fields unk_1EC, unk_278 and unk_294 of the EnNb struct.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename func_80BBFE60 to EnNb_UpdateSkelAnime, since that is... | null |
zeldaret__mm__1034 | zeldaret/mm | 1,034 | defect | bb96e47f8df9fa42e2120b7acda90432bacfde39 | e98206d27643aa34076dee9917a7d67390fc7c7b | Audio: Various Cleanup and Docs | This Audio PR updates the progress I've made in documenting audio to files already decompiled. It also cleans up some audio code. | diff --git a/include/functions.h b/include/functions.h
index 65d1b8b18d4..4c77bfd77e8 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -3041,8 +3041,8 @@ void* AudioHeap_AllocAttemptExternal(AudioAllocPool* pool, size_t size);
void* AudioHeap_AllocDmaMemory(AudioAllocPool* pool, size_t size);
void* Audio... | 6 | 4 | 0 | [{"id": "G0", "claim": "Ask whether the function returning `sameTunedSample` instead of a command here is a bug or just a shared temp.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Confirm that this code is slated to be renamed eventually anyway (to ... | null |
zeldaret__mm__1048 | zeldaret/mm | 1,048 | defect | bb96e47f8df9fa42e2120b7acda90432bacfde39 | 1e66a3d1da0daf5ccf25d367a3cf2a73e48213b5 | Item cleanup: Item drops, rupees, signs | Just a small bit of cleanup around items, mainly focused on gameplay_keep assets. I also did a small bit of docs for rupees where applicable, and the sign assets seems to have embedded themselves inside the item assets, so I just pulled the names from OoT since they seem identical | diff --git a/assets/xml/objects/gameplay_keep.xml b/assets/xml/objects/gameplay_keep.xml
index 4f1ad1841ae..79f51c98531 100644
--- a/assets/xml/objects/gameplay_keep.xml
+++ b/assets/xml/objects/gameplay_keep.xml
@@ -1217,37 +1217,44 @@
<Collision Name="gameplay_keep_Colheader_05A270" Offset="0x5A270" />
... | 4 | 4 | 0 | [{"id": "G0", "claim": "The rupee rotation increment should be written as hex 0x3C0 instead of decimal 960 to match the file's hex-constant style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The scale literals such as 0.044999998f are probabl... | null |
zeldaret__mm__1060 | zeldaret/mm | 1,060 | defect | bb96e47f8df9fa42e2120b7acda90432bacfde39 | 9c554d329c65ae49c54462af55c918bde6061645 | ActorContext Flags | This looks at the two types flags involved in `ActorContext`.
What was previously `actorCtx.flags` is proposed to be given the more specific `actorCtx.sceneFlags` since it is specifically scene flags that it stores, and the more general `actorCtx.unk5` is proposed to be given the more general `actorCtx.flags` name, ... | diff --git a/include/z64actor.h b/include/z64actor.h
index 175d9ef22c0..56e14041d06 100644
--- a/include/z64actor.h
+++ b/include/z64actor.h
@@ -307,6 +307,16 @@ typedef enum {
/* 0x0C */ ACTORCAT_MAX
} ActorType;
+#define ACTORCTX_FLAG_0 (1 << 0)
+#define ACTORCTX_FLAG_1 (1 << 1)
+#define ACTORCTX_FLAG_2 (1 <<... | 1 | 1 | 1 | [{"id": "G0", "claim": "The two actorCtx mapping entries added to tools/namefixer.py are recursive (unk5 maps to flags, which maps to sceneFlags), so running ./tools/namefixer.py produces a recursive problem; the reviewer suggests leaving them commented out.", "category": "correctness", "verdict": "supported", "priorit... | null |
zeldaret__mm__1082 | zeldaret/mm | 1,082 | defect | 2c6816ba7791c6e6e8043d2a0e6598234588d4cf | 7ef75f96153e1b95880939ee18282e2d61a2885e | EnMThunder Ok with some docs | EnMThunder (spin attacks and sword beams).
Felt it best to not document everything until we learn more from player and kankyo. | diff --git a/assets/xml/objects/gameplay_keep.xml b/assets/xml/objects/gameplay_keep.xml
index 4f1ad1841ae..4435bae9491 100644
--- a/assets/xml/objects/gameplay_keep.xml
+++ b/assets/xml/objects/gameplay_keep.xml
@@ -914,18 +914,23 @@
<DList Name="gElectricSparkDL" Offset="0x23480" />
<DList Name="gEl... | 13 | 10 | 0 | [{"id": "G0", "claim": "Compare gSaveContext.magicState against MAGIC_STATE_IDLE instead of the literal 0 in both EnMThunder_Init and EnMThunder_Charge.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Set gSaveContext.magicState to MAGIC_STATE_CO... | null |
zeldaret__mm__1108 | zeldaret/mm | 1,108 | defect | f379012742c07f2e069b24d77e4f30a614f63080 | 2c4303ec16b196ecab1db989cdf3ac32758ea40e | z_kaleido_collect.c (1 non-matching) and Mostly Documented (Pause Menu Quest Page) | I avoided completely documenting this file due to the non-matching, but I did name all the data.
Here's the non-matching, it's very close:
https://decomp.me/scratch/kf3PR | diff --git a/include/functions.h b/include/functions.h
index 88a149d1f0a..16dc6970a08 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -3036,7 +3036,7 @@ void AudioOcarina_StartDefault(u32 ocarinaFlags);
u8 func_8019B5AC(void);
void AudioOcarina_ResetAndReadInput(void);
void AudioOcarina_SetOcarinaDisab... | 8 | 7 | 0 | [{"id": "G0", "claim": "The comment in Item_Give should read \"misplaced digits\" instead of \"misplace digits\" and \"Quest Status page\" instead of \"quest page\", as proposed in the suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
zeldaret__mm__1129 | zeldaret/mm | 1,129 | defect | 7b572e8c538a7b667b29e2a8422cefce7a5432d1 | 22e2919690dde1f6c4fa2028fb88f3c333c1d669 | Quake & Distortion Docs (Again) + Math Cleanup (Camera Prep) | Part 2 of Quake/Distortion docs. I made a recent surface-level cleanup PR, but when I went to OoT, I ended up doing a deep dive into Quake for the calculations, and made even further improvements on the docs.
This PR mainly involves:
- Making quake/distortion docs more consistent with rumble
- Cleaning up Spherica... | diff --git a/include/functions.h b/include/functions.h
index dbe7d1de13f..1988303f387 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -744,9 +744,9 @@ s16 Actor_TestFloorInDirection(Actor* actor, PlayState* play, f32 distance, s16
s32 Actor_IsTargeted(PlayState* play, Actor* actor);
s32 Actor_OtherIsTar... | 23 | 12 | 2 | [{"id": "G0", "claim": "The VecSphGeo struct's pitch/yaw field names should be replaced with names tied to a specific coordinate convention (latitude/colatitude or altitude/azimuth).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The use of the word \"ge... | null |
zeldaret__mm__1171 | zeldaret/mm | 1,171 | defect | ab8d34b8dc2ccd28ae4224d8500decff0fa25a1c | 9847b9f99d9a00daaf2026f4b241bbc4ac505a45 | ovl_Bg_F40_Swlift OK and documented. obj_f40_obj documented. | The unused Stone Tower vertically oscillating platform is decompiled, matching and documented. Its object file was also documented. This would be a nice opportunity to double check some names in the object are clear since I have slight doubts. | diff --git a/assets/xml/objects/object_f40_obj.xml b/assets/xml/objects/object_f40_obj.xml
index 59bff9d05e1..7c0561a04d8 100644
--- a/assets/xml/objects/object_f40_obj.xml
+++ b/assets/xml/objects/object_f40_obj.xml
@@ -1,17 +1,25 @@
<Root>
+ <!--
+ Assets for Stone Tower platforms. These platforms includ... | 19 | 18 | 1 | [{"id": "G0", "claim": "If BgF40Swlift_Init still matches with the order of the two local declarations (s32 index / this) swapped, the PR should swap them, as that is the tendency of these actors.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The sParam... | null |
zeldaret__mm__1260 | zeldaret/mm | 1,260 | defect | f8ac9d2e9ae65027f8bbe45f5357c6e3adb1ebc4 | 1c047747de370c410727f7c18abceb6451e5a075 | Misc Cleanup 2 | Even more brackets, this time with a few `if (1) {}`'s removed | diff --git a/src/boot_O2_g3/fault.c b/src/boot_O2_g3/fault.c
index 6e1656170bc..eb190859e0b 100644
--- a/src/boot_O2_g3/fault.c
+++ b/src/boot_O2_g3/fault.c
@@ -447,7 +447,7 @@ void osSyncPrintfThreadContext(OSThread* t) {
OSThread* Fault_FindFaultedThread() {
OSThread* iter = __osGetActiveQueue();
while (it... | 6 | 5 | 0 | [{"id": "G0", "claim": "Add a blank line before CLOSE_DISPS at the end of EnFg_DrawDust, as is normally done even after a closing brace.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Use `index >= ARRAY_COUNT(sDamageTablePresets)` instead of ... | null |
zeldaret__mm__1264 | zeldaret/mm | 1,264 | defect | 64959177d90f158e2e39ca3a6b728f915bf084b5 | 10de94c04831512e19f664c50c53885debe7060e | libultra voice OK | A special thanks to @EllipticEllipsis @hensldm @Thar0 for the help on these functions and documentation. For those who work on libultra, it would be great to get feedback for styling/docs that align with more broad libultra efforts! | diff --git a/include/functions.h b/include/functions.h
index 530cedd86e8..390429b2dc3 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -190,7 +190,6 @@ void osStopThread(OSThread* t);
s32 osRecvMesg(OSMesgQueue* mq, OSMesg* msg, s32 flags);
OSIntMask osSetIntMask(OSIntMask im);
// OSIntMask osGetIntMask... | 9 | 7 | 0 | [{"id": "G0", "claim": "The OSVoice structs/enum and the osVoice* function declarations belong in os_voice.h rather than controller_voice.h, matching ultralib's repo layout.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The gVoiceHandle extern seems z64... | null |
zeldaret__mm__1275 | zeldaret/mm | 1,275 | defect | 4cce44466170344b68b146cfbec6d9597d0910bb | 379bc48b193332e7a6ae420355af20e6d046c1a6 | Document Player's bgcheck routine | Inspired (and maybe entirely taken from) the parallel OoT PR by @fig02: https://github.com/zeldaret/oot/pull/1503 | diff --git a/include/z64bgcheck.h b/include/z64bgcheck.h
index 91a892e0382..2df706cb227 100644
--- a/include/z64bgcheck.h
+++ b/include/z64bgcheck.h
@@ -223,6 +223,8 @@ typedef enum ConveyorSpeed {
/* 4 */ CONVEYOR_SPEED_MAX
} ConveyorSpeed;
+#define CONVEYOR_DIRECTION_TO_BINANG(conveyorDirection) ((conveyorDir... | 3 | 2 | 0 | [{"id": "G0", "claim": "The doc-comment summary should state what happens explicitly ('Performs the following tasks related to scene collision:') rather than generally ('Performs various tasks related to scene collision.').", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
zeldaret__mm__1292 | zeldaret/mm | 1,292 | defect | 196f9dba522aa519e6464766b60ccc2ac70de11d | 16503c2aabcbc2e7476eee774c3810a160cda1d1 | Idle + Main bss and cleanup | Removes the idle extra file bss hack, as well as imports main's bss, along with cleanup in both files. | diff --git a/include/functions.h b/include/functions.h
index 6a9ebcf60f7..6e15b658a69 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -4,8 +4,7 @@
#include "z64.h"
void bootproc(void);
-void Idle_ThreadEntry(void* arg);
-void ViConfig_UpdateVi(u32 mode);
+void ViConfig_UpdateVi(u32 black);
void ViCon... | 6 | 4 | 0 | [{"id": "G0", "claim": "Asks what the reason was for renaming only some Idle_ functions to Main_, and whether the rule is that functions running on the Main thread get the Main_ prefix while Idle_ThreadEntry, which runs on the idle thread, keeps Idle_.", "category": "design", "verdict": "uncertain", "priority": "P3", "... | null |
zeldaret__mm__1315 | zeldaret/mm | 1,315 | defect | 857a0cfdaf29755b763eda075b7ac9c4a204b0e4 | c8710cb62ffe58a169e2b4d3fbac2d03034e8d29 | RequiredScopeTemp Cleanup | Does some clean up regarding `requiredScopeTemp`s by converting them to actual used variables where appropriate, or in 1 case changing scope so it was no longer needed. | diff --git a/src/code/game.c b/src/code/game.c
index 50139348c31..a5e02304c9e 100644
--- a/src/code/game.c
+++ b/src/code/game.c
@@ -85,19 +85,14 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) {
Graph_BranchDlist(polyOpa, nextDisplayList);
POLY_OPA_DISP = nextDisplayList;
- // Bloc... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `invFrozenTimer` declaration (still left at the top of EnMinislime_IceArrowDamage) should be brought down into the inner frozen-shake block alongside randFloat and randSign.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeldaret__mm__1325 | zeldaret/mm | 1,325 | defect | 913cd981c0b0213da3542b6368f026ea0d8214e3 | 054142f571bd900dc01e07ebff90ee1b3450f0ae | Shopkeeper weekeventregs | Name same weekeventregs revolving around shopkeepers. | diff --git a/include/z64save.h b/include/z64save.h
index fa44ebfe10e..4d2ce7f6bf9 100644
--- a/include/z64save.h
+++ b/include/z64save.h
@@ -644,8 +644,8 @@ typedef enum {
#define WEEKEVENTREG_12_02 PACK_WEEKEVENTREG_FLAG(12, 0x02)
#define WEEKEVENTREG_12_04 PACK_WEEKEVENTREG_FLAG(12, 0x04)
-#define WEEKEVENTREG_12... | 4 | 3 | 0 | [{"id": "G0", "claim": "Explain what WEEKEVENTREG_TALKED_EMPTY_BOAT_CRUISE represents and rename it to something clearer and consistently ordered (e.g. WEEKEVENTREG_TALKED_KOUME_KIOSK_EMPTY).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "WEEKEV... | null |
zeldaret__mm__1328 | zeldaret/mm | 1,328 | defect | e7f3921414d6d6c71aed92006f9bc8a1a9329789 | 441da7466c4627b17e543af41850ba759b4e64b5 | Bottle Params | This adds param macros to all actors that are spawned or caught by bottles, in preparation for some bottle docs | diff --git a/src/code/z_demo.c b/src/code/z_demo.c
index 771e7672259..7abd9db7671 100644
--- a/src/code/z_demo.c
+++ b/src/code/z_demo.c
@@ -4,6 +4,7 @@
#include "z64rumble.h"
#include "z64shrink_window.h"
#include "overlays/gamestates/ovl_daytelop/z_daytelop.h"
+#include "overlays/actors/ovl_En_Elf/z_en_elf.h"
v... | 7 | 5 | 0 | [{"id": "G0", "claim": "The raw `thisx->params & 0x100` check in EnElf_Init should probably get a macro like the other fairy param getters.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "KUSA_GET_PARAM_3F should be renamed to KUSA_GET_PARAM_FC... | null |
zeldaret__mm__1349 | zeldaret/mm | 1,349 | defect | 70a54256b78babf66b534981c5d53cdc0b9d8110 | 66e4baefef818f5f342c233c9e6bd329903b085d | Document object_tl (Snapper) | I want to document the Snapper actors (EnKame and EnBigpamet), so I figured I'd start with their shared object. | diff --git a/assets/xml/objects/object_tl.xml b/assets/xml/objects/object_tl.xml
index 7f0cfd75653..3230f87f200 100644
--- a/assets/xml/objects/object_tl.xml
+++ b/assets/xml/objects/object_tl.xml
@@ -1,61 +1,87 @@
<Root>
+ <!-- Assets for Snappers. There are two variants: the regular Snapper with four legs, and a... | 1 | 1 | 0 | [{"id": "G0", "claim": "The joint/morph table fields added by this PR should be renamed to reflect the actor variant they belong to (e.g. snapperJointTable/spikedSnapperJointTable), in both z_en_bigpamet.h and z_en_kame.h.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeldaret__mm__1370 | zeldaret/mm | 1,370 | defect | 4fa13e4132cf8adb2f07bb34927e62e525c8cc79 | 9b120c38756acc4c1aa0dcb54573b327a8af0af0 | Non libultra Boot Cleanup | Cleans up mostly non libultra boot.
Reorganize boot folders as discussed in Discord
named the two unnamed boot files
renamed `__osSyncVPrintf` -> `osSyncPrintfUnused` | diff --git a/Makefile b/Makefile
index d8878ac4b0e..e08d983c8c2 100644
--- a/Makefile
+++ b/Makefile
@@ -207,8 +207,7 @@ DEP_FILES := $(O_FILES:.o=.asmproc.d) $(OVL_RELOC_FILES:.o=.d)
$(shell mkdir -p build/baserom $(foreach dir,$(SRC_DIRS) $(ASM_DIRS) $(ASSET_BIN_DIRS),build/$(dir)))
# directory flags
-build/src/b... | 2 | 1 | 0 | [{"id": "G0", "claim": "Could the // comments in include/PR/rcp.h be spaced out from the code (e.g. `//VI vertical sync` -> `// VI vertical sync`)?", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The register macros (AI_DACRATE_REG, AI_BITRATE_RE... | null |
zeldaret__mm__1383 | zeldaret/mm | 1,383 | defect | 548ea08838f11a0f3c7f29e014eede6ef784ab7a | 3574fa67baba54c441d54cfe0ad37134c096b34c | EnKame (Snapper) documented | This actor is pretty wild. It has four different, distinct ways of checking which phase of the attack its in, for example. I tried my best to wrangle this beast, but as always, I'm open to feedback if something doesn't really make sense.
While working on this actor, I also realized that all the "weird" `drawDmgEffFr... | diff --git a/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c b/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c
index a147db127fc..d3ffc59a289 100644
--- a/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c
+++ b/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c
@@ -492,7 +492,7 @@ void EnBigokuta_CheckOneHit... | 1 | 1 | 0 | [{"id": "G0", "claim": "EnKame_PlayAttackEffects is an odd name (the 'Play' reads strangely for a function that both spawns surface effects and plays the spinning sfx); rename it, e.g. to EnKame_ProcessAttackEffects.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeldaret__mm__1384 | zeldaret/mm | 1,384 | defect | fa71fbeaab8631bcd2bfd8d68e1b73f1b4d1801e | bf960bf28835816eda8ad9dad8be1323b3d788d5 | Yet another libultra cleanup | Hopefully the final big libultra cleanup PR that I will do in some time.
- Aims to fix some types, rename some stuff to sync it a bit more with the ultralib repo
- Remove the made-up hardware.h header
- Introduce an `attributes.h` header
- Migrate some unmigrated libultra data and bss
- Use the libultra macros `... | diff --git a/include/PR/r4300.h b/include/PR/R4300.h
similarity index 100%
rename from include/PR/r4300.h
rename to include/PR/R4300.h
diff --git a/include/PR/controller.h b/include/PR/controller.h
index 8f5f35fe6c4..b8d86594a5f 100644
--- a/include/PR/controller.h
+++ b/include/PR/controller.h
@@ -153,7 +153,7 @@ type... | 21 | 20 | 0 | [{"id": "G0", "claim": "The goto target label in __osDevMgrMain should keep the official `readblock1` name instead of the generic `label` the PR gave it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The LEO_* register comments in include/PR/pi... | null |
zeldaret__mm__1393 | zeldaret/mm | 1,393 | defect | b96732818af4c35ecd6da0450f85dd36aa09a691 | 5d560a11751a4df843383231f60ab0d8356132b8 | Speedmeter OK | Mostly the same as OoT, but with added support for high resolution.
Docs come from OoT, thank you :) .
A couple fakes unfortunately. | diff --git a/include/functions.h b/include/functions.h
index c24ab583d41..8c94befcc0e 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -667,10 +667,10 @@ void* ZeldaArena_Realloc(void* ptr, size_t newSize);
void ZeldaArena_Free(void* ptr);
void* ZeldaArena_Calloc(u32 num, size_t size);
void ZeldaArena_G... | 6 | 2 | 0 | [{"id": "G0", "claim": "The arena-size locals in SpeedMeter_DrawAllocEntries (sysFreeMax/sysFree/sysAlloc, alongside the u32 zelda counterparts) may need different signedness than they have.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new time-... | null |
zeldaret__mm__1434 | zeldaret/mm | 1,434 | defect | e2dcde6a9296b7878e113568c819e429d54772ba | 1c63058e011914104008a944eb8d7228d3131973 | Player doc: anim wrappers | A good reference for this PR is https://github.com/zeldaret/oot/pull/1437 although there are a few differences, which can be discussed:
- I use the `Player_Anim_` and `Player_AnimReplace_` with the double underscore to name the main Player Animation wrappers.
- In addition to `PLAYER_ANIM_ADJUSTED_SPEED`, I also in... | diff --git a/include/z64animation.h b/include/z64animation.h
index 3ee160c00ea..98ae269693a 100644
--- a/include/z64animation.h
+++ b/include/z64animation.h
@@ -12,6 +12,10 @@ struct Actor;
struct SkelAnime;
struct PlayerAnimationFrame;
+// for indexing `jointTable[]` and `morphTable[]`
+#define LIMB_INDEX_POS 0 //... | 6 | 4 | 1 | [{"id": "G0", "claim": "The LIMB_INDEX_* macro names should carry \"ROOT\" (and probably drop \"INDEX\"), e.g. LIMB_ROOT_POS/LIMB_ROOT_ROT, since they index the typically-so-called root limb.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The LI... | null |
zeldaret__mm__1438 | zeldaret/mm | 1,438 | defect | 2c182bf7e35f6b7ac7853071875343f591c37510 | fde28bac0de1388e106c8d90187e7d35db011925 | `SCHEDULE_TIME` | Introduce a `SCHEDULE_CALC_TIME_ALT` macro to compare a time value that uses the Schedule format, for example comparing to `SCHEDULE_TIME_NOW`
Currently the only known cases that use this macro are in DmTag, Kankyo and EnAn, of which only the first one is in main. I decided to bring over the kankyo function too sinc... | diff --git a/include/z64schedule.h b/include/z64schedule.h
index 07a942e903c..a0bf0fa0a16 100644
--- a/include/z64schedule.h
+++ b/include/z64schedule.h
@@ -28,10 +28,15 @@
*/
// Macro to convert the time format used in the save struct into the format used in Schedule
-#define SCHEDULE_CONVERT_TIME(time) ((u16)((t... | 3 | 2 | 0 | [{"id": "G0", "claim": "Use SCHEDULE_TIME as the name for the hour/minute conversion macro, to match CLOCK_TIME, instead of SCHEDULE_CALC_TIME_ALT.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid the duplicate SCHEDULE_CONVERT_TIME_ALT macro; keep o... | null |
zeldaret__mm__1454 | zeldaret/mm | 1,454 | defect | 6475196f0fd24b1697241e3662bc732cdd81d212 | 921011c2f957c8dd24e25da0b82b74bbb6b9c5de | Fix ultratypes types | Following https://github.com/zeldaret/oot/pull/1546 from OoT. Note the same situation seems to occur with only boolean functions needing to be typed as `int` to match. I would argue for a bool typedef at this point for this situation. | diff --git a/include/PR/os_libc.h b/include/PR/os_libc.h
index 755f24692c6..ffbf8799362 100644
--- a/include/PR/os_libc.h
+++ b/include/PR/os_libc.h
@@ -8,7 +8,7 @@ void bcopy(void* __src, void* __dest, int __n);
int bcmp(void* __s1, void* __s2, int __n);
void bzero(void* begin, int length);
-s32 vsprintf(char* dst... | 3 | 3 | 2 | [{"id": "G0", "claim": "size_t and NULL should not have been removed from include/PR/ultratypes.h, since libultra defines them there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SystemArena_Calloc's parameters should be size_t rather than the u32... | null |
zeldaret__mm__1482 | zeldaret/mm | 1,482 | defect | 70637abca9c4c44f7989c76937ab87771ed03804 | 9b80986447dd645bee74380b2c6ccc47e878e853 | Split effect headers and a bit of cleanup | Moves functions out of `functions.h` and removed most of the extern variables from `variables.h`.
I made an individual header of each one of the `z_eff_*.c` files.
I made a few defines for flags and used them everywhere I found and fixed a few cases where a raw value was being passed to `Effect_Add` instead of the ... | diff --git a/include/functions.h b/include/functions.h
index 0e0e3dcbb70..ba060c0e51e 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -109,131 +109,7 @@ void Item_DropCollectibleRandom(PlayState* play, Actor* fromActor, Vec3f* spawnP
s32 func_800A8150(s32 index);
s32 func_800A817C(s32 index);
s32 Item_... | 6 | 5 | 0 | [{"id": "G0", "claim": "Questions why the initialization of `rand` was moved down a line, splitting it from its declaration in func_800B13D8.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Requests that the commented-out function declarations in... | null |
zeldaret__mm__1492 | zeldaret/mm | 1,492 | defect | 60ddc5891e1cdef2e32f695c96e60344d7a51c26 | 0c22b3da31c518577707ce5aeaf99652562b46fc | Organize `libc64` files | Renames and organizes the file from a library named `libc64`. We know the existence of this library, along with file and symbol names due to the DnM map files.
I used the AF repo as a reference to make this PR.
https://github.com/zeldaret/af/tree/main/src/boot/libc64
https://github.com/zeldaret/af/tree/main/includ... | diff --git a/Makefile b/Makefile
index a3d325a38e5..8b9d461d285 100644
--- a/Makefile
+++ b/Makefile
@@ -207,6 +207,8 @@ $(shell mkdir -p build/baserom $(foreach dir,$(SRC_DIRS) $(ASM_DIRS) $(ASSET_BIN
# directory flags
build/src/boot/O2/%.o: OPTFLAGS := -O2
+build/src/boot/libc64/%.o: OPTFLAGS := -O2
+
build/src/... | 5 | 4 | 0 | [{"id": "G0", "claim": "Keep common macros such as ARRAY_COUNT available to the new libc64 library files (by splitting macros.h or using it directly) instead of removing the macro and hand-writing sizeof(x) / sizeof(*x).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
zeldaret__mm__1505 | zeldaret/mm | 1,505 | defect | ebc36b2613a65fa9473ee1c604786d58972110c4 | 0a20760b6d572a9c0aab3ff66c70340f2e5eaf5b | Introduce `z64pause_menu.h` header | Make a new `z64pause_menu.h` header for all the public facing kaleido stuff.
All the private kaleido stuff was kept on the overlay's header (`overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope.h`). I also tried to remove all the uses of that header from `code` files and overlays other than kaleido itself. The ... | diff --git a/include/functions.h b/include/functions.h
index 76ac1de8778..982490bd748 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -509,11 +509,6 @@ void GetItem_Draw(PlayState* play, s16 drawId);
u16 QuestHint_GetTatlTextId(PlayState* play);
-void func_800F4A10(PlayState* play);
-void KaleidoSetu... | 2 | 1 | 0 | [{"id": "G0", "claim": "Sizing the kaleido setup page arrays with PAUSE_PAGE_MAX - 1 defeats the point of the constant since the arrays are indexed from element 0, so the -1 should be undone.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The it... | null |
zeldaret__mm__1518 | zeldaret/mm | 1,518 | defect | b25e64d1bd2ece30301f9fa5af78f963afd0cf76 | 08a6aeb00806d6fce94f357e0a80feac7f40ebff | Document Actor Category Change | Inspired by https://github.com/zeldaret/oot/pull/1587 | diff --git a/include/functions.h b/include/functions.h
index 8a63226edb1..c30fabac863 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -371,7 +371,7 @@ s16 func_800BBC20(BlinkInfo* info, s16 arg1, s16 arg2, s16 arg3);
void Actor_SpawnBodyParts(Actor* actor, PlayState* play, s32 partParams, Gfx** dList);
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment should say \"move\" instead of \"relocate\", since \"relocate\" has a strong meaning in other actor-related contexts.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
zeldaret__mm__1521 | zeldaret/mm | 1,521 | defect | a44f19225b15fe1dbf5ece9e686bdabb261348a1 | 455230106a8f01dd7aaee150865c46a6f1eaef0b | Misc Cleanup 2 | Another round of misc cleanup with about 7-8 fake matches fixed. | diff --git a/src/audio/code_8019AF00.c b/src/audio/code_8019AF00.c
index 6bf126dd1ef..f1e0c105724 100644
--- a/src/audio/code_8019AF00.c
+++ b/src/audio/code_8019AF00.c
@@ -5721,11 +5721,7 @@ void Audio_SetSequenceMode(u8 seqMode) {
if (seqMode != (sPrevSeqMode & 0x7F)) {
if (seqMode == SE... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `//! FAKE:` marker should sit on its own line above the `u32 roomDrawFlags` declaration rather than trailing the statement.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The condition splitting was applied inconsiste... | null |
zeldaret__mm__1603 | zeldaret/mm | 1,603 | defect | 5db52cfd395479fb5aa7a0e236478781904e0c52 | 6e0dbfea6d96f6fa7277b596573c97df1f3e848b | `ovl_En_Door` docs pass | - Named all the used `EnDoorType`
- What originally was `switchFlag` was really a multipurpose, where its meaning depended on the current `doorType`.
- Because of this I changed it to be an `union` named `actionVar`. Each member of the `union` is named after its corresponding `doorType`.
- Introduced the `EnDoorSc... | diff --git a/assets/xml/objects/gameplay_keep.xml b/assets/xml/objects/gameplay_keep.xml
index bb3f966706a..79940f1cb40 100644
--- a/assets/xml/objects/gameplay_keep.xml
+++ b/assets/xml/objects/gameplay_keep.xml
@@ -922,9 +922,9 @@
<DList Name="gBoulderFragmentsDL" Offset="0x1FA40" />
<Texture Name="... | 12 | 12 | 0 | [{"id": "G0", "claim": "The author asked for suggestions on a better name for the `actionVar` union field of `EnDoor`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in the post-office schedule script misspells \"The\" as \"Theis\"."... | null |
zeldaret__mm__161 | zeldaret/mm | 161 | defect | f4687fbbe76b4699e7cfd8315fb83cd00b666e3a | 14561d46db85496647cd8d00ba7807a0cad2eb72 | ovl_Obj_Milk_Bin OK | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index ab3fdbddfd2..fd3d6725187 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -900,7 +900,7 @@ void func_800BCC68(Vec3f* param_1, GlobalContext* globalCtx);
void func_800BDC5C(SkelAnime* skelAnime, ActorAnimationEntry animation[], s16 index);
// vo... | 3 | 2 | 0 | [{"id": "G0", "claim": "The compiler warnings in the touched files should be fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The `extern Gfx D_060004B0[]` declaration should be moved to the top of the file, before any of the definitions.", "... | null |
zeldaret__mm__1646 | zeldaret/mm | 1,646 | defect | b55f8ffe6e60ed2335acbe7d428049ea1056f4b5 | 34fe07c4f7c03ab9b20dd80d0fb20923014c4c56 | Add a `z64play.h` header | This PR moves the `PlayState` struct and `z_play.c` functions, variables and macros to the new `z64play.h` header.
This leaves `z64.h` basically empty, just including other headers. I decided to do this in this way because it will make easier to untangle the "include everything" headers by it not being tied to a spe... | diff --git a/diff_settings.py b/diff_settings.py
index e0da720b1ff..05367ef05c2 100644
--- a/diff_settings.py
+++ b/diff_settings.py
@@ -6,4 +6,4 @@ def apply(config, args):
config['mapfile'] = 'build/n64-us/mm-n64-us.map'
config['source_directories'] = ['./src','./include']
config['objdump_flags'] = ['-... | 3 | 2 | 0 | [{"id": "G0", "claim": "The SequenceContext struct added to include/z64play.h is not actually needed and should just be removed.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FrameAdvance_IsEnabled should return `this->frameAdvCtx.enabled != false` instea... | null |
zeldaret__mm__1700 | zeldaret/mm | 1,700 | defect | b4d6c3921f4ce8d5847dda195881516a80c453a3 | a598f1a4132e1f225b3feeba66ce7e81bbb3c003 | Colliders Sync JntSphere | ColliderElement struct member rename and general clean up for JntSpheres | diff --git a/include/functions.h b/include/functions.h
index d5d14b86ae9..7532d24103f 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -178,12 +178,12 @@ Actor* Actor_FindNearby(PlayState* play, Actor* inActor, s16 actorId, u8 actorCa
s32 func_800BE184(PlayState* play, Actor* actor, f32 xzDist, s16 arg3, ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The pull request's change from `collider1.elements[0].dim...` to `collider1.elements->dim...` in MirRay_SetupCollider may be wrong, since `[0]` was there before.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Compared to oo... | null |
zeldaret__mm__1713 | zeldaret/mm | 1,713 | defect | 15ddcac8a431506f5e34bea717dab80432ed5590 | 1a9de79f5594ef3d9b08646d1f76ab6ff371b593 | Animation Cleanup: En_V* and En_W* | And some misc cleanup since there wasn't really much animations here | diff --git a/include/PR/os_internal.h b/include/PR/os_internal.h
index f2c5bfa1776..10ae5515eb6 100644
--- a/include/PR/os_internal.h
+++ b/include/PR/os_internal.h
@@ -7,8 +7,8 @@
#include "os_internal_rsp.h"
typedef struct __osHwInt {
- /* 0x00 */ s32 (*handler)(void);
- /* 0x04 */ void* stackEnd;
-} __osHw... | 2 | 1 | 0 | [{"id": "G0", "claim": "In EnWood02_Init, the added `// fallthrough` comments could instead use the FALLTHROUGH attribute (requiring the attributes.h header).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In DmChar00_Draw, the added `& 511` mas... | null |
zeldaret__mm__1723 | zeldaret/mm | 1,723 | defect | 001c6f0bff1d3f43c890e329e6f9fd574964bad4 | ca902eb40315124d99a3bf8db0ab88a736dfd6fe | Player Docs: Idle and Fidget | This primarily uses the docs from these 2 OoT PRs:
https://github.com/zeldaret/oot/pull/2262
https://github.com/zeldaret/oot/pull/2266
There are a few minor differences. First, `Player_GetIdleAnim` has 3 special cases for zora/goron/mask of scents. The next main difference is that a fidget entry is added for the m... | diff --git a/include/macros.h b/include/macros.h
index 29baeda55d4..6ed8600a662 100644
--- a/include/macros.h
+++ b/include/macros.h
@@ -17,7 +17,7 @@
#define ARRAY_COUNT(arr) (s32)(sizeof(arr) / sizeof(arr[0]))
#define ARRAY_COUNTU(arr) (u32)(sizeof(arr) / sizeof(arr[0]))
-#define ARRAY_COUNT_2D(arr) (ARRAY_COUNT(... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment line added above PLAYER_STATE2_IDLE_FIDGET has a leading space after the // marker and should be reformatted to match the file's style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeldaret__mm__1724 | zeldaret/mm | 1,724 | defect | 001c6f0bff1d3f43c890e329e6f9fd574964bad4 | 767dbe08d97e3c1fdd54c59f87dcad68a4d258b4 | Player Docs: speedXZ and yaw | This renames 3 struct variables in player:
`player->linearVelocity` to `player->speedXZ`
`player->currentYaw` to `player->yaw`
`player->targetYaw` to `player->parallelYaw`
See comments for more details on each variable | diff --git a/include/z64player.h b/include/z64player.h
index dc5bb1b6f0b..3a6905934c1 100644
--- a/include/z64player.h
+++ b/include/z64player.h
@@ -1235,9 +1235,9 @@ typedef struct Player {
/* 0xACC */ s16 unk_ACC;
/* 0xACE */ s8 unk_ACE;
/* 0xACF */ u8 putAwayCountdown; // Frames to wait before showing... | 1 | 1 | 0 | [{"id": "G0", "claim": "Could you remove the redundant parentheses around `player->speedXZ * 0.05f` in the `player->unk_B0C +=` line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
zeldaret__mm__1741 | zeldaret/mm | 1,741 | defect | 4337c2a4f29034a576c5fbcef00f27e468df9579 | c63d9148ab5906e3b0f586d4af3091195f702c31 | Player Docs: Spin Attack | Mainly focuses on the control stick buffers and names `PLAYER_STATE1_CHARGING_SPIN_ATTACK` | diff --git a/include/z64player.h b/include/z64player.h
index 37055e4c75b..6d3ee9ac972 100644
--- a/include/z64player.h
+++ b/include/z64player.h
@@ -560,6 +560,14 @@ typedef enum PlayerLedgeClimbType {
#define LEDGE_DIST_MAX 399.96002f
+typedef enum PlayerStickDirection {
+ /* -1 */ PLAYER_STICK_DIR_NONE = -1,
... | 4 | 3 | 0 | [{"id": "G0", "claim": "The left/right MWA values in the new D_8085D090 stick-direction comments don't line up, so MWA is worth another look, ideally noted with a TODO comment about the inconsistency.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
zeldaret__mm__1744 | zeldaret/mm | 1,744 | defect | 70e97dc285caf2060dda282c7420ed1e655f806e | c2515948128af0f4f1315d68df04457903a85820 | Player Docs: Rename Init Mode to Start Mode | This mirrors the names given to Link's behavior when spawning from both Wind Waker and OoT | diff --git a/include/z64player.h b/include/z64player.h
index 8a3aaa7eb04..4ad5373dba7 100644
--- a/include/z64player.h
+++ b/include/z64player.h
@@ -13,6 +13,31 @@
struct Player;
struct PlayState;
+#define PLAYER_GET_BG_CAM_INDEX(thisx) ((thisx)->params & 0xFF)
+#define PLAYER_GET_START_MODE(thisx) (((thisx)->param... | 3 | 1 | 0 | [{"id": "G0", "claim": "The Start Mode forward declarations are duplicated (a consequence of adding sStartModeFuncs) and don't need to be.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Player_StartMode_E should have been named after A instead o... | null |
zeldaret__mm__1768 | zeldaret/mm | 1,768 | defect | a6675d73273081f1f2fb091edad680b247fff16e | 9fc310f9df3c5f074bb2201d3a461ae0d5752f71 | Apply the NORETURN attribute to functions that do not return | Some rationale in the corresponding OoT PR
https://github.com/zeldaret/oot/pull/1532
| diff --git a/include/attributes.h b/include/attributes.h
index 9b3832fcb20..2c555930e98 100644
--- a/include/attributes.h
+++ b/include/attributes.h
@@ -14,4 +14,10 @@
#define NO_REORDER __attribute__((no_reorder))
#define SECTION_DATA __attribute__((section(".data")))
+#ifdef __GNUC__
+#define UNREACHABLE() __bu... | 1 | 1 | 0 | [{"id": "G0", "claim": "_dbg_hungup and Reset from debug.c should have the NORETURN attribute since they unconditionally call Fault_AddHungupAndCrash too.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
zeldaret__mm__1785 | zeldaret/mm | 1,785 | defect | 385c45ad483502a03c6f93b81e5b1ed5e08281d0 | 10934704f6312652722b15b0932f4e336c9f162a | Provide AVOID_UB for some bugs found in GCC compiler testing | Special thanks to @fig02 for the GCC playthrough that uncovered these, and for everyone else who looked into and discussed the problems.
The `z_message_nes.c` AVOID_UB is particularly nasty.. suggestions welcome | diff --git a/include/z64player.h b/include/z64player.h
index 277af318b2..1d5244d286 100644
--- a/include/z64player.h
+++ b/include/z64player.h
@@ -1421,7 +1421,7 @@ void Player_SetAutoLockOnActor(struct PlayState* play, Actor* actor);
s32 Player_SetBButtonAmmo(struct PlayState* play, s32 ammo);
bool Player_IsBurningS... | 2 | 2 | 0 | [{"id": "G0", "claim": "The en_dnq AVOID_UB bug comment should mention MM3D and how it proves that the out-of-bounds read was in fact an original bug.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment documenting the bug in the dog actor wo... | null |
zeldaret__mm__1800 | zeldaret/mm | 1,800 | defect | fde2b78a92ef591e992d1ba6095a83f335659695 | f37ca6dcf10e92924b1fa6a71086e79503949090 | Misc fixes | Some more misc fixes mostly revolving around disassembly, though a few other things. | diff --git a/assets/xml/boot/gfxprint.xml b/assets/xml/boot/gfxprint.xml
index 74460958493..944a1432b06 100644
--- a/assets/xml/boot/gfxprint.xml
+++ b/assets/xml/boot/gfxprint.xml
@@ -4,6 +4,6 @@
<Texture Name="sGfxPrintRainbowTLUT" OutName="gfx_print_rainbow_tlut" Format="rgba16" Width="8" Height="2" Offset=... | 1 | 1 | 1 | [{"id": "G0", "claim": "Marking the ucode text-end symbols with glabel makes gas complain because glabel emits .ent without a matching .end; the end symbols should instead be closed with endlabel and marked dlabel, which would remove the new assembler warnings CI is reporting.", "category": "correctness", "verdict": "s... | null |
zeldaret__mm__189 | zeldaret/mm | 189 | defect | c00b38558675b4440b244fbb3284ac8fca9fe814 | 360bb7a4fa0f52367a6b4fba8c65b8361f4b32b8 | Obj_mu_pict OK | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/linker_scripts/code_script.txt b/linker_scripts/code_script.txt
index 942a97fd5de..405f0b8b17f 100644
--- a/linker_scripts/code_script.txt
+++ b/linker_scripts/code_script.txt
@@ -8784,9 +8784,9 @@ SECTIONS
ovl_Obj_Mu_Pict : AT(RomLocation)
{
build/src/overlays/actors/ovl_Obj_Mu_Pict/z_o... | 8 | 8 | 0 | [{"id": "G0", "claim": "Prefer writing the flag test as `if (!(gSaveContext.weekEventReg[75] & 0x20))` rather than `== 0`, if it still matches.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Drop the redundant `!= 0` and test the cutscene check ... | null |
zeldaret__mm__286 | zeldaret/mm | 286 | defect | e6b73951c60072f6a788be77d23210c1d16c05e0 | 886bc736d58c5860c4e754d50c9677f8685efd5e | Rename yDistTo variables | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/z64actor.h b/include/z64actor.h
index 48c53e8a21c..44b59fa295b 100644
--- a/include/z64actor.h
+++ b/include/z64actor.h
@@ -171,12 +171,12 @@ typedef struct Actor {
/* 0x085 */ u8 floorBgId; // Bg ID of the floor polygon directly below the actor
/* 0x086 */ s16 wallYaw; // Y rotation of t... | 3 | 2 | 0 | [{"id": "G0", "claim": "Add the word \"Directional\" to the yDirDistToWater comment in include/z64actor.h so the meaning of the abbreviation is spelled out.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Spell out \"Directed Distance\" in the yDir... | null |
zeldaret__mm__303 | zeldaret/mm | 303 | defect | da1265f4bcaec99bc884cb9ee0a5f61535780014 | 606e9e83a2bda53d12d99c8099dd16569d4eb5fe | ShrinkWindow OK | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index 6f49a2788c6..58e3a02d749 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -2917,18 +2917,18 @@ void func_8015E7EC(GlobalContext* globalCtx, UNK_PTR puParm2);
// void func_80160B40(void);
// void func_80160B80(void);
// void func_80160BC0(void)... | 5 | 3 | 0 | [{"id": "G0", "claim": "The file doc comment should give a second example with a different sized letter box (e.g. talking with an NPC), since camera-specific shrink window macros are on the way.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In Sh... | null |
zeldaret__mm__320 | zeldaret/mm | 320 | defect | da1265f4bcaec99bc884cb9ee0a5f61535780014 | 9650416deafbf4e43ea210034f215b7b81f896cc | En_Zot | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index 6f49a2788c6..4995d565fb6 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -807,8 +807,8 @@ s32 func_800B863C(Actor* actor, GlobalContext* globalCtx);
u32 func_800B867C(Actor* actor, GlobalContext* globalCtx);
UNK_TYPE4 func_800B86C8(Actor* acto... | 8 | 7 | 0 | [{"id": "G0", "claim": "The new check should use the PLAYER_FORM_ZORA enum instead of the magic value 2 when comparing gSaveContext.playerForm in func_80B97110.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new check should use the PLAYER_F... | null |
zeldaret__mm__582 | zeldaret/mm | 582 | defect | 6069a1585f34d46178b38554c8d547a266bb4123 | 1c9d2a76a4c89951a5c42bcd2c158b85bf877eb6 | Decompile and partially document some functions in z_play | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index 30f577b50b9..b873383ca37 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -2891,21 +2891,22 @@ void func_801699D4(GlobalContext* globalCtx, s16 arg1, s16 arg2);
void func_80169AFC(GlobalContext* globalCtx, s16 camId, s16 arg2);
// void func_801... | 13 | 10 | 0 | [{"id": "G0", "claim": "The functions renamed by this pull request should be added to tools/actorfixer.py's symbol map.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Per the repo's dominant convention, scene identification should use `id` rathe... | null |
zeldaret__mm__606 | zeldaret/mm | 606 | defect | 816971d98cc6d1fcdffce3db6e16a1ef805567f6 | bbef0f206b8f456c129f86b1ed7771e62d2cdf5f | En_Kendo_Js | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index 3c20bca11cb..3396cf156e5 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -2035,8 +2035,8 @@ void func_801229A0(GlobalContext* globalCtx, Player* player);
// void func_80122ED8(void);
// void func_80122EEC(void);
void func_80122F28(Player* pla... | 3 | 3 | 0 | [{"id": "G0", "claim": "Replace the magic case values 3, 1 and 2 in the playerForm switch with the named PLAYER_FORM_DEKU/GORON/ZORA constants.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested `else { if (...) {...} }` mask branch can b... | null |
zeldaret__mm__652 | zeldaret/mm | 652 | defect | 40d1bc00fea04b73040e3998d44b9aa054f27597 | f9f8f178e033400e275ec1843a832a6a05a16c45 | En_Insect | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/spec b/spec
index 56f6db7da7c..2071a24dc37 100644
--- a/spec
+++ b/spec
@@ -1357,8 +1357,7 @@ beginseg
name "ovl_En_Insect"
compress
include "build/src/overlays/actors/ovl_En_Insect/z_en_insect.o"
- include "build/data/ovl_En_Insect/ovl_En_Insect.data.o"
- include "build/data/ovl_En_In... | 4 | 3 | 0 | [{"id": "G0", "claim": "A blank line should separate the `f32 clamped = CLAMP_MAX(...)` declaration from the `this->skelAnime.playSpeed = clamped;` assignment in func_8091ACC4.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `s32 sp38` temp i... | null |
zeldaret__mm__661 | zeldaret/mm | 661 | defect | 6e62ae4075a5f5b76ccd3265204682f3474a5735 | 11e1423a1b636bc22d90d96758bdd588f44589bb | River_Sound OK and Documented + River_Sound Related `z_actor`/`Audio` Functions | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index 5b7da53e44f..93ded954e66 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -777,7 +777,7 @@ void Actor_DrawDoorLock(GlobalContext* globalCtx, s32 frame, s32 type);
void Actor_SetColorFilter(Actor* actor, u16 colorFlag, u16 colorIntensityMax, u16 ... | 5 | 1 | 0 | [{"id": "G0", "claim": "The hand-built Audio_QueueSeqCmd bit-packed argument could be extracted into a macro (or the change deferred until the command semantics are better understood).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The params ch... | null |
zeldaret__mm__662 | zeldaret/mm | 662 | defect | 6e62ae4075a5f5b76ccd3265204682f3474a5735 | a427a3ccc028c87d633f9cbdae4549b55a8f03a5 | En_Gakufu OK and Documented + Related Audio Functions | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/assets/xml/overlays/ovl_En_Gakufu.xml b/assets/xml/overlays/ovl_En_Gakufu.xml
new file mode 100644
index 00000000000..bf0349a7d07
--- /dev/null
+++ b/assets/xml/overlays/ovl_En_Gakufu.xml
@@ -0,0 +1,8 @@
+<Root>
+ <File Name="ovl_En_Gakufu" BaseAddress="0x80AFC960" RangeStart="0x8D0" RangeEnd="0x950">
+... | 24 | 22 | 0 | [{"id": "G0", "claim": "The new ovl_En_Gakufu XML symbols should use `Index` rather than the `Idx` abbreviation, since the project uses `Index`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The forward declaration of AudioOcarina_MemoryGameGen... | null |
zeldaret__mm__680 | zeldaret/mm | 680 | defect | fa069535d0fe06966dec592c592b8a292aef0628 | 25b38e05789ace218983beac97956a6c1458050f | ObjectFsn documented | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/assets/xml/objects/gameplay_keep.xml b/assets/xml/objects/gameplay_keep.xml
index a6504f2f377..4ebadbd10dd 100644
--- a/assets/xml/objects/gameplay_keep.xml
+++ b/assets/xml/objects/gameplay_keep.xml
@@ -870,9 +870,9 @@
<Texture Name="gameplay_keep_Tex_01F200" OutName="tex_01F200" Format="i8" Widt... | 2 | 1 | 0 | [{"id": "G0", "claim": "Because of the bug in Fsn's skeleton the PR has to add 1 to FSN_LIMB_MAX at every place it is used, and the author asks whether to keep that handling or do something different such as adding a special define.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"... | null |
zeldaret__mm__689 | zeldaret/mm | 689 | defect | 91b983776e33948ebe0f14eb358bc1595c2c2251 | 93e46dd6fb58d5a08d99bcd3c27c2d9a4c1977b4 | SubS ActorPathing | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index f652786718d..553b987cca4 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -2527,12 +2527,12 @@ Actor* SubS_FindActor(GlobalContext* globalCtx, Actor* actorListStart, u8 actorC
s32 SubS_FillLimbRotTables(GlobalContext* globalCtx, s16* limbRotTabl... | 2 | 2 | 0 | [{"id": "G0", "claim": "It would be worth creating a dedicated subs.h/z64subs.h header and moving all the SubS-specific declarations there instead of keeping them in z64.h.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The actor-specific callba... | null |
zeldaret__mm__776 | zeldaret/mm | 776 | defect | 54a4d1eb1202c912f6c3b269e6223ea189e7c42c | 161596473d64bb62856c010edf03ccbd839658ab | `z_fcurve_data` OK, match last function in `z_fcurve_data_skelanime`, document SkelCurve system | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/include/functions.h b/include/functions.h
index 79d2f0d5596..f5a1ad3e946 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -1474,14 +1474,6 @@ s16 ActorCutscene_GetCurrentCamera(s16 index);
s16 func_800F21CC(void);
s32 func_800F22C4(s16 param_1, Actor* actor);
void ActorCutscene_SetReturnCam... | 7 | 5 | 0 | [{"id": "G0", "claim": "The CurveAnimationHeader size comment should read `size = 0x10` (not `size 0x10`), and the SkelCurveLimb size comment is wrong — the struct is 0xC bytes, not `>= 0x8`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cryp... | null |
zeldaret__mm__781 | zeldaret/mm | 781 | defect | 15dfaf0862e761b97edcda9c1dcc01639cfba5f4 | 5087cb7880bd82693354313c58cc665bfa7e9e19 | Enable full IDO warnings | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/Makefile b/Makefile
index 7326b88a737..3efc1c04b3a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ WERROR ?= 0
# Keep .mdebug section in build
KEEP_MDEBUG ?= 0
# Disassembles all asm from the ROM instead of skipping files which are entirely in C
-FULL_DISASM ?= 0
+FULL_DISASM ?= 1
ifeq ($(NON_... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR should not make full disassembly (FULL_DISASM=1) the default; a full Discord discussion should happen first, and the Jenkinsfile should be adjusted to pass FULL_DISASM=0 so Jenkins does not fully disassemble each build.", "category": "design", "verdict": "supported", "priority": "P2", "sc... | null |
zeldaret__mm__783 | zeldaret/mm | 783 | defect | 50c5ab0fc7f0941092e3671ae7e92f6ff1d892a3 | d4bff0d3d1154ec07bdbee264885f66695e411d0 | Bg_Open_Spot OK | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/spec b/spec
index 34a0c96e7a9..483eb168a52 100644
--- a/spec
+++ b/spec
@@ -3447,8 +3447,7 @@ beginseg
name "ovl_Bg_Open_Spot"
compress
include "build/src/overlays/actors/ovl_Bg_Open_Spot/z_bg_open_spot.o"
- include "build/data/ovl_Bg_Open_Spot/ovl_Bg_Open_Spot.data.o"
- include "build... | 12 | 12 | 0 | [{"id": "G0", "claim": "The file description comment should capitalise Skull Kid, Link and Deku Scrub as in the suggestion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "func_80ACB2B0 is in effect the draw function and should be named BgOpenSpot_... | null |
zeldaret__mm__814 | zeldaret/mm | 814 | defect | 02f4785df83d2d97fff4b76cb4c4ff890cb0b7e0 | b777b86b14c29735f24795b1d77397440372097b | Sob1 Objects Documented | Before opening this PR, ensure the following:
- `./format.sh` was run to apply standard formatting.
- `make` successfully builds a matching ROM.
- No new compiler warnings were introduced during the build process.
- Can be verified locally by running `tools/warnings_count/check_new_warnings.sh`
- New variables... | diff --git a/assets/xml/objects/gameplay_keep.xml b/assets/xml/objects/gameplay_keep.xml
index 41b144120f5..e31f045d354 100644
--- a/assets/xml/objects/gameplay_keep.xml
+++ b/assets/xml/objects/gameplay_keep.xml
@@ -1001,7 +1001,7 @@
<Limb Name="gameplay_keep_Standardlimb_02F004" Type="Standard" Offset="0x2F0... | 8 | 7 | 1 | [{"id": "G0", "claim": "ENSOB1_LIMB_MAX should cast the enum values once at the end of the expression instead of casting each individually.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The BombShopkeeper animation enum values are too long and ... | null |
zeldaret__mm__879 | zeldaret/mm | 879 | defect | 158d1b26b0455c2214741ebc4406130a559b8f8f | 84159f6a2fc26ee40edce9a0e18ad8e551a62d62 | object_rotlift documented, various cleanup of Deku Flower stuff, finish documentation of ObjRotlift | Kind of a grab-bag PR, but it all started when Elliptic was looking at the ObjRotlift PR and said I should make a params-packing macro for Deku Flowers. I did so, and while I was in there, I cleaned up ObjEtcetera a bit, since it one of my very first actors. I applied that macro to all actors that spawned Deku Flowers,... | diff --git a/assets/xml/objects/gameplay_keep.xml b/assets/xml/objects/gameplay_keep.xml
index e1a35f83b69..44915f00c38 100644
--- a/assets/xml/objects/gameplay_keep.xml
+++ b/assets/xml/objects/gameplay_keep.xml
@@ -786,17 +786,17 @@
<Texture Name="gPinkDekuFlowerBaseLeafTex" OutName="pink_deku_flower_base_le... | 1 | 1 | 0 | [{"id": "G0", "claim": "The DEKU_FLOWER_PARAMS macro should parenthesize its type parameter: #define DEKU_FLOWER_PARAMS(type) (((type) << 7) & 0xFF80).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeldaret__mm__910 | zeldaret/mm | 910 | defect | 45eed680d613642bc3e1591f95902f6d57e0f8e6 | 95f8888c603820881bfb44c121e140f0dc0b5fc5 | En_Bigpamet | Thanks [tom-overton](https://github.com/tom-overton) for matching the last func. | diff --git a/spec b/spec
index 251581be376..8497bee8603 100644
--- a/spec
+++ b/spec
@@ -2596,8 +2596,11 @@ beginseg
name "ovl_En_Bigpamet"
compress
include "build/src/overlays/actors/ovl_En_Bigpamet/z_en_bigpamet.o"
- include "build/data/ovl_En_Bigpamet/ovl_En_Bigpamet.data.o"
+#ifdef NON_MATCHING
+ ... | 17 | 15 | 1 | [{"id": "G0", "claim": "The two skeletons appear crossed: each SkelAnime is initialised with the other skeleton's limb max and drawn with the other skeleton's limb-draw callbacks and enums, so the limb max should match the skeleton.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
zeldaret__mm__924 | zeldaret/mm | 924 | defect | 45eed680d613642bc3e1591f95902f6d57e0f8e6 | 3224f95784194b8bc7aed4ce0ef21af39129b664 | EnBat OK and documented | "Mom, can we have Keese?"
"We have Keese at home"
Keese at home:
Actually this is more like a cut-down version of a Guay. If you were wondering how you can have 20 of these in one room Beneath the Graveyard, the answer is by doing manual animation using displaylists instead of SkelAnime, which is actually surprisi... | diff --git a/assets/xml/objects/object_bat.xml b/assets/xml/objects/object_bat.xml
index 35a5c158d97..411551968ab 100644
--- a/assets/xml/objects/object_bat.xml
+++ b/assets/xml/objects/object_bat.xml
@@ -1,17 +1,20 @@
<Root>
+ <!-- Displaylists for ovl_En_Bat (Bad Bats) -->
<File Name="object_bat" Segment="6... | 11 | 9 | 0 | [{"id": "G0", "claim": "The XML comment added at the top of object_bat.xml should not be worded as if it applies to the whole file, since the file also contains two textures and not just displaylists.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
zeldaret__mm__932 | zeldaret/mm | 932 | defect | fda5da2500f377c2107a296031c46f78cc8ac90a | 5c561b5170908423a67ce0b2c34c525653d356cf | Decompile/Document bgCam and actorCsCam (combination of Camera/BgCheck/Play) | This decompiles and documents two structures that are near identical: `bgCamInfo` and `actorCsCamInfo`. Due to their parallels, I'd like to find a name that encompasses both, but it's tricky without being too general (`CamInfo`/`CamData`), so I've kept the naming separate for now. This leads to some verbose function na... | diff --git a/include/functions.h b/include/functions.h
index c12db921b1b..59a7c5fa8d9 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -893,11 +893,15 @@ void DynaPoly_UpdateBgActorTransforms(PlayState* play, DynaCollisionContext* dyn
void CollisionHeader_SegmentedToVirtual(CollisionHeader* header);
void... | 5 | 4 | 0 | [{"id": "G0", "claim": "Camera_IsSwimming's magic return values (999, the player-state flag, 0) look odd and should get named defines or an enum, and the `Is` name should be reconsidered if the values are not purely boolean.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
zeldaret__mm__944 | zeldaret/mm | 944 | defect | 03a7e00c4b43c195c5f7556109c98007a5f31a87 | f1eed2c838f92ab3019147dfe3357f505cf86578 | General Cleanup 7 | Some more cleanup around the code base. As part of this, fixes the two incorrect render mode defines mentioned in https://github.com/zeldaret/oot/pull/1313. | diff --git a/src/boot_O2/gfxprint.c b/src/boot_O2/gfxprint.c
index 557887abd42..b5267582948 100644
--- a/src/boot_O2/gfxprint.c
+++ b/src/boot_O2/gfxprint.c
@@ -83,7 +83,7 @@ void GfxPrint_PrintCharImpl(GfxPrint* this, u8 c) {
if (this->flags & GFXP_FLAG_RAINBOW) {
gDPSetTextureLUT(this->dList++, ... | 4 | 2 | 1 | [{"id": "G0", "claim": "Instead of adding the MsgEventFunc typedef inside z_en_shn.h, the PR should create a dedicated header for it (containing this typedef and the final function of the file), since the PR author said several files follow this pattern wrongly.", "category": "design", "verdict": "uncertain", "priority... | null |
zeldaret__oot__2167 | zeldaret/oot | 2,167 | defect | 2056ae5f1a0ddb618997e143a9d0ae9fc7d909eb | 39a8c2d2f7df4688d19b7fd7f76a7c462efdebbb | Player Docs - Parallel | this is tbh most of the parallel stuff on players end, camera will need some updates eventually tho | diff --git a/include/z64player.h b/include/z64player.h
index c7b6ae48d59..0a1b4225906 100644
--- a/include/z64player.h
+++ b/include/z64player.h
@@ -665,7 +665,7 @@ typedef struct WeaponInfo {
#define PLAYER_STATE1_14 (1 << 14)
#define PLAYER_STATE1_15 (1 << 15)
#define PLAYER_STATE1_16 (1 << 16)
-#define PLAYER_STA... | 1 | 1 | 0 | [{"id": "G0", "claim": "Attach a comment to the newly named PLAYER_STATE1_PARALLEL macro (e.g. that it is tied to CAM_MODE_Z_PARALLEL and is the camera/control system used when holding Z without a lock-on target) so its meaning shows on IDE hover.", "category": "documentation", "verdict": "supported", "priority": "P2",... | null |
zeldaret__oot__2187 | zeldaret/oot | 2,187 | defect | d9af701b88db6219954939e47c3eb0f4d1df8051 | 7bbe39ca450a4c7fc7c9eb999a244e7ef7b626eb | [ntsc-1.2] Match ntsc-1.2 BSS and add to CI | I shuffled some `g` and `s` names around based on evidence from bss ordering. And the size of `D_80858AD8` in z_player.c was wrong, apparently there's some padding after it in other versions but not in ntsc-1.2. | diff --git a/Jenkinsfile b/Jenkinsfile
index 2cf1549e88b..8a8345e9928 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -26,71 +26,69 @@ pipeline {
}
}
}
- stage('Build ntsc-1.2, check disasm metadata') {
- steps {
- sh 'ln -s /usr/local/etc/roms/oot-n... | 2 | 2 | 2 | [{"id": "G0", "claim": "The changed `static Vec3s D_80858AD8[24]` buffer may not have enough usable bytes for `LinkAnimation_BlendToMorph`/`AnimTaskQueue_AddLoadPlayerFrame` after 16-byte alignment under GCC's possible 2-byte alignment (needs 134 bytes, can have as few as 132), so the declaration should be changed (e.g... | null |
zeldaret__oot__2193 | zeldaret/oot | 2,193 | defect | cb7fe4943aa1628bd0bc690c65edfd6cd2898c3b | 5c27df2386ae88675ad9b4c57cb73448ebf1447b | Hostile Lock-On | This system only gets worse the deeper we go so buckle in folks.
Ill take care of `Actor_IsLockedOn` and `Actor_OtherIsLockedOn` some other time. | diff --git a/include/functions.h b/include/functions.h
index f11bea990b7..903af90b6f9 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -792,7 +792,7 @@ void Path_CopyLastPoint(Path* path, Vec3f* dest);
void Player_SetBootData(PlayState* play, Player* this);
int Player_InBlockingCsMode(PlayState* play, Pl... | 3 | 2 | 0 | [{"id": "G0", "claim": "After renaming PLAYER_STATE1_4 to PLAYER_STATE1_HOSTILE_LOCK_ON, the functions Actor_IsLockedOn and Actor_OtherIsLockedOn no longer appear to be appropriately named.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc ... | null |
zeldaret__oot__2222 | zeldaret/oot | 2,222 | defect | f9d892a2aee83cdd74cd3ffc3adc9a03e6460ae7 | 8d498fbd1929dc262d9b979da67cac7fc0a4203a | create ucode_disas.h | Contributions made in this pr are licensed under CC0 | diff --git a/include/functions.h b/include/functions.h
index 82598e415c4..e146c893019 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -940,11 +940,6 @@ void* DebugArena_ReallocDebug(void* ptr, u32 newSize, const char* file, int line
void DebugArena_FreeDebug(void* ptr, const char* file, int line);
void ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The UCODE_* constants in include/ucode_disas.h should be turned into an enum instead of #defines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeldaret__oot__2234 | zeldaret/oot | 2,234 | defect | bccb219ea3c8542c160706de70ad540f0822d091 | 0677f6ac00adbbfd0baa9f7570e61382aca0a33a | [headers] Move libultra protos to ultra64.h (as a temporary measure) | This will do to debloat functions.h and for includes until someone cleans up libultra headers for good. | diff --git a/include/functions.h b/include/functions.h
index 1cc6278cab5..e3216f105cc 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -33,89 +33,6 @@ void LogUtils_LogThreadId(const char* name, int line);
#endif
void LogUtils_HungupThread(const char* name, int line);
void LogUtils_ResetHungup(void);
-v... | 1 | 1 | 0 | [{"id": "G0", "claim": "The ifdeffed osInitialize macro block in include/ultra64.h should be visually separated from the surrounding one-line declarations.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
zeldaret__oot__2244 | zeldaret/oot | 2,244 | defect | d80e5383709ce77ac94eb7dbb40f906ad44af8a2 | 0e03359e5c6b830ae4d7f820b38bed03cc8017fc | [ntsc-1.0/1.1] Match "game engine" files | Featuring a very cursed `else if` in z_construct.c. I also changed ifdef-ing out a brace in z_message.c because it made the formatter confused. | diff --git a/src/code/z_actor.c b/src/code/z_actor.c
index 39c1ecdea00..7a8579be1c9 100644
--- a/src/code/z_actor.c
+++ b/src/code/z_actor.c
@@ -3560,7 +3560,11 @@ s32 BodyBreak_SpawnParts(Actor* actor, BodyBreak* bodyBreak, PlayState* play, s1
mtx->zw, 0, 0, objectS... | 5 | 5 | 0 | [{"id": "G0", "claim": "The start-button texture rectangle should use the already-named registers R_START_BTN_X and R_START_BTN_Y instead of ZREG(68)/ZREG(69).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The EVENT_INF printf should be moved i... | null |
zeldaret__oot__2262 | zeldaret/oot | 2,262 | defect | 1d0e243806ffb9e56b1362dba8c82cc2ccb9b823 | f0abc2698076a5598fa56e2baeca071a24d03081 | Document `Player_ChooseNextIdleAnim` | This one is a little complicated, tried my best.
Its prob easier to read `Player_ChooseNextIdleAnim` on its own and not in the diff view | diff --git a/include/z64player.h b/include/z64player.h
index d717903483f..4215d25dc2b 100644
--- a/include/z64player.h
+++ b/include/z64player.h
@@ -70,6 +70,12 @@ typedef enum PlayerEnvHazard {
/* 0x4 */ PLAYER_ENV_HAZARD_UNDERWATER_FREE
} PlayerEnvHazard;
+typedef enum PlayerIdleType {
+ /* -0x1 */ PLAYER_... | 7 | 7 | 0 | [{"id": "G0", "claim": "The name \"Special\" (and \"common special\") for this category of idle animations is wrong or confusing, and the naming should be changed (\"fidget\" was suggested).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The numbered tem... | null |
zeldaret__oot__2278 | zeldaret/oot | 2,278 | defect | df1815cf8f0d83bf02cd7462830747ed826ecc94 | bebf75eb2a96dc9a45ed2837b905d39f02649945 | Document z_horse.c and related actors | Contributions made in this pr are licensed under CC0 | diff --git a/include/functions.h b/include/functions.h
index 292d8bde5d4..047671bcd37 100644
--- a/include/functions.h
+++ b/include/functions.h
@@ -71,13 +71,6 @@ void CutsceneFlags_UnsetAll(PlayState* play);
void CutsceneFlags_Set(PlayState* play, s16 flag);
void CutsceneFlags_Unset(PlayState* play, s16 flag);
s32... | 10 | 8 | 0 | [{"id": "G0", "claim": "The comment on R_DEBUG_FORCE_EPONA_OBTAINED is missing a space between `//` and `If`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The name Actor_SetCameraHorseSetting is awkward (\"set\" appears twice and \"camera horse\... | null |
zeldaret__oot__2286 | zeldaret/oot | 2,286 | defect | 5b27899b9fea7cc704cee9c0e740c00fbf24ddab | 4049e33ba96339316332a35a7387f4788dc3c354 | Document `Save.cutsceneIndex` and adjacent data / code | while studying the game logic flow, i saw there's a pattern between
- `Save.entranceIndex`
- `Save.cutsceneIndex`
- `SaveContext.sceneLayer`
but values weren't yet described. so, it's time to cleanup my notes and shape them in a proper PR.
~(UPD: not anymore) it's a WIP, but i'll start with a draft for visibilit... | diff --git a/include/z64cutscene.h b/include/z64cutscene.h
index d73cb6a47ab..ab06420f445 100644
--- a/include/z64cutscene.h
+++ b/include/z64cutscene.h
@@ -344,6 +344,42 @@ typedef enum CutsceneDestination {
/* 0x77 */ CS_DEST_ZELDAS_COURTYARD_RECEIVE_LETTER
} CutsceneDestination;
+/*
+correlation with `enum S... | 11 | 8 | 0 | [{"id": "G0", "claim": "The 0xFFEF sentinel value needs a clearer, more explicit name (it was CS_INDEX_MANUAL, then CS_INDEX_NEXT_EMPTY; cadmic proposed CS_INDEX_NO_NEXT_CUTSCENE).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 0x8000 value should no... | null |
zeldaret__oot__2300 | zeldaret/oot | 2,300 | defect | 5881164453ddd540e120669eb19bf9cdd3136b78 | dc6f2bc383633d8666c89904287c3799ff926f55 | Document Hookshot Attachment | This is a bit less straightforward than arrow attachment, for example.
After the hookshot attaches it may pull player toward the attached actor, or pull the actor to the player. This is determined by `ACTOR_FLAG_9` and `ACTOR_FLAG_10`, which will be in a followup PR. | diff --git a/include/z64actor.h b/include/z64actor.h
index 04217cbdcb3..1e81bab9b7f 100644
--- a/include/z64actor.h
+++ b/include/z64actor.h
@@ -153,8 +153,13 @@ typedef struct ActorShape {
// Actor will not shake when a quake occurs
#define ACTOR_FLAG_IGNORE_QUAKE (1 << 12)
+// The hookshot is currently attached t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The note about the missing NULL-hookshot check should be placed as a comment above the function, so the note shows when hovering the function.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
zeldaret__oot__2353 | zeldaret/oot | 2,353 | defect | c57dff4f78dbeba3defde8b9727628e3abb03c52 | 301fcf63d4239d76651d858b621e6dd0e0dbb93a | Move build.c definitions to the makefile, introduce and use libultra version defines in libultra instead of PLATFORM defines | Versions to use in libultra diffs were mostly sourced from ultralib. There were some diffs in initialize.c that are ultralib currently attributes to libultra version J, but OoT uses libultra version I, so I used version I patch 1 for these instead.
| diff --git a/Makefile b/Makefile
index 1e304a7744a..2d20e75ace6 100644
--- a/Makefile
+++ b/Makefile
@@ -66,60 +66,109 @@ ifeq ($(VERSION),ntsc-1.0)
REGION ?= JP
PLATFORM := N64
DEBUG_FEATURES ?= 0
+ BUILD_DATE := 98-10-21
+ BUILD_TIME := 04:56:31
+ REVISION := 0
else ifeq ($(VERSION),ntsc-1.1)
REGIONAL... | 7 | 4 | 0 | [{"id": "G0", "claim": "Set the libultra version per platform in the Makefile (e.g. `LIBULTRA_VERSION := J` for N64) instead of encoding it as major+minor (I revision 1), which cadmic suggested is more natural if OoT's libultra is treated as \"a mix of I and J\".", "category": "design", "verdict": "opposed", "priority"... | null |
zeldaret__oot__2411 | zeldaret/oot | 2,411 | defect | bd606ba03850a2baf29690818a6d1f9e9ef1bfc2 | 1ed2b25212850b75aae2544cfc1b104b1565929b | [iQue] Match remaining libultra/io files | Some files changed in this PR aren't actually included in the iQue version but have changes in full iQue libultra. Without these changes a custom build that included them in the iQue version would not work when ran on an iQue Player.
| diff --git a/include/ultra64/controller.h b/include/ultra64/controller.h
index 4ce047a2013..2dcd038df45 100644
--- a/include/ultra64/controller.h
+++ b/include/ultra64/controller.h
@@ -17,6 +17,7 @@
#define CONT_CMD_WRITE_MEMPACK 3
#define CONT_CMD_READ_EEPROM 4
#define CONT_CMD_WRITE_EEPROM 5
+#define CONT_CMD_CHAN... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added CONT_CMD_CHANNEL_RESET define uses two spaces before the value where the surrounding defines use one.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR-changed files that are not linked into iQue builds shou... | null |
zeldaret__oot__2414 | zeldaret/oot | 2,414 | defect | c6cceea85b1f064817482ee69214a25d9346bf50 | 84f96ea2298ed260387019435daae4152cf08b4c | [iQue] Match remaining libultra/os files | Most matched immediately by setting OPTFLAGS to -O0 | diff --git a/Makefile b/Makefile
index 8eb8b84ce71..178def9a442 100644
--- a/Makefile
+++ b/Makefile
@@ -214,7 +214,7 @@ else ifeq ($(PLATFORM),GC)
LIBULTRA_VERSION := L
LIBULTRA_PATCH := 0
else ifeq ($(PLATFORM),IQUE)
- CPP_DEFINES += -DPLATFORM_N64=0 -DPLATFORM_GC=0 -DPLATFORM_IQUE=1 -DBBPLAYER
+ CPP_DEFINES... | 3 | 3 | 0 | [{"id": "G0", "claim": "The values of the Box ID macro definitions in include/ultra64/bcp.h should be aligned (nit).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The '//! @bug Most games do not have permission to use GPIO so often cannot corre... | null |
zeldaret__oot__2417 | zeldaret/oot | 2,417 | defect | a3c3c38fead604508fef7626fa8ae494d67df52c | 38db5e93fcf86c1d55b1c62c1fa2f4b5f8e77966 | [iQue] Match remaining src/boot files | Notes:
* I couldn't get the normal function signatures for osSyncPrintf and friends to match with either IDO or GCC
* GCC seems pickier about when strings show up in .rodata, `(void)"link_animetion"` doesn't seem to work
Requires #2398 to fully match | diff --git a/Makefile b/Makefile
index b255e48e0f3..44cd2803fc4 100644
--- a/Makefile
+++ b/Makefile
@@ -582,6 +582,7 @@ ifeq ($(PLATFORM),IQUE)
# Some files are compiled with EGCS on iQue
EGCS_O_FILES += $(BUILD_DIR)/src/boot/boot_main.o
EGCS_O_FILES += $(BUILD_DIR)/src/boot/idle.o
+EGCS_O_FILES += $(BUILD_DIR)/src... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use -funsigned-char instead of changing DmaMgr_StrCmp to take const u8* parameters, so strings can keep the char type.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Put iQue before Gamecube in the LN3 macro argument order so the ... | null |
zeldaret__oot__2465 | zeldaret/oot | 2,465 | defect | ae89a8e47b977728407b20423a4472023f94e65b | 1a96b2ea67d0a84425c08a3fd6b5b9ef11da5af0 | Cleanup colliders struct members 2 | Continuation of #2462
This focuses mostly on `JntSph` colliders, standardizing on either `collider`+`colliderElements` (sometimes used if it's the actor's sole collider) or `colliderJntSph`+`colliderJntSphElements`
Some colliders are also named, like "head" in `headCollider`+`headColliderElements`: then the name is... | diff --git a/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c b/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c
index cd7d83e0f1c..5b1c869eac0 100644
--- a/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c
+++ b/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c... | 2 | 2 | 1 | [{"id": "G0", "claim": "Rename the EnBigokuta struct member `elements[1]` (suggested: `colliderJntSphElements[1]`) to a name consistent with the pull request's collider renaming convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.