glacier-modding / RPKG-Tool

The RPKG tool allows for easy (un)packing of files from the Glacier Engine RPKG file format! Hitman 3 has the most support.
https://glaciermodding.org/rpkg/
Other
47 stars 9 forks source link

[RPKG] Reduce nesting in functions (first pass) #50

Closed RDIL closed 2 years ago

RDIL commented 2 years ago

This looks like a big PR, but really isn't.

The goal is to reduce nesting where possible by changing code from this format:

void hello()
{
    if (file_exists) {
        // all the logic
    } else { LOG_AND_EXIT("uh oh"); }
}

To this format:

void hello()
{
    ASSERT_EXISTS()
    // all the logic
}

Why?

github-actions[bot] commented 2 years ago

Download the artifacts for this pull request: