Fixed m2ctx.py issues

This commit is contained in:
David
2025-03-14 14:58:06 -04:00
parent 019b2fa9d0
commit 484d2bc100
2 changed files with 12 additions and 6 deletions
+4 -4
View File
@@ -16,10 +16,10 @@ typedef enum MemoryPools {
} MemoryPools;
typedef enum MempoolFlags {
SLOT_FREE = 0, // The slot is free.
SLOT_USED = (1 << 0), // The slot is used.
SLOT_LOCKED = (1 << 1), // The slot is used, and cannot be freed by normal means.
SLOT_SAFEGUARD = (1 << 2), // The slot is used, and marks the stopping point of a global pool clear.
SLOT_FREE = 0, // The slot is free.
SLOT_USED = (1 << 0), // The slot is used.
SLOT_LOCKED = (1 << 1), // The slot is used, and cannot be freed by normal means.
SLOT_SAFEGUARD = (1 << 2) // The slot is used, and marks the stopping point of a global pool clear.
} MempoolFlags;
#define RAM_END 0x80400000
+8 -2
View File
@@ -16,7 +16,7 @@ ignoreFiles = ["include/sys/regdef.h"]
search_folders = ["include/", "src/"]
# Needed for StereoPanMode
includeFiles = ['include/PR/libaudio.h']
includeFiles = ['lib/src/audio/synstartvoiceparam.h']
hack_directives_into_singleline = ['DRAW_TABLE_ENTRY', 'DRAW_TABLE_GROUP']
@@ -66,7 +66,13 @@ def fix_enums(text):
# Fixes up a string to make it look nice. Also removes some unnecessary stuff.
def cleanup_string(text):
return ' '.join(text.strip().replace('UNUSED', '').replace('extern', '').replace('\t', ' ').replace('\n', ' ').split())
return ' '.join(text.strip()
.replace('UNUSED', '')
.replace('extern', '')
.replace('__stdcall', '')
.replace('\t', ' ')
.replace('\n', ' ')
.split())
# Returns the arguments for a function in a nice clean way.
def get_cleaned_args(argsString):