Commit Graph

477 Commits

Author SHA1 Message Date
Jaby 7ea424fdc5 Add BootImage to second DisplayBuffer during boot 2023-04-30 14:18:11 +02:00
Jaby 32f82faf9f Create a frame rate 2023-04-26 22:06:47 +02:00
Jaby 9d46658e0f Cleanup GPU code more 2023-04-26 20:42:44 +02:00
Jaby 31d6062d05 Add busy loop code and make HighResTimer work on demand rather automatically or ifdefed 2023-04-26 19:09:07 +02:00
Jaby 99e41e4e13 Add colored output to most tools; Make mkoverlay more tolerant for missing overlay files; Make psxcdgen_ex emit a warning when no license file is specified 2023-04-22 15:44:21 +02:00
Jaby 5d47718a8d Move the bit types to tool_helper and merge them 2023-04-20 21:01:27 +02:00
Jaby 50605520b4 Finish wslpath 2023-04-18 21:58:34 +02:00
Jaby 878297f138 Create wslpath project 2023-04-17 21:45:03 +02:00
Jaby e35cc68cd5 Support LZ4 compression in psxcdgen_ex 2023-04-17 21:34:24 +02:00
Jaby 6d45575a60 Fix disabled LZ4 bug 2023-04-17 21:05:22 +02:00
Jaby ac25f699e0 Improve starting of the game and reduce persistent memory usage 2023-04-17 20:21:32 +02:00
Jaby e25ab9da8f Remove BootFiles. Setup code needs improving 2023-04-16 21:39:47 +02:00
Jaby 1d6a58311c Reduce CDFileProcessor size and add configuratable buffer size 2023-04-16 21:11:10 +02:00
Jaby 0949ca395c Use LZ4 file info 2023-04-13 22:10:34 +02:00
Jaby e1edd23e6f Detect LZ4 files correctly now 2023-04-13 21:51:45 +02:00
Jaby 657301bf5e Improve error messages for not finding LBA sources 2023-04-13 21:22:49 +02:00
Jaby 013df1d378 Prepare to support enconding of LZ4 2023-04-13 21:06:24 +02:00
Jaby 77d84802ad Prepare new LBA representation 2023-04-12 21:59:36 +02:00
Jaby 11cc0e90a6 Remove Overlayhader and support loading overlays 2023-04-10 17:01:28 +02:00
Jaby 1b17a052d5 Fix CD cancelling commands; Cleanup CD code a bit 2023-04-03 22:00:39 +02:00
Jaby e9f8874bdf Fix CD pause issue 2023-04-01 15:23:32 +02:00
Jaby 86c801187b Load image w/o CircularBuffer 2023-04-01 14:57:03 +02:00
Jaby 634338c2d0 Fix LZ4 incorrect size bug 2023-04-01 14:56:08 +02:00
Jaby 8895cfc8e6 Load TIM files (broken currently) 2023-04-01 11:57:48 +02:00
Jaby 4553dbef6e Integrate CircularBuffer as essential part of loading files from CD and dedicate file processing to the FileProcessor 2023-04-01 11:20:56 +02:00
Jaby 20c8c4d582 Support buffer full handling 2023-03-29 21:59:50 +02:00
Jaby e079e65f68 Separate make files for easier use 2023-03-29 21:46:32 +02:00
Jaby 771776d947 Support CopyTo now 2023-03-27 22:20:42 +02:00
Jaby d8e7000a0c Successfully read in file 2023-03-27 20:43:18 +02:00
Jaby 54943fab93 Code ready to obtain data; Doesn't work in No and causes strange errors in DS 2023-03-26 16:42:45 +02:00
Jaby 7b7db67ae2 Rename include folder to internal-include for easier destinguishing with the JabyEngine include folder 2023-03-26 14:19:48 +02:00
Jaby 688817d60f Revert restructure of project settings 2023-03-25 21:02:51 +01:00
Jaby e4d236e560 Try improving workspace structure 2023-03-22 21:28:38 +01:00
Jaby d9c2d9b290 Remove the ComplexBitMap 2023-03-22 20:46:08 +01:00
Jaby 163662ba75 Improve readability of code slightly 2023-03-21 21:51:56 +01:00
Jaby 94f12db6f8 Ported CDIOs 2023-03-21 20:39:51 +01:00
Jaby ba8c5e65eb Port DMA code 2023-03-20 21:04:01 +01:00
Jaby a5c163d1ac Port GPU IOs 2023-03-20 19:06:28 +01:00
Jaby 428c451671 Converted SPU IO 2023-03-18 17:13:45 +01:00
Jaby 0bb5dab6a8 Convert Timer IO 2023-03-18 16:04:05 +01:00
Jaby e106547395 Refine new IO port concept 2023-03-14 22:53:32 +01:00
Jaby 7beab5e7bf New concept for IOPorts 2023-03-14 22:33:49 +01:00
Jaby fd8b0deafb Improve CircularBuffer again 2023-03-03 17:30:45 +01:00
Jaby 0edc82c5e2 Simulated load of a file 2023-03-03 14:33:29 +01:00
Jaby 03e932bfc9 Setup Cody Git server and successfully pause after 1 sector 2023-02-27 18:14:04 +01:00
Jaby 8858e17792 Refactored code 2023-02-20 13:07:58 +01:00
Jaby 29efd8e77f Support dynamic correction of LBA 2023-02-20 12:47:56 +01:00
Jaby 86d1e1c32c Support absolute LBAs now 2023-02-20 12:30:55 +01:00
Jaby 4c0d591c81 Read files with temp fix 2023-02-19 18:00:19 +01:00
Jaby 6febdae88e Set mode and improve on allocation callback 2023-02-18 10:56:46 +01:00
Jaby 672ad04c83 Get rough shape of CD file processing code 2023-02-18 09:35:15 +01:00
Jaby 856a5f1608 Fix aligned memory read of unanligend memory 2023-02-03 18:10:57 +01:00
Jaby 4d12536d69 Smol fix 2023-02-03 13:36:49 +01:00
Jaby 9d1b35bf8c Support writing LBA information into main file 2023-02-03 13:22:17 +01:00
Jaby 02e4c70dfc Add 'Main' file type to support lba for them 2023-01-27 08:10:05 +01:00
Jaby 8ef46b3ffc TMP CHANGES 2023-01-26 19:37:02 +01:00
Jaby 5bc0b375c5 Fix and improve mkoverlay 2023-01-24 22:12:37 +01:00
Jaby 6710fc825a Allow overlapping Overlays 2023-01-22 16:37:36 +01:00
Jaby 33ff9936fd Encode word size into OverlayLBA structure 2023-01-22 14:37:09 +01:00
Jaby 9a68951827 Setup CD drive 2023-01-22 14:07:58 +01:00
Jaby ec61f082a1 Prepare setup of CD drive 2023-01-22 11:02:27 +01:00
Jaby b4bce4bfe3 Finished CD_IOs 2023-01-21 12:18:02 +01:00
Jaby 1550f9c08d On a better way 2023-01-17 22:04:35 +01:00
Jaby f3d82c1885 Use write and read for BitRangeValues 2023-01-15 20:21:48 +01:00
Jaby 019022a035 Add new IOPort design 2023-01-15 16:49:38 +01:00
Jaby 8d59d38524 New proposal 2023-01-13 19:34:01 +01:00
Jaby 25fc43064a Add boot namespace and adjust names 2023-01-12 22:02:11 +01:00
Jaby 954f660929 First proposial for CD support 2023-01-12 21:51:08 +01:00
Jaby 9c34578932 Create CD related files 2023-01-11 20:51:47 +01:00
Jaby fe0c16ea05 Add internal namespace to easily tell header apart 2023-01-11 20:45:17 +01:00
Jaby 4ec13192f3 Support HighResolutionTimer in a better fashion 2023-01-10 20:36:28 +01:00
Jaby 9950484f9a Support High Percision Counter 2023-01-09 22:27:10 +01:00
Jaby 068eb48557 Improve struct and namespace usage 2023-01-08 21:08:23 +01:00
Jaby 274b3dc243 Cleanup code 2023-01-08 16:39:26 +01:00
Jaby 69c29e4dcd Use GlobalTime 2023-01-08 16:20:30 +01:00
Jaby dd7c195b1a Fix IO Port code again 2023-01-08 13:56:26 +01:00
Jaby 758c4c305a Save progress 2023-01-06 22:15:03 +01:00
Jaby d444222d49 Sketch Timer and implement Interrupt support 2023-01-06 15:18:35 +01:00
Jaby 4870813d2d Prepare IO Ports for timer 2023-01-06 12:14:53 +01:00
Jaby c503ce663d Improve LZ4 decompression 2023-01-03 21:20:53 +01:00
Jaby fc91b572ec Implement LZ4 strip and make tools write errors to err instead of out 2023-01-03 16:34:39 +01:00
Jaby 0fe106fcaa Broken LZ4 algorithm! The decompression seems to work now (needs improvement?) but the conversion tools emit 64K block sizes which is unhelpfull for us 2022-12-29 23:18:37 +01:00
Jaby 1ec9d9f1a7 Make LZ4 Decompressor return a state value 2022-12-29 13:25:48 +01:00
Jaby 8655fdc897 Setup LZ4 decompressor but have it copy data for now 2022-12-27 22:06:14 +01:00
Jaby 3815f2ea94 LZ4 compress splash images 2022-12-27 20:59:07 +01:00
Jaby 4917d07270 Make jaby_engine_fconv output lz4 files on request 2022-12-27 20:58:43 +01:00
Jaby c995fe0713 Improves return types with Progress type 2022-12-23 22:06:10 +01:00
Jaby 9857b367aa Create LZ4 decompressor files 2022-12-23 21:18:44 +01:00
Jaby 9d97cf746d Introduce the JabyEngine namespace to all files 2022-12-23 21:18:25 +01:00
Jaby 52be17a891 Test Circular Buffer 2022-12-23 20:33:36 +01:00
Jaby 15a8848ec9 Update mkoverlay with new overlay strategy 2022-12-20 20:34:03 +01:00
Jaby 89ac06806c Prepare CircularBuffer 2022-12-16 21:54:01 +01:00
Jaby 44e4953e34 Introduce empty overlay boot file and improve task name 2022-12-16 21:23:24 +01:00
Jaby 3af42e56b7 Add update feature to cargo for easier rebuild 2022-12-16 21:13:34 +01:00
Jaby c8b92ecb02 Prepare makefile 2022-12-16 04:25:48 +01:00
Jaby 9fd9da783c Use main 2022-12-16 03:47:30 +01:00
Jaby 054592ab90 Prepare save spot for booting 2022-12-16 03:20:08 +01:00
Jaby 90e3569a4d Slowly come up with design for loading from CD 2022-12-12 04:18:35 +01:00
Jaby 4c4f1cafad Prepare CD code and unify header names 2022-12-12 03:43:18 +01:00
Jaby f0fff92ca5 Implement writing LBA header 2022-12-09 04:08:29 +01:00
Jaby eee02d2ddb Setup infrastructure to update filetype 2022-12-08 04:08:03 +01:00
Jaby f5c296a22e Calculate file sizes easily 2022-12-08 03:10:02 +01:00
Jaby 05acd1a519 Find files 2022-12-08 02:02:07 +01:00
Jaby 415dcf1ee0 Read in LBA file path from header file 2022-12-07 03:53:48 +01:00
Jaby 4c07721d45 Prepare reading in LBA Source for Overlay 2022-12-07 02:50:46 +01:00
Jaby f66f7fb8ee Support LZ4 compression 2022-12-06 04:56:40 +01:00
Jaby 3f482578fe Use WSL for linux targets for more reliablitity 2022-12-06 04:56:26 +01:00
Jaby 95026f426b LZ7 compress 2022-12-06 03:12:31 +01:00
Jaby 29511f3bdc Read Overlay header 2022-12-06 02:31:05 +01:00
Jaby 3da7f77b56 Treat overlay as regular file 2022-12-06 01:18:01 +01:00
Jaby 4aed105616 Introduce Overlay Header and LBAs 2022-12-04 04:55:53 +01:00
Jaby 19f13e2974 Remove executing main 2022-12-04 04:55:04 +01:00
Jaby a13edc77b9 Finish mkoverlay 2022-12-04 04:03:03 +01:00
Jaby 5e54cab682 Enable CommandLine arguments 2022-12-04 03:13:48 +01:00
Jaby 1e2c524e51 Create makefile output 2022-12-03 04:19:12 +01:00
Jaby 4a5eb97ab2 Small improvements 2022-12-03 03:08:10 +01:00
Jaby 1938d8f732 Parse JSON into linker script 2022-12-03 02:55:12 +01:00
Jaby ae494f59c0 Write LD file 2022-12-01 04:02:38 +01:00
Jaby 3960f596bf Write default linker script if no overlay were specified 2022-12-01 02:56:18 +01:00
Jaby c407f02241 Get overlay structure ready 2022-12-01 02:34:24 +01:00
Jaby a9a64bafbb Create mkoverlay project 2022-12-01 02:17:13 +01:00
Jaby 53882edbd6 Implement Overlay generation 2022-11-30 02:36:17 +01:00
Jaby d296667b44 Call which will be a overlay later 2022-11-29 03:28:42 +01:00
Jaby 1a0b645db6 Merge common attributes 2022-11-27 23:54:31 +01:00
Jaby 7d779ef739 Design LBA file in XML 2022-11-27 23:38:41 +01:00
Jaby 9a23a736ea Support padded size 2022-11-27 23:13:47 +01:00
Jaby 94b4bd2b2f Clean up error handling 2022-11-27 22:32:14 +01:00
Jaby a386ba6a06 Remove ErrorString 2022-11-27 22:21:06 +01:00
Jaby 4065b83a0d Removed new type error 2022-11-27 22:19:43 +01:00
Jaby d91222ab86 Cause error on not a number padded_size value 2022-11-27 22:15:30 +01:00
Jaby 12e5aee8b1 Rename extended size to padded size and implement validation 2022-11-24 03:36:56 +01:00
Jaby 28140adfbe Print hidden state better 2022-11-24 03:05:44 +01:00
Jaby c88549bf9b Test and support hidden files and directories 2022-11-24 02:03:11 +01:00
Jaby 39a315a674 Update Test XML 2022-11-21 03:46:24 +01:00
Jaby 13a49378e8 Check License check for valid size instead of reading zeros 2022-11-20 23:14:39 +01:00
Jaby 66b8ec3c2b Parse hidden flag in XML 2022-11-19 03:16:43 +01:00
Jaby 5a29315d06 Improve LBA output even more 2022-11-19 02:12:48 +01:00
Jaby c58ec4514f Create nice LBA file 2022-11-18 04:24:53 +01:00
Jaby f4701f08b0 Add flag for outputing dump file 2022-11-18 03:04:52 +01:00
Jaby a6ba90f86b Clean up print commands 2022-11-17 03:54:48 +01:00
Jaby d100dde560 Print content dump intro 2022-11-17 03:50:16 +01:00
Jaby 01ce04f927 Improve output design 2022-11-17 03:13:12 +01:00
Jaby 4efd47e285 Prepare content dump 2022-11-17 02:52:32 +01:00
Jaby 0bfadfe2f5 Use improved error message generation 2022-11-17 02:18:24 +01:00
Jaby 910e8ede11 Improve creation of error messages 2022-11-16 04:36:25 +01:00
Jaby a45ba95659 Correct errors 2022-11-16 03:47:22 +01:00
Jaby f8468f19ba Write license info from file 2022-11-16 03:35:28 +01:00
Jaby cb3600034d Restructure code to write license 2022-11-16 02:44:39 +01:00
Jaby b8688d6a97 Make code warning free again 2022-11-16 01:46:28 +01:00
Jaby e53c5dfbdf Prepare parsing license file 2022-11-15 04:24:46 +01:00
Jaby da6ec46acf Support command line parameters 2022-11-11 17:00:10 +01:00
Jaby 25a6bb6459 Prepare using arguments and options 2022-11-11 16:02:36 +01:00
Jaby 9cdff78fbe Extend batch file to use run commands 2022-11-11 15:54:35 +01:00
Jaby 45a3e305cf Remove warnings 2022-11-11 15:29:08 +01:00
Jaby 25a4b83563 Add clap 2022-11-09 23:11:30 +01:00
Jaby fb07205d80 Pass lba calculation function as function 2022-11-08 22:19:43 +01:00
Jaby 41f7e067f8 Write via XML 2022-11-08 22:13:06 +01:00
Jaby 877c047b0d Convert configuration to CDDesc 2022-11-08 21:28:05 +01:00
Jaby 73e212979e Parse XML 2022-11-04 15:10:26 +01:00
Jaby d5caf3749e Improved error handling 2022-11-04 11:32:55 +01:00
Jaby 28fafb13c3 Read simple XML in 2022-11-04 09:28:32 +01:00
Jaby 48da960312 Update Clap 2022-11-04 08:53:05 +01:00
Jaby cfe6e0a533 Write cue file 2022-10-28 22:02:04 +02:00
Jaby 2497c189e9 Successfully write BIN 2022-10-27 22:22:54 +02:00
Jaby c776f26260 Write DirectoryRecord 2022-10-26 21:43:54 +02:00
Jaby d8389f2c5e Complete new property implementation 2022-10-26 20:58:18 +02:00
Jaby 1ef528a6cf Prepare shared properties 2022-10-25 22:47:25 +02:00
Jaby ef1557af9c Improve creation of DirectoryRecords 2022-10-25 21:37:14 +02:00
Jaby 21baaa1773 Parse and write PathTable 2022-10-25 19:56:50 +02:00
Jaby 4696c5f07f Untrack planschi.bin 2022-10-23 16:32:10 +02:00
Jaby 5876061a34 Create raw path table 2022-10-23 16:31:07 +02:00
Jaby 00d6bd3ad9 Improve member name 2022-10-23 16:30:51 +02:00
Jaby e9f970efa1 Support \x00 and \x01 as valid D characters 2022-10-23 15:46:41 +02:00
Jaby ce44bdb180 Use function to update DirectoryRecord 2022-10-23 15:38:26 +02:00
Jaby 28efcc6b3f Write PVD completed 2022-10-23 14:57:11 +02:00
Jaby 4d19afbbb7 Write PathTable infos, publisher name and more 2022-10-23 14:39:51 +02:00
Jaby d9b8376883 Write more PVD values 2022-10-23 13:58:34 +02:00
Jaby a157a8e3c5 Prepare filling in PVD 2022-10-20 22:12:46 +02:00
Jaby 081baa5b51 Introduce PSX encoder to handle lba calculation better and improve many things 2022-10-20 21:28:34 +02:00
Jaby 80d7673050 Write sectors 2022-10-20 20:11:00 +02:00
Jaby b5ec4fa4c8 Improve lba naming 2022-10-19 20:48:39 +02:00
Jaby e27cd1cc56 LBAs are track relative 2022-10-19 20:42:58 +02:00
Jaby df6e904309 Encode first sector 2022-10-19 19:44:52 +02:00
Jaby 421eca06a0 Have encoder and writer in place 2022-10-18 22:23:32 +02:00
Jaby d71f20bd1a Prepare bin/cue writer 2022-10-18 21:00:20 +02:00
Jaby 358b96e960 Create dummy files for writing 2022-10-17 20:44:12 +02:00
Jaby 976a70c630 Changed code to have elements calculate itself 2022-10-17 20:10:37 +02:00
Jaby 59b800d874 Create File map 2022-10-16 21:35:56 +02:00
Jaby dc8356e19f Small Layout improvement 2022-10-16 16:14:52 +02:00
Jaby b83e0120bf Simplified Layout code 2022-10-16 16:13:24 +02:00
Jaby ffd932c86e Improve code 2022-10-16 16:08:12 +02:00
Jaby 597f1017cb Inital setup 2022-10-16 15:58:38 +02:00
Jaby 4f3561c098 Calculate LBAs 2022-10-16 14:47:21 +02:00
Jaby 3c8e942fc4 Calculate LBAs for PathTables 2022-10-12 21:11:51 +02:00
Jaby 5d6a9e7fe3 Start calculating LBAs 2022-10-12 20:26:26 +02:00
Jaby 62680321b3 Add PathTables to Layout 2022-10-12 19:35:00 +02:00
Jaby d60a823356 Calculate size for DirectoryRecords 2022-10-11 21:12:28 +02:00
Jaby 9276845905 Revert back to properties 2022-10-11 20:47:40 +02:00
Jaby 9d1bb67cd0 Sorting Elements 2022-10-11 20:44:29 +02:00
Jaby 0cb939e06a Introduce Content 2022-10-11 19:45:06 +02:00