MCPcopy Create free account
hub / github.com/Farama-Foundation/Stable-Retro / IntInfoAddStringModule

Function IntInfoAddStringModule

cores/fbneo/src/intf/interface.cpp:77–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77INT32 IntInfoAddStringModule(InterfaceInfo* pInfo, TCHAR* szString)
78{
79 INT32 i;
80
81 for (i = 0; pInfo->ppszModuleSettings[i] && i < INT_INFO_STRINGS; i++) { }
82
83 if (i >= INT_INFO_STRINGS) {
84 return 1;
85 }
86
87 pInfo->ppszModuleSettings[i] = (TCHAR*)malloc(MAX_PATH * sizeof(TCHAR));
88 if (pInfo->ppszModuleSettings[i] == NULL) {
89 return 1;
90 }
91
92 _tcsncpy(pInfo->ppszModuleSettings[i], szString, MAX_PATH);
93
94 return 0;
95}
96

Callers 11

cntProfileGetSettingsFunction · 0.85
XAudio2GetSettingsFunction · 0.85
DxGetSettingsFunction · 0.85
GetSettingsFunction · 0.85
GetSettingsFunction · 0.85
GetSettingsFunction · 0.85
dx9GetSettingsFunction · 0.85
dx9AltGetSettingsFunction · 0.85
vidGetSettingsFunction · 0.85
GetSettingsFunction · 0.85
vidGetSettingsFunction · 0.85

Calls 1

mallocFunction · 0.50

Tested by

no test coverage detected