63 Commits

Author SHA1 Message Date
Luke Street 0a64331e4b Experimental objdiff-web integration 2025-03-06 23:07:52 -07:00
Mark Street b93a5f053c Ensure parents are considered family 👪 (#1440)
* Ensure parents are considered family 👪

* consistency for asm-based scratches

* more consistency?

* again?
2025-02-08 22:55:09 +09:00
LagoLunatic d9a6459d7a Fix scratches being grouped into the same family even if targeting different functions in the same object (#1403)
* Update dead link to Poetry installation instructions

* Fix scratches being grouped into the same family even if targeting different functions in the same object
2025-01-01 22:50:09 +09:00
Ethan Roseman 711a64a693 Display error message when trying to decompile a scratch created via object file (#1398)
Fix #1372
2024-12-16 01:30:34 +09:00
Mark Street 9c56aa0ecd Trying to sort scratch list by match percent (#1345)
* Trying to sort scrach list by match percent

* Add Cast
2024-09-21 21:37:03 +01:00
Luke Street 2c2f876e22 Experimental objdiff integration (client-side) (#1329)
* Experimental objdiff integration (client-side)

* Work around next.js stupidity

* Port performance improvements to main diff view
2024-08-23 14:43:26 +09:00
Mark Street 286d21658b Allow e.g. /api/preset?platform=n64&ordering=name (#1300)
* Allow e.g. /api/preset?platform=n64&ordering=name

* black

* Simplify UsePresets
2024-07-13 06:33:46 +09:00
Ethan ac15cb5512 Increase max scratch object size from 500kb to 1mb 2024-07-11 01:23:47 +09:00
Ethan Roseman 11b09b99f5 Family fix! (#1275)
* Family fix?

* oopth

* goofs

* good?
2024-06-10 05:46:15 -04:00
Ethan Roseman 90b1b88543 Update backend deps, try to fix bug, remove CompilerConfig (#1256)
* Update backend deps, try to fix bug, remove CompilerConfig

* Upgrade Poetry in Docker to 1.8.3, fix ordering of fields list
2024-05-27 01:52:00 +09:00
Conor Golden b8e3e5efe8 Fixed user page sorting (#1237)
* Fixed user page sorting

* Added Most/Least Matched to Scratch Sort

* lint

* fixed error
2024-05-17 01:50:10 +09:00
Conor Golden d480968d18 Abstracted family sort & added preset and platform sort (#1214)
* Abstracted sort code & added preset and plaform sort

* fixed missing import

* reverted (navfooter)/page changes

* fixed lint

* Added ordering_fields to scratch view

* Added Scratch api backend sort

* Added user page sortable
2024-05-09 22:19:38 +09:00
Mark Street 8f601c5506 Make libraries platform-specific redux (#1195)
* Make libraries platform-specific redux

* mypy
2024-04-10 21:02:03 +01:00
Ethan Roseman 5cecde9d90 Attempt to decompile without context if the first decompilation fails (#1120) 2024-03-10 22:54:35 +09:00
Simon Lindholm e18c9c840e Add current.o to export zip (#953) 2024-02-08 03:46:44 +09:00
Robin Avery 13968ef537 Change scratch view pagination ordering to creation_time (#952) 2024-02-07 01:06:41 +09:00
Luke Street 85c2e215d5 Use random token for claiming scratches (#945)
* Use random token for claiming scratches

* Fix migration dep

* Fix claim_token serialization & address PR comments

* Improve error handling

* Update backend tests

* reformat

* Update another test

* Minor update to ClaimableScratchSerializer
2024-01-19 16:02:05 +09:00
Luke Street 5369f81263 Support binary target_obj in scratch creation (#943)
* Support binary `target_obj` in scratch creation

Also support `--disassemble=` in `diff_flags`,
so the scratch can be limited to a single function
within the object.

Resolves https://github.com/decompme/decomp.me/issues/215

* Test fixes

* Validate uploaded file size & magic

Remove `-D` from `skip_flags_with_args`,
we want to keep defines.
2024-01-17 15:52:41 +09:00
Ethan Roseman c80abfaa05 Platform page & preset page (#906)
* Platform page & preset page

* Fix mypy

* improve styles

* move presetUrl to its own file and fix star import

* oops

* Show number of scratches on platform / preset page

* Remove url field stuff & leftovre ProjectFunction stuff

* Remove more projectfunction stuff

* black

* Attempting to remove most url and html_url

* oops

* mypy

* fixz

* suggz

---------

Co-authored-by: Alex Bates <alex@nanaian.town>
2023-11-13 22:23:12 +09:00
Mark Street edd7ee0f86 Fix permuter import (#903)
* Add test to demonstrate broken import

* Fix import from permuter
2023-10-31 07:01:54 +09:00
Ethan Roseman 4ae89872e2 Presets in the DB (#897)
* Organize tests, update settings, backend deps

* Remove project import code from backend

* Remove some frontent project code

* more progress, project cleanup

* more preset work

* .

* upd8z

* Admins can delete scratches & preset migration

* bye, source presets

* fixes & changes

* Preset in admin panel & rename migration

* mypy

* Fix perset viewset & tests

* Change compilers hash files

* test annotations so Windows doesn't run them

* Mark nits

* Preset auto ID field

* scratch as reference (1/?)

* backend fixes to preset (2/3)

* Use preset ID instead of name in frontend

* update frogger preset

* I broke one of the ten commandments of react

* finishing touches (3/3 lol)

* Update serializers.py
2023-10-27 23:40:59 +09:00
Ethan Roseman 96f45a3ee2 Improve parameterized compiler test to name the tests according to the platform and compiler (#901)
* Improve parameterized compiler test to name the tests according to the platform and compiler

* fix dumb

* Move func to make python happy

* typo
2023-10-26 04:23:30 +09:00
Ethan Roseman 23a3087a38 Sentry issue fixes (#900)
* Catch login failures and raise an exception

* Trying to fix library serialization crap (not working)

* Use validated_data instead of data

* Promments
2023-10-26 03:37:38 +09:00
Robin Lambertz e33b5fb3cf Add libraries support to presets (#873)
* Add libraries support to presets

* Add directx 5 to lego island preset

* Move libraries to named globals

* Fix bug preventing changing the version of a library
2023-10-09 20:06:25 +01:00
Ethan Roseman 646bdd5c4c Fix nop scratch having family 2023-10-04 12:12:38 +09:00