MCPcopy Create free account
hub / github.com/clementgallet/libTAS / GetUnityVersionMaj

Function GetUnityVersionMaj

src/library/UnityHacks.cpp:320–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static int GetUnityVersionMaj()
321{
322 if (unity_version_int[0] != 0)
323 return unity_version_int[0];
324 else {
325 /* Try to guess the version from the hooked functions */
326 if (orig::U4_JobScheduler_ProcessJob)
327 unity_version_int[0] = 4;
328 else if (orig::U5_JobQueue_Exec)
329 unity_version_int[0] = 5;
330 else if (orig::U6_ujob_execute_job)
331 unity_version_int[0] = 6000;
332 else
333 unity_version_int[0] = 2018; // TODO!
334 }
335 return unity_version_int[0];
336}
337
338static long U4_JobScheduler_FetchNextJob(JobScheduler* t, int* x)
339{

Calls

no outgoing calls

Tested by

no test coverage detected