mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Extension framework changes
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
* Just the image path or "" if none
|
||||
*/
|
||||
|
||||
#include "ace_common.h"
|
||||
#include "shared.hpp"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
@ -41,12 +41,14 @@ std::string getImagePathFromStructuredText(const std::string & input) {
|
||||
#pragma warning( disable : 4996 )
|
||||
|
||||
void __stdcall RVExtension(char *output, int outputSize, const char *function) {
|
||||
ZERO_OUTPUT();
|
||||
if (!strcmp(function, "version")) {
|
||||
strncpy(output, ACE_FULL_VERSION_STR, outputSize);
|
||||
} else {
|
||||
strncpy(output, getImagePathFromStructuredText(function).c_str(), outputSize);
|
||||
output[outputSize - 1] = '\0';
|
||||
}
|
||||
EXTENSION_RETURN();
|
||||
}
|
||||
|
||||
#pragma warning( pop )
|
||||
|
Reference in New Issue
Block a user