Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Jan 24, 2025
1 parent 908ec0a commit 752c166
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 13 additions & 1 deletion catfile.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ len = 7
hex = 43617446696c65
ver = 001
name = CatFile
proname = PyCatFile
lower = catfile
magic = CatFile
delimiter = \x00
Expand All @@ -18,6 +17,19 @@ newstyle = true
advancedlist = true
altinode = true

[NekoFile]
len = 8
hex = 4e656b6f46696c65
ver = 001
name = NekoFile
lower = nekofile
magic = NekoFile
delimiter = \x00
extension = .neko
newstyle = true
advancedlist = true
altinode = true

[\u306d\u3053\u30d5\u30a1\u30a4\u30eb]
len = 18
hex = e381ade38193e38395e382a1e382a4e383ab
Expand Down
2 changes: 2 additions & 0 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ def decode_unicode_escape(value):
__file_format_multi_dict__.update({decode_unicode_escape(config.get(section, 'magic')): {'format_name': config.get(section, 'name'), 'format_magic': decode_unicode_escape(config.get(section, 'magic')), 'format_lower': config.get(section, 'lower'), 'format_len': config.getint(section, 'len'), 'format_hex': config.get(section, 'hex'), 'format_delimiter': decode_unicode_escape(config.get(section, 'delimiter')), 'format_ver': config.get(section, 'ver'), 'new_style': config.getboolean(section, 'newstyle'), 'use_advanced_list': config.getboolean(section, 'advancedlist'), 'use_alt_inode': config.getboolean(section, 'altinode'), 'format_extension': decode_unicode_escape(config.get(section, 'extension')) } } )
if("CatFile" not in __file_format_multi_dict__):
__file_format_multi_dict__.update({'CatFile': {'format_name': "CatFile", 'format_magic': "CatFile", 'format_lower': "catfile", 'format_len': 7, 'format_hex': "43617446696c65", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".cat" } } )
if("NekoFile" not in __file_format_multi_dict__):
__file_format_multi_dict__.update({'NekoFile': {'format_name': "NekoFile", 'format_magic': "NekoFile", 'format_lower': "nekofile", 'format_len': 8, 'format_hex': "4e656b6f46696c65", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".neko" } } )
if("ねこファイル" not in __file_format_multi_dict__):
__file_format_multi_dict__.update({'ねこファイル': {'format_name': "NekoFile", 'format_magic': "ねこファイル", 'format_lower': "nekofile", 'format_len': 21, 'format_hex': "e381ade38193e38395e382a1e382a4e383abe", 'format_delimiter': "\x00", 'format_ver': "001", 'new_style': True, 'use_advanced_list': True, 'use_alt_inode': False, 'format_extension': ".ねこ" } } )
if("네코파일" not in __file_format_multi_dict__):
Expand Down

0 comments on commit 752c166

Please sign in to comment.