jak-project/.github
Shalen Bennett 20304715af
Replace assert with user-friendly error if ISO is invalid or not found (#1540)
* Replace assert with user-friendly error if ISO not found

When the extractor runs and can't detect a game folder, it will assume there is an ISO file in the directory instead. If there isn't an ISO file, or it's a different extension, it will trigger an assert. This adds an additional check to make sure the file extension is of type `.iso` and returns a more clear message to the user.

Once I get home I'll iterate upon this a bit to add file size checks and reading header data as well as making sure the error code is able to be reported to the launcher.

* Fix `extension` call & formatting

more de-rust lol

* fix extension call (again)

* fix ONE extra parenthesis

* argument incompatible with fmt print

will fix print later

* add ONE missing parenthesis 

never taking intellisense for granted again

* Add ISO size checks and rework type check

* actually print `data_dir_path` :p

* Normalize extension case before verifying file type

+ clang-format

* clang-format

Co-authored-by: doctashay <doctashay@github.com>
2022-06-24 18:27:57 -04:00
..
ISSUE_TEMPLATE github: fix issue with bug report template (#1532) 2022-06-23 16:36:47 -04:00
scripts Replace assert with user-friendly error if ISO is invalid or not found (#1540) 2022-06-24 18:27:57 -04:00
workflows actions: add libpulse-dev dependency to fix audio on pipewire systems (#1473) 2022-06-17 22:06:53 -04:00
dependabot.yml docs: delete content that now lives in another repo (#1160) 2022-02-12 23:20:43 -05:00