mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-04 14:09:47 +03:00
@@ -10,10 +10,10 @@
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
// WARNING! If you have an error here it is most likely because you did
|
||||
// not grab the sound data from a working mcpe01_canada.apk.
|
||||
// not grab the sound data from a working Minecraft PE 0.1.3 .apk.
|
||||
//
|
||||
// Check the readme for a guide on how to extract game sounds from the
|
||||
// mcpe01_canada.apk file.
|
||||
// Minecraft PE 0.1.3 .apk file.
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef MISSING_SOUND_DATA
|
||||
#include "../../sound_data/sounds.h"
|
||||
|
||||
@@ -8,9 +8,10 @@
|
||||
|
||||
#pragma once
|
||||
#include "SoundData.hpp"
|
||||
// Minecraft Pocket Edition Reverse Engineering Project
|
||||
// Copyright (C) 2011 Mojang Specifications.
|
||||
// Data extracted from libminecraftpe.so (mcpe01_canada.apk).
|
||||
|
||||
// These are defined in SoundData.cpp, if MISSING_SOUND_DATA isn't declared.
|
||||
|
||||
#ifndef MISSING_SOUND_DATA
|
||||
|
||||
extern SoundDesc SA_cloth1;
|
||||
extern SoundDesc SA_cloth2;
|
||||
@@ -39,3 +40,5 @@ extern SoundDesc SA_wood4;
|
||||
extern SoundDesc SA_click;
|
||||
extern SoundDesc SA_explode;
|
||||
extern SoundDesc SA_splash;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
# Minecraft PE Reverse Engineering Project
|
||||
# Copyright (C) 2023 iProgramInCpp
|
||||
# -----------------------------------------------
|
||||
# This tool grabs the sound data from the .so file from the mcpe01_canada.apk. Offsets are hardcoded to that version, nothing else will work.
|
||||
# This tool grabs the sound data from the .so file from the source Minecraft PE
|
||||
# Android *.so file. Offsets are hardcoded to that version, nothing else will work.
|
||||
#
|
||||
# TODO: Lookup ELF symbols to un-hardcode the offsets?
|
||||
import sys
|
||||
import os
|
||||
import hashlib
|
||||
@@ -98,7 +101,7 @@ def main():
|
||||
print('* Source file hash: ', src_sha256)
|
||||
|
||||
if src_sha256 != so_file_sha256:
|
||||
print('ERROR: Source file does not match mcpe01_canada.apk\'s SO file. Please extract one from the aforementioned APK.')
|
||||
print('ERROR: Source file does not match the Source APK\'s SO file. Please extract one from the aforementioned APK. See the readme for more details.')
|
||||
return
|
||||
|
||||
print('* Extracting PCM data...')
|
||||
|
||||
Reference in New Issue
Block a user