aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/squirrel/squirreldatatypes.h
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-01-04 21:12:53 +0000
committerGitHub <noreply@github.com>2023-01-04 21:12:53 +0000
commitefc7befe1fc6b6bdec8249e8abf6d2b7cfa1a0ff (patch)
tree3443d3710be23df70ef9695e63abe7cddfb9d35d /NorthstarDLL/squirrel/squirreldatatypes.h
parent4fb1ae07d8f078e7abde99900c6a8286148a380a (diff)
downloadNorthstarLauncher-efc7befe1fc6b6bdec8249e8abf6d2b7cfa1a0ff.tar.gz
NorthstarLauncher-efc7befe1fc6b6bdec8249e8abf6d2b7cfa1a0ff.zip
Improve response to UI VM compile errors (#388)
* log reaction to script compile errors * move log line to make a bit more sense * change log message and show console on non-fatal ui compile error * improve SQSharedState struct and CSquirrelVM struct Co-Authored-By: Maya <11448698+RoyalBlue1@users.noreply.github.com> * Improve IsUIVM Co-Authored-By: Maya <11448698+RoyalBlue1@users.noreply.github.com> * Remove now-unnecessary showing of console * remove extra logging Co-authored-by: Maya <11448698+RoyalBlue1@users.noreply.github.com>
Diffstat (limited to 'NorthstarDLL/squirrel/squirreldatatypes.h')
-rw-r--r--NorthstarDLL/squirrel/squirreldatatypes.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/NorthstarDLL/squirrel/squirreldatatypes.h b/NorthstarDLL/squirrel/squirreldatatypes.h
index b5025f6b..84ab15ec 100644
--- a/NorthstarDLL/squirrel/squirreldatatypes.h
+++ b/NorthstarDLL/squirrel/squirreldatatypes.h
@@ -19,6 +19,7 @@ struct SQNativeClosure;
struct SQArray;
struct tableNode;
struct SQUserData;
+struct CSquirrelVM;
typedef void (*releasehookType)(void* val, int size);
@@ -395,7 +396,7 @@ struct SQSharedState
SQString* _SpinOffStringValue;
SQObjectType _SpinOffDelayedStringType;
SQString* _SpinOffDelayedStringValue;
- unsigned char gap_43E8[8];
+ CSquirrelVM* cSquirrelVM;
bool enableDebugInfo; // functionality stripped
unsigned char gap_43F1[23];
};
@@ -470,11 +471,16 @@ struct SQCompiler
/* 155 */
struct CSquirrelVM
{
- unsigned char gap_0[8];
+ BYTE gap_0[8];
HSquirrelVM* sqvm;
- unsigned char gap_10[44];
- int loadEnumFromFileMaybe;
- unsigned char gap_40[200];
+ BYTE gap_10[8];
+ SQObject unknownObject_18;
+ __int64 unknown_28;
+ BYTE gap_30[12];
+ __int32 vmContext;
+ BYTE gap_40[648];
+ char* (*formatString)(__int64 a1, const char* format, ...);
+ BYTE gap_2D0[24];
};
struct SQUserData