Commit Graph

446 Commits

Author SHA1 Message Date
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
Jaby 7847612c52 Keep size of names 2022-10-11 19:41:23 +02:00
Jaby 2dafa1c4ce Improve properties 2022-10-11 19:27:34 +02:00
Jaby c8542ddb61 Prepare for calculating LBAs 2022-10-10 22:06:11 +02:00
Jaby b559124bfb Replace Data with File 2022-10-10 20:59:37 +02:00
Jaby c1aa2d0906 Add SystemArea and PVD 2022-10-10 20:50:20 +02:00
Jaby 8a7c32d8ba Use memory layout feature 2022-10-09 18:17:09 +02:00
Jaby d273c6a12b Add memory layout feature 2022-10-09 18:16:58 +02:00
Jaby dbc21ad736 Stashing 2022-10-09 16:26:21 +02:00
Jaby aa05c3c57f Create recursive iterator 2022-10-07 17:00:30 +02:00
Jaby 82492aac33 Return iterator instead of dir 2022-10-07 16:20:08 +02:00
Jaby 45967fb5cd Dump CDDesc 2022-10-07 16:12:12 +02:00
Jaby cb090acfe7 Construct DirectoryIterator 2022-10-07 15:04:07 +02:00
Jaby 6c5650c050 Add data to cd desc 2022-10-07 11:30:30 +02:00
Jaby 2a9dcb611c Create CD desc 2022-10-06 21:23:40 +02:00
Jaby 5537434db1 Created constructor functions and paniced 2022-10-06 21:09:45 +02:00
Jaby 94cec93990 Rename cdgen to psxcdgen_ex to limit scope 2022-10-06 20:34:59 +02:00
Jaby 9e660e7484 Introduce new types 2022-10-06 20:30:56 +02:00
Jaby 24c6d18122 Create cdgen project 2022-10-06 20:08:56 +02:00
Jaby 3f65b12588 Support PAL and NTSC splash image 2022-10-05 22:01:01 +02:00
Jaby 4ad93cbd23 Setup Display to standard resolution instead of high res 2022-10-04 21:54:40 +02:00
Jaby a5823364cf Setup DisplayArea 2022-10-03 16:23:35 +02:00
Jaby 4faaf46b7b Separate between Display and Screen 2022-10-03 15:40:46 +02:00
Jaby c5f0bec3f7 Configurate Screen 2022-10-03 15:38:54 +02:00
Jaby 85b8cacb1b Emit PAL/NTSC library depending on the configuration 2022-10-03 14:54:59 +02:00
Jaby a7cb6ce0f6 Create Macros for PAL/NTSC 2022-10-02 17:47:24 +02:00
Jaby fe6cad2c27 Start configurating GPU 2022-10-02 17:32:23 +02:00
Jaby 8273207a31 Correct header file extension 2022-10-02 16:45:02 +02:00
Jaby da60502c98 Support CLUT (untested) 2022-10-02 14:18:35 +02:00
Jaby 96ed4b54a0 Improve code 2022-10-02 14:12:02 +02:00
Jaby 64b0baee4d Clean Up 2022-10-02 13:17:38 +02:00
Jaby c255c9259f Upload Direct16 pic 2022-10-02 13:14:30 +02:00
Jaby 32e136701a Improvements to parse Texture data 2022-10-02 11:49:55 +02:00
Jaby 6004faf3ea Include SplashImage and detect right type 2022-10-02 11:01:42 +02:00
Jaby a9a89e19f3 Generated hpp file instead of cpp 2022-10-02 11:01:22 +02:00
Jaby 7c63dfa6b9 Use continous memory for loading files 2022-10-02 10:18:27 +02:00
Jaby 1ade863fbb Verify basic usage of FileProcessor 2022-10-01 22:40:40 +02:00
Jaby fd693abaee Build and integrate Splash Image 2022-09-29 20:51:18 +02:00
Jaby f03ff2da2b Use cpp_out 2022-09-28 21:21:45 +02:00
Jaby c21cf2a5a9 Use buffered read and write for better performance 2022-09-28 21:21:15 +02:00
Jaby b032f90e5b Create Splash.cpp 2022-09-28 20:53:32 +02:00
Jaby 705c73e061 Prepare splash target 2022-09-28 20:27:48 +02:00
Jaby a6f13db22c Add Splash image 2022-09-28 20:22:03 +02:00
Jaby 24afcde9f0 Support CLUT alignment 2022-09-28 19:59:52 +02:00
Jaby 710ac213c8 Fill Palette if needed 2022-09-28 19:53:50 +02:00
Jaby 243bea90fa Convert IndexedImages 2022-09-27 20:52:44 +02:00
Jaby 0f0fb1f612 Start reading in indexed PNG file 2022-09-25 19:32:58 +02:00
Jaby e5ee772401 Allow writing clut data 2022-09-25 18:46:15 +02:00
Jaby 57012bc3f0 Improved running the tests again 2022-09-25 18:21:28 +02:00
Jaby f93064c3eb Deconstruct PNG imag 2022-09-25 16:31:11 +02:00
Jaby 840fe7f33c Run clut code 2022-09-23 22:35:55 +02:00
Jaby ae47572727 Write clut16 2022-09-23 22:01:52 +02:00
Jaby 2957305e55 Implement convert functions for RGB(A) 2022-09-22 21:18:01 +02:00
Jaby 9d5b3eb748 Introduce PSXImageConverter 2022-09-22 20:09:19 +02:00
Jaby dc48cb3733 Build linux under windows with MUSL 2022-09-22 19:26:13 +02:00
Jaby 82301cc8a1 Add Header basics 2022-09-21 21:52:21 +02:00
Jaby a926325a4d Basic Color support 2022-09-21 20:43:08 +02:00
Jaby 177891a684 Support bit operations 2022-09-20 22:10:17 +02:00
Jaby 7f35413c9d Improve Error 2022-09-19 21:06:44 +02:00
Jaby a5cfe87a69 Prepare reading in files 2022-09-19 20:20:43 +02:00
Jaby a5512085b5 Calling un-implemented convert function 2022-09-17 17:31:51 +02:00
Jaby 8931544f73 Fix input file for cpp_out 2022-09-17 17:15:23 +02:00
Jaby c420b850a3 Prepare for simple TIM conversion 2022-09-17 17:12:53 +02:00
Jaby d380ebf655 Offer configuration for windows and linux 2022-09-17 16:08:10 +02:00
Jaby 8039f162ea Do not delete bin folder when running any clean command 2022-09-17 14:59:15 +02:00
Jaby 42cda9cb33 Creation of jaby_engine_fconv 2022-09-17 14:54:44 +02:00
Jaby 2634e164eb Finish cpp_out 2022-09-17 14:44:13 +02:00
Jaby 769744b7a3 Change name of variable 2022-09-17 14:31:20 +02:00
Jaby 35f29f6c60 Create source files 2022-09-17 13:54:19 +02:00
Jaby 525346212d Use functors instead of parameters 2022-09-14 22:00:26 +02:00
Jaby f024cf4f1b Read settings in a bit 2022-09-14 21:52:54 +02:00
Jaby 694d0a29ac Produce first output 2022-09-13 21:35:52 +02:00
Jaby c693a950a3 Prepare convert function 2022-09-13 21:19:42 +02:00
Jaby 6e1f1df486 Create tool_helper library 2022-09-13 21:06:41 +02:00
Jaby 2fdd4bf829 Prepare tool_helper 2022-09-13 20:49:02 +02:00
Jaby b13b4e85c7 Add test makefile for easy execution 2022-09-12 22:18:56 +02:00
Jaby 8e954f98aa Use WSL to build Rust Linux 2022-09-11 21:38:30 +02:00
Jaby 520b92539c Build tool with musl for now 2022-09-11 20:50:15 +02:00
Jaby 31356b9ffd Support cpp_out 2022-09-11 19:53:20 +02:00
Jaby 387fd25aef Support run cmd now 2022-09-11 19:53:04 +02:00
Jaby 7befd492cc Remove Port namespace and clean up 2022-09-11 15:51:09 +02:00
Jaby b28c381c0d Use DMA for GPU 2022-09-11 15:44:45 +02:00
Jaby ae5a4a80dd Create pattern 2022-09-11 13:40:20 +02:00
Jaby d25565d030 Clean Up 2022-09-11 11:44:58 +02:00
Jaby fdf8ba0e9a Making ComplexBitMap a POD part 1 2022-09-11 11:36:51 +02:00
Jaby 9da81fc5d0 Added named colors 2022-09-11 10:17:02 +02:00
Jaby 6f9339ce7f Introduce internal and normal GPU functions 2022-09-11 10:10:51 +02:00
Jaby 6809923701 Introduce QuickFill 2022-09-08 21:36:12 +02:00
Jaby e83b5350a7 Make SPU wait for boot up sound to finish 2022-09-08 20:36:54 +02:00
Jaby 564e8a6e8b Prepare GPU setup 2022-09-08 20:36:36 +02:00
Jaby ab9d47dde8 Implement GPUSTAT and update IOPort design 2022-09-07 21:45:28 +02:00
Jaby 64c289715f Merge branch 'main' into GPU-Setup 2022-09-07 19:49:51 +02:00
Jaby 27716c020c Add Port namespace for DMA 2022-09-07 19:49:37 +02:00
Jaby f30716767f Small cleanup of boot related sources 2022-09-07 19:47:56 +02:00
Jaby 2a55463efd Create files and call hirachy for GPU 2022-09-07 19:17:59 +02:00
Jaby ebbfe28777 Final clean up of IOPort 2022-09-07 19:08:11 +02:00
Jaby 3ee83c049f Support 'with' 2022-09-05 22:35:38 +02:00
Jaby cf38a28107 Remove endless loop 2022-09-05 21:05:51 +02:00
Jaby 23733abc2b Improve IOPort code 2022-09-05 20:58:33 +02:00
Jaby c21b545166 Replaced a magic value with a namedmagic value 2022-09-05 17:23:51 +02:00
Jaby 52fdcdb197 Setup SPU 2022-09-02 22:29:44 +02:00
Jaby 3a0a53c458 Almost finished setup SPU 2022-09-02 18:05:21 +02:00
Jaby e3a53bfd42 Clear voices 2022-09-02 13:04:24 +02:00
Jaby 595b6e0ec5 Use new fancy way to set values at build time 2022-09-02 12:07:22 +02:00
Jaby c7608b7934 Clear Control Register 2022-09-02 11:33:42 +02:00
Jaby e3e22db78a Clear MainVolume and improve port code 2022-09-02 11:02:56 +02:00
Jaby 25b33490ba Clear Voice Keys 2022-09-02 10:23:32 +02:00
Jaby 1b14057f9c Using new IO Port 2022-08-31 23:02:40 +02:00
Jaby 5a2b0b9a50 Create new IO Port 2022-08-31 22:51:13 +02:00
Jaby 9622dd0b82 DTC 2022-08-31 22:16:16 +02:00
Jaby 3d54094376 SPU Controll Register 2022-08-31 22:00:38 +02:00
Jaby 21489c1bb1 Continue setup SPU 2022-08-31 21:17:14 +02:00
Jaby 20421d9340 Re-arranged files 2022-08-31 20:01:39 +02:00
Jaby 16eb1b4fd8 Support Volume Steps now for easier support of fractions 2022-08-31 17:17:17 +02:00
Jaby e15c63f949 Prepare MainVolume 2022-08-31 17:05:22 +02:00
Jaby 25d5e44fc8 Prepare SPU and IO Ports related code 2022-08-31 15:18:30 +02:00
Jaby c1d0e5d23a Support Hello World 2022-08-31 10:55:25 +02:00
Jaby 5fa9a2c426 Linker Script for PSX 2022-08-28 19:35:30 +02:00
Jaby aeaa43201e Hello World functional 2022-08-28 11:15:13 +02:00
Jaby 6ccfcf7c78 Prepare IntelliSense Settings 2022-08-28 09:20:32 +02:00
Jaby 7096c7efb2 Copy library instead of building it directly 2022-08-23 20:05:53 +02:00
Jaby 90638d5203 Fix pscdgen and psexe build 2022-08-21 20:36:34 +02:00
Jaby 1892d094cd Build library 2022-08-21 19:30:49 +02:00
Jaby c565fcdb69 Setup build enviorment 2022-08-21 16:25:37 +02:00
Jaby ebcf25ad0b Prepare new JabyEngine project 2022-08-21 14:58:17 +02:00
Jaby a40eede204 Created batch files for building tools 2022-08-21 14:46:07 +02:00
Jaby bc2e9599f6 Moved psxcdgen files to tools folder 2022-08-21 13:20:53 +02:00
Jaby cba6f88e94 Ported psxcdgen over 2022-08-21 13:06:39 +02:00