GithubHelp home page GithubHelp logo

hugoif / hugo-unix Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 5.0 3.87 MB

A fork of Bill Lash's Hugo port, originally hosted at https://bitbucket.org/0branch/hugo-unix. Further info and downloads: http://www.generalcoffee.com/hugo/gethugo.html.

License: BSD 2-Clause "Simplified" License

Makefile 1.49% C 77.92% C++ 20.58%

hugo-unix's Introduction

Hugo for Unix - Distribution Notes
----------------------------------
'make' to make the entire Hugo package.

The /gcc directory contains gcc-specific files.

The /source directory contains the regular Hugo portable
sources normally distributed as hugov2x_source.tar.gz.

hugo-unix's People

Contributors

0branch avatar bcressey avatar cspiegel avatar curiousdannii avatar juhana avatar realnc avatar roodyyogurt avatar rsherwin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hugo-unix's Issues

My recent changes

Just letting you all know about my recent changes.

I've pulled in the branches I had gathered at https://github.com/curiousdannii/hugo. I've merged in the changes from garglk so that we now have the Glk source in this repository. I've left the v3.2 and hugor branches as is. I think the changes from hugor have probably already been incorporated, in which case we can delete that branch. (Edit: it's deleted.) I'm now going to mark my repository as archived. Long live hugo-unix!

I've added guard calls to glk_stream_open_file to avoid the common interpreter behaviour (but wrong according to the spec) of throwing a fatal error when reading a non-existent file.

I've increased MAXUNDO if not set because this seemed to be required for some larger games like Cryptozookeeper.

Move to the hugoif organisation?

@juhana started an organisation for Hugo: @hugoif.

We could move this repository there?

Could also consider just renaming it to "hugo" if you'd be happy allowing for other OSes ports to be included too?

Multimedia loading fails with latest Gargoyle

The Glk port, to provide graphics and sound, writes out individual PIC and SND files, as suggested by the Blorb specification, and supported by Gargoyle (and xglk should at least support PIC files).

However, it also uses Glk to open these files, but Glk doesn't provide the ability to open arbitrary files. It used to work with Gargoyle, but when I synced Gargoyle with the latest cheapglk, things broke: this is because cheapglk, as recommended by the Glk spec, adds extensions to all files opened by it. Specifically for data files, .glkdata is added, meaning files are called something like PIC0.glkdata. As such these files no longer have valid names for Gargoyle (or any other implementation which uses the suggested names).

I've got a hacky solution in a pull request: garglk/garglk#649. Part of the issue is that it requires the non-standard glkunix_stream_open_pathname function to directly open a file. This is part of the glkunix startup, not Glk itself. Since this repo is called hugo-unix, that may not matter, but it's worth pointing out. The function does exist in cheapglk, xglk, glkterm, remglk, and Gargoyle, at least.

The other thing is that, in my fix, I'm guarding this all with #ifdef GARGLK since it deviates from upstream here. However, it'd be better to get a proper upstream solution in place that works for all (Unix) Glks. If we can assume that glkunix_stream_open_pathame is OK to use, then I think my approach is no worse than the existing one. I use stdio to write out the files, to guarantee working filenames. This avoids any mangling that may be done by the Glk implementation.

My use of the hugo_path_to_game is also gnarly, and should be improved if it's going to actually be used upstream.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.