+
    Ki  c                   s$    ^ RI H t  R tR tR tR# )    )mmapc                sz    RpRpTpV^ 8w  d.   W,          pV^ 8w  d   V\        V34      ,          pV^,          pK4  V# )zlRead bytes from the mm mmap, beggining at the start
offset and ending at the first 0x00.

Return:
    bytes
    N)Zbytes)mmZstartZbuffZacharZnumbers   &&   8/usr/lib/python3.14/site-packages/lutris/util/dolphin.py
scan_to_00r      sF     DEF
1*
A:E5(O#D!Kr   c                s    \        V 4      ^R # )z0transform bytes to string with the default codeci)Zstr)Zbytes   &r   bytes_to_strr      s    t9Qr?r   c           	     s   / p\        V RRR7      ;_uu_ 4       p\        VP                  4       ^ 4      pVR,          R8X  d9   \        \	        VR4      4      VR&   R\        \	        VR	4      4      ,           VR
&   MQVR,          R8X  d9   \        \	        V^ 4      4      VR&   R\        \	        V^ 4      4      ,           VR
&   M RRR4       R# RRR4       V#   + '       g   i     T# ; i)zyextract data from the rom location at location.
return a dict with "data" and "config", to be applied to a game in Lutriszr+zutf-8)Zencoding:r    i   Ns   WBFSi   Znamezwii-i   Zslug:i   i   Ns   ]NF)Zopenr   Zfilenor   r   )ZlocationZdataZromr   s   &   r   rom_read_datar      s     D	hw	/	/3#**,"c7g'
2u(=>DL!LB1F$GGDL	]11'
2t(<=DL!LB1D$EEDL 
0	/	/ K 
0	/ Ks   B(CC&	N)r   r   r   r   ) r   r   <module>r      s    $
r   