Skip to content

Instantly share code, notes, and snippets.

@ChadSki
Created May 16, 2014 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChadSki/3f27d4e30a61bc13268c to your computer and use it in GitHub Desktop.
Save ChadSki/3f27d4e30a61bc13268c to your computer and use it in GitHub Desktop.
if location == 'file':
ByteAccess = FileByteAccessBuilder(map_path).CreateByteAccess
else: # location == 'mem'
ByteAccess = WinMemoryByteAccessBuilder('halo').CreateByteAccess
load_plugins()
MapHeader = plugin_classes['map_header']
map_header = MapHeader(
ByteAccess(
0x6A8154,
1024),
halomap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment