mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-26 23:00:30 +00:00
PCShell placeholders
This commit is contained in:
parent
052d2370a4
commit
93a8903687
104
PCShell.cpp
104
PCShell.cpp
@ -1 +1,103 @@
|
||||
#include "PCShell.h"
|
||||
#include "PCShell.h"
|
||||
|
||||
// @MEDIUMTODO
|
||||
void PCSHELL_CheckTriggers(u32,i32,i32)
|
||||
{
|
||||
printf("PCSHELL_CheckTriggers(uint,i32,i32)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_CoordsDCtoPC(i32 *,i32 *)
|
||||
{
|
||||
printf("PCSHELL_CoordsDCtoPC(i32 *,i32 *)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_CoordsPCtoDC(i32 *,i32 *)
|
||||
{
|
||||
printf("PCSHELL_CoordsPCtoDC(i32 *,i32 *)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_DoControllerConfig(bool)
|
||||
{
|
||||
printf("PCSHELL_DoControllerConfig(bool)");
|
||||
}
|
||||
|
||||
// @MEDIUMTODO
|
||||
void PCSHELL_DoDisplayOptions(void)
|
||||
{
|
||||
printf("PCSHELL_DoDisplayOptions(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_DrawMouseCursor(void)
|
||||
{
|
||||
printf("PCSHELL_DrawMouseCursor(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_Initialize(void)
|
||||
{
|
||||
printf("PCSHELL_Initialize(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_IsMouseOver(i32,i32,i32,i32)
|
||||
{
|
||||
printf("PCSHELL_IsMouseOver(i32,i32,i32,i32)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_IsMouseOverText(char const *,i32,i32,i32)
|
||||
{
|
||||
printf("PCSHELL_IsMouseOverText(char const *,i32,i32,i32)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_MouseMoved(void)
|
||||
{
|
||||
printf("PCSHELL_MouseMoved(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_Relax(void)
|
||||
{
|
||||
printf("PCSHELL_Relax(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_Shutdown(void)
|
||||
{
|
||||
printf("PCSHELL_Shutdown(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void PCSHELL_UpdateMouse(void)
|
||||
{
|
||||
printf("PCSHELL_UpdateMouse(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void displayControllerScreen(void)
|
||||
{
|
||||
printf("displayControllerScreen(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void initActionMaps(void)
|
||||
{
|
||||
printf("initActionMaps(void)");
|
||||
}
|
||||
|
||||
// @MEDIUMTODO
|
||||
void processControllerScreen(void)
|
||||
{
|
||||
printf("processControllerScreen(void)");
|
||||
}
|
||||
|
||||
// @SMALLTODO
|
||||
void resetActionMaps(bool)
|
||||
{
|
||||
printf("resetActionMaps(bool)");
|
||||
}
|
||||
|
22
PCShell.h
22
PCShell.h
@ -3,4 +3,24 @@
|
||||
#ifndef PCSHELL_H
|
||||
#define PCSHELL_H
|
||||
|
||||
#endif
|
||||
#include "export.h"
|
||||
|
||||
EXPORT void PCSHELL_CheckTriggers(u32,i32,i32);
|
||||
EXPORT void PCSHELL_CoordsDCtoPC(i32 *,i32 *);
|
||||
EXPORT void PCSHELL_CoordsPCtoDC(i32 *,i32 *);
|
||||
EXPORT void PCSHELL_DoControllerConfig(bool);
|
||||
EXPORT void PCSHELL_DoDisplayOptions(void);
|
||||
EXPORT void PCSHELL_DrawMouseCursor(void);
|
||||
EXPORT void PCSHELL_Initialize(void);
|
||||
EXPORT void PCSHELL_IsMouseOver(i32,i32,i32,i32);
|
||||
EXPORT void PCSHELL_IsMouseOverText(char const *,i32,i32,i32);
|
||||
EXPORT void PCSHELL_MouseMoved(void);
|
||||
EXPORT void PCSHELL_Relax(void);
|
||||
EXPORT void PCSHELL_Shutdown(void);
|
||||
EXPORT void PCSHELL_UpdateMouse(void);
|
||||
EXPORT void displayControllerScreen(void);
|
||||
EXPORT void initActionMaps(void);
|
||||
EXPORT void processControllerScreen(void);
|
||||
EXPORT void resetActionMaps(bool);
|
||||
|
||||
#endif
|
||||
|
@ -39,9 +39,21 @@ def generate_body(name, size):
|
||||
printf("{name}");
|
||||
}}''')
|
||||
|
||||
def replace_type(orig, width, string):
|
||||
return string.replace(f'({orig})', f'({width})').replace(f',{orig})', f',{width})').replace(f'({orig},', f'({width},').replace(f',{orig},',f',{width},').replace(f'{orig} *', f'{width} *')
|
||||
|
||||
def set_widthed_type(entry):
|
||||
'''
|
||||
entry = entry.replace('(int)', '(i32)').replace(',int)', ',i32)').replace('(int,', '(i32,').replace(',int,',',i32,')
|
||||
entry = entry.replace('(uchar)', '(u8)').replace(',uchar)', ',u8)').replace('(uchar,', '(u8,').replace(',uchar,',',u8,')
|
||||
entry = entry.replace('(ulong)', '(u32)').replace(',ulong)', ',u32)').replace('(ulong,', '(u32,').replace(',ulong,',',u32,')
|
||||
'''
|
||||
entry = replace_type('int', 'i32', entry)
|
||||
entry = replace_type('uchar', 'u8', entry)
|
||||
entry = replace_type('ulong', 'u32', entry)
|
||||
entry = replace_type('uint', 'u32', entry)
|
||||
|
||||
|
||||
entry = entry.replace('&', '*')
|
||||
entry = entry.replace('((', '(').replace('))',')')
|
||||
return entry
|
||||
|
Loading…
Reference in New Issue
Block a user