Giter Club home page Giter Club logo

Comments (6)

sunverwerth avatar sunverwerth commented on April 27, 2024

Absolutely.

from devilution.

 avatar commented on April 27, 2024

Eventually, but not a priority. I've tried to only add comments where there are decompiler errors, to help make them easier to spot. I'd prefer to keep it this way for awhile so self-explanatory functions don't get clogged. E.g.

if( leveltype == LT_CAVES ) // if the level type is in the caves
{
    if( player == myplr ) // if the current player is my player
    {
        CastSpell(SPELL_TOWNPORTAL); // cast town portal
        PlaySFX(SOUND_PORTAL); // play town portal sound

from devilution.

MonkeyWeiti avatar MonkeyWeiti commented on April 27, 2024

As this is C++ and not C# I would still stick to Dennis Doomens Guidlines for commenting code AV2310 & AV2316

https://csharpcodingguidelines.com/documentation-guidelines/

from devilution.

 avatar commented on April 27, 2024

I would like to see comments on address spaces in the original exe . this will make it easier for me when I say need to look at the original function in asm.

from devilution.

mewmew avatar mewmew commented on April 27, 2024

I would like to see comments on address spaces in the original exe . this will make it easier for me when I say need to look at the original function in asm.

This was part of the original source (as taken from the decompiler), but was removed in rev 49a6f4f and superseded by Support/surgery.xls.

I wouldn't mind if these addresses were added again to the source code to facilitate reversing. Later when we hit 1.0 they can be removed. What do you think @galaxyhaxz?

from devilution.

 avatar commented on April 27, 2024

Yeah it might be a good idea to add those back at least to the .h files. We'll add comments later on as everything is gradually cleaned up.

from devilution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.