You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

theuserbl

Intermediate

  • "theuserbl" started this thread

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

1

Thursday, October 20th 2011, 3:16am

Resourcefiles have wrong directory separator

Jabaco 1.5.2 creates in its Jar-files resource-files which begins with "res\".
The problem: If you unzip the Jar-File on Linux or an other Non-Windows system, the backslash is interpreted as part of the file.
So instead a directory called "res" and for example a file in it called "myimage.png", there exist in the main directory of the zipped file a file called "res\myimage.png".
The directory-seperator in zip (or jar-) files is the slash ("/") like on unix-systems.

I know this is only a very small bug. But I created a bugfix for it.
If you want to fix your Jabaco.exe, then unzip JabacoResFix.zip and copy the JabacoResFix.exe in your Jabaco-directory. Then start it.
There will be created a new file called JabacoFixed.exe. That is the fixed file.

Sourcecode is included in the archive called JabacoResFix.c.

Compiled with OpenWatcom 1.9.

Greatings
theuserbl
theuserbl has attached the following file:
  • JabacoResFix.zip (19.29 kB - 319 times downloaded - latest: Feb 17th 2024, 12:25pm)

Rate this thread
WoltLab Burning Board