Compiles on dolphin, finally
This commit is contained in:
@@ -33,13 +33,13 @@ with open(args.csv, newline="", encoding="utf-8") as csvfile:
|
||||
# For each ID, create enum entry.
|
||||
count = 0
|
||||
outHeader += "typedef enum {\n"
|
||||
outHeader += f" INPUT_ACTION_NULL = {count},\n\n"
|
||||
outHeader += f" INPUT_ACTION_NULL = 0x{count:x},\n\n"
|
||||
count += 1
|
||||
for inputId in inputIds:
|
||||
inputIdValues[inputId] = count
|
||||
outHeader += f" {csvIdToEnumName(inputId)} = {count},\n"
|
||||
outHeader += f" {csvIdToEnumName(inputId)} = 0x{count:x},\n"
|
||||
count += 1
|
||||
outHeader += f"\n INPUT_ACTION_COUNT = {count}\n"
|
||||
outHeader += f"\n INPUT_ACTION_COUNT = 0x{count:x}\n"
|
||||
outHeader += "} inputaction_t;\n\n"
|
||||
|
||||
# Write IDs to char array.
|
||||
|
||||
Reference in New Issue
Block a user