Browse Source

Prepare for breaking RCX -> GC changes

tags/v2.0.0a
NGnius (Graham) 5 years ago
parent
commit
67b4278d49
4 changed files with 12 additions and 12 deletions
  1. +4
    -4
      README.md
  2. +5
    -5
      rxsm/config.go
  3. +2
    -2
      rxsm/port.go
  4. +1
    -1
      rxsm/saver.go

+ 4
- 4
README.md View File

@@ -1,9 +1,9 @@
# ![RXSM logo](https://raw.githubusercontent.com/NGnius/rxsm/develop/resources/images/icon-64.png) RXSM

Stop messing around with game files and focus on what's important.
Modify, track, rollback, import and export your RobocraftX games at the click of a button.
Modify, track, rollback, import and export your Gamecraft games at the click of a button.
RXSM is a powerful application written in [Go](https://golang.org/) using [Qt](https://www.qt.io/) graphics and [Git](https://git-scm.com/) for game save version management.
Leave the dinosaurs behind and advance your RobocraftX experience by millenia with RXSM.
Leave the dinosaurs behind and advance your Gamecraft experience by millenia with RXSM.

Want to learn more about what RXSM can do? Read the [User guide](https://github.com/NGnius/rxsm/wiki/User-Guide) and [FAQ](https://github.com/NGnius/rxsm/wiki/FAQ)!

@@ -12,7 +12,7 @@ Want to learn more about what RXSM can do? Read the [User guide](https://github.
### Disclaimer

RXSM is maintained by NGnius and developed by enthusiastic community members (mainly NGnius).
RXSM is not affiliated with FreeJam, RobocraftX or any other company, including but not limited to prehistoric-juice-pumping corporations.
RXSM is not affiliated with FreeJam, Gamecraft or any other company, including but not limited to prehistoric-juice-pumping corporations.

Third-party libraries used:
* [Qt for Go](https://github.com/therecipe/qt) ([License](https://github.com/therecipe/qt/blob/master/LICENSE))
@@ -25,6 +25,6 @@ Related projects:

## Development

### New developers wanted!
### New developers welcome!

To get started, read the [Developer guide](https://github.com/NGnius/rxsm/wiki/Developer-Guide).

+ 5
- 5
rxsm/config.go View File

@@ -12,7 +12,7 @@ import (
)

const (
ConfigPlayPathEnding = "RobocraftX_Data/StreamingAssets/Games/Freejam"
ConfigPlayPathEnding = "Gamecraft_Data/StreamingAssets/Games/Freejam"
)

var globalConfigPath string = "config.json"
@@ -55,11 +55,11 @@ func DefaultConfig() (c *Config) {
c.AutoInstall = false
c.DoNotTrack = true
if runtime.GOOS == "windows" {
c.BuildPath = filepath.FromSlash(os.Getenv("APPDATA") + "/../LocalLow/Freejam/RobocraftX/Games")
c.PlayPath = filepath.FromSlash("C:/Program Files (x86)/Steam/steamapps/common/RobocraftX/" + ConfigPlayPathEnding)
c.BuildPath = filepath.FromSlash(os.Getenv("APPDATA") + "/../LocalLow/Freejam/Gamecraft/Games")
c.PlayPath = filepath.FromSlash("C:/Program Files (x86)/Steam/steamapps/common/Gamecraft/" + ConfigPlayPathEnding)
} else if runtime.GOOS == "linux" {
c.BuildPath = filepath.FromSlash("~/.local/share/Steam/steamapps/compatdata/1078000/pfx/drive_c/users/steamuser/AppData/LocalLow/Freejam/RobocraftX/Games")
c.PlayPath = filepath.FromSlash("~/.local/share/Steam/steamapps/common/RobocraftX/" + ConfigPlayPathEnding)
c.BuildPath = filepath.FromSlash("~/.local/share/Steam/steamapps/compatdata/1078000/pfx/drive_c/users/steamuser/AppData/LocalLow/Freejam/Gamecraft/Games")
c.PlayPath = filepath.FromSlash("~/.local/share/Steam/steamapps/common/Gamecraft/" + ConfigPlayPathEnding)
} else if runtime.GOOS == "darwin" { // macOS
// support doesn't really matter until SteamPlay or FJ supports MacOS
log.Fatal("OS detected as macOS (unsupported)")


+ 2
- 2
rxsm/port.go View File

@@ -39,7 +39,7 @@ func Export(path string, save Save) error {
if dataWriteErr != nil {
return dataWriteErr
}
// create & write GameSave.RCX
// create & write GameSave.GC
saveData, saveReadErr := readAllFromPath(save.SavePath())
if saveReadErr != nil {
return saveReadErr
@@ -126,7 +126,7 @@ func extractSaveWorker(outFolder string, fileMap map[string]*zip.File, outChan c
outChan <- nil
return
}
// extract GameSave.RCX
// extract GameSave.GC
gameSaveSrc, sOpenErr := fileMap[GameSaveFile].Open() // assume exists
defer gameSaveSrc.Close()
if sOpenErr != nil {


+ 1
- 1
rxsm/saver.go View File

@@ -16,7 +16,7 @@ import (
const (
GameStart = "Game_"
GameDataFile = "GameData.json"
GameSaveFile = "GameSave.RCX"
GameSaveFile = "GameSave.GC"
ThumbnailFile = "Thumbnail.jpg"
FirstFolder = "!!!Game_00"
)