mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
Merge branch 'master' into mxmediamanager
This commit is contained in:
commit
df81b48715
@ -39,6 +39,7 @@ class MxListParent : public MxCore
|
||||
|
||||
// OFFSET: LEGO1 0x1001cd20
|
||||
virtual MxS8 Compare(T *, T *) = 0;
|
||||
|
||||
protected:
|
||||
MxU32 m_count; // +0x8
|
||||
void (*m_customDestructor)(T *); // +0xc
|
||||
@ -82,6 +83,7 @@ class MxListCursor : public MxCore
|
||||
MxBool Find(T *p_obj);
|
||||
void Detach();
|
||||
MxBool Next(T*& p_obj);
|
||||
|
||||
private:
|
||||
MxList<T> *m_list;
|
||||
MxListEntry<T> *m_match;
|
||||
|
||||
@ -17,11 +17,13 @@ MxMediaManager::MxMediaManager()
|
||||
MxMediaManager::~MxMediaManager()
|
||||
{
|
||||
Destroy();
|
||||
Destroy();
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100b85d0
|
||||
MxResult MxMediaManager::Init()
|
||||
{
|
||||
this->m_presenters = NULL;
|
||||
this->m_presenters = NULL;
|
||||
this->m_thread = NULL;
|
||||
return SUCCESS;
|
||||
|
||||
@ -23,9 +23,10 @@ class MxMediaManager : public MxCore
|
||||
virtual void StopPresenters(); // vtable+24
|
||||
|
||||
MxResult Init();
|
||||
|
||||
private:
|
||||
MxPresenterList *m_presenters;
|
||||
MxThread* m_thread; // 0xc
|
||||
MxThread *m_thread; // 0xc
|
||||
|
||||
protected:
|
||||
MxCriticalSection m_criticalSection; // 0x10
|
||||
|
||||
@ -463,11 +463,12 @@ def can_resolve_register_differences(original_asm, new_asm):
|
||||
else:
|
||||
percenttext += colorama.Fore.RED + "*" + colorama.Style.RESET_ALL
|
||||
|
||||
if args.print_rec_addr:
|
||||
addrs = '%s / %s' % (hex(addr), hex(recinfo.addr))
|
||||
else:
|
||||
addrs = hex(addr)
|
||||
|
||||
if not verbose:
|
||||
if args.print_rec_addr:
|
||||
addrs = '%s / %s' % (hex(addr), hex(recinfo.addr))
|
||||
else:
|
||||
addrs = hex(addr)
|
||||
print(' %s (%s) is %s similar to the original' % (recinfo.name, addrs, percenttext))
|
||||
|
||||
function_count += 1
|
||||
@ -477,16 +478,16 @@ def can_resolve_register_differences(original_asm, new_asm):
|
||||
if recinfo.size:
|
||||
udiff = difflib.unified_diff(origasm, recompasm, n=10)
|
||||
|
||||
# If verbose, print the diff for that funciton to the output
|
||||
# If verbose, print the diff for that function to the output
|
||||
if verbose:
|
||||
if effective_ratio == 1.0:
|
||||
ok_text = "OK!" if plain else (colorama.Fore.GREEN + "✨ OK! ✨" + colorama.Style.RESET_ALL)
|
||||
if ratio == 1.0:
|
||||
print("%s: %s 100%% match.\n\n%s\n\n" %
|
||||
(hex(addr), recinfo.name, ok_text))
|
||||
(addrs, recinfo.name, ok_text))
|
||||
else:
|
||||
print("%s: %s Effective 100%% match. (Differs in register allocation only)\n\n%s (still differs in register allocation)\n\n" %
|
||||
(hex(addr), recinfo.name, ok_text))
|
||||
(addrs, recinfo.name, ok_text))
|
||||
else:
|
||||
for line in udiff:
|
||||
if line.startswith("++") or line.startswith("@@") or line.startswith("--"):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user