VolantisDev / Launchpad

Step up your non-Steam game! Generate Steam-compatible .exe files to effortlessly launch any game through Steam with overlay support.
https://launchpad.games
MIT License
87 stars 3 forks source link

Make this code more readable #211

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

Make this code more readable

https://github.com/VolantisDev/Launchpad/blob/6f379f945221c3126c5e6b2c3328f206d7079c72/Lib/Shared/DataLib/StructuredData/JsonData.ahk#L91


                    i := 0

                    while i := InStr(val, "\",, i + 1) {
                        ; TODO: Make this code more readable
                        if ((SubStr(val, i+1, 1) != "u") ? (pos -= StrLen(SubStr(val, i)), next := "\") : 0) {
                            continue 2
                        }

a9c34020acd760597907e17d69369375d90f572c