Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to current version of D compiler, integrated code from stewart.zip #2

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Commits on Jul 17, 2022

  1. Stewart version from stewart.zip: non .d files, see Fix log.txt for d…

    …escription of changes.
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    c665d02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d25e38b View commit details
    Browse the repository at this point in the history
  3. Stewart version from stewart.zip: eplayer.d make some functions retur…

    …n bool, got rid of Player* p = this;
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    2f44ea7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a95ec8e View commit details
    Browse the repository at this point in the history
  5. Stewart Gordon version from stewart.zip: var.d -- sea and land are no…

    …w bool arrays, get rid of memset and related refactorings.
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    8c7aac2 View commit details
    Browse the repository at this point in the history
  6. Stewart Gordon version from stewart.zip: move.d, sub2.d -- slight ref…

    …actoring, reformat, bool return values.
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    62b096c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f3831c8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    40f7877 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d90dd4b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    54ed443 View commit details
    Browse the repository at this point in the history
  11. Stewart Gordon version from stewart.zip: twin.d auto-detect location …

    …of exe, and look for help file there, catch file not found error
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    9fd2644 View commit details
    Browse the repository at this point in the history
  12. Stewart Gordon version from stewart.zip: eplayer.d --

    disabled cwatch - it either does nothing or causes Empire to hang
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    85edf23 View commit details
    Browse the repository at this point in the history
  13. Stewart Gordon version from stewart.zip: eplayer.d - added magic curs…

    …or position LOC_HIDDEN, to avoid a misleading highlight at the end of the player's turn
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    80b08cf View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d017ae2 View commit details
    Browse the repository at this point in the history
  15. Stewart Gordon version from stewart.zip: changes related to Save AS, …

    …scorrect open/save dialogs and appropriate flags, prompt to save on exit, new or open, also winmain.d changes for previous commit.
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    343f72c View commit details
    Browse the repository at this point in the history
  16. Stewart Gordon version from stewart.zip: winmain.d -- highlight curre…

    …nt square only if POV player's turn (still needs some work)
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    6875f98 View commit details
    Browse the repository at this point in the history
  17. Stewart Gordon version from stewart.zip: winmain.d -- deselected pens…

    … so that they're actually deleted, eliminating resource leaks,
    
    create the dashed pen only once on startup
    NikitaZ committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    055bc37 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. Stewart Gordon version from stewart.zip: newdisplay.d -- refactored t…

    …he text display engine to make more sense for D and for a GUI app.
    NikitaZ committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    9dbf05f View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. Configuration menu
    Copy the full SHA
    77d871e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    319048f View commit details
    Browse the repository at this point in the history
  3. Revert back empire2.BMP

    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    e277c52 View commit details
    Browse the repository at this point in the history
  4. Bump version to 2.04.

    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    f9271e9 View commit details
    Browse the repository at this point in the history
  5. changed "body" to "do"

    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    fe0a6ea View commit details
    Browse the repository at this point in the history
  6. final switches

    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    e002238 View commit details
    Browse the repository at this point in the history
  7. Fixed "Error: instead of C-style syntax, use D-style int[3] d0", impo…

    …rted proper modules
    
    by changing std.c -> core.stdc, c.windows.windows -> core.sys.windows.windows
    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    f6f3479 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5427374 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f714e35 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9faa7aa View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3e3502d View commit details
    Browse the repository at this point in the history
  12. winmain.d: fix goto skipping variable declarations together with some…

    … casts to short for drawBitmap().
    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    53c232a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b37afa2 View commit details
    Browse the repository at this point in the history
  14. compilation fixes: mostly related to strings, arrays, pointers, this …

    …-> &this. Note: that some more fixes to display and text come later when version(NewDisplay) is introduced. Explicit casts to byte, ubyte, short for game state. Maybe nowdays we should just store everything as int, then only casts to short for drawBitmap() would be needed. Note vararg related change in text.d is wrong and is dealt with later.
    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    a4ee2d3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ea04f0e View commit details
    Browse the repository at this point in the history
  16. Build files for resource, windows and macOs to windows cross-build.

    build with debug information via -g.
    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    a47eee8 View commit details
    Browse the repository at this point in the history
  17. Compiled resources (empire.rc rarely changes) to allow easy cross-pla…

    …tform build (or to make first windows build easier).
    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    3deea7b View commit details
    Browse the repository at this point in the history
  18. Report ignored exceptions.

    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    7be6cf5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    343fca6 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    e990eac View commit details
    Browse the repository at this point in the history
  21. use version(idiotproof) for display::rusure() in display.d (similar t…

    …o newdisplay.d::rusure())
    NikitaZ committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    a2f0fd8 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    0fc313f View commit details
    Browse the repository at this point in the history