| 318 | } |
| 319 | |
| 320 | static 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 | |
| 338 | static long U4_JobScheduler_FetchNextJob(JobScheduler* t, int* x) |
| 339 | { |
no outgoing calls
no test coverage detected