Readme script update

This commit is contained in:
iota97 2021-01-02 14:03:43 +01:00
parent 1282653ba9
commit 7ad5c7a833
3 changed files with 160 additions and 150 deletions

204
README.md
View File

@ -27,55 +27,55 @@ For game compatibility, see [community compatibility feedback](https://report.pp
What's new in 1.10.3
--------------------
* Fix for control layout editor ([#13125][])
* Fix for control layout editor ([#13125])
What's new in 1.10.2
--------------------
* More crashfixes ([#13094][], [#13093][])
* Improve download performance and cancel behavior ([#13095][])
* Restore the removed I/O on Thread option ([#13096][])
* More crashfixes ([#13094], [#13093])
* Improve download performance and cancel behavior ([#13095])
* Restore the removed I/O on Thread option ([#13096])
What's new in 1.10.1
--------------------
* Fixes for common crashes ([#13077][], [#13076][], see [#13057][])
* Fix for offset rendering in D3D9 ([#13071][])
* Fixes for common crashes ([#13077], [#13076], see [#13057])
* Fix for offset rendering in D3D9 ([#13071])
What's new in 1.10.0
--------------------
* Graphics and compatibility fixes ([#12800][], [#12670][], [#12635][], [#12857][], [#12941][], [#11898][], [#12695][], more)
* Assorted minor performance improvements, game load speedup ([#12462][], [#12652][])
* Screen inset (notch) support on Android ([#12779][])
* Analog stick support for menu navigation ([#12685][])
* Fixed audio glitches in SDL builds ([#12916][], [#12920][])
* Support more languages in in-game dialogs ([#12702][]). Croatian language added to PPSSPP.
* Simple multiplayer chat ([#12667][])
* More advanced postprocessing (multipass, parameters) ([#12905][], [#12901][])
* Add PPSSPP-specific CWCheat ([#12816][], [#12912][])
* Reintroduce Cardboard VR, allow more resolutions ([#12449][], [#8714][])
* Fix some crashes ([#12908][], [#12876][])
* Ghost in the Shell graphics fixed (JIT inaccuracy with inf*0) ([#12519][])
* Mac build now supports Vulkan on top of MoltenVK ([#12583][])
* Raspberry Pi 4 EGL crash fixed ([#12474][])
* VSync now supported on all backends, frame duplication option added for 30 Hz games ([#12659][], [#12602][])
* Camera supported on Windows, Linux and Mac (still no microphone though) ([#12572][], [#12580][], [#12607][])
* Darkstalkers fixed and working through software rendering. SW rendering fixed on GLES 2.0 ([#12443][], [#12898][])
* Hot Shots Golf slowdown and flicker on Vulkan fixed ([#12873][], [#12746][])
* Pangya Golf crashes and hangs fixed ([#12718][])
* Allow rebinding of right touch screen analog ([#12486][])
* Add option to prevent mipmaps from being dumped ([#12818][])
* Tilt control now have a base radius to help with deadzone ([#12756][])
* Mappable auto rotating analog stick to pass some game checks ([#12749][])
* Touch control position can now be snapped to a grid ([#12517][])
* HiDPI retina display support ([#12552][])
* Rapid-fire on touch control ([#12601][])
* Toggle mute button ([#12643][])
* Add option to resize game icons and more ([#12646][], [#12637][])
* Frames in-flight now configurable to reduce input lag at the cost of speed ([#12660][])
* Add toggle mode to combo button ([#12623][])
* SDL mouse support, Qt menu upgrades ([#12612][], [#12817][])
* Real support for chinese patched version of Hatsune Miku Project Diva Extend ([#13007][])
* Some minor kernel module support ([#13028][], [#12225][], [#13026][], [#13004][], [#13038][], [#13023][])
* Fixed fullscreen toggling with Vulkan in SDL builds ([#11974][])
* Graphics and compatibility fixes ([#12800], [#12670], [#12635], [#12857], [#12941], [#11898], [#12695], more)
* Assorted minor performance improvements, game load speedup ([#12462], [#12652])
* Screen inset (notch) support on Android ([#12779])
* Analog stick support for menu navigation ([#12685])
* Fixed audio glitches in SDL builds ([#12916], [#12920])
* Support more languages in in-game dialogs ([#12702]). Croatian language added to PPSSPP.
* Simple multiplayer chat ([#12667])
* More advanced postprocessing (multipass, parameters) ([#12905], [#12901])
* Add PPSSPP-specific CWCheat ([#12816], [#12912])
* Reintroduce Cardboard VR, allow more resolutions ([#12449], [#8714])
* Fix some crashes ([#12908], [#12876])
* Ghost in the Shell graphics fixed (JIT inaccuracy with inf*0) ([#12519])
* Mac build now supports Vulkan on top of MoltenVK ([#12583])
* Raspberry Pi 4 EGL crash fixed ([#12474])
* VSync now supported on all backends, frame duplication option added for 30 Hz games ([#12659], [#12602])
* Camera supported on Windows, Linux and Mac (still no microphone though) ([#12572], [#12580], [#12607])
* Darkstalkers fixed and working through software rendering. SW rendering fixed on GLES 2.0 ([#12443], [#12898])
* Hot Shots Golf slowdown and flicker on Vulkan fixed ([#12873], [#12746])
* Pangya Golf crashes and hangs fixed ([#12718])
* Allow rebinding of right touch screen analog ([#12486])
* Add option to prevent mipmaps from being dumped ([#12818])
* Tilt control now have a base radius to help with deadzone ([#12756])
* Mappable auto rotating analog stick to pass some game checks ([#12749])
* Touch control position can now be snapped to a grid ([#12517])
* HiDPI retina display support ([#12552])
* Rapid-fire on touch control ([#12601])
* Toggle mute button ([#12643])
* Add option to resize game icons and more ([#12646], [#12637])
* Frames in-flight now configurable to reduce input lag at the cost of speed ([#12660])
* Add toggle mode to combo button ([#12623])
* SDL mouse support, Qt menu upgrades ([#12612], [#12817])
* Real support for chinese patched version of Hatsune Miku Project Diva Extend ([#13007])
* Some minor kernel module support ([#13028], [#12225], [#13026], [#13004], [#13038], [#13023])
* Fixed fullscreen toggling with Vulkan in SDL builds ([#11974])
What's new in 1.9.0/1.9.3
-------------------------
@ -84,62 +84,62 @@ What's new in 1.9.0/1.9.3
What's new in 1.9.0/1.9.2
-------------------------
* Flicker fixed in God of War that appeared with newer drivers for Mali GPUs ([#12224][])
* Improve performance of God of War on Vulkan ([#12242][]), implement built-in GPU profiler ([#12262][], [#12266][])
* Vertex range culling fixed on ARM Mali ([#12227][])
* Started to improve VFPU precision, resulting so far in a fix for the long standing Tekken 6 leg shaking problem ([#12217][])
* Fixed a VFPU precision snafu on ARM64, fixing disappearing officers in Warriors Orochi ([#11299][]) and some problems in Tomb Raider ([#11179][]).
* Flicker fixed in God of War that appeared with newer drivers for Mali GPUs ([#12224])
* Improve performance of God of War on Vulkan ([#12242]), implement built-in GPU profiler ([#12262], [#12266])
* Vertex range culling fixed on ARM Mali ([#12227])
* Started to improve VFPU precision, resulting so far in a fix for the long standing Tekken 6 leg shaking problem ([#12217])
* Fixed a VFPU precision snafu on ARM64, fixing disappearing officers in Warriors Orochi ([#11299]) and some problems in Tomb Raider ([#11179]).
* Vulkan is the default again on Android versions newer than Pie
* Fix various homebrew store issues
* GPU pause signal handling fixed, fixing some hangs in Bleach and Armored Core games ([#12160][])
* Audio sample rate conversion handling fixes ([#12147][])
* Some Vulkan optimizations (pre-rotation ([#12216][]), perf fix in Metal Gear Acid, etc)
* Multiple fixes for the UWP build ([#12036][], others)
* MP3 playback fixes ([#12005][])
* Audio in Motorstorm: Arctic Edge fixed by returning errors correctly ([#12121][])
* Audio glitches in Final Fantasy Tactics fixed ([#9956][])
* Camera display in Invizimals fixed ([#12278][], [#8521][])
* Added hotkeys for texture dump and replace ([#11938][])
* Added Visual Studio 2019 support. Windows XP is no longer supported ([#11995][], others)
* Fixes for video capture ([#12069][])
* Added a separate sound volume for alternative speed ([#12124][])
* Improved mouse control (Windows only) ([#12173][], [#12176][])
* Support for installing texture packs and ISOs from zips ([#12175][])
* Right analog support for touch controls (only used by patched games and some HD remasters) ([#12182][])
* Android: Fix OpenSL initialization, possibly helps audio crackle a little. ([#12333][]).
* GPU pause signal handling fixed, fixing some hangs in Bleach and Armored Core games ([#12160])
* Audio sample rate conversion handling fixes ([#12147])
* Some Vulkan optimizations (pre-rotation ([#12216]), perf fix in Metal Gear Acid, etc)
* Multiple fixes for the UWP build ([#12036], others)
* MP3 playback fixes ([#12005])
* Audio in Motorstorm: Arctic Edge fixed by returning errors correctly ([#12121])
* Audio glitches in Final Fantasy Tactics fixed ([#9956])
* Camera display in Invizimals fixed ([#12278], [#8521])
* Added hotkeys for texture dump and replace ([#11938])
* Added Visual Studio 2019 support. Windows XP is no longer supported ([#11995], others)
* Fixes for video capture ([#12069])
* Added a separate sound volume for alternative speed ([#12124])
* Improved mouse control (Windows only) ([#12173], [#12176])
* Support for installing texture packs and ISOs from zips ([#12175])
* Right analog support for touch controls (only used by patched games and some HD remasters) ([#12182])
* Android: Fix OpenSL initialization, possibly helps audio crackle a little. ([#12333]).
* Fix graphics on Amazon Fire TV Stick 4K
* Fixed strange vehicle behavior in MGS:PW (somehow) ([#12342][])
* Fixed strange vehicle behavior in MGS:PW (somehow) ([#12342])
What's new in 1.8.0
-------------------
* Avoid crash when starting PPSSPP due to bad AMD Vulkan drivers ([#11802][])
* PowerVR Vulkan display corruption fixed ([#11744][], [#11747][])
* Naruto Shippuden 3 hang fixed ([#11780][])
* Fixes to various lighting bugs ([#11567][], [#11574][], [#11577][])
* Fix control issue in Sonic Rivals and Rock Band ([#11878][], [#11798][], [#11879][])
* Significant performance improvement in Earth Defense Force 2 ([#11172][])
* Fix "real clock sync" setting (helps with latency for music games - [#11813][])
* More speed in FF4 effects and other generated curves ([#11425][])
* Support for resizing Vulkan on Linux ([#11451][])
* Improved support for GLES on Linux/IoT ([#11507][], [#11537][], [#11541][], [#11632][], [#11746][], [#11806][], [#11845][])
* Percentage based frameskipping ([#11523][])
* DXT accuracy improved, fixing thick white line in Gran Turismo sky ([#11530][])
* Fix Motorstorm freeze on non-Windows ([#11618][])
* Faster block transfer in some games like Digimon Adventures ([#11531][], [#11553][], [#11776][])
* Blending optimizations and improvements ([#11543][], [#11620][])
* Improve D3D11 rendering issues ([#11584][])
* Change default graphics backend to D3D11 or OpenGL ([#11621][], [#11658][])
* Remove some outdated settings ([#11665][], [#11666][], [#11667][])
* Fix remote disc streaming with ipv6 ([#11689][], [#11700][])
* Vulkan: Workarounds for some driver bugs for 5xx series Qualcomm GPUs ([#11691][], [#11694][])
* Fix some Qt port issues with recent performance improvements ([#11720][], [#11807][], [#11808][])
* UWP Xbox One: fix X/Back button confusion ([#11740][])
* Fix Formula 1 2006 timing issue ([#11767][])
* Fixes and workarounds for some vertex range culling bugs that broke a few games ([#11785][], [#11859][]), and disable it on older GPUs ([#11712][], [#11773][], [#11787][])
* Android: Allow putting PSP storage on custom paths like SD cards ([#11812][])
* Corrected vocp instruction, fixing models in Artdink games ([#11822][], [#11835][])
* Bundle SDL in binary for macOS builds ([#11831][])
* Prevent keeping games open on Windows ([#11842][])
* Avoid crash when starting PPSSPP due to bad AMD Vulkan drivers ([#11802])
* PowerVR Vulkan display corruption fixed ([#11744], [#11747])
* Naruto Shippuden 3 hang fixed ([#11780])
* Fixes to various lighting bugs ([#11567], [#11574], [#11577])
* Fix control issue in Sonic Rivals and Rock Band ([#11878], [#11798], [#11879])
* Significant performance improvement in Earth Defense Force 2 ([#11172])
* Fix "real clock sync" setting (helps with latency for music games - [#11813])
* More speed in FF4 effects and other generated curves ([#11425])
* Support for resizing Vulkan on Linux ([#11451])
* Improved support for GLES on Linux/IoT ([#11507], [#11537], [#11541], [#11632], [#11746], [#11806], [#11845])
* Percentage based frameskipping ([#11523])
* DXT accuracy improved, fixing thick white line in Gran Turismo sky ([#11530])
* Fix Motorstorm freeze on non-Windows ([#11618])
* Faster block transfer in some games like Digimon Adventures ([#11531], [#11553], [#11776])
* Blending optimizations and improvements ([#11543], [#11620])
* Improve D3D11 rendering issues ([#11584])
* Change default graphics backend to D3D11 or OpenGL ([#11621], [#11658])
* Remove some outdated settings ([#11665], [#11666], [#11667])
* Fix remote disc streaming with ipv6 ([#11689], [#11700])
* Vulkan: Workarounds for some driver bugs for 5xx series Qualcomm GPUs ([#11691], [#11694])
* Fix some Qt port issues with recent performance improvements ([#11720], [#11807], [#11808])
* UWP Xbox One: fix X/Back button confusion ([#11740])
* Fix Formula 1 2006 timing issue ([#11767])
* Fixes and workarounds for some vertex range culling bugs that broke a few games ([#11785], [#11859]), and disable it on older GPUs ([#11712], [#11773], [#11787])
* Android: Allow putting PSP storage on custom paths like SD cards ([#11812])
* Corrected vocp instruction, fixing models in Artdink games ([#11822], [#11835])
* Bundle SDL in binary for macOS builds ([#11831])
* Prevent keeping games open on Windows ([#11842])
What's new in 1.7.3/1.7.4/1.7.5
-------------------
@ -154,20 +154,20 @@ What's new in 1.7.2
What's new in 1.7.1
-------------------
* Minor crashfixes, lang updates
* Save bug fixed ([#11508][])
* Save bug fixed ([#11508])
What's new in 1.7.0
-------------------
* Fix for insta-crash on Galaxy Note 9, some Xiaomi devices, and the new nVidia Shield ([#11441][])
* Vertex range culling on most platforms, fixes DTM: Race Driver and similar ([#11393][])
* Major speed boost in some Gundam and Earth Defense Force games ([#10973][])
* Fix for issues with post processing shaders in GL 3+ ([#11182][])
* Fixes to sound output switching on Windows (WASAPI) ([#11438][])
* Detects DirectInput devices when running ([#11461][])
* Simple Discord integration ([#11307][])
* New debugging APIs ([#10909][])
* Task switching made a lot more robust (fixes GPD XD problems) ([#11447][])
* Texture decoding optimizations ([#11350][])
* Fix for insta-crash on Galaxy Note 9, some Xiaomi devices, and the new nVidia Shield ([#11441])
* Vertex range culling on most platforms, fixes DTM: Race Driver and similar ([#11393])
* Major speed boost in some Gundam and Earth Defense Force games ([#10973])
* Fix for issues with post processing shaders in GL 3+ ([#11182])
* Fixes to sound output switching on Windows (WASAPI) ([#11438])
* Detects DirectInput devices when running ([#11461])
* Simple Discord integration ([#11307])
* New debugging APIs ([#10909])
* Task switching made a lot more robust (fixes GPD XD problems) ([#11447])
* Texture decoding optimizations ([#11350])
* Tons and tons of miscellaneous bugfixes and compatibility fixes
Looking for [older news](history.md)?
@ -182,6 +182,8 @@ Credit goes to:
- [coldbird's code](https://code.google.com/archive/p/aemu/)
- Kyhel
[comment]: # (LINK_LIST_BEGIN_HERE)
[#13125]: https://github.com/hrydgard/ppsspp/issues/13125 "Refactor and fix touch control layout screen for notch"
[#13094]: https://github.com/hrydgard/ppsspp/issues/13094 "Camera initialization crash fix"
[#13093]: https://github.com/hrydgard/ppsspp/issues/13093 "Add a try/catch to Android camera device listing."

View File

@ -14,16 +14,16 @@ What's new in 1.6.1, 1.6.2
What's new in 1.6.0
-------------------
* OpenGL backend now properly multithreaded, giving a good speed boost.
* Various Vulkan performance improvements (like [#10911][]) and memory allocation fixes.
* GPU command interpreter performance improvements ([#10658][])
* Various fixes for app switching and widgets ([#10855][]) on Android
* Various Vulkan performance improvements (like [#10911]) and memory allocation fixes.
* GPU command interpreter performance improvements ([#10658])
* Various fixes for app switching and widgets ([#10855]) on Android
* Bugfixes and some performance improvements in the ARM64 JIT compiler and IR interpreter
* Shader cache enabled for Vulkan
* Multiple iOS fixes, including JIT ([#10465][]) and file browser ([#10921][]).
* Improved compatibility on Mac ([#10113][])
* Multiple iOS fixes, including JIT ([#10465]) and file browser ([#10921]).
* Improved compatibility on Mac ([#10113])
* Texture replacement ID bugfix (note: some textures from 1.5.4 may become incompatible)
* Adhoc multiplayer fixes ([#8975][])
* Vulkan support on Linux/SDL ([#10413][])
* Adhoc multiplayer fixes ([#8975])
* Vulkan support on Linux/SDL ([#10413])
* Retroarch support
What's new in 1.5.4
@ -32,18 +32,18 @@ What's new in 1.5.4
What's new in 1.5.0
-------------------
* Full Vulkan support, also for Android now. Very fast on supported devices. ([#10033][], [#10049][])
* Smarter graphics state management, reduced CPU consumption on all backends ([#9899][])
* Full Vulkan support, also for Android now. Very fast on supported devices. ([#10033], [#10049])
* Smarter graphics state management, reduced CPU consumption on all backends ([#9899])
* Android: Support for Arabic and other scripts we couldn't support before
* Fix Android widgets, screen scaling ([#10145][])
* Fix Android widgets, screen scaling ([#10145])
* Fixes to video dumping
* Geometry problems fixed in Medal of Honor
* Implement immediate draws, fixing Thrillville ([#7459][])
* Implement immediate draws, fixing Thrillville ([#7459])
* Software rendering improvements, speed and accuracy
* Hardware tesselation of PSP Beziers and Splines (used by a few games)
* Partial sceUsbGps and sceUsbCam support (Android)
* Android "Sustained performance mode" to avoid thermal throttling ([#9901][])
* Linux controller mapping fixes ([#9997][])
* Android "Sustained performance mode" to avoid thermal throttling ([#9901])
* Linux controller mapping fixes ([#9997])
* Assorted bugfixes and compatibility improvements
What's new in 1.4.2
@ -55,15 +55,15 @@ What's new in 1.4.2
What's new in 1.4.1
-------------------
* Fixes for some common hangs and crashes ([#9698][], ...)
* Vertex decoder optimizations ([#9674][])
* Corrections to mipmap bias and selection function ([#9633][])
* Major improvements and fixes to software renderer, including mipmap support ([#9635][], ...)
* Fixes for some common hangs and crashes ([#9698], ...)
* Vertex decoder optimizations ([#9674])
* Corrections to mipmap bias and selection function ([#9633])
* Major improvements and fixes to software renderer, including mipmap support ([#9635], ...)
* UI background image support
* Basic mouse input support on Windows
* Windows desktop touch fixes ([#9560][])
* Windows desktop touch fixes ([#9560])
* D3D11 "depal" color fixes, fixing Sonic Rivals
* Fix crash in framebuffer blits affecting Persona 3 ([#9566][])
* Fix crash in framebuffer blits affecting Persona 3 ([#9566])
What's new in 1.4-2
-------------------
@ -72,12 +72,12 @@ What's new in 1.4-2
What's new in 1.4
-----------------
* Support D3D11 (performs better than OpenGL or D3D9 on most hardware)
* Audio quality improvement (linear interpolation) ([#8950][])
* Audio quality improvement (linear interpolation) ([#8950])
* Hardware spline/bezier tesselation in OpenGL, D3D11 and Vulkan (...)
* Post-processing shaders in D3D11
* Prescale UV setting removed, now the default (improves perf) ([#9176][])
* Prescale UV setting removed, now the default (improves perf) ([#9176])
* High DPI display fixes
* Various fixes for UMD switching for multi-UMD games ([#9245][], [#9256][])
* Various fixes for UMD switching for multi-UMD games ([#9245], [#9256])
* New audio setting to improve compatibility with Bluetooth headsets
* Various desktop gamepad compatibility fixes
* Workaround for mipmap issue, fixing fonts in Tactics Ogre Japanese
@ -87,25 +87,25 @@ Support for Symbian, Maemo and Blackberry has been removed.
What's new in 1.3.0
-------------------
* Fix JIT problems on Galaxy S7 and iOS 9+ devices. ([#8965][], [#8937][])
* Fix Android TV support and use latest FFmpeg. ([#8651][], [#8870][])
* Texture replacement support - for custom textures and upscaling. ([#8715][], [#8821][])
* Initial game recording / TAS features. ([#8939][], [#8945][])
* Correctly map memory on Raspberry Pi 3, much better performance. ([#8801][])
* Fix JIT problems on Galaxy S7 and iOS 9+ devices. ([#8965], [#8937])
* Fix Android TV support and use latest FFmpeg. ([#8651], [#8870])
* Texture replacement support - for custom textures and upscaling. ([#8715], [#8821])
* Initial game recording / TAS features. ([#8939], [#8945])
* Correctly map memory on Raspberry Pi 3, much better performance. ([#8801])
* Workaround rendering issues on Tegra K1/X1. (8294a54)
* Disc streaming to play quickly from tablet/phone on wifi. ([#8845][])
* Initial Vulkan support - not full featured yet. ([#8601][], etc.)
* Experimental new CPU backend and CPU fixes. ([#8725][])
* Allow insert/eject of memstick - required by some games. ([#8889][])
* Better support for ps3 controller mapping. ([#8949][])
* Better UI handling for settings with long names in some languages. ([#8900][], [#8898][])
* Screenshots in compatibility reporting, better website. ([#8812][])
* Fix type D cheat codes, allow for homebrew. ([#8818][])
* Graphic glitch fixes in several games. ([#8686][], [#8757][], [#8804][])
* Fix video playback glitches in several games. ([#8793][], [#8803][], [#8867][], [#8914][])
* Various performance and compatibility improvements. ([#8868][], [#8884][], [#8932][], [#8934][], [#8813][], [#8701][], [#8960][])
* Various debugger and GE debugger improvements. ([#8882][], [#8762][])
* Fix some problems when switching away from and back to the app ([#8968][])
* Disc streaming to play quickly from tablet/phone on wifi. ([#8845])
* Initial Vulkan support - not full featured yet. ([#8601], etc.)
* Experimental new CPU backend and CPU fixes. ([#8725])
* Allow insert/eject of memstick - required by some games. ([#8889])
* Better support for ps3 controller mapping. ([#8949])
* Better UI handling for settings with long names in some languages. ([#8900], [#8898])
* Screenshots in compatibility reporting, better website. ([#8812])
* Fix type D cheat codes, allow for homebrew. ([#8818])
* Graphic glitch fixes in several games. ([#8686], [#8757], [#8804])
* Fix video playback glitches in several games. ([#8793], [#8803], [#8867], [#8914])
* Various performance and compatibility improvements. ([#8868], [#8884], [#8932], [#8934], [#8813], [#8701], [#8960])
* Various debugger and GE debugger improvements. ([#8882], [#8762])
* Fix some problems when switching away from and back to the app ([#8968])
What's new in 1.2.2
-------------------
@ -320,6 +320,8 @@ go to see there http://forums.ppsspp.org/showthread.php?tid=3595&pid=59241#pid59
* Got it tested windows <-> mac osx <-> psp, it works
* Monster Hunter 3rd HD works too, as well as God Eater Burst.
[comment]: # (LINK_LIST_BEGIN_HERE)
[#10911]: https://github.com/hrydgard/ppsspp/issues/10911 "Vulkan: Depalettize in shaders"
[#10658]: https://github.com/hrydgard/ppsspp/issues/10658 "Execute_Prim: Add a smaller \"inner interpreter\" to speed long up sequences of PRIM commands"
[#10855]: https://github.com/hrydgard/ppsspp/issues/10855 "PPSSPP 1.5.4 on Android. Shortcuts do not work the first time."

View File

@ -1,42 +1,48 @@
#!/usr/bin/env python
import re
import time
import urllib.request
from time import sleep
from urllib.request import urlopen
from urllib.error import HTTPError
import time
from lxml.html import parse
footer_delimiter = "\n\n[comment]: # (LINK_LIST_BEGIN_HERE)\n"
footer = ""
def replace_foo(match):
first_char = match.group(1)
id = match.group(2)
replace = first_char + "[#"+id+"][]"
replace = first_char + "[#"+id+"]"
url = "https://github.com/hrydgard/ppsspp/issues/"+id
title = None
while title is None:
try:
page = urllib.request.urlopen(url)
p = parse(page)
p = parse(urlopen(url))
title = p.find(".//title").text.split('by')[0].split('·')[0].strip()
title = re.sub(r"\"", r'\\"', title)
except HTTPError:
print("Something went wrong, retrying in 10 sec...")
time.sleep(10)
pass
sleep(10)
global footer
addition = "[#"+id+"]: https://github.com/hrydgard/ppsspp/issues/"+id+" \""+title+"\""
print("Done: " + addition)
footer += addition+"\n"
print("Done: " + addition)
return replace
f = open("README.md", "r+")
cont = f.read()
# We don't want to match issues id in title so stop before the link list
d = cont.find(footer_delimiter)
if (d != -1):
footer = cont[d + len(footer_delimiter):]
cont = cont[0 : d]
updated = re.sub(r"([^[])#(\d+)", replace_foo, cont)
f.seek(0)
f.write(updated)
f.write(footer_delimiter)
f.write(footer)
f.truncate()
f.close()