Jump to content

How to modify source code from GitHub

I want to enhance a feature within OBS studio (I know a bit of C++ so knowing the language is not my question) and so I downloaded the .zip "master folder" from GitHub and extracted it.

I have gotten to this page:

https://obsproject.com/forum/threads/getting-started-with-obs-development.21326/

However I am looking for the replay Buffer section. I want to be able to make it so depending on the key you press it will write different lengths of re recorded data.

Right now the feature lets you type in how long duration you want to keep (The past 10 minutes) and then at the key press it will save the last 10 minutes instead of constantly recording everything you do.

 

I want to make it so the past 10 minutes will be recorded (onto ram as it currently does) and if I press key 1 it will save the past 10 minutes, but if I press key 2 it will record the past 30 seconds instead of the whole 10 minutes.

Link to comment
https://linustechtips.com/topic/758427-how-to-modify-source-code-from-github/
Share on other sites

Link to post
Share on other sites

The first step is making sure you can actually build the program. The source code or project page should have documentation on how to do that.

 

Then use your text editor of choice to poke around in the source code, play with it, figure out what does what.

 

I'm sort of being mean here, because if you're asking us how to modify source code in what seems like "what line do I edit and what do I edit it with?", you probably shouldn't be modifying source code.

Link to post
Share on other sites

To follow up: use git, create a branch, make your changes, commit the changes, submit a pull request.

Desktop: Intel i9-10850K (R9 3900X died 😢 )| MSI Z490 Tomahawk | RTX 2080 (borrowed from work) - MSI GTX 1080 | 64GB 3600MHz CL16 memory | Corsair H100i (NF-F12 fans) | Samsung 970 EVO 512GB | Intel 665p 2TB | Samsung 830 256GB| 3TB HDD | Corsair 450D | Corsair RM550x | MG279Q

Laptop: Surface Pro 7 (i5, 16GB RAM, 256GB SSD)

Console: PlayStation 4 Pro

Link to post
Share on other sites

Yeah downloading the zip is not really the way to go. Get to know the git platform.. your IDE may have buit-in support for it (check VCS - version control software) and you should:

On 28/3/2017 at 0:52 AM, mathijs727 said:

use git, create a branch, make your changes, commit the changes, submit a pull request.

https://www.codecademy.com/learn/learn-git

Personal Rig:

[UPGRADE]

CPU: AMD Ryzen 5900X    Mb: Gigabyte X570 Gaming X    RAM: 2x16GB DDR4 Corsair Vengeance Pro    GPU: Gigabyte NVIDIA RTX 3070    Case: Corsair 400D    Storage: INTEL SSDSCKJW120H6 M.2 120GB    PSU: Antec 850W 80+ Gold    Display(s): GAOO, 现代e窗, Samsung 4K TV

Cooling: Noctua NH-D15    Operating System(s): Windows 10 / Arch Linux / Garuda

 

[OLD]

CPU: Intel(R) Core(TM) i5-6500 @ 3.2 GHz    Mb: Gigabyte Z170X-Gaming 3    RAM: 2x4GB DDR4 GSKILL RIPJAWS 4    GPU: NVIDIA GeForce GTX 960    Case: Aerocool PSG V2X Advance    Storage: INTEL SSDSCKJW120H6 M.2 120GB    PSU: EVGA 500W 80+ Bronce    Display(s): Samsung LS19B150

Cooling: Aerocool Shark White    Operating System(s): Windows 10 / Arch Linux / OpenSUSE

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×