Gameboy emulator
▲ 16 r/EmuDev

Gameboy emulator

I'm 15, made this mostly over a few days even though I technically started about 2 weeks ago. Here's the code https://github.com/MorganPG1/py-dmg-emu Yes I know it's a terrible emulator, I'm still kinda proud because I made it but i feel like I should be more proud than I am but I also hate when people say I'm good at stuff because I always feel bad at it for some reason so I think I'm just hard to please (ignore this random vent mb). It's not fully fleshed out, I've still gotta make an APU and finish off the PPU, and add SRAM and all the other MBCs, the list of unfinished stuff goes on and on.. I'm not sure if I'll do all those things, adding audio will probably make it even slower. But it works, it runs pokemon, so im happy.

I'm currently rewriting it in C (cpu is done but not much else), has anyone got some ideas of other emulation projects I can do, should I go backwards and write a chip 8 emulator for the fun of it, should I write a gameboy emulator in as many languages as possible, are there any other somewhat simple projects I can make that are harder but not too much difficult?

Anyway, it was really fun to make and that's all that matters imo.

u/MorganPG1 — 8 days ago

programming friends?

I like making friends, I have some programming friends and I'm in an instagram group chat someone posted recently but I like meeting more people.

If you are near the same age as me (15), preferably also in a similar timezone to me (GMT+0, or technically GMT+1 currently because it's summer) and you want to chat feel free to add me on discord (@morganpgyt) or comment any alternatives you prefer.

My github account is: https://github.com/MorganPG1 if you want to check out some of my projects. A lot of my code is either in private repos or on my hard drive and a lot of it has gone missing over the years (i started "coding" when i was 7 even though it was just terrible batch scripts, i first properly started coding when i was 8/9 (i dont remember which) in lua and when i was 10 in python, so you can imagine a lot of that has been lost since then.) So you can only really see a glimpse of my actual code, but the code that's public is the code i'm proud of most. Feel free to roast it or whatever idk (i know the code in gb-dmg-emu is messy af i still need to clean it up but im currently working on a rewrite of it in C so i'm focusing on that more).

u/MorganPG1 — 8 days ago
▲ 58 r/Honor

What ACTUALLY caused the screenshot bug - without misinformation

Now before i start I'll set two things straight:

- Honor ARE NOT viewing your screenshots, or storing them on a remote server

- This bug has not nothing to do with the apps installed on your phone, it is not caused by Google Chrome or system webview

So, the point of this post is to say one thing for definite, what actually caused the screenshot bug?

I already have a full analysis here if anyone with a programming background is interested, but I'm going to simplify this a lot to make it understandable for everyone.

Inside of every single android phone there is hidden configuration data, this is not meant to be modified by the user but you can do it through a computer and some software.

When I finished analysing the code for SystemUI (the main user interface and the thing creating the error notification), i found that the bug is caused by a certain configuration option within SystemUI, when this option is enabled all screenshots fail to be taken, when it is disabled they work fine with no error messages.

Why is this, you may ask; well this specific option enables a feature that is not yet implemented. Because it is not implemented, trying to use it causes all screenshots to crash.

I can enable and disable this option from my laptop, so i was able to fix the bug on my phone 5 minutes before honor started pushing out the fix globally, but after I found the fix i re-enabled the option so I couldn't take screenshots because I was interested if honor would do the same fix i did. And sure enough, a couple of hours later, my screenshots fixed themselves and when i read the value of the option from my laptop, it was now disabled.

How did this happen? Well, as is evident in the fact that they were both able to cause, and fix this bug remotely without software updates, honor are clearly able to remotely control the central configuration of the phone.

Since the bug was caused by a non-existent feature being activated, my best guess for what happened is this may have been intended to go alongside a software update that added the feature, but they accidentally pushed this change way too early and broke screenshots on devices worldwide.

I still don't understand how a software team on such a big company could make such a silly mistake, but at least they arent collecting our screenshots.

reddit.com
u/MorganPG1 — 3 months ago
▲ 33 r/Honor

Screenshot bug

Hey everyone, I have reverse engineered the systemui software to find what the screenshot bug is caused by. There was a server side device configuration update which activated a feature which is not implemented (stubbed with a function that raises a nullpointerexception) causing the screenshot handler to crash. If you are familiar with adb and are encountering the bug run the following command to disable the configuration change

adb shell device_config put systemui enable_screenshot_notification_smart_actions false

Hope this helps someone out

reddit.com
u/MorganPG1 — 3 months ago
▲ 23 r/vaio+1 crossposts

Sound issue

Hello, i recently obtained this laptop for fairly cheap, the only issue I've found is that I cannot get the internal speakers to make any sound, i can get sound through the external port but not the internal speakers. I measured both speakers and got 8 ohm so i think they are fine but I can't figure out how to force the audio to go through the internal speakers rather than the external ones

u/MorganPG1 — 3 months ago

VAIO PCG-GR215SP

This is the first working xp laptop I've found (i have been gifted a broken dell from same era previously but the part that was broken was discontinued and incredibly expensive and would have cost me way too much to fix).

I love old laptops since unlike most newer laptops, they all have their own unique designs. I also have an Acer laptop which did originally run vista but is currently running Linux mint because I was experimenting with the builtin ir sensor, I can't be bothered to get it out right now though.

This one seems to work (mostly) fine, I'm still trying to get sound to work, i might need Sony proprietary software for it to work but I'm not quite sure, I've already downloaded the drivers for it but it seems the speakers are meant to be controlled with the fn keys which don't do anything so I think i need to reinstall from the factory image which I think I've been able to find (i also dumped the hdd before I reinstalled the os in case I needed drivers from it).

I paid about £10 for this which is quite a good deal, it's hard to find laptops from this age for cheap outside of charity shops and bootfairs since people on ebay just think old/retro means rare and sell them for upwards of 50 quid when, if we are being honest, these are pretty much junk outside of people like me and probably others here who like collecting them.

u/MorganPG1 — 3 months ago

Not too retro but idk else where to put this

Bought this thing for £20 at a boot fair (idk what that's called in other countries but pretty much place where a bunch of people sell random stuff, it's usually in a field). Not sure if that's the best deal or not but it came with controllers (have to fix one when I get time because battery leaked and rusted contacts 😑) and the power brick so i thought it was worth it. I already modded it and I've been playing it for like a few days now and it's so great, i havent played on a wii since I was like 7. I also helped my mate mod his wii u so we could play Mario kart multiplayer which has been a blast.

Any suggestions for other cool stuff I can do with this would be appreciated.

u/MorganPG1 — 3 months ago