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

Fix failing to load data/db/index file on non-Win desktop platforms #1995

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

Jklawreszuk
Copy link
Collaborator

PR Details

Description

On Linux, on creating simple empty window app by simply calling Game.Run(), Stride will throw FileNotFoundException: Could not find file myproj/net6.0/data/db/index. This bug should also appear on macOS in the same way.

I have now extended setting isReadOnly variable to false for all desktop platforms, so that the index file doesn't have to be created manually. Tested on Fedora 38, Windows 10.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run app on Linux and Windows

@VaclavElias
Copy link
Contributor

I had the same issue with Linux code only. I had to copy that file manually from Windows 🤣

@Jklawreszuk
Copy link
Collaborator Author

I always created the file manually and it worked too. This isn't invasive change and will make running the game less annoying 😃

@tebjan
Copy link
Member

tebjan commented Oct 28, 2023

Nice one, thanks!

@tebjan tebjan merged commit 805ce32 into stride3d:master Oct 28, 2023
@Jklawreszuk Jklawreszuk deleted the objectdatabase-fix branch October 28, 2023 13:47
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.

3 participants