Ryan Houdek
33fe6813fc
Docs: Update for release FEX-2104
FEX-2104
2021-04-02 11:35:29 -07:00
Ryan Houdek
c6c2555e1b
Merge pull request #938 from Sonicadvance1/FEXConfig_improvements
...
FEXConfig improvements
2021-04-01 23:55:16 -07:00
Stefanos Kornilios Mitsis Poiitidis
283a5c1293
Merge pull request #937 from Sonicadvance1/fix_inverted_bool
...
Fixes inverted boolean FEXLoader arguments
2021-04-02 09:38:21 +03:00
Stefanos Kornilios Mitsis Poiitidis
b31976d0e2
Merge pull request #936 from Sonicadvance1/fix_cp_config_error
...
Fixes Thunk Guest libs short arg. C&P error made it not be j
2021-04-02 09:36:53 +03:00
Ryan Houdek
f922e6420b
Allow opening the first configuration file passed in
...
Lets us easily open any configuration file
2021-04-01 19:25:17 -07:00
Ryan Houdek
7ff06c828f
Loads default config if doesn't exist
...
Allows us to save a folder with the default if we want it
2021-04-01 19:22:53 -07:00
Ryan Houdek
be16cc1456
Fixes window ordering so popup message is visible without config open
...
This was a child of the config popup before.
Moves it to a child of the workspace instead so that if we had a load error the message is still visible
2021-04-01 19:16:03 -07:00
Ryan Houdek
59df3d13cc
Don't set up RootFS folder or inotify thread on config load failure
...
Can happen in the case that the default file tries to get loaded and doens't exist
2021-04-01 19:15:08 -07:00
Ryan Houdek
1adf518e6f
Don't try creating inotify thread twice
...
If the inotify FD is already opened then just early exit
Can happen in the case that a config tries to get opened and didn't exist
2021-04-01 19:13:43 -07:00
Ryan Houdek
68171ad9b5
Creates RootFS data folder as a user convenience
...
To make sure users don't mess this up, create the folder if it isn't found
2021-04-01 19:12:56 -07:00
Ryan Houdek
78a923b5b0
Fixes inverted boolean FEXLoader arguments
...
The default_value doesn't have anything to do with the boolean argument being set.
Setting a boolean argument will always set true, inverted always sets false.
We don't currently have a need to support the inverted case where passing in an argument sets it to false
2021-04-01 19:10:29 -07:00
Ryan Houdek
0c6741438b
Update config generator python to check for duplicate options
...
Checks for duplicate short and long option arguments
2021-04-01 19:08:19 -07:00
Ryan Houdek
5d0c080a9d
Fixes Thunk Guest libs short arg. C&P error made it not be j
2021-04-01 19:08:00 -07:00
Ryan Houdek
5f49b57948
Merge pull request #928 from Sonicadvance1/pthreads_threading
...
Switches FEXCore over to pthreads implementation
2021-04-01 01:15:43 -07:00
Ryan Houdek
38778953a1
Merge pull request #924 from Sonicadvance1/select_named_rootfs
...
Adds support for Named RootFS folders in FEXConfig
2021-04-01 00:32:15 -07:00
Ryan Houdek
21a364c2ad
Switches FEXCore over to pthreads implementation
...
This defaults to a pthread implementation but it can be switched over to a custom thread
handler if the frontend desires.
2021-04-01 00:31:45 -07:00
Ryan Houdek
3294cc209f
Adds support for Named RootFS folders in FEXConfig
...
Provides a drop down dialog of RootFS folders to select.
Will be empty if the user doesn't have any folders in place.
Just allowing directory paths to be inserted
Fixes #689
2021-04-01 00:15:29 -07:00
Stefanos Kornilios Mitsis Poiitidis
ae5d41e46b
Merge pull request #926 from Sonicadvance1/disable_seccomp
...
Disables seccomp
2021-04-01 10:03:36 +03:00
Ryan Houdek
43f83fd6d2
Merge pull request #923 from Sonicadvance1/named_rootfs
...
Adds support for named rootfs configurations
2021-04-01 00:02:11 -07:00
Ryan Houdek
8cf47f8221
Adds support for named rootfs configurations
...
If the relative or absolute folder doesn't exist then FEX will search in the data folder for a rootFS named the same thing
If the path exists then it is used.
For example if my data folder contains `$HOME/.fex-emu/RootFS/Ubuntu_main/` and I set the RootFS option to `Ubuntu_main`
Then this rootfs will be used. Allows you to easily select a rootfs in that folder without having the full file path.
2021-03-31 23:46:07 -07:00
Ryan Houdek
43b6cc1cb9
Adds GetDataDirectory config helper
...
This ends up in either $HOME/.fex-emu/ or $XDG_DATA_HOME/.fex-emu/
2021-03-31 23:46:07 -07:00
Ryan Houdek
1ab6726498
Moves Config directory finding to FEXCore
...
This will be necessary in the next commit
2021-03-31 23:46:07 -07:00
Ryan Houdek
c21acd0d45
Merge pull request #916 from Sonicadvance1/fix_execve_again
...
Fix execve again
2021-03-31 23:45:06 -07:00
Ryan Houdek
e637751112
ptrace behaviour is now changed
2021-03-31 23:38:14 -07:00
Ryan Houdek
fac6377ed3
Fixes a crash in openat
2021-03-31 23:37:57 -07:00
Ryan Houdek
4f3cb933cb
Fixes execve
2021-03-31 23:37:56 -07:00
Ryan Houdek
b2825bd848
Adds handler in ELFLoader to determine ELF type.
2021-03-31 23:37:56 -07:00
Ryan Houdek
83eb7f4ad3
Return EPERM in ptrace. A Feral launcher is attempting to use this to ensure it can't ptrace.
2021-03-31 23:37:56 -07:00
Ryan Houdek
c3854c211a
Fix finding home directory when we have no environment variables.
2021-03-31 23:37:56 -07:00
Ryan Houdek
61cd3eb3ce
Fix crash in ELFDB if it tried loading something that wasn't an ELF
2021-03-31 23:37:56 -07:00
Ryan Houdek
490352f568
Merge pull request #921 from Sonicadvance1/update_imgui
...
Updates external imgui which fixes keypad enter in FEXConfig
2021-03-31 23:24:42 -07:00
Ryan Houdek
4004d5a3b7
Disables seccomp
...
FEX doesn't support seccomp in userspace and allowing these through causes chromium secure sandbox to break.
Disabling these with EINVAL allows FEX to behave as if seccomp isn't enabled in the kernel config
Necessary to get the Civ6 launcher further
2021-03-31 23:23:40 -07:00
Ryan Houdek
761447467e
Updates external imgui which fixes keypad enter in FEXConfig
2021-03-30 15:39:11 -07:00
Ryan Houdek
3f38ed94ca
Merge pull request #922 from Sonicadvance1/disable_oomscore
...
Disables gvisor test proc_pid_oomscore_test
2021-03-30 15:38:33 -07:00
Ryan Houdek
ad877d4088
Disables gvisor test proc_pid_oomscore_test
...
Depending on runner this passes or fails.
The test expects to be able to open `/proc/self/oom_score_adj` as writable to adjust the oom score.
This is expected to fail on all three of our runners, but sometimes the solidrun board manages to open it.
Disable as it is a flake. Could be a kernel bug on the solid run board
2021-03-30 15:29:52 -07:00
Ryan Houdek
92fc6b1909
Merge pull request #920 from lioncash/insert
...
Config: Make lookup map assignment match behavior of comment
2021-03-30 14:17:37 -07:00
Lioncache
4b11dcb72a
Config: Make lookup map assignment match behavior of comment
...
emplace() only performs an insertion or assignment if the key doesn't
already exist within the map, which is at odds with what the comment
above the line indicates should happen.
insert_or_assign() better models what the comment indicates.
2021-03-30 11:51:52 -04:00
Lioncache
dd7c78dcd7
Config: Perform lookups by character overloads where applicable
...
These are marginally better to perform than the string equivalents
2021-03-30 11:41:57 -04:00
Lioncache
a20ef403c1
Config: std::move strings within MergeEnvironmentVariables()
...
Same behavior, minus potential heap duplicate allocations
2021-03-30 11:40:42 -04:00
Ryan Houdek
be06511d3d
Merge pull request #919 from FEX-Emu/skmp/fix-build
...
Build: Fix for ubuntu 20.04
2021-03-30 03:20:43 -07:00
Stefanos Kornilios Mitsis Poiitidis
b7a60337e8
Build: Fix for ubuntu 20.04
2021-03-30 13:08:19 +03:00
Stefanos Kornilios Mitsis Poiitidis
315b8e9c1e
Merge pull request #917 from FEX-Emu/skmp/lightweight-docs-3
...
Docs: Add tags, unittest Readme.md, generated SourceOutline.md
2021-03-30 12:52:18 +03:00
Ryan Houdek
155a2b0194
Merge pull request #918 from lioncash/fallthrough
...
CMakeLists: Flag unannotated implicit fallthrough as an error
2021-03-30 02:37:07 -07:00
Stefanos Kornilios Mitsis Poiitidis
8c874f4540
Docs: Commit generated SourceOutline.md, update Readme.md
2021-03-30 12:21:18 +03:00
Stefanos Kornilios Mitsis Poiitidis
942b8549c6
Docs: Add tags to the source code
2021-03-30 12:21:18 +03:00
Ryan Houdek
fa577b4527
Merge pull request #910 from FEX-Emu/skmp/lightweight-docs
...
Docs: lightweight doc autogen
2021-03-30 02:17:41 -07:00
Stefanos Kornilios Mitsis Poiitidis
15537f8c8c
Scripts: Also add unittests folder for doc outline
2021-03-30 11:58:18 +03:00
Lioncache
434a74a88a
CMakeLists: Flag unannotated implicit fallthrough as an error
...
Prevents a class of sneaky logic bugs from slipping through into the
codebase.
This also resolves a case of such a bug within the Decorder's ReadData()
where all 3 byte reads would be performed as if they were a 4 byte read.
2021-03-30 04:56:12 -04:00
Stefanos Kornilios Mitsis Poiitidis
1fdd6fbb14
Scripts: Add a documentation comment in changelog_generator.py
2021-03-30 11:55:39 +03:00
Stefanos Kornilios Mitsis Poiitidis
458bebf598
Scripts: Add a documentation comment in doc_outline_generator.py
2021-03-30 11:53:11 +03:00