Skip to content

Commit

Permalink
Added a fix for blank RoR2 profile screen. Updated README and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ebkr committed Feb 16, 2021
1 parent 5ae7614 commit c48e0ae
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ From small features such as always-expanded cards, all the way to larger feature
The only thing you have to consider when suggesting a feature is the impact it will have on users who don't have a lot of experience with computers.

## Changelog
### 3.1.4
- Fixed error when updating that causes the profile to appear empty.
- Note that icons on old profiles will not load correctly.
- **Further visual bugs may occur when installing mods on an old profile.**
- Export old profiles and re-import them to restore icons.

### 3.1.3
- Multi-game support. The following games are supported:
- Risk of Rain 2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "r2modman",
"version": "3.1.3",
"version": "3.1.4",
"description": "A simple and easy to use mod manager for Risk of Rain 2, Dyson Sphere Program and Valheim.",
"productName": "r2modman",
"author": "ebkr",
Expand Down
2 changes: 1 addition & 1 deletion src/_managerinf/ManagerInformation.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VersionNumber from '../model/VersionNumber';

export default class ManagerInformation {
public static VERSION: VersionNumber = new VersionNumber('3.1.3');
public static VERSION: VersionNumber = new VersionNumber('3.1.4');
public static IS_PORTABLE: boolean = false;
public static APP_NAME: string = "r2modman";
}
21 changes: 18 additions & 3 deletions src/r2mm/manager/ManagerSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ export default class ManagerSettings {
}

public getInstalledSortBy() {
return Object.entries(SortNaming).filter(value => value[0] === ManagerSettings.CONTEXT.gameSpecific.installedSortBy)[0][1];
try {
return Object.entries(SortNaming).filter(value => value[0] === ManagerSettings.CONTEXT.gameSpecific.installedSortBy)[0][1];
} catch (e) {
console.log("Failed to get installedSortBy:", e);
return SortNaming.CUSTOM;
}
}

public async setInstalledSortBy(sortNaming: string): Promise<R2Error | void> {
Expand All @@ -115,7 +120,12 @@ export default class ManagerSettings {
}

public getInstalledSortDirection() {
return Object.entries(SortDirection).filter(value => value[0] === ManagerSettings.CONTEXT.gameSpecific.installedSortDirection)[0][1];
try {
return Object.entries(SortDirection).filter(value => value[0] === ManagerSettings.CONTEXT.gameSpecific.installedSortDirection)[0][1];
} catch (e) {
console.log("Failed to get installedSortDirection:", e);
return SortDirection.STANDARD;
}
}

public async setInstalledSortDirection(sortDirection: string): Promise<R2Error | void> {
Expand All @@ -124,7 +134,12 @@ export default class ManagerSettings {
}

public getInstalledDisablePosition() {
return Object.entries(SortLocalDisabledMods).filter(value => value[0] === ManagerSettings.CONTEXT.gameSpecific.installedDisablePosition)[0][1];
try {
return Object.entries(SortLocalDisabledMods).filter(value => value[0] === ManagerSettings.CONTEXT.gameSpecific.installedDisablePosition)[0][1];
} catch (e) {
console.log("Failed to get installedDisablePosition:", e);
return SortLocalDisabledMods.CUSTOM;
}
}

public async setInstalledDisablePosition(disablePosition: string): Promise<R2Error | void> {
Expand Down

0 comments on commit c48e0ae

Please sign in to comment.