Descent3 icon indicating copy to clipboard operation
Descent3 copied to clipboard

DallasFuncs pokes

Open MaddTheSane opened this issue 1 year ago • 6 comments

Pull Request Type

  • [ ] GitHub Workflow changes
  • [ ] Documentation or Wiki changes
  • [ ] Build and Dependency changes
  • [X] Runtime changes
    • [ ] Render changes
    • [ ] Audio changes
    • [ ] Input changes
    • [ ] Network changes
    • [X] Other changes

Description

This sets all the functions and variables in DallasFuncs.cpp as static, as well as marking them all with [[maybe_unused]]. marking functions and variables as static means that they won't be exported as public symbols by the included source files, and [[maybe_unused]] is because not every plug-in uses all the functions in DallasFuncs.cpp. As DallasFuncs.cpp is included in the scripts files themselves and not build individually, this shouldn't cause any issues.

Checklist

  • [X] I have tested my changes locally and verified that they work as intended.
  • [X] I have documented any new or modified functionality.
  • [X] I have reviewed the changes to ensure they do not introduce any unnecessary complexity or duplicate code.
  • [X] I understand that by submitting this pull request, I am agreeing to license my contributions under the project's license.

Additional Comments

MaddTheSane avatar May 14 '24 01:05 MaddTheSane

I'm not sure we should touch this file in this way. This is parsed by D3Edit in some unknown way, and it will probably choke on those changes. Granted people can still use the old copy, but things get complicated that way.

Changes here should probably be done in tandem with D3Edit.

Arcnor avatar May 14 '24 07:05 Arcnor

I'm not sure we should touch this file in this way. This is parsed by D3Edit in some unknown way, and it will probably choke on those changes. Granted people can still use the old copy, but things get complicated that way.

Changes here should probably be done in tandem with D3Edit.

How hard would it be to get a D3Edit CI build going, that pulls D3 main branch as a submodule?

Lgt2x avatar May 14 '24 11:05 Lgt2x

How hard would it be to get a D3Edit CI build going, that pulls D3 main branch as a submodule?

Should we try to get D3Edit inside the repo first? Not sure what's the final shape we want that to look like, I remember @kevinbentley had some ideas there, but anyway, I haven't compiled D3Edit yet, but I don't think it will be difficult (talkin about the CI part, any fixes to get D3Edit to compile are unknown).

Arcnor avatar May 14 '24 11:05 Arcnor

How hard would it be to get a D3Edit CI build going, that pulls D3 main branch as a submodule?

Should we try to get D3Edit inside the repo first? Not sure what's the final shape we want that to look like, I remember @kevinbentley had some ideas there, but anyway, I haven't compiled D3Edit yet, but I don't think it will be difficult (talkin about the CI part, any fixes to get D3Edit to compile are unknown).

I haven't compiled D3Edit either, but I'm fine with making it part of this repo

Lgt2x avatar May 14 '24 11:05 Lgt2x

How hard would it be to get a D3Edit CI build going, that pulls D3 main branch as a submodule?

Should we try to get D3Edit inside the repo first? Not sure what's the final shape we want that to look like, I remember @kevinbentley had some ideas there, but anyway, I haven't compiled D3Edit yet, but I don't think it will be difficult (talkin about the CI part, any fixes to get D3Edit to compile are unknown).

I haven't compiled D3Edit either, but I'm fine with making it part of this repo

+1. I know @jmarshall23 has dev editor to bring in but I don't see why we couldn't have both.

JeodC avatar May 14 '24 12:05 JeodC

I have an almost mature PR to build the internal editor here, hang tight!

Lgt2x avatar May 22 '24 18:05 Lgt2x

Closing this, as DallasFuncs is now a separate source file.

MaddTheSane avatar Sep 17 '24 05:09 MaddTheSane