Skip to content

Commit

Permalink
Merge pull request #223 from KizKizz/system-rework
Browse files Browse the repository at this point in the history
prep
  • Loading branch information
KizKizz committed Jun 13, 2024
2 parents b58701f + 0fbaa99 commit b6d3b7d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ItemRefSheets/PSO2ModManRefSheetsVer.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
19
2 changes: 1 addition & 1 deletion app_version_check/app_version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PSO2NGS Mod Manager",
"version": "2.7.6",
"version": "2.7.7",
"description": [
"Added support for weapons and camos (recognizes when adding mods and weapons-camos swapping)",
"More bug fixes",
Expand Down
13 changes: 11 additions & 2 deletions lib/boundary/mods_boundary_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ void boundaryEdit(context, SubMod submod) async {
Directory(modManAddModsTempDirPath).createSync(recursive: true);
List<String> boundaryRemovedFiles = [];
List<String> boundaryNotFoundFiles = [];
int packRetries = 0;
//if (itemCategory == defaultCateforyDirs[16] || itemCategory == defaultCateforyDirs[1] || itemName.contains('[Fu]')) {
// if (itemCategory == defaultCategoryDirs[1] ||
// itemCategory == defaultCategoryDirs[3] ||
Expand Down Expand Up @@ -133,11 +134,19 @@ void boundaryEdit(context, SubMod submod) async {
Provider.of<StateProvider>(context, listen: false).setBoundaryEditProgressStatus(curLangText!.uiPackingFiles);
await Future.delayed(const Duration(milliseconds: 100));
//pack
await Process.run('$modManZamboniExePath -c -pack -outdir "${p.dirname(aqpFile.parent.path)}"', [Uri.file(p.dirname(aqpFile.parent.path)).toFilePath()]);
while (!File(Uri.file('${p.dirname(aqpFile.parent.path)}.ice').toFilePath()).existsSync()) {
await Process.run('$modManZamboniExePath -c -pack -outdir "${p.dirname(aqpFile.parent.path)}"', [Uri.file(p.dirname(aqpFile.parent.path)).toFilePath()]);
packRetries++;
debugPrint(packRetries.toString());
if (packRetries == 10) {
break;
}
}
packRetries = 0;
Provider.of<StateProvider>(context, listen: false).setBoundaryEditProgressStatus(curLangText!.uiReplacingModFiles);
await Future.delayed(const Duration(milliseconds: 100));
File renamedFile = await File(Uri.file('${p.dirname(aqpFile.parent.path)}.ice').toFilePath()).rename(Uri.file(p.dirname(aqpFile.parent.path).replaceAll('_ext', '')).toFilePath());
try {
File renamedFile = await File(Uri.file('${p.dirname(aqpFile.parent.path)}.ice').toFilePath()).rename(Uri.file(p.dirname(aqpFile.parent.path).replaceAll('_ext', '')).toFilePath());
await renamedFile.copy(modFile.location);
} catch (e) {
Provider.of<StateProvider>(context, listen: false).setBoundaryEditProgressStatus('${curLangText!.uiError}\n${e.toString()}');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.7.6
version: 2.7.7

environment:
sdk: ">=3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions windows/runner/Runner.rc
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ IDI_APP_ICON ICON "resources\\app_icon.ico"
#ifdef FLUTTER_BUILD_NUMBER
#define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER
#else
#define VERSION_AS_NUMBER 2,7,6
#define VERSION_AS_NUMBER 2,7,7
#endif

#ifdef FLUTTER_BUILD_NAME
#define VERSION_AS_STRING #FLUTTER_BUILD_NAME
#else
#define VERSION_AS_STRING "2.7.6"
#define VERSION_AS_STRING "2.7.7"
#endif

VS_VERSION_INFO VERSIONINFO
Expand Down

0 comments on commit b6d3b7d

Please sign in to comment.