Skip to content

Commit

Permalink
Improved: Quality of some Platforms and DRM Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Apr 1, 2024
1 parent 7dcc0dd commit 6e9c5f7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"mkdocs",
"modders",
"msvc",
"Nevermind",
"NONPACKAGED",
"ntdll",
"nullptr",
Expand Down
25 changes: 24 additions & 1 deletion docs/Loader/Copy-Protection/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ And unfortunately, naturally, that means sometimes copy protection gets in the w
- [Windows: Steam][windows-steam]
- [Windows: SafeDisc][windows-safedisc]

!!! info "There's more protection schemes out there"

If you know of any other possible challenges ahead, please contribute!

## Suggestions & Actions

### Prefer DRM-Free Versions
Expand All @@ -37,7 +41,26 @@ The Steam version is harder to mod, may have more performance issues and will on
With the GOG version, you can at least have peace of mind and one day show your kids or grandkids
the joy of your childhood games.

### Detection
!!! note "An 'encouragement' to buy DRM-Free version(s) in the future is suggested for launcher."

This helps with future preservation of games, and spreads awareness.

### Provide Delta Patches

!!! tip "For some very old games which have releases in multiple regions, providing delta patches may be acceptable."

Likewise, many modders for old games usually make mods that target a specific region's release.

To make things easier for end users, under ***very exceptional circumstances*** we may provide delta
patches which transform regional releases of games to the preferred region.

An example of 'exceptional circumstances' are SafeDisc games, which cannot be played ***AT ALL***
on Windows 7+ in their original form. (Modded or not modded)

!!! failure "Redistribution of unmodified game files is prohibited."

By 'delta patches' we refer to binary diffs (e.g. xdelta, VCDiff)
that convert ***only legal installs*** to community preferred game version(s).

<!-- Links -->
[yakuza-gog]: https://www.gog.com/en/game/yakuza_like_a_dragon
Expand Down
16 changes: 6 additions & 10 deletions docs/Loader/Platforms/Windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

## Native Mods with Dynamic Linking

!!! info

Some older native mods might want to dynamically link to libraries
(.dlls) they ship with their mods. We need to register the mod's directory
as a possible path for loading DLLs.
!!! info "Some older native mods might want to dynamically link to libraries (.dlls) they ship with their mods."

We need to register the mod's directory as a possible path for loading DLLs.

```csharp
// Reference C# code from Reloaded-II.
Expand All @@ -19,9 +17,8 @@ SetDllDirectoryW(builder.ToString());

## Crash Handler

!!! warning
!!! warning "Assume the user does not have any sort of crash dump/error reporting enabled."

Assume the user does not have any sort of crash dump/error reporting enabled.
We must generate dumps ourselves when our process dies.

```rust
Expand Down Expand Up @@ -53,9 +50,8 @@ unsafe {

## Wine

!!! info

To detect wine, check if `ntdll` exports `wine_get_version`.
!!! info "To detect wine, check if `ntdll` exports `wine_get_version`."

Always note that Wine is in constant development; in the future workarounds might become obsolete.

!!! important
Expand Down

0 comments on commit 6e9c5f7

Please sign in to comment.