Skip to content

TKMGame.Save(): fix compilation on Linux platform with FPC-3.2.2#216

Open
dpronin wants to merge 1 commit into
reyandme:masterfrom
dpronin:unix/fpc/KM_Game/fix-compilation-of-list
Open

TKMGame.Save(): fix compilation on Linux platform with FPC-3.2.2#216
dpronin wants to merge 1 commit into
reyandme:masterfrom
dpronin:unix/fpc/KM_Game/fix-compilation-of-list

Conversation

@dpronin
Copy link
Copy Markdown

@dpronin dpronin commented Jan 9, 2024

FPC-3.2.2 does not have IndexOfItem method of List to traverse the latter from the end to the beginning, so we use a handmade cycle to do that on Linux

FPC-3.2.2 does not have IndexOfItem method of List<T> to traverse the
latter from the end to the beginning, so we use a handmade cycle to do
that on Linux

Signed-off-by: Denis Pronin <dannftk@yandex.ru>
@Kromster80
Copy link
Copy Markdown
Collaborator

Kromster80 commented Mar 23, 2026

fLastSaves is a TKMLimitedUniqueList<string>. If the IndexOfItem is missing, it should be added to the TKMLimitedUniqueList.

However, since we do not have a functional Unix build toolchain, I'm inclined to reject this PR on that basis too.
@reyandme your opinion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants