basic game download source detection

This commit is contained in:
infinitefusion
2024-01-13 16:38:47 -05:00
parent 2294fddcdd
commit 869ffbc1a3
15 changed files with 8344 additions and 1593 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -333,7 +333,28 @@ class PokemonLoadScreen
end end
end end
def detectFakeDownload()
blacklist = ["pokemoninfinitefusion.net"]
current_user_directory=Dir.pwd
for keyword in blacklist
if current_user_directory.include?(keyword)
pbMessage("The game has detected that it has been installed from an illegitimate source which likely contains viruses.")
pbMessage("Please delete the game and reinstall it from the Discord or subreddit")
pbMessage("discord.gg/infinitefusion\nreddit.com/r/pokemoninfinitefusion")
pbMessage("Please also make sure to report the website you originally downloaded the game from to Google.")
return true
end
end
return false
end
def fakeWebsiteDisclaimer()
pbMessage("Reminder: This game does NOT have an official website. The ONLY official sources for the game are game's official discord or subreddit.")
end
def pbStartLoadScreen def pbStartLoadScreen
return if detectFakeDownload
fakeWebsiteDisclaimer()
updateHttpSettingsFile updateHttpSettingsFile
updateCreditsFile updateCreditsFile
newer_version = find_newer_available_version newer_version = find_newer_available_version

View File

@@ -43,6 +43,8 @@ def handleReplaceExistingSprites()
end end
end end
def pbCallTitle def pbCallTitle
#return Scene_DebugIntro.new if $DEBUG #return Scene_DebugIntro.new if $DEBUG
return Scene_Intro.new return Scene_Intro.new

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.