Skip to content

sync table of ownage with Devilution master #12

@mewmew

Description

@mewmew

I wrote a little tool to diff the function name usage in Devilution vs. those defined in the table of ownage.

Most names are correct, but there are ~80 or so that needs to be update in surgery/function.md so they have the same name as that used in Devilution.

Note, a few of these may be false positives (e.g. CopyInt) as I ran the tool on DevilutionX/Source and those functions were introduced in DevilutionX for save file handling.

A set of function names related to rendering were recently updated as part of the cleanup in diasurgical/devilution#1802, so they should be easy to sync.

Oh, and I just realized, that a few functions are added to Devilution from the debug release of Diablo, so those will show up in the list as I only checked the v1.09b addresses of the surgery/functions.md table.

The list is as follows:

  • assert_fail
  • GiveGoldCheat (only in beta)
  • StoresCheat (only in beta)
  • TakeGoldCheat (only in beta)
  • MaxSpellsCheat (only in beta)
  • SetSpellLevelCheat
  • SetAllSpellsCheat
  • PrintDebugPlayer
  • PrintDebugQuest
  • PrintDebugMonster
  • GetDebugMonster
  • NextDebugMonster
  • diablo_init
  • diablo_splash
  • CelBlit
  • CelDraw
  • CelBlitFrame
  • CelClippedDraw
  • CelClippedBlit
  • CelBlitLight
  • CelBlitLightTrans
  • CelDrawLight
  • CelClippedDrawLight
  • CelClippedBlitLightTrans
  • CelDrawLightRed
  • CelBlitSafe
  • CelClippedDrawSafe
  • CelClippedBlitSafe
  • CelBlitLightSafe
  • CelBlitLightTransSafe
  • CelDrawLightSafe
  • CelClippedBlitLightTransSafe
  • CelDrawLightRedSafe
  • CelBlitWidth
  • CelBlitOutline
  • CelBlitOutlineSafe
  • Cl2Draw
  • Cl2Blit
  • Cl2DrawOutline
  • Cl2BlitOutline
  • Cl2DrawLightTbl
  • Cl2BlitLight
  • Cl2DrawLight
  • Cl2DrawSafe
  • Cl2BlitSafe
  • Cl2DrawOutlineSafe
  • Cl2BlitOutlineSafe
  • Cl2DrawLightTblSafe
  • Cl2BlitLightSafe
  • Cl2DrawLightSafe
  • ToggleLighting (only in beta)
  • CopyBytes (only in DevilutionX, as part of new save handling)
  • CopyChar (only in DevilutionX, as part of new save handling)
  • CopyShort (only in DevilutionX, as part of new save handling)
  • CopyShorts (only in DevilutionX, as part of new save handling)
  • CopyInt (only in DevilutionX, as part of new save handling)
  • CopyInts (only in DevilutionX, as part of new save handling)
  • CopyInt64 (only in DevilutionX, as part of new save handling)
  • LoadItemData
  • LoadItems
  • SaveItems
  • mpqapi_store_default_time
  • On_CHEAT_SPELL_LEVEL
  • On_DEBUG
  • dumphist
  • DeleteObject_ (present in functions.md but without the _ suffix)
  • AddBloodFtn
  • AddGoatShrine
  • AddCauldron
  • AddMurkyFountain
  • AddTearFountain
  • PM_DoStand
  • RenderLine
  • RenderTile
  • ScrollView (only in beta)
  • EnableFrameCount (only in beta)
  • DrawFPS (only in beta)
  • SHA1CircularShift
  • tmsg_start
  • town_special_lower
  • town_special_upper

P.S. if someone is curious, I can share the horrid tool that was used to produce this list :p I'm learning how to parse C++ as I go :)

(cc: @AJenbo as you are currently not listed as a watcher for updates to this repo ^^)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions