in reply to Re^15: Declaring Hash entries
in thread Declaring Hash entries

I was jk, i look forward to seeing your code. It will probably be sunday before i get around to it. Reading the keys table until start offset of actual data is the way to go. My biggest problem will be converting each entry into its respective format, But i will have to wait till sunday to see about it.

Replies are listed 'Best First'.
Re^17: Declaring Hash entries
by Anonymous Monk on Jan 07, 2015 at 23:36 UTC

    ...My biggest problem will be converting each entry into its respective format, But i will have to wait till sunday to see about it.

    Here is a tip, there are only three formats

    if( $index->{param_fmt} == 4 ){ $index->{value} = decode('UTF-8', $raw ) ;##utf-8-special +NOT nul } elsif( $index->{param_fmt} == 516 ){ $index->{value} = decode('UTF-8', $raw ) ; ##utf-8-charstr +ing-nul chop $index->{value} ; ## chop the null } elsif( $index->{param_fmt} == 1028 ){ $index->{value} = UInt32( $raw ) ;; ##uint32 }
      I havent forgot about this as it is a side project in attempts to actually finish up another project. Eventually, what i am going to do is load all the offsets and read lengths into a hash or an array, that way one can type in 'script.pl -p PS3_SYSTEM_VERSION "03.5500"' and that would actually patch the file. i have this sunday off and nothing at all planned so hopefully i can bang this one out