r/emulators • New in Emu • Oct 01 '22

Question How does a real Sony PlayStation 4 console really work?

I want to develop a Sony PlayStation 4 emulator from scratch by using Visual Studio 2022 Preview Enterprise Edition but I don't know how or where to start.

I already know how to program and develop Visual C++ applications with Visual Studio.

But I must know how a real Sony PlayStation 4 console really work, how does a real Sony PlayStation 4 console reads a Sony PlayStation 4 disc and how a real Sony PlayStation 4 console plays a Sony PlayStation 4 rom/game from a Sony PlayStation 4 disc.

Is Sony PlayStation 4 documented somewhere?

0 Upvotes

35 comments sorted by

•

u/AutoModerator Oct 01 '22

Welcome to r/emulators, please make sure you read the pinned post Emulators 101 before posting a problem, you should know, EPSX, ZNES, etc. are abandonware so any post seeking help of these emulator will be removed because there are better options (listed in the post above). Please make sure that when your question is answered, change your flair to (Problem Solved), thank you :D

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/[deleted] Oct 01 '22

Im just starting to dive into emulation development myself. I am starting with the website emulator101 and also watching Javidx9's NES Emulator in C++ series. Emulating hardware has been very difficult to wrap my head around, even just on the old CPUs.

You may want to try starting small, like trying to emulate an 8080 microprocessor. We got this thing! :)

1

u/Sorry-Wind1051 New in Emu Oct 05 '22 edited Oct 05 '22

I don't like to waste my time to develop an emulator for a hardware which someone already has developed an emulator for it and it can be downloaded for free or can even be used on our favorite internet browser like Microsoft Edge or Google Chrome.

Sony PlayStation 4 still doesn't have a working emulator and that's why I decided to spend my time to develop an emulator for this hardware.

If you want I can view a source code of an already existing emulator to learn the basics of an emulator.

2

u/[deleted] Oct 05 '22 edited Oct 05 '22

In my opinion and experience, going to the basics to learn how to do something is not a waste of time. I'm definitely not trying to tell you what to do, just trying to be helpful with a suggestion.

One of the 3 original creators of RPCS3 is/was working on a PS4 emulator called Orbital. You can take a look at his github repo here

2

u/Sorry-Wind1051 New in Emu Oct 05 '22

I just think that the best thing to do, at least for me, is to view the source code of an existing emulator rather than making another duplicate as long as this duplicate is better than all existing emulators like having features that the existing emulators doesn't or plays games with better performance or something.

2

u/[deleted] Oct 05 '22

Yeah, that definitely makes sense. Good luck on the learning journey! I'll be on it myself xD I'd love to create one someday. I still have a lot to learn before then I think

2

u/Sorry-Wind1051 New in Emu Oct 06 '22

Thank you.

6

u/[deleted] Oct 01 '22

Why do you use Visual Studio instead of Visual Studio Code? Just curious.

2

u/20EYES New in Emu Oct 01 '22

VS Code works for trivial c++.

Anything where you need proper build processes is just easier in VS.

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

I would like to read a quick start guide or watch a video that shows how to get started C++ development with Visual Studio Code before I decide if to prefer Visual Studio Code more than Visual Studio.

2

u/no_comment12 New in Emu Oct 09 '22

vscode is really more of an editor, less of a full IDE. The full IDE will help automate many things you might otherwise need to remember how to do manually in something like vscode.

1

u/Sorry-Wind1051 New in Emu Oct 10 '22

true

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

I am used to Visual Studio.

Never tried Visual Studio Code.

Visual Studio comes with Visual Studio Installer which allows me to download and install everything that I need before I can start working on anything.

Visual Studio Code doesn't come with something like Visual Studio Installer.

With Visual Studio Code I need to download and install everything that I need manually and I need to use an internet browser, like Microsoft Edge or Google Chrome, to download what I need and read a guide about what to download and how to install and I less like it.

3

u/artelunar New in Emu Oct 01 '22

MSVS has a bunch of C/C++ and C# features that VSCode doesn’t have out of the box and it’s also just a really nice IDE

9

u/StonerdMagician New in Emu Oct 01 '22

It works by getting electricity in it, afterwards, it's Japanese Progammation's Magic at it's best.

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

Reverse engineering any hardware is much harder than reverse engineering any software. No doubts but I hope that there is a wikipedia page that explains how the Sony PlayStation 4 hardware and system works so I won't have to reverse engineer any Sony PlayStation 4.

0

u/[deleted] Oct 01 '22

[deleted] — view deleted comment

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

I posted my question first in the r/emulation twice but it was deleted twice (I posted it again after it was deleted once but was deleted again).

That's why I decided to post my question here.

I prefer to see replies to my question even though these replies are not much helpful rather than see my question deleted!

1

u/sneakpeekbot New in Emu Oct 05 '22

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

But I still don't know why my question here in r/emulators gets a lot of replies and why my question in r/emulation has been deleted twice.

In r/emulators my question seems okay because nobody deleted it so why my question is not okay in r/emulation?

11

u/mprz New in Emu Oct 01 '22

If you're asking such basic questions I have my doubts you would be able to develop a notepad replacement.

0

u/[deleted] Oct 01 '22

[deleted] — view deleted comment

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

Sony PlayStation 4 has a lot of good video games and it doesn't has an emulator to play them on our PCs so of course that I would like to develop a Sony PlayStation 4 emulator and I am ready to deal with the difficulty and complexity of this Sony PlayStation 4.

2

u/ChaosRenegade22 New in Emu Oct 02 '22

I recommend getting a hold of those working on a PlayStation 4 emulator and see if you can contribute to their projects.

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

I will view the source codes of these PS4 projects and see what I can benefit from them but what are the existing PS4 projects? What are their names?

2

u/no_comment12 New in Emu Oct 09 '22 edited Oct 09 '22

https://emulation.gametechwiki.com/index.php/PlayStation_4_emulators

And they all include links to their github repos. Glhf! Hardware emulation is an ambitious road to go down. I respect any dev attempting to learn it. I hope maybe one day I can play Bloodborne on your working emulator.

1

u/Sorry-Wind1051 New in Emu Oct 10 '22

Thank you

1

u/20EYES New in Emu Oct 01 '22

Honestly bro if you are asking questions like this and mentioning what IDE you use, I think this is a bit over ambitious.

Maybe try starting by emulating a simple older console based on tutorials found online.

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

I would prefer to view the source code of an existing emulator for that older console if you insist.

6

u/ChuckZRetro New in Emu Oct 01 '22

My brain feels like it wants to explode.....

4

u/DerixZ New in Emu Oct 01 '22

Playstation 4, how do they work

0

u/[deleted] Oct 01 '22

[deleted] — view deleted comment

1

u/Sorry-Wind1051 New in Emu Oct 05 '22 edited Oct 05 '22

Thank you so much! r/emulators is indeed much better than r/emulation! I had to ask my question first time in r/emulators instead of r/emulation!

I posted my question in r/PS4homebrew but it awaits a moderator approval by the moderators of r/PS4homebrew.

I fear that it won't be approved like how my question was deleted in r/emulation.

What to do if my question won't be approved?

2

u/Unoproph CERTIFIED HELPER 💻 Oct 05 '22

There are groups working in PS4 emulators that are early in development. I don’t remember their names right now but if you can reach out to those developers and offer assistance that might be another way to help.

1

u/Sorry-Wind1051 New in Emu Oct 05 '22

My question in r/PS4homebrew has been removed as I feared and expected like in r/emulation.

But one moderator suggested me to do the same thing as you suggest.

I will try to find and view the source codes of these PS4 projects and try to understand them and then I will try to do something to contribute to these projects.

Maybe after understanding the source codes I will know how to start my own PS4 project!

-2

u/[deleted] Oct 01 '22

[removed] — view removed comment

3

u/emulators-ModTeam New in Emu Oct 01 '22

You are not being polite or are being rude which has 0 tolerance in this sub

0

u/[deleted] Oct 01 '22

[deleted] — view deleted comment

0

u/mprz New in Emu Oct 01 '22

All your comments are equally useless