1 00:00:00,420 --> 00:00:02,280 Hello and welcome to this video. 2 00:00:03,480 --> 00:00:10,830 In this video, I'm going to show you an improvement to the DNA injector going down to this project. 3 00:00:11,150 --> 00:00:16,200 Then you have the action version two and zippi pulling the melody and. 4 00:00:17,580 --> 00:00:18,510 So that's opening. 5 00:00:18,600 --> 00:00:19,050 Take a look. 6 00:00:20,340 --> 00:00:25,620 The only difference I make is the DNA injector does file. 7 00:00:26,430 --> 00:00:28,130 So let's open it if not back. 8 00:00:28,700 --> 00:00:29,580 Plus, plus. 9 00:00:30,710 --> 00:00:35,810 Previously we have this here, which is static. 10 00:00:36,260 --> 00:00:41,270 It means we have to actually copy this path and manually put it in here. 11 00:00:42,620 --> 00:00:46,460 So now I change the code to make it automatic. 12 00:00:47,930 --> 00:00:51,650 I put this new function called Get Tough to do now. 13 00:00:52,670 --> 00:00:54,680 Get back together automatically. 14 00:00:54,680 --> 00:00:57,330 Detect the Ghaffar. 15 00:00:58,410 --> 00:01:01,520 I need to do is make sure this is the same for the. 16 00:01:02,550 --> 00:01:10,470 S this far India injector, and you automatically detect it in the same in the same order. 17 00:01:11,370 --> 00:01:15,750 So you didn't have to go in copy this path and B.C. here like this. 18 00:01:16,410 --> 00:01:18,400 So how does this get past the hour? 19 00:01:20,040 --> 00:01:25,920 First, I've already taken up this array and make it a global variable. 20 00:01:26,190 --> 00:01:35,840 We need up here and here just before you do anything in the main function, the first thing you do is 21 00:01:35,850 --> 00:01:41,100 you get back to the air so that you will construct this path for you. 22 00:01:42,680 --> 00:01:51,380 And here is the definition I use the Microsoft Windows API call and get current day three, they get 23 00:01:51,380 --> 00:01:56,420 cut in the rectory function retrieves the current directory for the current process. 24 00:01:57,050 --> 00:02:02,540 It has got two parameters, the buffer linked to LSD buffer. 25 00:02:03,110 --> 00:02:10,970 So the buffer line is 256 because the array for extremist 256 file, you can make it longer if you want. 26 00:02:11,810 --> 00:02:15,620 And the second parameter is actually string Izell, which is this one. 27 00:02:16,760 --> 00:02:18,980 So I put this as a second parameter here. 28 00:02:20,240 --> 00:02:25,260 Once you got the current dietary EBC to the string part. 29 00:02:25,400 --> 00:02:25,760 Yeah. 30 00:02:26,570 --> 00:02:34,520 And then in the next function, I use a string function to obtain this Microsoft pind have string to 31 00:02:34,520 --> 00:02:35,000 the path. 32 00:02:35,810 --> 00:02:43,100 So in the end, you will get a full path containing your and Microsoft Bendern in this format. 33 00:02:43,490 --> 00:02:46,190 But we the double stick that back. 34 00:02:46,940 --> 00:02:49,700 So let me run this and show you how it works. 35 00:02:50,060 --> 00:02:51,920 You can compile it in a normal manner. 36 00:02:52,370 --> 00:02:56,120 So if you want a company, we just copy the path. 37 00:02:56,570 --> 00:02:57,650 Open the. 38 00:02:59,260 --> 00:03:08,920 Xixi for Netiv to command from a TV space, right click to change directory, hit, enter, and then 39 00:03:08,920 --> 00:03:13,810 you can compile the new DNA injector using the same compiler script. 40 00:03:16,040 --> 00:03:26,330 After compiling, you can run it, you know, usually do you inject it into it and you can see the merits 41 00:03:26,330 --> 00:03:27,170 of being boxer. 42 00:03:29,530 --> 00:03:31,930 So this nine here. 43 00:03:32,020 --> 00:03:36,430 But did you print for you after the game like this? 44 00:03:36,760 --> 00:03:40,530 So this line is coming from this spring. 45 00:03:40,760 --> 00:03:42,460 Year after year. 46 00:03:44,340 --> 00:03:50,550 So in print for you, the result of string concatenation, which was done by the string cat. 47 00:03:51,840 --> 00:03:55,380 So I hope this improvement makes it easy for you guys. 48 00:03:55,890 --> 00:04:01,600 So now you don't have to worry about having to copy that path and manually inserted here. 49 00:04:03,180 --> 00:04:08,280 All you need to do is put your gear file in the same directory. 50 00:04:09,070 --> 00:04:11,340 So, yes, he injector. 51 00:04:12,110 --> 00:04:21,330 And in the future, I soon be using the machine to of the game, which can automatically detect idea. 52 00:04:22,560 --> 00:04:23,820 See you in the next lesson. 53 00:04:24,240 --> 00:04:25,860 Thank you for watching.